Dashboard Recent Activity Feed — Pagination & Performance Improvements
Dashboard Recent Activity Feed — Pagination & Performance Improvements
Version: 0.1.116
Overview
The Recent Activity feed on the dashboard now loads a limited, paginated set of events rather than your full history. This keeps the dashboard fast and responsive regardless of how long you've been using the platform.
How It Works
Initial Load
When you open the dashboard, the Recent Activity feed fetches your 20 most recent events by default. This replaces the previous behaviour where the entire activity history was loaded on every visit.
Loading More Events
A Load more button appears at the bottom of the feed once the initial 20 events have loaded. Clicking it:
- Fetches the next 20 events using cursor-based pagination.
- Appends them directly below the existing list — no page reload or scroll reset.
- Continues to show Load more until the full history has been retrieved.
Viewing Full History
The View all link at the top of the Recent Activity section takes you to /dashboard/activity, where your complete, untruncated activity log is available.
Category Tab Counts
Activity category tabs (e.g. Deposits, Disputes, Inspections) now display a maximum count of 99+. Accounts with a high volume of events in a single category will see 99+ rather than a potentially very large number.
Technical Details
| Detail | Value |
|---|---|
| Default page size | 20 events |
| Pagination strategy | Cursor-based |
| Query | trpc.dashboard.recentActivity.useQuery with limit parameter |
| Component | src/app/dashboard/recent-activity.tsx |
| Tab count cap | 99+ |
Before & After
| Behaviour | Before v0.1.116 | From v0.1.116 |
|---|---|---|
| Events fetched on load | All (unbounded) | 20 (default limit) |
| Pagination | None | Cursor-based Load more |
| DOM nodes rendered on load | All events at once | 20 at a time |
| Tab category counts | Exact number | Capped at 99+ |
| Full history access | View all link | View all link (unchanged) |
Frequently Asked Questions
Will I lose access to older activity?
No. The View all link at /dashboard/activity shows your complete history. The dashboard feed simply shows a fast, paginated preview.
How many events does each "Load more" fetch? Each click loads the next 20 events.
What does 99+ mean on a tab count?
It means there are 99 or more events in that category. The exact count is visible on the full activity page.