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

On a phone, Talk's composer stays above the on-screen keyboard and the chat list is its own view #15921

Merged opened this

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

Merged

scout/forge:scout/15814-on-a-phone-talk-s-composer-stays-above-t → main 0 commits fork

  • Merged. scout/15814-on-a-phone-talk-s-composer-stays-above-t was merged into main as a567fc9.

Review

Sign in to review this change.
1 file changed +17 −0
test/talk-page.test.ts +17
@@ -119,6 +119,23 @@ describe("the page", () => {
119119 expect(html).not.toContain("Back to conversations");
120120 });
121121
122 test("a phone opening /talk/<id> gets the thread view, a Chats link back, a pinned composer and 44 px targets (#15814)", async () => {
123 const { talkCss } = await import("../src/web/pages/talk_client.ts");
124 say(alice, "person", "hi");
125 const first = await (await get("/talk", alice)).text();
126 const id = /href="\/talk\/([^"?]+)\?chats=1"/.exec(first)![1]!;
127 const html = await (await get(`/talk/${id}`, alice)).text();
128 expect(html).toContain('data-shell data-pane="chat">');
129 expect(html).toContain('class="talk-compose"');
130 expect(html).toMatch(/<a class="talk-back" href="\/talk\/[^"?]+\?chats=1">Chats<\/a>/);
131 const narrow = /@media \(max-width: 56\.24rem\) \{([^@]*)\n\}/.exec(talkCss)![1]!;
132 expect(narrow).toContain(".talk-shell:not([data-view=\"list\"]) .talk-side { display: none; }");
133 expect(talkCss).toMatch(/\.talk-compose \{[^}]*position: sticky; bottom: var\(--kb, 0px\)/);
134 expect(talkCss).toMatch(/\.talk-back[^{]*\{[^}]*min-height: 2\.75rem/);
135 expect(talkCss).toMatch(/\.talk-compose \.btn[^{]*\{[^}]*min-height: 2\.75rem/);
136 expect(talkCss).toMatch(/\.talk-compose textarea \{[^}]*min-height: 44px/);
137 });
138
122139 test("below 900 px the preview keeps a way to the list, and ?chats=1 with ?pane=preview shows the list (#15813)", async () => {
123140 say(alice, "person", "hi");
124141 const tabsOf = (h: string) => h.match(/<nav class="seg talk-tabs"[^>]*>[\s\S]*?<\/nav>/)?.[0] ?? "";

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs