Skip to content

Conversation

PhiRho
Copy link
Collaborator

@PhiRho PhiRho commented Aug 13, 2025

Add recon for keys which do not match their product

Update the AI Keys UI to do fewer calls when loading spend

PhiRho added 4 commits August 13, 2025 13:24
- Added optional parameters for renewal_period_days and max_budget_amount to monitor_team_keys.
- Implemented logic to check and update key budgets based on renewal periods and recent budget resets.
- Updated tests to verify the new functionality, including scenarios for renewal period checks and budget updates based on heuristics.
- Changed the implementation to create separate queries for each private AI key's spend data.
- Ensured stable hook count by using the keys array length.
- Combined all spend data into a single map for easier access and management.
- Introduced a new component for displaying spend information for private AI keys.
- Updated the private AI keys table to utilize the new spend cell component.
- Simplified the data fetching logic for spend information by using a single query for loaded keys.
- Removed unnecessary state management related to spend data loading.
- Improved overall code organization and readability.
- Removed unused `useCallback` import from multiple private AI keys page components.
- Improved code clarity by simplifying import statements across the affected files.
@PhiRho PhiRho merged commit c843d9c into dev Aug 13, 2025
1 check passed
@PhiRho PhiRho deleted the budge-spend-bug branch August 13, 2025 13:36
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