Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Sorry @Connorbelez, your pull request is larger than the review limit of 150000 diff characters
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
Adds a canonical “mortgage payment snapshot” read-model and wires it through the CRM view engine + admin UI so mortgage payment status/date fields can appear in admin tables (with reusable table controls) and on the mortgage detail page.
Changes:
- Introduces
mortgagePaymentSnapshotbackend module + tests, and enriches native mortgage records with snapshot-backed fields. - Extends CRM view state/querying to persist saved-view sort state and return table footer aggregates.
- Adds reusable admin table header/footer components (search, column visibility, per-column filter/sort) and renders the payment snapshot section on mortgage details.
Reviewed changes
Copilot reviewed 35 out of 37 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
convex/payments/mortgagePaymentSnapshot.ts |
Canonical snapshot contract + loader (bulk/per-mortgage) + derivation helpers. |
convex/payments/__tests__/mortgagePaymentSnapshot.test.ts |
Unit coverage for snapshot precedence + bulk loader behavior. |
convex/crm/systemAdapters/bootstrap.ts |
Registers snapshot-backed mortgage fields as system object fields/default columns. |
convex/crm/systemAdapters/queryAdapter.ts |
Enriches native mortgage docs with __snapshot__ before field projection. |
convex/crm/detailContextQueries.ts |
Reuses snapshot logic to expose paymentSnapshot in mortgage detail context. |
convex/crm/viewQueries.ts |
Applies saved-view sort in table queries + returns footerAggregates. |
convex/crm/viewState.ts |
Threads saved-view sort into effective view state + column visibility overlay tweaks. |
convex/crm/types.ts, convex/crm/validators.ts, convex/schema.ts |
Adds RecordSort, TableFooterAggregateResult, and saved-view sort persistence. |
convex/crm/metadataCompiler.ts, convex/crm/tableFooterAggregates.ts |
Aggregate eligibility + backend footer summary builder. |
src/components/admin/shell/AdminEntityViewPage.tsx |
Persists filters/sort/visibility changes to saved views and wires new table props. |
src/components/admin/shell/AdminEntityTableView.tsx |
Renders new header controls, per-column controls, local page search, and footer row. |
src/components/admin/shell/AdminTable*.* |
New reusable table header/column/footer components. |
src/components/admin/shell/dedicated-detail-panels.tsx |
Adds “Payment Snapshot” detail section rendering snapshot fields. |
src/test/admin/*.test.* + convex/crm/__tests__/* |
Updates/extends tests for new snapshot fields, saved-view sort, footer aggregates. |
docs/superpowers/specs/*, docs/superpowers/plans/* |
Design + implementation plan docs for the feature set. |
.gitignore, CLAUDE.md, AGENTS.md |
GitNexus housekeeping + ignore rule change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@coderabbitai please review |
|
🧠 Learnings used✅ Actions performedReview triggered.
|

.gitnexus
.gitnexus
feat: add mortgage payment snapshots to admin tables
Optimize mortgage payment snapshot loading