Repository navigation
Adds three branch library setup documents - #265
Merged
Merged
Conversation
A catalogue sync, a reading-list import and a card-reader setup, each a Path of three returnable steps with its own screens document, listed once in Library.Setups by key and by document id. Each root declares the outcome done. A new settings page starts any one of them as a durable Journey and hands it to the Journey page, which now runs the three by key and offers Back between their steps. A fixture test holds every step's outcomes and responses to its screen's buttons and questions, and no setup asks a boolean question. Refs: se-xv0i
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.
What this does
Three setups a branch library runs when it joins, each a document of its own that runs alone as a durable Journey, with Back between its steps.
priv/fixtures/catalogue_sync.json,reading_list_import.json,card_reader_setup.json), each acore.sequenceof threemyapp.stepblocks, the plain returnable host step type, with its own screens document beside it (*_screens.json). Because every step is a returnable step, the Journey page offers Back on the second and third step of each.StatifierExamples.Library.Setupslists the three once, by key (the file stem a page carries in?path=) and by document id (bdoc_catalogue_sync,bdoc_reading_list_import,bdoc_card_reader_setup).fetch_document/1answers a setup by its document id and:errorfor any other, which is what a resolver of child documents needs to look up.outcomes/1reads each document's declared root outcomes from its compile for use as a child./settings(StatifierExamplesWeb.SettingsLive) lists the three with their names, descriptions and root outcomes. Start starts the setup as a durable Journey withJourney.start/2over its own options and navigates to the existing Journey page with the setup's key and the new execution's id. It draws no screen of its own. A key the list does not hold is refused on the page.?path=lookup now asksLibrary.Setupsfor any key other than the registration steps'.Back in these documents goes through the plain returnable step type, not a composite: ruled by the operator, 2026-11-22. The signup Path is unchanged and keeps its authored back edge. No statifier_blocks change and no dependency move.
Provenance
core.sequence, so each declares one root outcome,done. A root that finishes with more than one outcome, such asskipped, needs a root block that declares them, which here would be a new host composite this change does not add. So how a setup went is in itsresponses, where each press recorded it, and not in its outcome.reader_placeasksreader_location).outcomesandresponsesare not checked against the screen a step names, so the new fixture test does it for every Path built frommyapp.step, the patron registration steps included. The test does not change the type.priv/fixtures/that are not block documents (block_schema_test.exs).Tests
test/statifier_examples/library/setups_test.exs(the list, the root outcomes, each step's config against its screen, each setup walked as a durable Journey and gone back on) andtest/statifier_examples_web/live/settings_live_test.exs(the page: the list, Start landing on the first screen with no Back, Back between steps on each setup's page, the refusal). Every new test carries a sabotage note from a run: each mutation applied, the named test failed on an assertion, and the file was restored byte-equal from a copy before the next.Full
mix qualitygreen on SQLite.