Skip to content

feat(dashboard): add usage capability display and account usage hooks#3

Draft
eliteprox wants to merge 3 commits into
mainfrom
feat/pymthouse-integration
Draft

feat(dashboard): add usage capability display and account usage hooks#3
eliteprox wants to merge 3 commits into
mainfrom
feat/pymthouse-integration

Conversation

@eliteprox
Copy link
Copy Markdown
Collaborator

  • Implemented usage-capability-display.ts for displaying account usage capabilities with color coding and data distribution.
  • Created useAccountUsage.ts hook to manage account usage state and fetch usage data.
  • Added useApiKeys.ts for managing API keys with create and revoke functionality.
  • Introduced useDiscoveryModel.ts and useExploreModels.ts for fetching and managing discovery models.
  • Developed useSigningSession.ts for handling signing sessions and token management.
  • Added discovery client functions in client.ts for fetching capabilities and models.
  • Created configuration and constants files for discovery service.
  • Implemented mapping functions for transforming discovery capabilities to models.
  • Defined types for discovery service API responses.
  • Updated package dependencies and added type definitions for jmuxer and mux.js.

- Implemented `usage-capability-display.ts` for displaying account usage capabilities with color coding and data distribution.
- Created `useAccountUsage.ts` hook to manage account usage state and fetch usage data.
- Added `useApiKeys.ts` for managing API keys with create and revoke functionality.
- Introduced `useDiscoveryModel.ts` and `useExploreModels.ts` for fetching and managing discovery models.
- Developed `useSigningSession.ts` for handling signing sessions and token management.
- Added discovery client functions in `client.ts` for fetching capabilities and models.
- Created configuration and constants files for discovery service.
- Implemented mapping functions for transforming discovery capabilities to models.
- Defined types for discovery service API responses.
- Updated package dependencies and added type definitions for jmuxer and mux.js.
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboard Ready Ready Preview, Comment Jun 2, 2026 2:28pm

Request Review

…a visualization

- Updated StackedAreaChart to support Y-axis ticks, horizontal grid lines, and per-day hover tooltips.
- Integrated dayKeys prop for better date handling in the chart.
- Modified UsageView to utilize new daily data structure, including dynamic period day count and improved data fetching.
- Added utility functions for generating UTC date keys and aligning daily request series with OpenMeter data.
- Introduced tests for new utility functions to ensure correctness in date handling and data alignment.
- Changed dependency from local link to versioned package for @pymthouse/builder-sdk in package.json and pnpm-lock.yaml.
- Updated lock file to reflect the new version and its peer dependencies.
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.

1 participant