Skip to content

Add compact list view toggle to email search results - #415

Open
sanxiago wants to merge 4 commits into
LogicLabs-OU:mainfrom
sanxiago:worktree-search-list-view
Open

Add compact list view toggle to email search results#415
sanxiago wants to merge 4 commits into
LogicLabs-OU:mainfrom
sanxiago:worktree-search-list-view

Conversation

@sanxiago

Copy link
Copy Markdown

Summary

  • Search results currently render as detailed cards with highlighted body/attachment match snippets, which gets noisy when a query returns many hits.
  • Adds a view toggle ("Detailed" / "List") on the search page. List view (the default) renders a compact table with just Subject, From, To, and Date for each hit, linking through to the archived email like the existing card view. Detailed view keeps the original card layout with match snippets.
  • No backend or API changes — the search response already includes the fields needed for the compact view.

Test plan

  • pnpm run check in packages/frontend — no new type errors (one pre-existing, unrelated error remains on dashboard/settings/system)
  • pnpm run build in packages/frontend — production build succeeds, search page bundle compiles
  • Manually verified against a local instance built from this branch, connected to real Postgres/Meilisearch data (read-only, no background workers) — confirmed the toggle renders, list view shows Subject/From/To/Date, switching views works, and rows link through to the archived email detail page.

🤖 Generated with Claude Code

sanxiago and others added 2 commits July 19, 2026 13:59
Search results currently render as detailed cards with highlighted
body/attachment match snippets, which gets noisy when a query returns
many hits. Add a "List view" toggle that shows just the basic headers
(subject, from, to, date) in a compact table, alongside the existing
detailed card view.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Confirmed working against a real local instance; list is the more
useful default when scanning many hits.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@sanxiago

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@sanxiago
sanxiago marked this pull request as ready for review July 20, 2026 03:35
@sanxiago

Copy link
Copy Markdown
Author

recheck

sanxiago and others added 2 commits July 20, 2026 15:17
Add a "Columns" dropdown (list view only) to toggle Subject/From/To/Date
independently, favoring a simple client-only preference over a synced
backend one since this is just a display setting. Persisted to
localStorage; at least one column stays visible so the table can't
go empty.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Only Subject/From/To/Date were available to toggle; add Cc and
Mailbox (the archived inbox, useful when an archive spans multiple
accounts) as further opt-in columns, unchecked by default so the
out-of-the-box view is unchanged. Also drop empty-string entries
before joining To/Cc for display, since some indexed emails have
group-placeholder recipients (e.g. "undisclosed-recipients:;") that
map to an empty address rather than being omitted.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.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