Repository navigation
Adds the newer screen types to the palette - #277
Merged
Merged
Conversation
The screen editor's palette gains an image, a divider and a link; a text question gains the date, time and datetime formats, a style hint (a slider among them) and a step; a choice question gains option descriptions; and every question gains checks. The walk turns each into riddler's shape, and the patron registration fixture uses one of each and still starts under Try. The Try renderer draws the image, divider and link, and the Journey's check has a reader-facing message for the date and time formats. Refs: se-gb7u
The reader messages for time and datetime name both the minutes and the seconds shapes, and a datetime's Z or offset. The date and time format choices test carries the mutation it was sabotaged with. Refs: se-gb7u
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.
Refs: se-gb7u
What changes:
The screen editor's palette offers the element types and fields riddler 0.9.0 admits beyond the original ones, each written in riddler's shape by the walk (StatifierExamples.ScreenEditor.Walk.screen_document/1):
The URL rule stays riddler's: the editor holds src and href to being there, and a URL riddler refuses is refused when Try admits the walked document.
The patron registration fixture gains the library's logo image, a divider before the PIN, a date of birth question (format date, min 1900-01-01) whose check holds it to not being after context.today, a slider for how many items a patron borrows at once, a description on the student card option, and a link to the lending rules. Each new question is optional, so every existing Journey over the fixture submits as before. Try still walks and starts it.
Two host pieces follow from the palette: the Try renderer (StatifierExamplesWeb.SignupElements) draws an image, a divider and a link as plain HTML instead of raising on them, and the Journey's check (StatifierExamples.Signup.Validation) has a reader-facing message for the date and time formats, so Try no longer refuses a document that uses them.
Tests:
Every new test carries the mutation it was sabotaged with in a comment above it; each turned red on an assertion and the file was restored from a copy.
Provenance:
Engineering choices taken in this change, reversible inside the app: the date formats as format choices rather than types; option descriptions and checks as rows on the question, in the editor's existing row convention; alt held to not blank, so a decorative image (an empty alt) is not offered by the editor; the check reads today from context, as riddler's record says the host supplies it.
Gate:
Full mix quality green on the committed tree. The branch is the reviewed commit plus one cure commit (the time and datetime reader messages name both the minutes and the seconds shapes and a datetime's Z or offset, and the format choices test carries its sabotage note); it is not rebased onto main's newer commit, which moves mix.lock only. Review tier: size (the change exceeds 300 lines outside docs and fixtures), and it also touches contract surfaces: the new public modules StatifierExamples.ScreenEditor.Image, Divider and Link, and StatifierExamples.Signup.Validation.formats/0, which now answers six formats.