Repository navigation
History, Rollback, Audit trail, Nodes and Compare in Storybook - #161
Merged
Merged
Conversation
…mparison over in-memory ports
…dit trail, Nodes and Compare
This was referenced Nov 25, 2026
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.
Closes #149. Part of #135.
Summary
History (Snapshots), the Rollback confirmation, the Audit trail, Nodes and the Override comparison (board
Compare), as pages over domain slices with ports. They are Storybook-only: not routed, no HTTP adapter. Each slice has a port and a memory adapter with the board's fixtures, so wiring the API later is anapp/http/<slice>.tsand a route.frontend/lint/layers.js: new slicesnodes: [session],audit: [session],overrides: [session, entities].The Publish slice files (#145) are untouched; only
domain/publication/index.tsgains a block of exports at its end.Stories (all screenshot):
Pages/History:Board,Draft: Nothing publishedPages/Rollback:Board,Draft: Lost race,Draft: Damaged Snapshot,Draft: Module missing on this node,Draft: Rolled backPages/Audit trail:Board,Draft: Publication and Rollback rows,Draft: Full document after a change,Draft: No matchPages/Nodes:Board,Single(NodesSingle),Draft: Problems on another nodePages/Compare:Board,Draft: Never reviewedDesign system/Fold:Folded,Open,KeyboardEvidence
npm test518 passed, lines 99.3 %;npm run test:visualthree runs of 216 with zero diffs (64 new references, none changed); lint and type check clean;composer test607 passed;composer staticok;composer buildcommitted with no further diff. No PHP changed.Board differences
Disclosure) that opens the PHP text in place..callout-bodyhas no gap. This affects every callout in the Console, so it's left alone here.Departures (states without a board,
Draft:)Compareboard is the Override comparison of SPEC 10.13 (managed against source, Mark as reviewed). It lives in a newoverridesslice, not inpublication..storybook/preview.tsxdestroys React Aria's live announcer before each story, so a pending button's announcement does not fail axe in the next story.Draft: Rolled backdestroys it at the end of its play function, because its button leaves with the page.Merge Danger
Door: two-way
Blast Radius: small
Nothing is routed in production. Shared files touched:
Callout(title type widened),Input(date),Page(two widths),console.css(one appended block), the Storybook preview. Adds 64 reference screenshots, so this waits for the maintainer'svisual-changelabel.