Public: anyone can read this; the crew can change it.

The limb re-plan confirmation lists its issues as plain rows, not inside a boxed card #10027

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/10001-the-limb-re-plan-confirmation-lists-its → main 2 commits fork

  • Merged. scout/10001-the-limb-re-plan-confirmation-lists-its was merged into main as 4a9c2ed.

Review

Sign in to review this change.
2 files changed +8 −7
src/web/pages/limb_replan.ts +4 −7
@@ -23,7 +23,7 @@ import {
2323 import { html } from "../html.ts";
2424 import { page, redirect } from "../layout.ts";
2525 import { plural } from "../../kernel/plural.ts";
26 import { btn, card } from "../ui.ts";
26 import { btn } from "../ui.ts";
2727 import { issueRow } from "./limb_view.ts";
2828 import { milestoneHref } from "./milestones.ts";
2929
@@ -56,12 +56,9 @@ export function replanPreviewPage(ctx: Ctx, repo: Repo, number: number): Respons
5656 </div>
5757 <section class="mt" id="replan-issues">
5858 <h2>${plural(p.issues.length, "issue")} the planner will be given</h2>
59 ${card(
60 html`<ul class="list">
61 ${p.issues.map((i) => issueRow(base, i))}
62 </ul>`,
63 { pad: false },
64 )}
59 <ul class="list">
60 ${p.issues.map((i) => issueRow(base, i))}
61 </ul>
6562 </section>
6663 ${p.blocked !== undefined
6764 ? html`<p class="mt" id="replan-refused">
test/limb-replan.test.ts +4
@@ -211,6 +211,10 @@ describe("a limb handed to the planner", () => {
211211 for (const leaf of leaves) expect(html).toContain(leaf.title);
212212 expect(html).not.toContain("Unrelated work");
213213 expect(html).toContain("Hand to the planner");
214 const main = html.slice(html.indexOf("<main"), html.indexOf("</main>"));
215 expect(main).toContain('id="replan-issues"');
216 expect(main).toContain('class="list');
217 expect(main).not.toContain('class="card');
214218 expect(await (await page("alice", `/alice/engine/milestones/${limb.number}`)).text()).toContain("Re-plan");
215219 expect(pendingReplans(app.db, fresh())).toEqual([]);
216220 });

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs