Skip to content

feat(ui): add rate limit cooldown feedback#268

Merged
jakharmonika364 merged 5 commits into
Coder-s-OG-s:mainfrom
Vardhan2006:rate-limit-feedback
Jun 8, 2026
Merged

feat(ui): add rate limit cooldown feedback#268
jakharmonika364 merged 5 commits into
Coder-s-OG-s:mainfrom
Vardhan2006:rate-limit-feedback

Conversation

@Vardhan2006

Copy link
Copy Markdown
Contributor

Summary

Adds rate-limit cooldown feedback to the recommendations dashboard by propagating rate-limit reset timestamps from server actions to the UI and displaying a live countdown timer. Recommendation actions are disabled while a cooldown is active to provide clearer feedback and prevent repeated requests.

Type of Change

  • UI / UX improvement

Related Issue

Closes #51

What was changed?

  • Added optional resetAt field to AppError
  • Propagated rate-limit reset timestamps through recommendation and help actions
  • Added reusable CooldownTimer component
  • Displayed live cooldown countdown when rate limits are reached
  • Disabled recommendation actions during active cooldowns
  • Used timestamp-based countdown calculation to avoid timer drift

Checklist

  • My code follows the project structure and conventions
  • I tested this locally (npm run dev)
  • No hardcoded secrets or credentials

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

@Vardhan2006 is attempting to deploy a commit to the codersogs-3057's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mergeship Ready Ready Preview, Comment Jun 8, 2026 8:25am

@Ayush-Patel-56 Ayush-Patel-56 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid. Thanks!

@jakharmonika364 jakharmonika364 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jakharmonika364 jakharmonika364 added level:advanced Advanced level difficulty quality:clean Clean, well-structured contribution type:security Security fix or improvement type:feature New feature gssoc:approved Approved by GSSOC admin mentor:Ayush-Patel-56 Replace Ayush-Patel-56 with mentor's GitHub handle to credit them labels Jun 8, 2026
@jakharmonika364 jakharmonika364 merged commit fd37e63 into Coder-s-OG-s:main Jun 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Approved by GSSOC admin level:advanced Advanced level difficulty mentor:Ayush-Patel-56 Replace Ayush-Patel-56 with mentor's GitHub handle to credit them quality:clean Clean, well-structured contribution type:feature New feature type:security Security fix or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rate limit feedback UI — show remaining attempts and cooldown timer

3 participants