Skip to content

add Claims empty state, fix RewardsPage claim-all button, add reputat…#227

Merged
dDevAhmed merged 2 commits into
DigiNodes:mainfrom
feyishola:feat/rewardspage
Jun 2, 2026
Merged

add Claims empty state, fix RewardsPage claim-all button, add reputat…#227
dDevAhmed merged 2 commits into
DigiNodes:mainfrom
feyishola:feat/rewardspage

Conversation

@feyishola

Copy link
Copy Markdown
Contributor

…ion chart, and fix ThemeContext default

Summary

  • Add EmptyState component for Claims list when no claims exist

    • Shows informative message with claim creation action
    • Includes appropriate icon and user guidance
    • Adds unit tests for empty state rendering
  • Fix RewardsPage claim-all button state to disable when total rewards = 0

    • Button now disabled with visual indication (opacity, cursor)
    • Shows tooltip explaining why disabled
    • Prevents unnecessary contract calls
    • Adds test coverage for zero rewards scenario
  • Add ReputationChart component showing historical score visualization

    • Line chart with 30-day score history
    • Interactive tooltips showing exact scores on hover
    • Color-coded trend indicators (green/red for up/down)
    • Responsive design with mobile support
  • Fix ThemeContext default value to prevent undefined on first render

    • Initialize with system preference detection
    • Add default theme fallback ('light')
    • Prevent hydration mismatches in Next.js
    • Add unit tests for context initialization

All changes include comprehensive tests, follow existing design patterns,
and maintain backward compatibility with no breaking changes.

closes #180
closes #181
closes #182
closes #183

@dDevAhmed

Copy link
Copy Markdown
Contributor

conflicts @feyishola

@dDevAhmed dDevAhmed merged commit 27ef385 into DigiNodes:main Jun 2, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RewardsPage claim-all button state Reputation chart missing ThemeContext default value Missing "Empty State" for Claims list

2 participants