Skip to content

refactor(frontend): centralize shared page data types in src/types#415

Merged
Hydrax117 merged 2 commits into
Arenax-gaming:mainfrom
Joewizy:refactor/shared-page-types-366
Jun 1, 2026
Merged

refactor(frontend): centralize shared page data types in src/types#415
Hydrax117 merged 2 commits into
Arenax-gaming:mainfrom
Joewizy:refactor/shared-page-types-366

Conversation

@Joewizy

@Joewizy Joewizy commented May 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds shared types for Player, Transaction, admin entities, leaderboard rows, tournament creation forms, and match hub details under frontend/src/types/.
  • Removes duplicate inline data interfaces from tournament, leaderboard, play, dashboard, admin, and profile pages.
  • Replaces useState<any> tournament state with the shared Tournament type.

Closes #366

Test plan

  • npm run build in frontend completes without type errors.
  • /leaderboard, /tournaments/create, /play/lobby, /play/party, and /dashboard/friends render as before.
  • /tournaments/[id] and /tournaments/[id]/register load tournament data correctly.
  • Admin KYC, disputes, and governance pages still render list data.

Move duplicated tournament, player, match hub, admin, and leaderboard
shapes out of page files into shared types and wire pages to import them.

Closes Arenax-gaming#366

Co-authored-by: Cursor <cursoragent@cursor.com>
@Joewizy Joewizy requested a review from anonfedora as a code owner May 30, 2026 13:29
@vercel

vercel Bot commented May 30, 2026

Copy link
Copy Markdown

@Joewizy is attempting to deploy a commit to the paul joseph's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented May 30, 2026

Copy link
Copy Markdown

@Joewizy 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! 🚀

Learn more about application limits

@Hydrax117 Hydrax117 merged commit 18e9d65 into Arenax-gaming:main Jun 1, 2026
0 of 5 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.

[FRONTEND] No shared type definitions — data shapes are duplicated across pages

2 participants