-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Context
The raffle detail page should show both onchain data (price, tickets sold, end time, winner) and off-chain metadata (title, description, image). The backend merges these; the client just consumes GET /raffles/:id.
Goal
- Raffle detail page (e.g.
/raffles/:id) fetchesGET /raffles/:idand renders: image, title, description, ticket price, tickets sold / max, end time, status, and CTA (buy ticket, or winner/refund if finalized/cancelled). - Handle 404 and loading state; optional: real-time updates or refetch on focus.
Contributor guide
- Directory:
client/ - Add route and page component for
/raffles/:id. Use a hook (e.g.useRaffle(id)) that fetches from backend. - Map backend response to UI: use merged fields (title, description, image_url from metadata; price, tickets_sold, status from indexer/contract).
- Add "Buy ticket" button that triggers SDK ticket purchase flow (separate issue if not done).
- Ensure design matches existing Tikka UI (cards, typography).
References
- ARCHITECTURE.md — Data Merging Pattern; REST GET /raffles/:id.
Reactions are currently unavailable