Files
pitchfast/backlog/tasks/task-50 - Refactor-dashboard-views-into-compact-cards.md

2.8 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, priority, ordinal
id title status assignee created_date updated_date labels dependencies priority ordinal
TASK-50 Refactor dashboard views into compact cards Done
2026-06-08 19:56 2026-06-10 19:27
high 52000

Description

Implement the planned internal Ops UX refactor for Campaigns, Leads, Audits, and Review Workspace using compact shadcn-style cards, modal/detail disclosure, and accessible status feedback.

Acceptance Criteria

  • #1 Campaigns render as a responsive card grid while preserving existing campaign actions and run logs.
  • #2 Leads show compact cards and open the review form in an accessible modal from Mehr anzeigen.
  • #3 Audits use responsive cards with detail links for audit rows and non-clickable pipeline states for generation rows.
  • #4 Review Workspace uses compact queue cards with a single selected detail editor while preserving existing save, publish, approve, and send flows.
  • #5 Relevant tests, lint, and build pass or any remaining blockers are documented.

Implementation Plan

  1. Add failing UI/source tests for card-grid, lead modal, audit cards, and review master-detail
  2. Implement Campaigns responsive grid and accessible card semantics
  3. Move Leads inline review details into Dialog modal
  4. Replace Audits row table with responsive cards
  5. Convert Review Workspace to queue cards plus selected detail editor
  6. Run focused tests, then lint/build where feasible
  7. Record verification notes on TASK-50 without marking Done

Implementation Notes

Implemented compact card UX for Campaigns, Leads, Audits, and Review Workspace. Verification: pnpm test -- campaigns-board-layout leads-review-table audits-board-layout outreach-review-workspace-ui passed with 399/399 tests. Verification: pnpm lint passed with 0 errors and 2 pre-existing generated Convex warnings. Verification: pnpm build passed outside sandbox; sandbox build failed only because next/font could not fetch Google Fonts. Smoke check: production server routes /dashboard/campaigns, /dashboard/leads, /dashboard/audits, /dashboard/outreach returned 307 /login as expected for protected routes. Task remains In Progress pending user manual confirmation before Done.

Independent code-review agent found no correctness, hook-order, or broken-interaction blockers. Residual risk: current UI tests are source-regex based, so future work should consider render-level interaction tests for modal opening, filters, and selected detail behavior.

Final Summary

Closed per explicit user request while switching project tracking to pitchfast.