HP-2777: Enhance table filtering and row linking logic in `App.tsx` f…
…or audit module
- Added filters for columns like
table,timestamp, andoperation. - Improved row linking with direct hash-based navigation and enhanced URL handling.
- Adjusted pagination to display 100 rows per page for better usability.
Summary by CodeRabbit
-
New Features
- Added interactive filtering with per-row and per-column filter options derived from data
- Timestamp column now renders as a clickable link with record ID displayed beneath
- Enabled pagination with 100 items per page default
- Improved table columns for Table and Entity context display
- Data sorted by timestamp in descending order by default
Walkthrough
Updated asset manifest cache hash and refactored the App component to include interactive filtering capabilities, improved column rendering with nested object handling, timestamp-based sorting in descending order, and pagination with a page size of 100.
Changes
| Cohort / File(s) | Change Summary |
|---|---|
Build Artifacts src/assets/audit/build/mix-manifest.json |
Updated cache-busting hash for /main.js query parameter from 40a952b8b8e1142fbc40c8dd216ca731 to 4dd06ce41a60ef768ebb19dd16da0a95. |
Application Logic src/assets/audit/src/app/App.tsx |
Moved columns constant into App component. Added interactive filtering with per-row id filtering and per-column filters derived from data source. Enhanced Timestamp column to render links with URL hash and display record ids. Modified Table and Entity columns to handle nested objects and simplified display. Enabled pagination (pageSize: 100) and sorted initial dataSource by descending timestamp. Retained expanded row functionality. |
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
- App.tsx filtering logic: Verify per-row and per-column filter implementations are correct and performant with the data structure.
- Column rendering changes: Ensure Timestamp link generation, Table nested-object context, and Entity display changes work correctly across different data states.
- Pagination and sorting: Confirm pagination boundaries and descending timestamp sort are applied as intended without affecting existing features.
- Backward compatibility: Validate that the expanded row functionality remains intact with the new column scoping.
Suggested reviewers
- SilverFire
Poem
🐰 A hop through the code, so refined and new,
Filters dancing, sorted by timestamps true,
Pagination flows with grace and care,
Nested objects handled with flair,
The audit trail gleams, refreshed and bright! ✨
Pre-merge checks and finishing touches
✅ Passed checks (2 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title directly references the ticket (HP-2777) and accurately describes the main changes: enhancing table filtering and row linking logic in App.tsx. |
✨ Finishing touches
- [ ] 📝 Generate docstrings
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
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 @coderabbitai help to get the list of available commands and usage tips.