Skip to content

Show previews on their original app's Deployments tab - #472

Merged
tnkuehne merged 2 commits into
mainfrom
preview-list-in-app
Nov 28, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
preview-list-in-app

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Manage list showed every preview as a separate app next to its original. Previews now appear on the original app's Deployments tab, in a Previews section above the deployment history. Each row opens the preview's own app page.

  • Manage hides a preview when the viewer can also manage its original app. A preview whose original app the viewer cannot manage stays in Manage with its badge, so it remains reachable. Filter counts follow the visible rows.
  • Previews are a separate section, not entries in the history. History rows are versions of this app with Restore version; a preview is its own app with its own data and history.
  • The tab's 5-second refresh and the Refresh button reload the preview list on the Deployments tab. A transient failure keeps the last confirmed list and shows the existing refresh error.
  • Deleting a preview returns to the original app's Deployments tab, where the preview shows Deleting until cleanup finishes. Without access to the original app, deletion returns to Manage as before.
  • The Manage row is now a shared AppRow component used by both lists.

Screenshots

Synthetic fixture: one unpublished app with two previews.

Before After
Manage, 1280 px light
Manage, 390 px dark
Deployments, 1280 px light
Deployments, 390 px dark

When the preview list cannot be refreshed, the tab keeps the last loaded previews and deployment history and shows the usual refresh error:

1280 px light 390 px dark

Verification

  • svelte-check, Oxlint and Oxfmt pass for the control plane.
  • Playwright registers an agent, creates an app and an isolated preview, then requests deletion: the preview is absent from Manage, opens from the original app's Deployments tab, and shows Deleting there after deletion.
  • Playwright reconciles deployment completion and reports refresh failures without losing the last result: aborting only the app list keeps the deployment history and shows the refresh error (fails without the fix).
  • Checked desktop and 390 px in light and dark themes.

Not checked visually: an active app with a long deployment history below the previews, and the Manage fallback for a preview whose original app the viewer cannot manage.

…Manage list

Manage listed every preview as a separate app next to its original. Previews
now appear in a Previews section above the original app's deployment history,
where the 5-second refresh keeps their state current. Deleting a preview
returns to that tab. A preview whose original app the viewer cannot manage
stays in Manage so it remains reachable.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 884ecd4 Nov 28 2026, 05:41 PM

A failed refresh of the preview list replaced the whole tab with an error
page, although the layout keeps the app's details. The tab now keeps the
last confirmed list on transient failures and reports them like other
refresh failures. The deletion test also checks that the original app is
not being deleted.
@tnkuehne
tnkuehne merged commit d2e7ab7 into main Nov 28, 2026
24 of 28 checks passed
@tnkuehne
tnkuehne deleted the preview-list-in-app branch November 28, 2026 19:21
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