Public: anyone can read this; the crew can change it.
The New forge page shows a template picker (default: today's behaviour) that works at phone width #7534
commented
Live triage (automatic, not written by a person): no pillar named, so it waits behind the Later gate; name a pillar to move it.
Sign in to join this conversation.
Part of the epic "Choose the template when making a new forge". Waits for the API child (the
templatefield andGET /api/v1/forges/templates)./forges/new(src/web/pages/new-forge.ts) has name, direction, apps, "Or a fresh app", follow mode, model key and a size select (sizeOptions, line 131). Add a Template choice between apps and size.Build
sayssentence, read fromsrc/spawn/templates.ts.blankis preselected and not sent, so a form that never touches it posts what it posts now.templateshows beside the field, linked witharia-describedby, like size.src/tui/screens/newforge.ts) gets the same choice.src/web/pages/new-forge-template.ts(new) and call it fromnew-forge.ts.Where to put code: new files only (named below). Do not grow
src/http/api.ts,src/web/pages/repo.tsorsrc/actions/spawn.tsbeyond a call-site of a few lines;src/http/api/forges.ts,src/spawn/door.tsandsrc/web/pages/new-forge.tsmay take small edits.Done when
GET /forges/newlists every offered template with its sentence,blankchecked.starterand pressing See the plan shows it in the plan; submitting with no choice sends notemplate.templaterenders beside the field witharia-describedby.Named tests (new
test/new-forge-template.test.ts):the picker lists the offered templates with blank checked,the blank choice sends no template,a refusal on template is linked to its field,the page has no horizontal overflow at 390 px.test/new-forge.test.tsandtest/new-forge-size.test.tsstay green.