Repository navigation
feat(me): bell groups and filter, /me/summary, logos and city on bookings and inbox (#668) - #677
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rest of #668 (notifications, profile, bookings, inbox). Additive.
category(bookings,games,messages,lessons,tournaments,other) fromCATEGORY_OF, aRecord<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 hasunreadByCategory(every group, summing tounreadCount).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/MyBooking):venue.city;MyBooking.clubLogoUrl.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, fourmessaging*(79) on a private test DB.🤖 Generated with Claude Code
https://claude.ai/code/session_01DfeuWUNfBvCav72pHsXdHa