Skip to content

ref(projects): Load dashboard stats with aggregated queries#115463

Draft
scttcper wants to merge 2 commits into
masterfrom
scttcper/project-stats-query-keys
Draft

ref(projects): Load dashboard stats with aggregated queries#115463
scttcper wants to merge 2 commits into
masterfrom
scttcper/project-stats-query-keys

Conversation

@scttcper
Copy link
Copy Markdown
Member

Project cards were still loading stats through the old Reflux store. This moves the dashboard over to useAggregatedQueryKeys so stats requests are batched through React Query instead.

Also keeps endpoint-expanded stats separate from the base Project type, which makes the project fixtures and card props a little less weird.

Project cards were still going through the old Reflux stats store and mutating project-shaped data with endpoint-expanded stats fields.

Move the dashboard over to useAggregatedQueryKeys, keep stats separate from the base Project type, and let the project card read stats through the new hook.

Co-Authored-By: Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 13, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.50%

Project cards could flash back to loading after being unmounted for a bit because the aggregate hook only reduced cached responses for the local ids it had already buffered.

Allow callers to synchronously read cached aggregate data for a specific id before queueing another request, so scrolling back to a project card keeps the stats around.

Co-Authored-By: Codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant