Skip to content

Bug: "API Quota" refresh button in Settings is unresponsive (missing onClick handler) #78

@Dotify71

Description

@Dotify71

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions