Repository navigation
Settings form engine in Storybook (1 of 2 for #147) - #165
Merged
Merged
Conversation
…nerated form schemas
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.
Part of #147 (1 of 2: the form engine and its stories; the Settings/PHP switch on the edit page follows). Part of #135.
Summary
The schema-driven Settings form of SPEC 10.10, generic over every schema in
docs/spec/schemas, in a newformsslice. It reads the schemas through whatnpm run generatewrites; the browser compiles nothing.Capability-gated (only what the port offers shows): Reveal of a sensitive literal, the authsource select (
x-authsource-reference),secrets_dircompletion, and the certificate facts card (subject, expiry, Replace). Without them: a password field, a text field, no completion, the PEM field.Not routed: nothing in
apporpagesuses the slice yet, so production is unchanged. The edit page gets the switch in the second PR.Stories (no screenshots: domain components):
Domain/Forms/Settings form:Service provider (FormServiceProvider),Authsource saml:SP after a rejected save (Form),Authsource multiauth:MultiAuth (FormMultiAuth)Domain/Forms/Settings form, drafts:Draft: New service provider,Draft: Finding an option,Draft: Conditional options,Draft: Sensitive value,Draft: Without the server's lists,Draft: Uncataloged optionsDesign system/Collapsible,Design system/Search pick, and new variants of Input, Select, Radios, MenuEvidence
domain/forms: presence by key, required by root list, byifbranch and bydependentRequired, x-when hiding a set option and dropping it from the count, booleans opposite their default, no default written, nested empty optional field absent, rows add/remove/move, map rename, finder with disabled reason and withoutextra, control table, Secret references, issues per group and in the index, focus moved to an added option, "and N more".npm test: 704 passed, lines 98.99 %. Lint, type check,composer size,composer static,composer test(607) are clean.composer buildis committed. No PHP changed; no page screenshot changed.Board differences
asideslot for it.Basics,certData,acs.Bindings…) predate the schemas; the form renders the schema'sx-groupsand options.preselectof MultiAuth is a text field, not the board's select: SPEC 10.10 makes a value taken from the same document a plain text field.Merge Danger
Door: two-way
Blast Radius: none in production; Storybook and the generated
forms.tsonly.