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

A shipped tell still says "nobody has it yet" #240

Closed opened this
Closed without merging

scout/forge:scout/214-a-shipped-tell-still-says-nobody-has-it → main 1 commit fork

  • Closed without merging. Nothing was applied to main.

Review

Sign in to review this change.
2 files changed +16 −5
src/web/studio/tell.ts +7 −5
@@ -257,12 +257,14 @@ export async function studioTell(
257257 >${icon("external")}view on origin</a
258258 >`,
259259 )}
260 <span
261 >${issue.assigneeName === null
260 ${issue.assigneeName !== null
261 ? html`<span
262 >${when(issue.assigneeIsAgent, () => icon("bot"))}
263 ${userLink(issue.assigneeName)} has it</span
264 >`
265 : !direction && wordInfo?.word === "told"
262266 ? html`<span class="muted">nobody has it yet</span>`
263 : html`${when(issue.assigneeIsAgent, () => icon("bot"))}
264 ${userLink(issue.assigneeName)} has it`}</span
265 >
267 : null}
266268 </div>
267269 </div>`;
268270
test/studio.test.ts +9
@@ -398,6 +398,10 @@ describe("the studio", () => {
398398 ).text();
399399 expect(page).toContain('data-word="shipped"');
400400 expect(page).not.toContain('data-state="closed"');
401 // The badge already says shipped; nobody was ever assigned, so the
402 // assignee line has nothing true left to add and says nothing (#214).
403 expect(page).not.toContain("nobody has it yet");
404 expect(page).not.toContain("has it");
401405 });
402406
403407 test("a pull on an app renders as a studio page — the preview, the look and the decision, no diff; ?mode=dev still renders the diff", async () => {
@@ -722,6 +726,9 @@ describe("the studio", () => {
722726 ).text();
723727 expect(studio).toContain("standing direction");
724728 expect(studio).not.toContain('data-word="told"');
729 // The direction keeps its own sentence; nobody was assigned, so the
730 // assignee line does not add a second, contradicting one (#214).
731 expect(studio).not.toContain("nobody has it yet");
725732
726733 // Leave the repository as the other tests in this suite found it.
727734 setDirectionIssue(app.db, repo.id, null);
@@ -1029,6 +1036,8 @@ describe("the studio", () => {
10291036 // form, and never a second copy of the markup.
10301037 expect(tellHtml).toContain("Door test: one tell");
10311038 expect(tellHtml).toContain('data-word="told"');
1039 // Still waiting, nobody assigned: the one case the line is true (#214).
1040 expect(tellHtml).toContain("nobody has it yet");
10321041 expect(tellHtml).not.toContain("<h2>Labels</h2>");
10331042 expect(viaIssue).toContain('data-word="told"');
10341043 // The write surface does not move with the noun: the reply, the close

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs