Skip to content

feat(studio): L14b publish pill, published badges and publish-this - #1085

Open
LinuxDevil wants to merge 1 commit into
mainfrom
fb-l14b-published-pill
Open

LinuxDevil wants to merge 1 commit into
mainfrom
fb-l14b-published-pill

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

Summary

  • Builder toolbar + agent detail header show the publish state pill (Not published / Published v7 / Published v7 · edited) driven by the L14a publishState, live-refreshing on agent.changed meta/version/save/restore events.
  • The pill's menu offers Publish current version (disabled with Already published when the working copy matches the pin; saves dirty edits first) and View versions.
  • The Versions timeline marks the pinned version with a Published badge and offers Publish this on every other non-baseline version behind a Publish v3? confirm dialog.
  • RestoreDialog and PublishVersionDialog now share the new PendingActionDialog skeleton; VersionsTab's save/restore/publish mutations moved to useVersionActions to stay under the complexity ceiling.

Ticket: audit/forge-builder/tickets/p7-lifecycle/L14b-published-pill-and-badges.md

Test plan

  • PublishPill.test.tsx (10) + extended VersionsTab.test.tsx (16) — labels/tones/titles, dirty-save-then-publish, disabled-when-published, badges, dialog copy, toasts, refresh
  • Touched existing tests (Topbar, header, Menu, detail route, diff sheet) green
  • Full Studio client suite green (4011 tests)
  • Client + e2e typecheck, lint, fallow audit clean

Generated with Devin

The builder toolbar and agent detail header show the publish state
("Not published" / "Published v7" / "Published v7 · edited") from the
L14a publishState; the pill's menu publishes the working copy (saving
dirty edits first) or jumps to the Versions tab. The timeline marks the
pinned version and offers "Publish this" on the others behind a
confirm dialog.

RestoreDialog and PublishVersionDialog share the new PendingActionDialog
skeleton; VersionsTab's save/restore/publish mutations moved to
useVersionActions to stay under the complexity ceiling.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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