Files
openhuman/app
Steven EnamakelandGitHub d5822ffcaf Integrate Rewards page with backend Discord roles and achievements (#475)
* Integrate rewards page with backend rewards data

* Refactor Rewards component to improve loading state and calculation logic

- Removed redundant loading state management in the Rewards component.
- Updated the calculation of unlocked and total rewards to derive values from the achievements array when necessary, enhancing accuracy.
- Adjusted the display logic to reflect the new calculation method for better clarity.

Enhancements in the rewards API include improved error handling for backend failures, ensuring robust user feedback during data retrieval. Added a utility function to validate numeric values, enhancing data normalization for achievements. Updated tests to cover new error handling scenarios and ensure consistent behavior across the rewards API.

* Refactor Rewards component for improved readability

- Adjusted the formatting of the unlocked rewards calculation for better clarity and maintainability.
- Ensured consistent code style in the Rewards component, enhancing overall readability.

These changes contribute to a cleaner codebase and facilitate future modifications.
2026-04-09 20:58:57 -07:00
..
2026-03-29 10:30:18 -07:00
2026-03-29 10:30:18 -07:00
2026-03-29 10:30:18 -07:00
2026-03-29 10:30:18 -07:00
2026-03-29 10:30:18 -07:00

Tauri + React + Typescript

This template should help get you started developing with Tauri, React and Typescript in Vite.