Repository navigation
feat: add retry controls, notification preferences, and leaderboard time filters - #1837
Merged
Conversation
|
@zane1502 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Add retry buttons to error states that were missing them, wire notification preference toggles from settings into the notification store to suppress suppressed notification types, confirm mark-all-read is accessible in the notification panel (already implemented), and connect the existing time range filter component to the leaderboard full rankings list.
Changes
StatsPanel.tsx: ExtractfetchStatsinto auseCallbackso the error block can call it again; add a Retry button to the error UI.TipsTab.tsx: Replace the bareEmptyStateon error withErrorState(the proper error component) and passonRetry={refetch}from theuseTipshook.notificationStore.ts: InaddNotification, readtipz_settingsfrom localStorage before inserting a notification and skip it when the user has disabled that notification type (tipNotifications,leaderboardNotifications,systemNotifications).LeaderboardPage.tsx: ImportLeaderboardFiltersand wrap the full rankings list with it. The component exposes the existing day/week/month/all-time tabs and search/sort controls via a render-prop, leaving the top-three podium section unchanged.Issues
Resolves #1712
Resolves #1705
Resolves #1704
Resolves #1703
Verification
Changes reviewed manually.
cargo buildandcargo testwere not run (this is a TypeScript/React frontend project; no Rust build toolchain applies).