Repository navigation
Overview, entity sets, External entities and Authsources in Storybook - #164
Merged
Merged
Conversation
…and Authsources over in-memory ports
…sets, External entities and Authsources
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 #148. Part of #135.
Summary
Overview, the Identity providers and Hosted IdP lists, External entities with an entity's detail, and Authsources with Add authsource, as pages over domain slices with ports. They are Storybook-only: not routed and no HTTP adapter. Each slice has a port and a memory adapter with the board's fixtures, so wiring the API later means adding an
app/http/<slice>.tsand a route.frontend/lint/layers.js: new slicesoverview: [session, entities, publication, nodes, overrides]andauthsources: [session, entities]. The production list route renders<EntityListPage set="saml20-sp-remote" />.HttpEntitiesis unchanged: a set's list gets its ownEntitiesPortinstance, provided per route.Stories (all screenshot):
Pages/Overview:First run,Clear,Draft: Needs attention,Draft: Nothing publishedPages/Identity providers:Draft: List,Draft: No match,Draft: Hosted IdP,Draft: No hosted IdPPages/External entities:Board(three ticked by its play function),Draft: Nothing ticked,Draft: All of a source ticked,Draft: Unreadable source,Draft: No match,Draft: Identity providersPages/External entity:Board,Draft: Several copiesPages/Authsources:Board,Draft: Row labels,Draft: None managedPages/Add authsource:Board(Start empty),Draft: Paste,Draft: UploadDesign system/File button,Design system/Check(Hidden label,Disabled),Design system/Card(Rows with a checkbox)Evidence
npm test: 622 passed, lines 99.0 %.npm run test:visual: three runs of 448 with zero diffs; 88 references are new and 4 changed (see below). Lint, type check andcomposer sizeare clean.composer test: 607 passed.composer staticis ok.composer buildis committed with no further diff. No PHP changed.Board differences
<a>, which is invalid nesting and fails axe. Here the checkbox sits beside the link (Row pick), and only the link part of the row opens the entity. At 400 px the checkbox wraps onto its own line, as on the board.Boardstory ticks them in its play function.ImportResultare not part of this issue.AddEntity. TheAddAuthsourceboard shows Start empty selected, which theBoardstory reproduces. "Review" stays disabled because reading pasted configuration and the editor it opens are not built. The type rows link to/authsources/new?type=…, the hand-off to the editor of a new authsource. SPEC 10.4 gives no route for it. There is no "Detected" select, because PHP array is the only format for an authsource.SpEmptyboard does, wherever the session serves External entities. That covers Storybook only. This changes the 4service-providers-page-no-match-*references.Departures (states without a board,
Draft:)Merge Danger
Door: two-way
Blast Radius: small
In production only the service provider list changes, and only in code: it renders through
EntityListPage, and "Search External entities" stays hidden because the session does not serve External entities. Shared files touched:domain/entities(routes, list, pager, row, notes, delete hook; signatures widened with defaults where the edit screen calls them),Row,Check,console.css(one appended block and two selectors widened) andStoryScreens. This PR adds 88 reference screenshots and changes 4, so it waits for the maintainer'svisual-changelabel.