Skip to content

Feature/points route integration#134

Open
abdul745 wants to merge 7 commits intomasterfrom
feature/points-route-integration
Open

Feature/points route integration#134
abdul745 wants to merge 7 commits intomasterfrom
feature/points-route-integration

Conversation

@abdul745
Copy link
Collaborator

Summary

Integrates Points feature into reef-app and enhances leaderboard functionality with pagination and improved data retrieval.

Changes

  • Integrate Points feature and update dependencies
  • Enhance leaderboard functionality with pagination and loading state
  • Update leaderboard API endpoint for improved data retrieval

Notes

Known Issue (Pre-existing)

Fixed RxJS type conflict in ContentRouter.tsx:56 with type assertion. This is a pre-existing issue in master due to RxJS version conflict between main package and @polkadot/api-base. The type definition in ReefSigners.ts:24 incorrectly shows Observable<never> but should be Observable<TokenWithAmount[]>. This should be fixed separately.

Code reference:

  • ContentRouter.tsx:56 - Type assertion workaround
  • ReefSigners.ts:24 - Type definition needs update (future fix)

- Updated Babel configuration to use automatic React runtime.
- Added Yarn configuration for node modules linking.
- Introduced new Points feature with routing and context management.
- Added API service for Points-related functionalities.
- Included new assets and styles specific to Points.
- Updated package.json with new dependencies and versions.
- Enhanced webpack configuration for JSX and CSS handling.
- Modified index.html to include Google Tag Manager scripts.
…tate

- Updated `getLeaderboardPoints` API method to accept pagination parameters (page and limit).
- Modified `LeaderboardTable` component to handle pagination and loading state, allowing for dynamic data rendering.
- Integrated pagination state management in `HomePage` to manage leaderboard data fetching and display.
- Changed the API endpoint in `getLeaderboardPoints` from `/points/daily-total-points` to `/points/total-points-per-user` to enhance data accuracy and consistency.
- Changed `isLoading` to `loading` in `LeaderboardTable` component for improved clarity.
- Updated related references in `HomePage` to align with the new variable name.
- Enhanced pagination handling in `fetchDataWithoutAccount` to ensure proper data fetching and state management.
- Bumped qs package from version 6.14.1 to 6.14.2 for improved functionality and security.
- Changed rxjs version from 7.5.7 to 7.5.6 in package.json and yarn.lock to address a conflict with @PolkaDot.
- Updated the usage of selectedTokenPrices$ in ContentRouter to bypass TypeScript errors related to the version change.
@abdul745 abdul745 self-assigned this Feb 14, 2026
@abdul745 abdul745 added the enhancement New feature or request label Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants