Fix: Streak freeze button remains clickable after freeze is applied#3217
Open
shakshi127 wants to merge 6 commits into
Open
Fix: Streak freeze button remains clickable after freeze is applied#3217shakshi127 wants to merge 6 commits into
shakshi127 wants to merge 6 commits into
Conversation
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
Owner
|
CI is red — Type check fails with JSX syntax errors in The edit left the JSX unbalanced (an unclosed fragment). Fix the markup so |
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
Fixes the "Freeze Streak" button staying clickable after being clicked, which allowed users to send multiple freeze requests within the same cooldown period.
Closes #2445
Type of Change
What Changed
disabled={Loading}to the "Freeze Streak" button inStreakTracker.tsxso it can't be clicked again while a freeze request is still processingdisabled:opacity-50 disabled:cursor-not-allowedstyling so the disabled state is visually clearHow to Test
Expected result: Button should be disabled and show "Freezing..." until the request completes — no second freeze request should be sent.
Screenshots / Recordings
Checklist
console.log, debug code, or commented-out blocksnpm run lintpasses locallynpm run type-check)Accessibility (UI changes only)
Additional Context
Note:
npm run lintcurrently fails due to a pre-existing syntax issue in this file (unrelated to this fix, present before this change). Not addressed here to keep this PR scoped to issue #2445.