Home

madison / open-git

public
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(web): preview tabs that promote on a second open

2 months ago

8009fb2
Authored
VC7/26/2026, 7:40:43 PM
Adds preview/promote to the workbench tab bar: a single-click open reuses the
preview slot, and opening the same target again pins it. Tab-state logic moves
into tab-state.ts so it can be unit tested without compiling the provider,
matching the split already used for canonical-target.ts.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Parente067fe9

7 files changed
  • apps/web/components/workbench-tabs/canonical-target.ts+11−0
  • apps/web/components/workbench-tabs/index.ts+4−1
  • apps/web/components/workbench-tabs/preview-slot.test.ts+93−0
  • apps/web/components/workbench-tabs/tab-state.ts+150−0
  • apps/web/components/workbench-tabs/workbench-route-sync.tsx+1−0
  • apps/web/components/workbench-tabs/workbench-tab-bar.tsx+33−7
  • apps/web/components/workbench-tabs/workbench-tabs-provider.tsx+30−104