Skip to content

UI migration to PrimeReact: tables, roster matrix, avatars, donation bad debts, exit breakdown#30

Merged
parameshjava merged 2 commits into
mainfrom
feat/tables-paginator-responsive
Jun 16, 2026
Merged

UI migration to PrimeReact: tables, roster matrix, avatars, donation bad debts, exit breakdown#30
parameshjava merged 2 commits into
mainfrom
feat/tables-paginator-responsive

Conversation

@parameshjava

Copy link
Copy Markdown
Owner

Summary

Continuation of the PrimeReact UI migration + mobile responsiveness work, plus several dashboard data/UX improvements.

Tables & responsiveness

  • Shared PrDataTable: paginator, removable sort, mobile card-stacking
  • Raw <input type=number> fields → PrimeReact stacked-stepper currency/number inputs across loan, poll, reference, transaction & bank-account forms

Member × Month matrix

  • Now shows every active member, not just contributors (migration 050); zero-contribution cells render as em-dashes
  • Added a display-only serial-number column that tracks sort/filter order

Member directory

  • Google profile photos cached on members.avatar_url (migration 049) — profiles RLS blocked reading them there
  • Shared <Avatar> component with initials fallback
  • Quiet inline contacts (muted icon + country flag + copy-on-hover)

Donations

  • Donations transactions table folds in loan write-offs as bad-debt rows (borrower as beneficiary), consistent with the KPIs/chart that already counted them
  • Member-contribution bar chart gains an average reference line

Member exits

  • Exit approval panel shows an itemised settlement breakdown (contributions → loan repaid → fund-loss share → refund/donation) plus a derivation of the per-member exit share

Migrations to apply

  • 049_member_avatars.sql
  • 050_member_month_matrix_all_active.sql

Both are idempotent (create or replace / additive column). Apply manually in Supabase.

Verification

  • npm run build
  • npm test (244 passing)
  • npm run lint (1 pre-existing unrelated warning)

🤖 Generated with Claude Code

pkorrakuti-mvrk and others added 2 commits June 16, 2026 23:12
…rimeReact stepper inputs

Tables (PrDataTable wrapper, applies to all data grids):
- Paginator: 10 rows/page default, rows-per-page dropdown up to 100,
  with a "{first}–{last} of {totalRecords}" report. Opt-out via
  `paginated={false}` (member×month pivot keeps all rows + totals).
- removableSort: third click on a column clears the sort.
- size="small" density retained.
- Drop the redundant Status column from the members directory — it's
  already split into Active/Inactive accordion sections; status stays
  in the CSV export only. (loans-list keeps its multi-value status.)

Responsiveness:
- Switch four raw tables from `overflow-hidden` (which clipped wide
  content on mobile) to `overflow-x-auto` + min-width so they scroll
  horizontally: meetings list, reference history editor, member bank
  accounts manager, and the members-directory read-only bank table.

Inputs (carried from earlier this session):
- App-wide PrimeReact "stacked" stepper for numeric + currency inputs
  (PrAmountInput / new PrNumberInput); per-field whole-rupee steps.
- Accordion header tint + count badge; EMI schedule alignment fixes.
- globals.css: bare-specifier node_modules CSS imports so Lightning CSS
  (Tailwind v4) doesn't silently drop the Lara theme.

Verified: tsc --noEmit clean, eslint clean, 244/244 tests, build passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…xit breakdown

- Member×Month matrix shows every active member (migration 050), with serial
  column and zero-contribution rows rendered as em-dashes
- Member directory avatars cached on members.avatar_url (migration 049), shared
  Avatar component with initials fallback; quiet inline contacts
- Donations transactions table now folds in loan write-offs as bad-debt rows
- Member-exit approval shows an itemised settlement breakdown
- Member contribution bar chart gains an average reference line

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
aits-fcf-tracker Building Building Preview, Comment Jun 16, 2026 7:17pm

@parameshjava
parameshjava merged commit 08f5e3f into main Jun 16, 2026
2 of 3 checks passed
@parameshjava
parameshjava deleted the feat/tables-paginator-responsive branch June 16, 2026 19:18
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