Skip to content

feat(capture): unify five cards into one tabbed composer - #48

Merged
Divy97 merged 1 commit into
masterfrom
feat/unified-capture-composer
Sep 29, 2026
Merged

Divy97 merged 1 commit into
masterfrom
feat/unified-capture-composer

Conversation

@Divy97

@Divy97 Divy97 commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Problem

The capture area had five stacked cards inside a single lilac container: Note, Voice, Photo, PDF, Link. Each card had a different layout and button labeling. Typing a note—the primary action—looked no more important than uploading a PDF. The five equal cards made the interface feel cluttered.

Solution

Replace with a single tabbed composer. A tab strip (Note · Voice · Photo · PDF · Link) controls which input is visible. Each tab uses the same layout: input area, optional error alert, and a footer with hint text + Save button.

Input-specific details:

  • Note: textarea with Ctrl/Cmd+Enter shortcut
  • Voice: Record tile (shows live timer) next to Upload tile; recording persists when switching tabs
  • Photo: Upload and Take tiles; Take hidden on desktop; shows thumbnail after selection
  • PDF: Upload tile; shows file row with size and remove button
  • Link: Labeled fields for URL and optional context note

Drafts survive tab switching: unsaved text, chosen files, and active recordings persist.

Accessible: Arrow keys and Home/End navigate tabs; all inputs keyboard operable; reduced motion respected.

Verification

  • All 30 e2e tests pass (desktop + phone)
  • Unit tests: 3 pass
  • Lint + typecheck + dependency boundaries: all pass
  • User visual check: approved

🤖 Generated with Claude Code

Replace stacked capture cards (Note, Voice, Photo, PDF, Link) with a single
card showing one input type at a time via an accessible tab strip. Every tab
uses the same footer layout: input area, hint text, and a single Save button.

- Note tab: textarea with keyboard shortcut hint
- Voice tab: Record and Upload tiles side by side; timer during recording
- Photo tab: Upload and Take photo tiles; thumbnail preview after select
- PDF tab: Upload tile; file row with size after select
- Link tab: fields for URL and optional context note
- Tabs keep state when switched (unsaved drafts survive tab changes)
- Accessible: arrow keys, Home/End navigate tabs; reduced motion respected
- Mobile: Take photo hidden on desktop; all tiles touch-friendly
- Hints match reality: no YouTube/Instagram mentioned, PDFs note OCR

All 30 e2e tests pass (desktop + phone). Unit tests + typecheck + lint all pass.
Closes the 'awful UI' feedback on the capture area.
@Divy97
Divy97 merged commit f001240 into master Sep 29, 2026
3 checks passed
@Divy97
Divy97 deleted the feat/unified-capture-composer branch September 29, 2026 16:40
Divy97 pushed a commit that referenced this pull request Oct 4, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.0](second-brain-v0.0.1...second-brain-v0.1.0)
(2026-10-04)


### Features

* a saved note becomes ready on its own
([#19](#19))
([75b7013](75b7013))
* add Google sign-in
([#69](#69))
([1e9aab9](1e9aab9))
* **api:** browser extension API — device tokens, capture, Stored items
([#80](#80))
([3cd0506](3cd0506))
* ask and get the note back
([#20](#20))
([3fc12d5](3fc12d5))
* ask like a human: filters, conflicts, follow-ups
([#21](#21))
([26eb1fc](26eb1fc))
* **backups:** make nightly backups opt-in and prune old ones
([#62](#62))
([f4ed822](f4ed822))
* **backups:** run nightly exports
([27e355d](27e355d))
* browser extension and its web management surface
([#81](#81))
([68dd17b](68dd17b))
* **capture:** add article links
([f2498e0](f2498e0))
* **capture:** add voice notes and audio files
([#44](#44))
([03bfadc](03bfadc))
* **capture:** save Instagram links with their captions
([#52](#52))
([31b632b](31b632b)),
closes [#41](#41)
* **capture:** save YouTube links with metadata and transcripts
([#51](#51))
([849afdf](849afdf)),
closes [#40](#40)
* **capture:** support PDF uploads
([f7216e4](f7216e4))
* **capture:** unify five cards into one tabbed composer
([#48](#48))
([f001240](f001240))
* connect the browser extension by pasting a device key
([#83](#83))
([9c16242](9c16242)),
closes [#82](#82)
* **facts:** index own-word facts
([7b7ed59](7b7ed59))
* initial commit
([34b4f01](34b4f01))
* **keys:** manage optional transcript and reader keys
([#49](#49))
([a514fd8](a514fd8)),
closes [#42](#42)
* run transcript and reader on operator keys with a daily allowance
([#72](#72))
([cb281e4](cb281e4))
* save a note and see it
([#18](#18))
([8ab7fe7](8ab7fe7))
* show the browser extension on the homepage
([#87](#87))
([e6a98cf](e6a98cf))
* sign up, sign in, add your OpenRouter key
([#17](#17))
([47c0e6b](47c0e6b))
* **ui:** replace app with single warm theme
([#30](#30))
([cd8f30f](cd8f30f))
* walking skeleton with api, db and ai packages
([#12](#12))
([efb66e7](efb66e7))
* **web:** refresh marketing and stabilize loading UX
([#73](#73))
([48d9bcd](48d9bcd))
* **web:** serve the API same-origin through a rewrite
([#68](#68))
([d676e46](d676e46))
* **web:** spotlight saved videos and polish marketing
([#74](#74))
([964968a](964968a))
* **web:** support photo capture
([b159fd3](b159fd3))


### Bug Fixes

* add branded Open Graph image for link previews
([#95](#95))
([eb29f3d](eb29f3d))
* clarify hero headline—'Save anything. Then just ask.'
([#77](#77))
([1766a3b](1766a3b))
* **db:** cap postgres clients
([0348ab3](0348ab3))
* describe automatic capture as real, redesign the roadmap section
([#88](#88))
([f059285](f059285))
* make the extension actually save pages, and match the site's design
([#84](#84))
([ef710d6](ef710d6))
* migrate references from old Vercel domain to usesecondbrain.vercel.app
([#96](#96))
([c8ef05e](c8ef05e))
* reposition and redesign the roadmap section
([#89](#89))
([a240723](a240723))
* **ui:** align responsive layout and clarify forms
([#32](#32))
([00c0f6f](00c0f6f))
* **ui:** keep thread replies within reach
([#34](#34))
([26d700c](26d700c))
* use a real contact email on the privacy policy page
([#86](#86))
([916abfd](916abfd))
* **web:** keep mobile menu above marketing hero
([#75](#75))
([7eda9cc](7eda9cc))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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