Skip to content

feat: add condensed view for PaymentHistoryTable and PendingClaimsTable#166

Merged
garrity-miepub merged 2 commits intomainfrom
feature/condensed-view-tables
Apr 8, 2026
Merged

feat: add condensed view for PaymentHistoryTable and PendingClaimsTable#166
garrity-miepub merged 2 commits intomainfrom
feature/condensed-view-tables

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

  • PaymentHistoryTable: 4 data-slots (payment-history, payment-history-empty, payment-history-table, payment-history-row) with condensed CSS for table headers, rows, badges, method icons, and refund buttons
  • PendingClaimsTable: 6 data-slots (pending-claims, pending-claims-empty, pending-claims-table, pending-claims-row, pending-claims-cards, pending-claims-card) with condensed CSS for desktop table and mobile cards
  • All selectors use structural patterns (no Tailwind class selectors)

- PaymentHistoryTable: 4 data-slots (payment-history, payment-history-empty,
  payment-history-table, payment-history-row) with condensed CSS for table
  headers, rows, badges, method icons, and refund buttons
- PendingClaimsTable: 6 data-slots (pending-claims, pending-claims-empty,
  pending-claims-table, pending-claims-row, pending-claims-cards,
  pending-claims-card) with condensed CSS for desktop table and mobile cards
- All selectors use structural patterns (no Tailwind class selectors)
Copilot AI review requested due to automatic review settings April 8, 2026 00:35
@garrity-miepub garrity-miepub marked this pull request as ready for review April 8, 2026 00:36
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 8, 2026

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: a871def
Status: ✅  Deploy successful!
Preview URL: https://d6bf5439.ui-6d0.pages.dev
Branch Preview URL: https://feature-condensed-view-table.ui-6d0.pages.dev

View logs

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds “condensed view” styling hooks and CSS overrides for PaymentHistoryTable and PendingClaimsTable by introducing data-slot attributes and defining condensed-mode CSS rules targeting those structural selectors.

Changes:

  • Added data-slot attributes throughout PaymentHistoryTable and PendingClaimsTable (loading, empty, and rendered states) to support structural CSS targeting.
  • Added condensed-mode CSS overrides for PaymentHistoryTable table/rows/badges/method icons/refund button.
  • Added condensed-mode CSS overrides for PendingClaimsTable (desktop table + mobile cards).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/styles/condensed-view.css Adds condensed-mode overrides for payment history and pending claims layouts using data-slot selectors.
src/components/PendingClaimsTable/PendingClaimsTable.tsx Adds data-slot attributes to table/card containers and key elements for condensed CSS targeting.
src/components/PaymentHistoryTable/PaymentHistoryTable.tsx Adds data-slot attributes to table container, empty state, and row elements for condensed CSS targeting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Narrow claimant cell gap selector from 'td > div' to 'td:first-child > div'
- Target inner div for mobile info row font-size instead of relying on inheritance
@garrity-miepub garrity-miepub merged commit 57021db into main Apr 8, 2026
10 checks passed
@garrity-miepub garrity-miepub deleted the feature/condensed-view-tables branch April 8, 2026 00:49
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.

2 participants