feat(forge): Mockups stage, explicit early finish, single action bar - #85
Merged
Merged
Conversation
…n bar
Mockups stage
- New Forge stage between Scenarios and C4 (requirements -> fitness ->
scenarios -> mockups -> c4). Screens are part of the spec the
architecture follows from, so they come before C4.
- The stage creates `mockup` nodes for the user-facing screens (skipping
API-only behaviour, or creating none for a system with no UI), linked
with `illustrates` (-> requirement / scenario) and `navigates-to`
(-> mockup, labelled with the triggering user action).
- The C4 stage now takes the mockups into account and adds `presented-by`
(mockup -> webapp / container), the same way it adds `constrains` for
fitness functions once real elements exist.
- After the stage, "Generate N wireframes" draws a low-fi wireframe for
every mockup without one, one call at a time (ai/mockupWireframe.ts),
with progress, cancel, and tokens added to the session total.
Explicit early finish
- "Finish here" on every stage ends the run cleanly: whatever has been
generated stays in the model and the wizard moves to the final step.
- The final step ("Finish", formerly "Export") summarises each stage
(+N nodes / +M relations, or skipped) and keeps the .feature export.
- "<- Back" from an early finish resumes at the stage it was stopped at.
- The stepper ticks only stages that actually generated, marks skipped
ones, and does not let the user jump to stages never reached.
Single action bar
- Flow actions (Generate, Regenerate, Cancel, Confirm answers / Skip
questions, Continue / Finish) now live only in the modal footer, which
shows whatever moves the current stage forward. Previously they were
split between the stage body and the footer, e.g. an in-body Generate
button next to a disabled footer Continue, and two different Cancels.
The stage body keeps only per-item actions (Hub import, edit answers,
generate wireframes, export).
- Fixes the stage progress panel showing during wireframe generation and
"Edit answers" being clickable while a stage was generating.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
This PR changes three things in Radical Forge: a new Mockups stage, a way to finish a run early, and one action bar in the footer.
Mockups stage
mockupnodes for user-facing screens only. Behaviour that exists only as an API is skipped, and a system with no UI gets no mockups. The nodes are linked with:illustrates: mockup → requirement / scenarionavigates-to: mockup → mockup, labelled with the user action that triggers it, e.g. "Pay"presented-by(mockup → webapp / container). This follows the existing pattern forconstrainson fitness functions: C4 is the first stage where those target elements exist.ai/mockupWireframe.tsand makes one call at a time to avoid provider rate limits. It shows progress, can be cancelled, and adds its tokens to the session total. It covers every mockup in the model without a wireframe, including mockups created before this run.Explicit early finish
.featureexport is still on this step.Single action bar
Type of change
Checklist
npm testpasses (391/391)npm run typecheckpasses with no errorstests/forgePrompts.test.tschecks the stage order, the Mockups prompt and the C4presented-byinstruction. The wizard UI was checked manually, see below.Test plan
npm run dev:webwith headless Chromium. Playwright intercepted the AI provider requests and returned scripted responses:illustratesandnavigates-tolinks<script>in the scripted response is strippedpresented-byinstructionpresented-byin the C4 stage. No AI provider was available.🤖 Generated with Claude Code