Files
Charis e38c93e960 feat(studio): block read replica creation when upgrade crosses collation lineage (#52244)
## What

Read replica creation is now blocked when upgrading the primary's
Postgres would cross a collation lineage boundary. The check uses the
upgrade eligibility endpoint, and the lineage boundary logic is ported
from the platform. The blocker shows an admonition asking the user to
upgrade Postgres first, with a link to the upgrade section in General
settings.

- Multiple blockers on the replica dialog now collapse into a single
admonition.
- `useCheckEligibilityDeployReplica` now exposes `isLoading`, `isError`,
`error`, and `refetch`. The dialog shows a skeleton while loading and an
error with a Retry action on failure.

## Notes for reviewers

- Upgrade eligibility only runs for active, healthy projects, so other
projects are not blocked by this check.
- The admonition copy needs a messaging review.

## Testing

- Unit tests for the collation lineage util.
- Component tests for blocker collapsing, the loading state, and
error/retry.

Closes FE-4643
2026-10-26 07:56:40 -04:00
..