You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit acfb57c
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -298,6 +299,7 @@ Hard delete. Permitted only when `status = draft` or the event has no RSVPs. Rem
298
299
-`rsvpCount` counts going RSVPs.
299
300
-`viewerRsvp` is `null` for anonymous callers and for members who haven't RSVP'd.
300
301
-`viewerRecentProjects` is the projects the caller named on their RSVPs to *other* events, most recently answered first, de-duplicated, at most eight — what the follow-up's project picker offers before anything is typed ([screens/event-detail.md](../screens/event-detail.md)). `[]` for anonymous callers. Detail only; the list shape omits it.
302
+
-`recentProjects` is the last ten distinct projects anyone named on an RSVP to any event, most recently answered first — the active projects, so a newcomer's picker opens on the teams that actually meet rather than a search box. Same for every caller. Detail only.
301
303
-`permissions.canRsvp` is `true` exactly when a `PUT …/rsvp` from this caller would succeed (signed in, event `scheduled`, `endsAt > now`). Anonymous callers get `false`; the client renders "Sign in to RSVP" from the auth context.
302
304
-`icsSequence`, `reminders`, and `createdById` are internal and not serialized.
Copy file name to clipboardExpand all lines: specs/screens/event-detail.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Legacy laddr URLs of the same shape resolve directly because the backfilled hist
10
10
11
11
-`GET /api/events/:slug` — full Event with `viewerRsvp` and `permissions`
12
12
-`GET /api/events/:slug/rsvps?perPage=100` — attendee list (lazy after first paint)
13
-
-`GET /api/projects?q=<typed>&perPage=8` — only while the viewer is going and typing in the follow-up's project picker (lazy, debounced); the picker's opened-but-empty suggestions come from the event's `viewerRecentProjects` and the attendee list, both already loaded
13
+
-`GET /api/projects?q=<typed>&perPage=8` — only while the viewer is going and typing in the follow-up's project picker (lazy, debounced); the picker's opened-but-empty suggestions come from the event's `viewerRecentProjects` and `recentProjects`, already loaded
14
14
-`GET /api/auth/me`
15
15
16
16
Unknown slug, or a draft and the caller isn't staff: 404 page.
@@ -44,7 +44,7 @@ Across the top of the content area, before the title:
44
44
| ------------ | -------- |
45
45
| Anonymous, RSVPs open | Button "Sign in to RSVP" → `/login?return=/events/<slug>`; helper "Your name will appear on the attendee list." |
46
46
| Signed in, not going, RSVPs open | Primary button "I'm going"; same helper text |
47
-
| Signed in, going, RSVPs open | Success state "You're going ✓" with a quiet "Can't make it?" link that withdraws (confirm); below it the **follow-up** per [behaviors/events.md](../behaviors/events.md#the-follow-up-what-are-you-coming-to-do): the prompt "What are you coming to do? (optional)" with three choices — "I'm new to Code for Philly", "I don't have a project yet", "I'm coming to work on [Pick a project ▾]". The picker is a find-as-you-type combobox that never lists the whole catalog: opened with nothing typed, it offers two groups — "Your recent projects", the projects the member named on their own RSVPs to other events (`viewerRecentProjects`, newest first), then "Teams already coming", the projects other attendees of this event have named, most recent answer first — each at most eight, a project appearing once in the first group it belongs to, empty groups omitted; when both are empty, nothing but the input's own hint "Type a project name"; once the member types, it searches projects by title and text (`GET /api/projects?q=`), showing at most eight in relevance order, or "No projects match". Arrow keys, Enter and Escape work as in any combobox. Selecting a choice saves immediately; the chosen one shows as selected with a "Change" affordance. Unanswered shows the three choices; never a blank. |
47
+
| Signed in, going, RSVPs open | Success state "You're going ✓" with a quiet "Can't make it?" link that withdraws (confirm); below it the **follow-up** per [behaviors/events.md](../behaviors/events.md#the-follow-up-what-are-you-coming-to-do): the prompt "What are you coming to do? (optional)" with three choices — "I'm new to Code for Philly", "I don't have a project yet", "I'm coming to work on [Pick a project ▾]". The picker is a find-as-you-type combobox that never lists the whole catalog: opened with nothing typed, it offers two groups — "Your recent projects", the projects the member named on their own RSVPs to other events (`viewerRecentProjects`, newest first), then "Other active projects", the last ten distinct projects anyone named on any RSVP (`recentProjects`, newest first) — a project appearing once in the first group it belongs to, empty groups omitted, so a newcomer sees the teams that actually meet without searching; only when both are empty, nothing but the input's own hint "Type a project name"; once the member types, it searches projects by title and text (`GET /api/projects?q=`), showing at most eight in relevance order, or "No projects match". Arrow keys, Enter and Escape work as in any combobox. Selecting a choice saves immediately; the chosen one shows as selected with a "Change" affordance. Unanswered shows the three choices; never a blank. |
48
48
| RSVPs closed (cancelled, past) | No control; the count line still renders |
49
49
50
50
Under the control: "14 going" linked to the attendee list anchor. When `meetupUrl` is set, a small muted "Also listed on Meetup ↗" link sits *below* everything in this block, never beside the button.
0 commit comments