Tables & Lists — Options

Three display patterns exist in the app today. The question: which pattern for which surface, and does a Table primitive exist.

Data table

Comparison across columns (analytics).

CampaignActiveRepliedWon
LinkedIn Outbound2462
Nurture — Monthly5194
Inbound follow-up1253
Card list

Workflow items, single-stream reading (queue, campaigns).

LinkedIn Outbound

active

24 active · 6 replied · 2 won

Nurture — Monthly

active

51 active · 9 replied · 4 won

Grid list

Dense scannable records (contacts) — table look, stacks on mobile.

NameCampaignStatus
Jane CooperLinkedIn Outbound
active
Jane CooperNurture — Monthly
active
Option A — Purpose split ✓ CHOSEN

Table = comparison · grid list = dense records · cards = workflow. Add a shared Table primitive.

  • • Matches research: layout follows the user task
  • • App already does this split — codify + unify styling
  • • One new primitive (ui/table.tsx), no page rewrites
Option B — Tables everywhere

Convert contacts, admin, campaigns to real data tables.

  • • Denser, classic-CRM feel
  • • Mobile penalty: tables collapse badly
  • • Big churn; kills the working card workflow (queue)
Option C — Cards everywhere

Convert the analytics table to card lists too.

  • • One pattern to maintain
  • • Destroys column comparison — the one thing analytics needs
  • • Research explicitly warns against this conversion
Show audit of the app before this rule
Audit — what we have today
  • ✓ The purpose split already exists: analytics = table, contacts = grid list, queue/campaigns/library/admin = cards
  • ✓ Analytics ships a mobile card fallback (correct responsive move)
  • ✗ No ui/table.tsx primitive — analytics hand-styles th/td
  • ✗ Two “table header” stylings (contacts uppercase-tracking vs analytics plain)
  • ✗ Number columns not consistently right-aligned / tabular-nums
  • ✗ No documented rule for which pattern a new surface should use
Shared rules (all options)
  • • Text left-aligned, numbers right-aligned + tabular-nums; headers align with their column
  • • Headers: bold/darker, visually separated from data
  • • Row actions: ≤2 inline at row end; 3+ go in a dropdown menu
  • • Long tables: sticky header
  • • Mobile: key fields + expand — never a horizontal-scroll-only table
Show research sources
Decision: Option A
  • 1. Layout follows the task. Research is unambiguous: tables for comparison, lists for streams. The app had already made the right per-surface calls — codify them.
  • 2. B rejected: tables-everywhere pays a mobile penalty and rewrites working workflow surfaces (queue) for zero user gain.
  • 3. C rejected: cards-everywhere destroys column comparison — the one job the analytics table exists to do.
  • Applied at adoption: new Table primitive (incl. TableCellNumeric: right-aligned + tabular-nums); analytics rebuilt on it; header styling unified; pattern-per-purpose rule written into tables-system.md.