Repository navigation
feat(frontend): edit screen and PHP view over the entities slice, with the Options panel - #162
Merged
Merged
Conversation
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 #142.
Summary
The edit screen and the PHP view become a page over the
entitiesslice;screens/edit/keeps only the add screen, which #143 rebuilds.Built now, in production too:
saml20-sp-remote, from the schemas the build already compiles (npm run generatewritesoptions.ts). A set option shows its line, found by a lexical walk of the text (strings, comments, brackets; nothing is parsed or evaluated). Insert writes'name' => <default>,on its own line after the cursor's line when that line sits between root options, otherwise last in the array; the cursor lands after it. "type · default X" shows for options with a schema default.Capability-gated (memory adapter in Storybook, hidden in production): Enabled switch, Replace from…, Discard changes… (texts from SPEC 8.3), Promote…, the "tidied" notice with "Do not show again", the unknown option's linked suggestion (puts the key in place on its line), who and when of a lost race ("admin saved it 2 minutes ago. Your edits were not kept.").
#119 (schema errors at open) and #120 (Unreadable stored bytes) keep their behaviour and tests.
Design system:
Switchtakeslabelled(shows "Enabled" in place of On/Off);EditorHandlegainscursor()(null until first focused) andfocusAt().API: unchanged.
src/Domainand PHP untouched.Stories:
No lone decision under review touches this page.
Evidence
npm test: 105 files, 560 tests; coverage 99.11 % lines. Moved tests (screens/edit/Edit*.test.tsx→pages/EditServiceProvider*.test.tsx) keep their assertions except the save-bar labels (SPEC 10.8). New:EditServiceProviderOptions(panel, search, Insert at the cursor and last, production menu),EditServiceProviderCapabilities(memory port: tidied, suggestion, who/when, switch, discard, promote, failure callout),phpText.test.ts.npm run test:visual: 296 pass, three runs after--update, zero diffs. 80 new references; existing ones unchanged.npm run lint,npm run typecheck,composer test,composer static(sizes),composer buildandnpm run generate: no diff.Board differences
Compared FormPhp, PhpSaved, PhpSyntax (light, dark; 1440, 400) with the board stories.
default-sp,saml:SP, no identifier rowsaml20-sp-remote, entity ID with Copysaml20-sp-remoteschema; a "sign" search finds 10sign.logout?"src/Domain; board wording only with the suggestion capabilityOther departures to rule on:
saml20-sp-remote(no next-key slot, SPEC 7.7); built gated bynextKey, shown only in a story.lib/time.ago("2 min ago"), to match SPEC 10.9's wording.Merge Danger
Door: two-way
Blast Radius: edit screen
Wording of the save bar changes in production ("Saved, not live", "Published"); the add screen now runs on the slice's editor too.