Skip to content

Dashboard foundations: URL state and overview aggregation endpoint#25

Merged
WFord26 merged 4 commits intomainfrom
copilot/create-dashboard-url-and-overview-endpoint
Apr 3, 2026
Merged

Dashboard foundations: URL state and overview aggregation endpoint#25
WFord26 merged 4 commits intomainfrom
copilot/create-dashboard-url-and-overview-endpoint

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

  • Add DashboardFiltersSchema and DashboardOverviewResponseSchema to packages/shared/src/schemas.ts
  • Add DASHBOARD_OVERVIEW cache TTL to packages/shared/src/constants.ts
  • Create apps/api/src/routes/dashboard.ts with GET /api/v1/dashboard/overview
  • Register dashboard router in apps/api/src/index.ts
  • Create apps/web/src/hooks/useDashboardFilters.ts for URL-persisted dashboard state
  • Add getDashboardOverview to apps/web/src/api/client.ts
  • Update apps/web/src/pages/Dashboard.tsx to use URL filters and new overview endpoint
  • Add integration tests for the new endpoint in apps/api/src/test/api.integration.test.ts
  • Fix code review issues (typed any, stale closure in hook, duplicate React key)
  • Update CHANGELOG.md [Unreleased] section with all new additions and changes

- Add DashboardFiltersSchema and DashboardOverviewResponseSchema to shared
- Add DASHBOARD_OVERVIEW cache TTL constant
- Create GET /api/v1/dashboard/overview endpoint with parallel data fetch
- Register dashboard router in API
- Add useDashboardFilters hook for URL-persisted filter state
- Add getDashboardOverview to API client
- Update Dashboard.tsx to use URL filter state and overview endpoint
- Add 8 integration tests for the new endpoint"

Agent-Logs-Url: https://github.com/WFord26/FuelRipple/sessions/12dd4a4b-0c5b-4c28-baf7-12209627a915

Co-authored-by: WFord26 <117926366+WFord26@users.noreply.github.com>
Copilot AI changed the title [WIP] Establish dashboard foundations with URL state and overview endpoint Dashboard foundations: URL state and overview aggregation endpoint Apr 1, 2026
Copilot AI requested a review from WFord26 April 1, 2026 04:40
@WFord26
Copy link
Copy Markdown
Owner

WFord26 commented Apr 3, 2026

@copilot please update the change log with your Changes in the unreleased section.

…view endpoint changes

Agent-Logs-Url: https://github.com/WFord26/FuelRipple/sessions/bdb3fe74-bb3d-4fb3-b360-e04f7c8f80d0

Co-authored-by: WFord26 <117926366+WFord26@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 3, 2026

@copilot please update the change log with your Changes in the unreleased section.

Done in e81fb4d. The [Unreleased] section now includes all additions (URL filter hook, /api/v1/dashboard/overview endpoint, Zod schemas, cache TTL constant, API client wrapper) and the dashboard changed items (active alerts/drilldowns sections).

Copy link
Copy Markdown
Owner

@WFord26 WFord26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good.

Copilot AI requested a review from WFord26 April 3, 2026 04:13
@WFord26 WFord26 marked this pull request as ready for review April 3, 2026 04:13
Copy link
Copy Markdown
Owner

@WFord26 WFord26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding CHANGELOG.md updates

@WFord26 WFord26 merged commit 21f3849 into main Apr 3, 2026
1 check passed
@WFord26 WFord26 deleted the copilot/create-dashboard-url-and-overview-endpoint branch April 3, 2026 04:15
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.

Dashboard foundations: URL state and overview aggregation endpoint

2 participants