feat: add manual token refresh, time-based filters, and fix provider auth issues#297
Open
fgogolli wants to merge 10 commits intodecolua:masterfrom
Open
feat: add manual token refresh, time-based filters, and fix provider auth issues#297fgogolli wants to merge 10 commits intodecolua:masterfrom
fgogolli wants to merge 10 commits intodecolua:masterfrom
Conversation
… and perf optimizations - Add predefined time range filters (5m, 15m, 30m, 1h, 24h, 48h, 7d, 30d, all) - Add custom date range picker via TimeRangeModal component - Add clear metrics functionality with confirmation dialog - Add auto-refresh toggle with smart polling interval adjustment - Add tokens/costs view mode toggle - Optimize getUsageStats() with cached pricing lookups for faster 24h/48h filters - Preserve scroll position during auto-refresh - Add /api/usage/clear route
… support, and usage API improvements - Add manual token refresh button to Providers page - Add /api/oauth/refresh route for on-demand token refresh - Extract profileArn from AWS SSO OIDC response and access token JWT - Store and use AWS region for GetUsageLimits API calls - Make profileArn optional for Kiro GetUsageLimits API call - Improve Kiro usage API error handling with user-friendly messages - Always preserve providerSpecificData during token refresh - Allow manual token refresh anytime, not just when expiring soon - Preserve scroll position during auto-refresh - Add credit-based pricing for Kiro - Extract profileArn in auto-import flow
…code, and misc fixes - Make Kiro auth URL configurable with Builder ID form (profile page setting) - Add kiroAuthUrl to localDb settings defaults - Prevent duplicate device code generation in React Strict Mode - Regenerate device code when Kiro deviceConfig changes - Use clientId alone as unique identifier for Kiro connections - Make Kiro behave like Antigravity - update existing connections on re-auth - Fix correct field name tokenExpiresAt when creating OAuth connections - Fix hydration error by removing comments from colgroup - Make Kiro error messages more concise - Ensure startUrl is captured from config in device code response - Add KiroAuthModal and KiroOAuthWrapper improvements - Add getSettings/isCloudEnabled imports to OAuth route - Add Kiro and other models to providerModels
Author
|
@decolua This fixes the Kiro integration with AWS Orgs and Pro accounts - and also adds some useful features like token refresh for APIs that support it (OIDC accounts mostly), as well as usage data cleanup and more granular time filters. Also fixes some bugs int he refresh of # of requests, tokens and cost when filtering the data. Due to the files it touches, might be good to merge this before there is more conflicts to resolve and I think would be useful for those of us who use it with Kiro. (I currently run a local fork as the current releases dont work with Kiro hosted on AWS Orgs at all). Let me know if you need any further details. |
Owner
|
Thanks for your support, I will merge as soon as possible |
9 tasks
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.
Summary
Bug fixes and enhancements for provider authentication and usage tracking.
Key Changes
Critical Fixes
Kiro Provider:
Other Providers:
Usage Tracking
New Features
Kiro Enhancements:
Usage Analytics: