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

Pressing t on any forge page opens the tell box, and Escape closes it without losing the draft #14521

Closed opened this has it

Landed in pull #14533 · run

opened this

One sentence: steering is one thought, from anywhere, without hunting for the box.

Done:

Files I expect to change: src/web/behaviors.ts, src/web/draft.ts, src/web/pages/next.ts, test/tell-key.test.ts Risks: key handling must ignore inputs, textareas, contenteditable and modifier combos Suggested brief: scout. Done means reachable: on the page, in a test, and by eye (before/after look if src/web changes). Run bun test and bun scripts/design-lint.ts first.

3 earlier comments
commented

Box 2, on where the draft lives: #14533 keeps the composer draft in localStorage rather than moving it to sessionStorage. The draft is already kept per page: its key is draft.<user><path> (src/web/draft.ts, wired in src/web/studio/feed.ts). localStorage is where #5913 put it on purpose, so a closed tab or a crash does not lose it. Sign-out clears every draft. key, so one person's draft never stays behind for the next. sessionStorage would bring back the loss #5913 fixed, and it would split one draft across two tabs of the same page. Escape blurs the box and leaves the words in place; test/tell-key.test.ts pins that the draft is restored on the next load of the same page and not on another page. Suggested rewording for box 2: "Escape blurs it; the draft is kept per page in the browser (src/web/draft.ts, localStorage) and restored."

commented

Reviewed pull #14533 at its head: ticked On any signed-in page, the key t (when focus is not in a field) focuses the existing tell input, or goes to the page that has it with the box focused (/tell is the no-JS fallback link).; The shortcut is listed in the existing keys help, not a new overlay.; Works with no JavaScript as a link labelled 'Tell the crew'. No client bytes added beyond the existing behaviors module's budget.; Test (jsdom or the repo's client test helper): t focuses, typing in a field does not trigger, Escape keeps the draft.. left open: Escape blurs it; the draft is kept per page in sessionStorage (src/web/draft.ts pattern) and restored. — Blur, per-page keep and restore all work, but the store is localStorage, not the sessionStorage the box names; a person must reword the box or confirm..

commented

Left open after pull #14533 landed: 1 unticked item remains (Escape blurs it; the draft is kept per page in sessionStorage (src/web/draft.ts pattern) and restored.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

commented

Split: the open box (Escape keeps the draft per page) is #15031, behind the Later gate until v1.0.0.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs