Activities: show ticket buyer's username + npub in the hoster scan list #117
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the 17 Jun design review: the event hoster's Tickets list (ScanTicketsPage) should show the buyer's username (it currently shows their id/npub), and per follow-up, also show the npub.
Why it's not webapp-only
The hoster roster comes from
GET /events/api/v1/tickets/event/{id}/stats, whose per-ticket shape is just:nameis "holder display name from the backend, if any" — in practice the npub/id (per the review). There's no pubkey, npub, or username field, so the webapp can't resolve or display either reliably (treatingnameas an npub is fragile — it may be a friendly name, an id, an npub, or null).Proposed fix
aiolabs/eventsbackend: include the buyer'spubkey(and, if available,username) on each ticket in the stats endpoint (and ideally the register endpoint, which already hasuser_id/email).pubkey/usernametoEventTicket(useTicketScanner), and in the scan list row show the username as the primary label with the npub (nip19.npubEncode(pubkey), truncated) beneath — falling back to the currentnamewhen absent. Could also resolve a display name via ProfileService from the pubkey.Deferred from the 17 Jun review batch: backend-dependent, not a clean webapp-only PR.