Skip to content

feat: player dashboard, tournament lobby filters, friends & notifications (#165 #166 #168 #169) - #488

Open
devJaja wants to merge 1 commit into
HitEmPoka:mainfrom
devJaja:feat/lobby-dashboard-friends-notifications
Open

feat: player dashboard, tournament lobby filters, friends & notifications (#165 #166 #168 #169)#488
devJaja wants to merge 1 commit into
HitEmPoka:mainfrom
devJaja:feat/lobby-dashboard-friends-notifications

Conversation

@devJaja

@devJaja devJaja commented Aug 31, 2026

Copy link
Copy Markdown

Resolves #165
Resolves #166
Resolves #168
Resolves #169

Summary

Four frontend enhancements over the Next.js app, all following the existing
pixel-art theme, localStorage store patterns and Vitest conventions.

#166 — Player dashboard with lifetime statistics (/dashboard)

  • Total hands played, hands won, win rate, ROI
  • Biggest pot won / lost, total rake, favorite hand
  • Performance-over-time graph (SVG)
  • Derived from recorded hand history + coordinator HUD stats; handles empty state

#165 — Tournament lobby with filtering & sorting (/tournaments)

  • Filters: buy-in range, spots-left, blind structure (max BB), start time
  • Sort by entries, prize pool, or start time (asc/desc)
  • Registration-status badges (OPEN / FULL / IN PROGRESS / CLOSED)
  • Pure logic in lib/tournament-lobby.ts (unit tested)

#168 — Friend list & invites (/friends)

  • Add friends by Stellar address + optional alias
  • Live online status + which table a friend occupies
  • Send table invites (queued into the notification center)
  • Friend-occupied tables flagged in the lobby's JOIN screen

#169 — Notification center (global dropdown)

  • Groups table invites, friend requests, tournament reminders, achievement unlocks
  • Browser notifications raised when the tab is backgrounded
  • Read/unread state, clear, mark-all-read

Tests

Added unit tests for all four new lib modules (player-stats,
tournament-lobby, friends, notifications-center). Full suite: the only
failing tests are a pre-existing reconnect-state failure already present on
main. tsc --noEmit and next build pass.

Also adds a missing OddsCalculatorModal import that was breaking the build.

…ions

Implements four frontend enhancements:

- HitEmPoka#166 Player dashboard (/dashboard): lifetime total hands, win rate, ROI,
  biggest pot won/lost, total rake, favorite hand and a performance graph,
  derived from local hand history + coordinator HUD stats.
- HitEmPoka#165 Tournament lobby filtering & sorting: buy-in range, open entries, blind
  structure and start-time filters plus sort by entries/prize/start and full
  registration-status badges.
- HitEmPoka#168 Friend list & invites (/friends): add by Stellar address/alias, live
  online status, table invites, and friend-occupied tables flagged in the lobby.
- HitEmPoka#169 Notification center: dropdown grouping table invites, friend requests,
  tournament reminders and achievement unlocks, with browser notifications
  raised when the tab is backgrounded.

Adds unit tests for the new lib modules and a missing OddsCalculatorModal import
so the app builds.
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@devJaja 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant