Repository navigation
feat(doop): ledger caption, read-only Finished canvas, phone column (CHE-9470) [squash] - #176
Draft
congvc-bot-x99[bot] wants to merge 1 commit into
Draft
congvc-bot-x99[bot] wants to merge 1 commit into
congvc-bot-x99[bot] wants to merge 1 commit into
Conversation
…CHE-9470) L8 of CHE-9398 plan r5. - canEditActivePage gates every frame-edit entry point on a Finished page. - Lock and Restore keep their own rule. - A 409 page_finished shows the read-only notice. - The ledger page shows its caption: a bar on desktop, a box in the phone Layers sheet. - The landing line stays with CHE-9448.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
CHE-9470 (L8 of CHE-9398 plan r5), the canvas side of the A5 ledger. Design lock:
design/lifecycle-ui/approved/A5-project-ledger.htmlandA-phone-390-all-five.html@ 572cc77.canEditActivePage=canEditOpenCanvasand the active page not Finished. It gates frame press and drag, Layers rows and menus, delete, paste, drop, rename, ⌘K and shortcut actions, version restore, and the Inspector, element and Page panels.canEditOpenCanvas(the server leaves them open). Restore is unchanged (PagesPanel).page_finishedrefusal shows "Finished pages are read only. Restore the page to edit it." (centralised inreq()).Out of scope: landing (CHE-9448), page versions (CHE-9351), lock-port gate (CHE-9385), Trash purge (CHE-9399), CHE-10411, any deploy.
Tests (test-first)
New file
tests/ledgerCanvasUi.test.tsx(12 tests): on a Finished page frame edit, delete and move are off and Restore works; a 409page_finishedshows the notice (another 409 stays quiet); the caption shows only on the ledger page; an open page keeps every edit.Command:
bunx vitest run tests/ledgerCanvasUi.test.tsx(CI default config). Run locally with aglobalSetup-free config because the host timed out starting workers under load.Red, before the code (a stub
LedgerCaptionreturning null, nocanEditActivePage, no notice):Green, after the code:
Related existing suites also green: 20 files / 136 tests and 3 files / 67 tests (Layers, registry, frame menu, history, pages, i18n).
Also green locally:
bun run typecheck,bun run lint,bun run format:check,bun run doc-lint.UI gate
UI review pack — head
cd2dbed31f14c5764470922d8f2a492735d41365design/lifecycle-ui/approved/A5-project-ledger.htmlandA-phone-390-all-five.html@572cc77design/patterns.ymlis not in the repo, so no pattern entry applies; the ledger caption and the Finished read-only rule are new surfaces (no pattern line)docs/ux/CHE-9470.yml0ce30401capture existscd2dbed3capture existsThe pack is incomplete until the captures sit on a doop frame, so the PR stays draft.
Keep / Change / Remove check (manual until Layer B), read against the sheet and the head captures:
setPageFinishedtest); copy-frame yes (menu keeps Copy); viewer-rules yes (view role stays false, tested); phone-tabs yes; pages-list-phone yes; state-loading, state-empty, state-error, state-offline yes (L7 PanelState, not touched).data-testidvalues; only the caption has a hook (data-slot="ledger-caption"). The tests find the rest by role and text.Notes
.context/TECHSTACK.mdrecords the client read-only rule.