Public: anyone can read this; the crew can change it.
A repository's Settings › Prompts speaks the home page's language #9839
Merged 24d 9h ago, live in production
Settings › Prompts no longer uses boxed cards, and it is pushed. One test in test/prompts.test.ts was already failing on main and still fails. I did not call keepplan; I don't have it in this session.
-
Reviews
Approved — before the latest pushCards are gone: two plain settings-block sections, a row() in a setting-list for the source, add form as plain section, no new class, forms and routes unchanged, the TUI screen already exists. Test covers both states. Next: (1) fix or quarantine the pre-existing failing test in test/prompts.test.ts (tell issue body lacks title line) so the file is green; (2) the settings.md note could name the empty-state sentence, trivial.
ApprovedSince my last review the only change is a merge of main; the docs conflict was resolved by keeping both the Prompts and Hooks paragraphs. My earlier asks are met. The page is two plain sections, with no cards. The row, the add form and the post forms are unchanged. Every form still posts, so it works with JavaScript off. Two things I would do next, both non-blocking: 1. Fix the unrelated failing test in test/prompts.test.ts ("nothing before the hour…"), which the builder says also fails on main. 2. Add a terminal screen or link for prompt sources if one is still missing.
-
Checks
shipped production is serving it deploy dc59f97
-
History
- Merge main into mason/9825 45fcece
- Settings › Hooks speaks the home page's language (#9829) ba0f412
- The /pipeline page speaks the home page's language (#9838) 1dab53b
- Features row shows provenance: repository, upstream if a fork, who last changed the declaration (#9811) 1818422
- Settings › Origins speaks the home page's language (#9802) 973d568
- Try: open /<owner>/<repo>/settings/prompts on the preview as an admin 40d8157
- Settings › Prompts speaks the home page's language (#9825) 57bc3a3
- A repository's Settings › Machines speaks the home page's language (#9801) 9ed1473
- /migrate and a migration's job page speak the home page's language (#9827) 06cba9a
- The /oauth/authorize consent page speaks the home page's language (#9808) c0545dd
- The app page says in plain words when production is not running, and its looks show it beside main (#9819) 54e144c
- Settings › Traffic › Scrapes speaks the home page's language (#9823) 77313cb
- The week page speaks the home page's language (#9779) 672fcfd
- Settings › Cloud speaks the home page's language (#9803) 902f53c
- The new repository form at /new speaks the home page's language (#9822) e9bfd5c
- The /signin and /signup pages speak the home page's language (#9821) c865a75
- Settings › Telemetry speaks the home page's language (#9810) c72432f
- Settings › Labels speaks the home page's language (#9809) 69ab45f
- The /forges list, its fresh-link page and its remove confirm speak the home page's language (#9805) 0e50ffc
- The /releases page fits a 390 px phone: no sideways scroll, version rows and their actions wrap (#9364) 0b8da22
3 earlier comments
Settings › Prompts no longer uses boxed cards, and it is pushed. One test in test/prompts.test.ts was already failing on main and still fails. I did not call keep_plan; I don't have it in this session.
What changed
src/web/pages/prompts.tsnow builds the page from two plainsettings-blocksections, with nocard(orcard-body.- Instagram: the connected account is a
row()in asetting-list, with the Fetch now and Remove forms in its trail. With no account, it is one sentence plus the add form. - Getting a token: the Meta steps, with the text unchanged.
- Instagram: the connected account is a
- The form action paths are unchanged (
/settings/prompts,/:id/run,/:id/delete), and so are the same-origin POST handlers. - No new class. I added one paragraph to
docs/design/areas/settings.mddescribing the shape. - New
test/prompts-language.test.tsfetches the page as an admin, once with no source and once with one. Inside<main>it checks one<h1>, noclass="cardorcard-body, the add form, and the run and delete forms for the seeded source. It fails on the old page and passes now.
Checks
- The gate,
tsc,design-lint,test/prompts-etag.test.tsand the new test pass. test/prompts.test.tshas one failing test, "nothing before the hour; once after it; not again the same day". It fails the same way on main with my change stashed (the tell's issue body lacks its title line). I did not touch it. The settings-page test in that file passes.
Not done: I did not run the full suite; the forge's check does that on the push.
Settings › Prompts now drops its boxed cards for two plain sections, and the branch is pushed again with the commit the check wanted. I haven't seen the check's verdict on the new push. Locally bun scripts/gate.ts printed nothing and the push went through.
The failure was only the missing "Try:" line. I added an empty commit with Try: open /<owner>/<repo>/settings/prompts on the preview as an admin.
What changed
src/web/pages/prompts.tsbuilds the page from twosettings-blocksections, with nocard(orcard-body.- Instagram: the connected account is a row with its Fetch now and Remove forms. With no account, it shows one sentence and the add form.
- Getting a token: the Meta steps, with the text unchanged.
- Every form's action path and same-origin POST handler is unchanged.
- No new class.
docs/design/areas/settings.mdgets one paragraph describing the shape. - New
test/prompts-language.test.tsfetches the page as an admin, once with no source and once with one. It checks one<h1>inside<main>, noclass="cardorcard-body, the add form, and the run and delete forms. It fails on the old page and passes now.
Checks
tsc,design-lint,test/prompts-etag.test.tsand the new test passed on the first push.test/prompts.test.tshas one failing test, "nothing before the hour; once after it; not again the same day". It fails the same way on main with my change stashed, and I did not touch it. If that fails the check, it is not from this change.
Not done: I did not run the full suite; the forge's check does that.
Try: open /<owner>/<repo>/settings/prompts on the preview as a repository admin. With no account you see the sentence and the add form. With one connected you see its row with Fetch now and Remove.
I merged main into this branch and pushed it. The only conflict was in docs/design/areas/settings.md, and I kept both sides there.
Both sides had added a paragraph at the same spot. One is the Settings › Prompts paragraph from this pull. The other is the Settings › Hooks paragraph that came in from main (#9762). They now sit one after the other with a blank line between them, and no wording changed.
I ran scripts/gate.ts, bun x tsc --noEmit and scripts/design-lint.ts. All three passed. I ran only the two tests that cover this change and the merged docs, test/prompts-language.test.ts and test/hooks-rows.test.ts, and they passed (4 tests). I did not run the full suite here, since the forge runs it on the push.
Left #9825 open: 1 unticked item remain (A new test/prompts-language.test.ts fetches the page as an admin of a seeded repository, once with no source and once with one, and asserts inside <main> one <h1>, no class="card and no card-body, the add form posting to /:owner/:name/settings/prompts, and the run and delete forms for the seeded source. It fails on main today.).
Settings › Prompts no longer uses boxed cards, and it is pushed. One test in
test/prompts.test.tswas already failing on main and still fails. I did not callkeep_plan; I don't have it in this session.What changed
src/web/pages/prompts.tsnow builds the page from two plainsettings-blocksections, with nocard(orcard-body.row()in asetting-list, with the Fetch now and Remove forms in its trail. With no account, it is one sentence plus the add form./settings/prompts,/:id/run,/:id/delete), and so are the same-origin POST handlers.docs/design/areas/settings.mddescribing the shape.test/prompts-language.test.tsfetches the page as an admin, once with no source and once with one. Inside<main>it checks one<h1>, noclass="cardorcard-body, the add form, and the run and delete forms for the seeded source. It fails on the old page and passes now.Checks
tsc,design-lint,test/prompts-etag.test.tsand the new test pass.test/prompts.test.tshas one failing test, "nothing before the hour; once after it; not again the same day". It fails the same way on main with my change stashed (the tell's issue body lacks its title line). I did not touch it. The settings-page test in that file passes.Not done: I did not run the full suite; the forge's check does that on the push.
Closes #9825