Skip to content

feat: add dependency health checks and table pagination with row virtualization - #589

Merged
Oluwaseyi89 merged 4 commits into
CarbonScribe:mainfrom
blurbeast:main
Sep 2, 2026
Merged

feat: add dependency health checks and table pagination with row virtualization#589
Oluwaseyi89 merged 4 commits into
CarbonScribe:mainfrom
blurbeast:main

Conversation

@blurbeast

@blurbeast blurbeast commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

closes #513
closes #510

Description

This PR introduces two primary enhancements to improve user performance when browsing large datasets and enhance backend service observability:                   
                                                                                                                                                                  
1. **Table Pagination & DOM Virtualization (Corporate Platform Web & Backend)**                                                                                   
   - Implemented a reusable `<Pagination />` component and `usePagination` hook with configurable page sizes (`10`, `20`, `50`, `100`), jump controls, and        

accessibility (ARIA) attributes.
- Integrated @tanstack/react-virtual for virtualized rendering of large table record sets across:
- Portfolio Holdings (/portfolio)
- Audit Trail Viewer (AuditTrailViewer)
- IPFS Document Manager (IpfsManager)
- Extended CorporateContext to manage paginated portfolio holdings.
- Added page and limit query parameters with Prisma skip/take pagination to UploadService.listDocuments and IpfsController.listDocuments in
corporate-platform-backend.

2. **Active Dependency Health Checks (Project Portal Backend)**                                                                                                   
   - Upgraded the `/health` endpoint from a static JSON response to an active dependency probe handler.                                                           
   - Probes PostgreSQL, Elasticsearch, and MongoDB concurrently with bounded timeouts (`probeTimeout = 2s`).                                                      
   - Returns `200 OK` with dependency statuses when all configured services are healthy, and `503 Service Unavailable` when any dependency fails or is unreachable.
   - Updated `pkg/elastic/client.go` to support context propagation.   

@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@blurbeast Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Oluwaseyi89

Copy link
Copy Markdown
Contributor

@blurbeast go and add a descriptive message to your PR. I will not merge until then.

@blurbeast

Copy link
Copy Markdown
Contributor Author

@Oluwaseyi89 kindly review boss

@Oluwaseyi89
Oluwaseyi89 merged commit 3b7c6fe into CarbonScribe:main Sep 2, 2026
3 checks passed
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.

Add pagination and virtualization for large data tables Add real dependency health checks to the /health endpoint

2 participants