Skip to content

feat: AI Reviews tab — stats banner + compact table + detail drawers#14

Merged
avrabe merged 1 commit intomainfrom
feat/reviews-tab-stats-table-drawer
Mar 2, 2026
Merged

feat: AI Reviews tab — stats banner + compact table + detail drawers#14
avrabe merged 1 commit intomainfrom
feat/reviews-tab-stats-table-drawer

Conversation

@avrabe
Copy link
Contributor

@avrabe avrabe commented Mar 2, 2026

Summary

  • Replaces the flat card list in the AI Reviews tab with a stats banner, compact sortable/filterable table, and inline detail drawers
  • getReviews() now accepts {limit, offset} options with newest-first ordering; new getReviewStats() aggregates totals in a single pass
  • HTMX-powered "load more" pagination with OOB button updates for seamless row appending
  • Table sort/filter properly excludes paired detail rows and re-pairs them after DOM reorder

Test plan

  • npx eslint passes on all three source files
  • npm test — 626/626 tests pass (2 test expectations updated for newest-first ordering)
  • Visual check: http://localhost:3001/dashboard → Reviews tab renders stats banner + table
  • Click a row to expand detail drawer, click again to collapse
  • Sort by each column header; detail rows stay paired
  • Filter input narrows visible rows; hidden rows' details also hide
  • "Load more" button appends next page of rows

🤖 Generated with Claude Code

… detail drawers

Refactor the AI Reviews tab from a flat card list into a scalable layout:
- Stats banner showing totals, verdicts, weekly count, and avg findings
- Compact sortable/filterable table with paired detail rows (click to expand)
- HTMX-powered "load more" pagination with OOB button updates
- getReviews() now accepts {limit, offset} with newest-first ordering
- New getReviewStats() for single-pass aggregate computation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@avrabe avrabe merged commit b865330 into main Mar 2, 2026
3 of 5 checks passed
@avrabe avrabe deleted the feat/reviews-tab-stats-table-drawer branch March 2, 2026 11:33
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