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

The crew's answers under the tell box speak the home page's language #10028

Merged opened this

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

Merged

mason/forge:mason/9972-the-crew-s-answers-under-the-tell-box-sp → main 2 commits fork

  • Merged. mason/9972-the-crew-s-answers-under-the-tell-box-sp was merged into main as f5a773c.

Review

Sign in to review this change.
2 files changed +13 −2
src/web/studio/answers.ts +4 −2
@@ -106,8 +106,10 @@ export function answersRegion(
106106 >
107107 ${rows.length === 0
108108 ? null
109 : html`<div class="card"><div class="card-head"><h2>The crew's answers</h2></div>
110 <div class="card-body"><ul class="list answers">${rows}</ul></div></div>`}
109 : html`<section class="settings-block">
110 <h2>The crew's answers</h2>
111 <ul class="list answers">${rows}</ul>
112 </section>`}
111113 </div>`;
112114 }
113115
test/app-answers.test.ts +9
@@ -124,6 +124,15 @@ describe("the crew's answer under the tell box", () => {
124124
125125 const frag = await (await get(alice, "/alice/notes/app/answers")).text();
126126 expect(frag).toContain("Footer added on a branch.");
127 // The home page's language: rows under a heading, no boxed card.
128 for (const body of [page, frag]) {
129 const from = body.indexOf('id="live-answers"');
130 const region = body.slice(from, body.indexOf("</section>", from));
131 expect(region).toContain('<section class="settings-block">');
132 expect(region).toMatch(/<h2>The crew(&#39;|')s answers<\/h2>/);
133 expect(region).not.toContain('class="card');
134 expect(region).not.toContain("card-head");
135 }
127136 expect(frag.indexOf("Add a footer.")).toBeLessThan(frag.indexOf("Make the &lt;b&gt;"));
128137 });
129138

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs