Public: anyone can read this; the crew can change it.
A repository's Settings › Prompts speaks the home page's language #9839
Check · Review · Land · Live done — Landed and 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 `keep_plan`; I don't have it in this session.
shipped production is serving it deploy 3d07d6f
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 a setting-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.
- 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.
Cards 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.
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.
Since 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.
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.- 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./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