Skip to content

Frontend/storedashrefactor#55

Merged
CDevmina merged 4 commits intoDevelopmentfrom
frontend/storedashrefactor
Apr 27, 2025
Merged

Frontend/storedashrefactor#55
CDevmina merged 4 commits intoDevelopmentfrom
frontend/storedashrefactor

Conversation

@CDevmina
Copy link
Owner

This pull request introduces several updates to improve type safety, enhance UI components, and refine API usage handling in the store dashboard. The changes include updates to type imports, improved query handling for API key usage, UI enhancements for better user feedback, and styling updates to support dark mode.

Type and Query Handling Improvements:

  • Updated useApiKeyUsage in web/src/api/hooks/useStoreHooks.ts to allow keyId to be undefined, improved query key specificity, and added a failsafe for invalid keyId values. This ensures better error handling and query control.
  • Added type-only imports in web/src/api/hooks/useStoreHooks.ts and included a new ApiKeyUsage type for improved type safety.

UI Enhancements:

  • Enhanced the ApiUsageDashboard to show a loading spinner, specific error messages, and additional feedback when no API key is selected or no data is available.
  • Updated Datepicker components in ApiUsageDashboard to handle Date objects correctly, improving date filter functionality. [1] [2]
  • Added missing TableRow elements in ApiKeyManagement and ApiUsageDashboard to fix table structure issues. [1] [2]

Styling Updates:

  • Introduced a dark mode background style in web/src/index.css for better visual consistency in dark mode.

@CDevmina CDevmina added the bug Something isn't working label Apr 27, 2025
@CDevmina CDevmina self-assigned this Apr 27, 2025
@CDevmina CDevmina merged commit fbfa11c into Development Apr 27, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant