Skip to content

feat(me): bell groups and filter, /me/summary, logos and city on bookings and inbox (#668) - #677

Merged
h0mele55 merged 3 commits into
mainfrom
feat/668-notifications-summary
Nov 12, 2026
Merged

h0mele55 merged 3 commits into
mainfrom
feat/668-notifications-summary

Conversation

@h0mele55

Copy link
Copy Markdown
Collaborator

Rest of #668 (notifications, profile, bookings, inbox). Additive.

  • Notifications: each carries category (bookings, games, messages, lessons, tournaments, other) from CATEGORY_OF, a Record<NotificationKind, …>: a kind added later does not compile until it is given a group. GET /me/notifications?category= filters (cursor pages within it; bad value → 400 naming the field) and the page has unreadByCategory (every group, summing to unreadCount).
  • GET /me/summary (signed in): upcomingBookings, upcomingGames (upcoming bookings with an open game), pendingGameRequests (still answerable), unreadNotifications, nextBooking (the first of Предстоящи). Each figure comes from the use case behind its list (mine + upcomingWhere, the bell's count), so a tile never disagrees with what it opens. Replaces the home tab's own bookings call.
  • Booking rows (Booking/MyBooking): venue.city; MyBooking.clubLogoUrl.
  • Inbox: the club counterpart has logoUrl.

Checked locally: tsc; eslint; guardrails + unit + rendered (313 suites, 9945 tests); integration: new api-v1-me-summary (401, counts vs the list, groups/filter/unread per group), notifications, api-v1-me-bookings, api-v1-me-booking-detail, four messaging* (79) on a private test DB.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DfeuWUNfBvCav72pHsXdHa

user and others added 3 commits November 12, 2026 15:03
…ings and inbox (#668)

For the restyled iPhone app (playerz-ios#53):
- Notifications carry `category` from an exhaustive kind→group map (a new
  kind does not compile until it has a group); GET /me/notifications takes
  `?category=` and answers `unreadByCategory`.
- GET /me/summary: upcoming bookings, upcoming games, pending game requests,
  unread notifications and the next booking, each from the use case behind
  the list it opens.
- Booking rows: `venue.city` and `clubLogoUrl`. Inbox club rows: `logoUrl`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfeuWUNfBvCav72pHsXdHa
…s-summary

# Conflicts:
#	openapi/playerz-v1.json
…s-summary

# Conflicts:
#	openapi/playerz-v1.json
@h0mele55
h0mele55 merged commit a4ecd5f into main Nov 12, 2026
19 checks passed
@h0mele55
h0mele55 deleted the feat/668-notifications-summary branch November 12, 2026 14:07
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.

1 participant