Description
On the Settings page (/settings), there is an "API Quota" card that displays the current GitHub API rate limit. In the top right corner of this card, there is a FiRefreshCw refresh icon.
While it has a cursor: 'pointer' style applied so it looks clickable, it appears the actual onClick handler was never attached. Clicking it currently does nothing.
Proposed Solution
- Wire up the button to actually refresh the rate limit by adding a
refreshRateLimit function in AppContext.jsx that calls the existing fetchRateLimit service.
- Attach the
onClick handler in SettingsPage.jsx.
- (Bonus) Add a quick CSS spinning animation to the icon while it's refreshing for better UX.
I'd be happy to submit a PR for this!
Description
On the Settings page (
/settings), there is an "API Quota" card that displays the current GitHub API rate limit. In the top right corner of this card, there is aFiRefreshCwrefresh icon.While it has a
cursor: 'pointer'style applied so it looks clickable, it appears the actualonClickhandler was never attached. Clicking it currently does nothing.Proposed Solution
refreshRateLimitfunction inAppContext.jsxthat calls the existingfetchRateLimitservice.onClickhandler inSettingsPage.jsx.I'd be happy to submit a PR for this!