Skip to content

Show region coverage on the deployments list - #3998

Draft
rossnelson wants to merge 1 commit into
rossnelson/multi-region-region-displayfrom
rossnelson/multi-region-list-badges
Draft

rossnelson wants to merge 1 commit into
rossnelson/multi-region-region-displayfrom
rossnelson/multi-region-list-badges

Conversation

@rossnelson

Copy link
Copy Markdown
Collaborator

Stacked on #3995, which is stacked on #3993. The diff here is this slice alone. Merge in order: #3993 → #3995 → this.

Third slice of multi-region Serverless Workers. Still dark unless a consumer passes the Namespace's regions — fewer than two and every row renders exactly as it does today.

Description & motivation 💭

Each version in the deployments list now carries a badge per region, beside the provider badge it already has.

Only a region nothing serves is coloured. Colouring every region would make the ordinary case look alarming and leave the one that matters — a region a failover would find empty — to blend in with the rest. In a list the job is to draw the eye to the exception, not to label the norm.

No extra requests

The list already has what this needs. A version summary carries its whole compute config, so coverage is derived from data the row holds. Nothing new is fetched.

Design Considerations 🎨

  • Same prop shape as the Version detail. The page takes namespaceRegions and passes it down, so a consumer wires both surfaces the same way.
  • Badges, not a list. The detail view (Show where a Version's workers run per region #3995) explains coverage; this one only has room to flag it.
  • Coverage is marked with data-region-match and the tests assert that rather than the rendered text.

Testing 🧪

How was this tested 👻

  • Unit tests added
  • Strict type check clean

5 new component tests: the gate in both forms, a badge per region with the cloud prefix stripped, only the uncovered region coloured, and a fully covered row left plain.

301 tests pass across deployments, services, utilities and pages. count-strict-errors.ts reports 0.

The one lint warning in deployments.svelte (require-each-key) is pre-existing — confirmed by stashing this branch and re-running.

What comes next

  1. The forms: compute per region
  2. The preview panel and failover stories

Checklists

Merge Checklist

Third slice, on top of the per-region Version detail. Still dark unless a
consumer passes the Namespace's regions: fewer than two and every row
renders exactly as it does today.

Each version in the list now carries a badge per region, beside the
provider badge it already has. Only a region nothing serves is coloured.
Colouring every region would make the ordinary case look alarming and
leave the one that matters — a region a failover would find empty — to
blend in with the rest.

The list already has what this needs: a version summary carries its whole
compute config, so the regions come from data the row has rather than
another request.

The page takes the regions and passes them down, which is the same shape
the Version detail uses, so a consumer wires both the same way.
@rossnelson
rossnelson requested a review from a team as a code owner October 8, 2026 16:19
@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
holocene Ready Ready Preview Oct 8, 2026 4:19pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 0c23defc Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant