Skip to content

feat(web): quick capture keeps your place (TASK-3590) - #2067

Merged
xarmian merged 1 commit into
mainfrom
wren/task-3590-quick-capture-stay
Oct 11, 2026
Merged

xarmian merged 1 commit into
mainfrom
wren/task-3590-quick-capture-stay

Conversation

@xarmian

@xarmian xarmian commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

TASK-3590. Quick capture used to open every item it created, so jotting down an interruption meant a context switch.

  • Add (Enter, or the Add button) saves the item, clears the title and keeps focus for the next capture. A toast names the new ref (Added TASK-12) with an Open action; the link is also kept in the notification tray. Helper: web/src/lib/items/quickCapture.ts.
  • Add and open (Ctrl/Cmd+Enter, or the mobile sheet's new secondary button) keeps the old behaviour.
  • Both doors: the desktop sidebar dialog (Sidebar.svelte) and the mobile capture sheet (QuickCaptureSheet.svelte). The desktop input is already read-only while a create is in flight (BUG-3115). The mobile one is not, so it clears only the text it sent, and anything typed meanwhile is kept.
  • e2e/bug-3473-write-then-open.spec.ts needs write-then-open, so it now presses ControlOrMeta+Enter.

Evidence (local):

  • Full vitest on 0d51e32: 562 files, 5746 tests passed.
  • npm run check: 0 errors.
  • New vitest: Sidebar.quickCapture (5 tests) and QuickCaptureSheet (4 tests).
    • Seen red: on the old Sidebar the 3 add-and-stay tests fail; on the old sheet all 4 fail.
    • A mutant that clears the mobile title unconditionally is killed by the in-flight-text test.
  • Playwright: the new task-3590-quick-capture-stays spec (desktop sidebar leg, mobile sheet leg) plus every spec that drives quick add (bug-3473, bug-3115, task-2235, bug-3229, bug-3465, task-2237, permission-walk-collections): 72 passed, 0 failed. A list-reporter rerun confirms each new leg ran on its own project.

https://claude.ai/code/session_01FAVXA5mJ5BNhKmv95jxQkQ

Quick capture used to open every item it created, so jotting down an
interruption meant a context switch. Now "Add" saves the item, clears the
title and keeps focus for the next capture, and a toast names the new ref
with an Open action. "Add and open" (Ctrl/Cmd+Enter, or the mobile
sheet's secondary button) keeps the old behaviour. Applies to both the
desktop sidebar dialog and the mobile capture sheet.

The mobile sheet clears only the text it sent, so anything typed while
the create is in flight is kept. e2e/bug-3473 needs write-then-open, so
it now uses Ctrl/Cmd+Enter.

Claude-Session: https://claude.ai/code/session_01FAVXA5mJ5BNhKmv95jxQkQ
@xarmian
xarmian merged commit c62b2b8 into main Oct 11, 2026
12 checks passed
@xarmian
xarmian deleted the wren/task-3590-quick-capture-stay branch October 11, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant