feat(dashboard): add usage capability display and account usage hooks#3
Draft
eliteprox wants to merge 3 commits into
Draft
feat(dashboard): add usage capability display and account usage hooks#3eliteprox wants to merge 3 commits into
eliteprox wants to merge 3 commits into
Conversation
- 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
usage-capability-display.tsfor displaying account usage capabilities with color coding and data distribution.useAccountUsage.tshook to manage account usage state and fetch usage data.useApiKeys.tsfor managing API keys with create and revoke functionality.useDiscoveryModel.tsanduseExploreModels.tsfor fetching and managing discovery models.useSigningSession.tsfor handling signing sessions and token management.client.tsfor fetching capabilities and models.