Add tickets & bookings to account page

Add TicketDTO, user_tickets/user_bookings to CalendarService protocol
and SqlCalendarService implementation, plus nav links and panel
templates for the auth account sub-pages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-19 16:06:21 +00:00
parent 98c3df860b
commit dfc324b1be
7 changed files with 180 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ from .dtos import (
PostDTO,
CalendarDTO,
CalendarEntryDTO,
TicketDTO,
MarketPlaceDTO,
ProductDTO,
CartItemDTO,
@@ -69,6 +70,14 @@ class CalendarService(Protocol):
self, session: AsyncSession, order_id: int,
) -> list[CalendarEntryDTO]: ...
async def user_tickets(
self, session: AsyncSession, *, user_id: int,
) -> list[TicketDTO]: ...
async def user_bookings(
self, session: AsyncSession, *, user_id: int,
) -> list[CalendarEntryDTO]: ...
@runtime_checkable
class MarketService(Protocol):