[Candidate Intake] Upstream PR #297 - feat: add manual token refresh, time-based filters, and fix provider auth issues#11
Draft
[Candidate Intake] Upstream PR #297 - feat: add manual token refresh, time-based filters, and fix provider auth issues#11
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
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.
Context
This draft PR mirrors upstream branch 'upstream-prs/pr-297' into 'master' for review, provenance, and later decision-making only.
It must not be merged wholesale. If we adopt anything from it, the intended path is commit-level intake only.
Upstream Source
Current Intake Recommendation
Selected Commits For Any Future Intake
52404d6feat(usage): add time-based filters, time range modal, clear metrics, and perf optimizationsb2d0025feat(kiro): add manual token refresh, profileArn handling, AWS region support, and usage API improvementsfb4aff0fix(kiro): improve connection deduplication, auth URL config, device code, and misc fixesfb162cffix(codex): add refreshCredentials to fix 401 token expiry errors77701b3fix(kiro): restore token-based cost calculation to match originbf25548fix(usage): fix period filtering, custom date range, and add short period support3c59b6cfix(usage): SSE stream no longer overwrites period-filtered aggregate stats859946bfix(pricing): add missing Kiro models and complete kr pricing tableSkipped / Excluded Scope
55de870merge-from-mastercommit skipped as branch pollution.d6169bbmerge-from-mastercommit skipped as branch pollution.Acceptance Gates
Verification / Validation Checklist
Review Focus
Notes