Skip to content

Jannat/refactor/505 leaderboard clan pages #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from

Conversation

JannatBiva
Copy link

📄 Overview

Implements the enhancements requested in Issue #505 by refactoring Clan and Leaderboard pages, integrating new API endpoints, and improving layout/navigation consistency.

🔧 Changes Made

  • Added leaderboardApi.ts with Swagger-documented endpoints:
    • GET /leaderboard/player
    • GET /leaderboard/clan
    • GET /leaderboard/clan/position (handles 404 for "not in clan")
  • Created leaderboardResponses.ts with TypeScript interfaces for API responses.
  • Updated LeaderboardClans.tsx to use new API calls instead of old queries.
  • Added ClanPositionStatus component with SCSS styles.
  • Updated LeaderboardLayout for full-width desktop display.
  • Modified ClanLayout navigation to point to /leaderboard.
  • Added Leaderboard link to Navbar "Game" section with i18n updates.
  • Updated English translation files (leaderboard.json, navbar.json).

✅ Checklist

  • Tested locally with API data
  • Removed unused code and debugging statements
  • Updated translations and routes
  • Verified responsive design

📎 References

Closes #505
Swagger docs and design references provided in the issue.


Screenshots

image image image

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.

4 participants