Skip to content

feat(event): redesign event display & registration surfaces #52

Closed

Description

@Ardnived

Summary

The event panel interleaves facts and actions in one visual system (rows that are sometimes text, sometimes links), shows three competing date signals (soon-chip, calendar date tile, "Every Wednesday") without ever stating the next session, and puts essential logistics below persuasive prose — users re-parse the panel to answer "can I make this, is it near me". This issue redesigns every event display surface — the panel (desktop side panel + mobile bottom drawer), the list card, the registration-form header (native + embedded map="false"), the share panel, plus a new Add-to-Calendar export — around one shared display resolver so all surfaces agree on type/status/time strings for the same event. Primary KPI: registrations. Primary audience: first-time visitors comparing events on the map — triage, then act.

This is deliberately one combined ticket (stakeholder decision — do not re-split). It is structured as workstreams with per-workstream acceptance criteria. Analytics instrumentation and CMS-side work are separate tickets (see Dependencies & references).

Design grammar (every surface — MUST)

  • Facts are plain text. Actions are buttons. Nothing may look like one and behave as the other.
  • Host-authored prose never carries platform rules (registration policy, pricing). Rules render from structured/derived data only. ("Free" is a platform-level fact, not a per-event field.)
  • Persuasive/description content sits below facts and actions, never above.
  • Status labels are factual dates, never idioms ("Started 15 Jul", not "In progress") — idioms translate poorly across 10 locales.
  • Icons come from the design icon set (src/components/atoms/Icons/), never emoji.

Shared display contract (source of truth)

All surfaces MUST produce identical computed outputs for the same (event, viewerTz, locale, now). The tables below are the contract; WS1 owns the implementation.

Event type — derived from structured schedule fields, never host-set

The CMS stores recurrence structured on event.schedule: recurrenceType (DAILY|WEEKLY|MONTHLY | null), interval (every N), weekdays (MO..SU[] — multi-day weekly is authorable), monthlyMode: 'date'|'weekday', monthDay, weekNumber (1..4|-1), weekdayOfMonth, endingType: 'count'|'until', count, untilDate, exclusions[] ({startDate,endDate,reason}). Atlas currently selects only recurrenceType/upcomingDates/icalRule — extend EventScheduleSchema (src/types/event.ts:30), FEED_SELECT (src/config/api/fetch.ts:53), and the getEvent select (src/config/api/fetch.ts:329) with the structured fields.

Derive the type from the structured fields — no rrule.js, no icalRule string parsing. icalRule stays selected as ICS-export input and as a fallback if the feed pass-through verification fails (see Backend verification).

Schedule state Type Label (localized)
recurrenceType == null One-off "One-off event"
recurrenceType set, no endingType Recurring class "Weekly class" / "Fortnightly class" etc., from recurrenceType + interval
recurrenceType set, endingType set Limited-run course "Course" (append "%{count} sessions" only when endingType === 'count')

Registration semantics derive from type:

  • Recurring class — registration binds to the series; always open. Drop-ins are physically possible but MUST never be mentioned anywhere in the UI — no invitation, no disclosure, nothing.
  • Course — registration binds to the full run; closes at the first session (no mid-course registration). Late joining is by contacting the host, surfaced only when a contact exists.
  • One-off — binds to the date; closes when the event ends.

Status resolution — complete state table (MUST)

Condition Status chip Facts line (panel) Register state
Next occurrence is today, before end time "Today" "Today, 19:30–20:45" Open
Series/course first occurrence in future "Starts %{date}" "First session: %{weekday} %{date}" Open
Recurring class, series running (no chip) "Next session: %{weekday} %{date}" Open
Course, first session passed, run not finished "Started %{date}" "Started %{date} · %{count} sessions" (session count only when known) Closed — button reads "Registration closed"; helper "Contact the host to join late" only if contact exists
One-off or course fully ended "Ended" "This event has ended" Hidden; show "See nearby events" link (MUST)
Inactive / dateless (CMS inactive boolean, or no schedule/upcomingDates) (no chip) "Contact the host for timings" Hidden; Contact is the emphasized action
Full (registrationsFull once the CMS exposes it; until then derive never-full) "Full" Facts stay normal (the event still runs); register slot shows "This event is full" Hidden; "See nearby events" link + "Contact the host to join anyway" helper (if contact exists)

Rules:

  • After today's start time passes, roll to the next occurrence.
  • Ended events are already hidden from map/list; the terminal state exists only for direct links — hence the "See nearby events" escape hatch back into live inventory.
  • The Full state keeps the facts block normal — unlike Ended, don't replace it; only the register slot mirrors Ended's treatment. The full-state en copy is draft — flag for product review before ship.
  • "See nearby events" target: the event's parent region path (the drawer stack's natural parent, derived from the nested URL); for flat direct links with no region ancestry in the URL, fall back to /search?center=<lng>,<lat> at the event's coordinates.
  • External registrations (registrationMode: 'external' + externalRegistrationUrl): microcopy and status are identical to native events — do not differentiate at all. The only difference: when the derived state is Open, the Register action links out to the external URL (new tab). A started external course shows the same "Registration closed" treatment. (Today's RegisterAction links out unconditionally for external events — src/components/organisms/EventDetails/EventDetails.tsx:34-49 — it must now respect the resolver state.)
  • inactive is not currently in EventDocSchema — add it to the schema + getEvent select (and to FEED_SELECT if the geojson endpoint passes it through; the dateless fallback covers cards otherwise). The CMS requires contactPhone + contactName on inactive events.

Register microcopy — closed set (MUST: never add strings, never add encouragement copy)

State Under-button string
Class, open (nothing)
Course, not started "Registration required"
Course, started button → "Registration closed"; helper "Contact the host to join late" only if contact exists
Online event, registration open "Joining details arrive after you register" (SHOULD)
Full "This event is full"; helper "Contact the host to join anyway" only if contact exists (new — en copy draft, product review)

The online joining note is mechanics, not encouragement — it is the only place an online listing explains how attendance works, since no join link ever appears on Atlas. When it co-occurs with "Registration required" (online course, pre-start), render the course string first and the joining note as a second short line.

Time display rules (MUST)

  • Physical events: never convert. Times display in the event's own timezone. When viewer tz ≠ event tz, append a quiet "(local time)" hint.
  • Online events: convert to viewer time as primary, origin as secondary: "Wed 15 Jul, 18:30 (your time) · 19:30 in Prague". The "(your time)" label is load-bearing — an unlabeled converted time gets re-derived by distrustful users.
  • Expand occurrences in the event's timezone, then convert each instant. Never convert the recurrence pattern itself — DST divergence between zones makes pattern-level conversion silently wrong for weeks each year. (upcomingDates is precomputed server-side with exclusions applied; [0] is the next occurrence.)
  • The exact converted next-session line is authoritative; any converted pattern line ("Every Wednesday ~18:30 your time") is approximate and secondary.
  • Weekday labels derive from occurrence instants in the display zone, never from the recurrence pattern. Physical → event-tz weekday; online → converted-occurrence (viewer-tz) weekday. Wednesday 19:30 Prague is Thursday 04:30 Sydney.
  • Time/date/number formatting via the viewer locale (19:30 vs 7:30 PM) — Intl.DateTimeFormat / luxon setLocale.

This fixes a live production bug: today the recurrence-line weekday is the viewer-local weekday of the next occurrence, so a Prague Wednesday 19:30 class renders "Every Thursday" for a Sydney viewer. Sites: src/components/molecules/EventCard/EventCard.tsx:53, src/components/organisms/EventDetails/details.tsx:104-106, src/views/RegistrationView/RegistrationView.tsx:50.

Online-event facts

  • Location line: "Online event · hosted from %{region}" (icon from the set; the value stays address.city ?? region.name as today). region is required on every event.
  • No Directions action; distance never shown.
  • Language chips are the key comparison fact. languages is an array — the panel chip row shows one chip per language; cards keep the current heuristic (first language only, shown only when it differs from the UI locale). Names via Intl.DisplayNames(type: 'language') in the viewer's UI language (already useLocale().languageNames) — localized name preferred over endonym; no translation strings needed.
  • No join link, no gating UI on Atlas — joining details are delivered CMS-side after registration. Remove the current display: onlineUrl is selected and rendered as a link with a Zoom/Meet/YouTube platform icon (details.tsx:135-146, detectPlatform at details.tsx:13-20). Remove the display, drop onlineUrl from EventDocSchema (src/types/event.ts:110) and the getEvent select (src/config/api/fetch.ts:333). Deliberate behavior change; the form's existing registration.online_notice copy already matches CMS-side delivery.

Workstreams

WS1 — Shared display resolver (build first)

Pure function(s) extending the existing src/lib/shape/event.ts family (isOnline, nextOccurrence, byNextOccurrence, eventTimeZone) — e.g. resolveEventDisplay(event, viewerTz, locale, now) → { typeLabel, statusChip, factsLines/timeStrings, registerState, microcopy, actions }. The exact shape is the implementer's call; the contract is non-negotiable: all surfaces agree on the computed outputs for the same inputs, the logic exists in exactly one place, and the state table is unit-testable. Two surfaces disagreeing about the next session is a worse bug than two surfaces with different fonts.

Consumers: event panel, list card, registration-form header, share header, ICS export, and EventMetadata — rewire its JSON-LD startDate (src/components/molecules/EventMetadata/EventMetadata.tsx:21) and hardcoded eventStatus: 'EventScheduled' (EventMetadata.tsx:31) so SEO agrees with the UI.

Acceptance criteria:

  • EventScheduleSchema + FEED_SELECT + getEvent select extended with the structured recurrence/ending/exclusion fields; inactive added to EventDocSchema + select; onlineUrl dropped from both
  • Resolver derives type/status/register-state/microcopy/actions per the tables above from structured fields only (no icalRule parsing)
  • Unit tests assert every row of the status table (incl. Inactive and Full), external-mode invariance, today-rollover, and the weekday-in-display-zone rule — node-only vitest lane per .claude/rules/tests.md
  • All consumers listed above read from the resolver — no surface computes its own status/type/weekday
  • Until the CMS exposes a fullness signal, the resolver derives never-full (graceful degradation, no errors)

WS2 — Event panel (EventDetails)

Layout order (MUST):

  1. Title
  2. Chip row: type · "Free" · status · language(s)
  3. Facts block (plain text, icon-set icons): recurrence + time with the next-or-first-session line; address (structured, e.g. "16 Ramsden Rd, Balham, London") or the online line
  4. Register Now — wide, filled, brand primary; the only filled/emphasized control on the surface
  5. Microcopy per the closed set (usually nothing)
  6. Secondary action row (WS3)
  7. "About" — host description prose

Today the description renders above Register (EventDetails.tsx:144-173) — this inverts that deliberately, KPI-first (Register above the action row, inverse of Google's sheet).

  • Facts are non-navigating. Tapping the address MAY re-center the map pin via useMapController().frameEvent (SHOULD) but never leaves the panel.
  • Removals: EventSoonChip (molecules/EventSoon, used at EventDetails.tsx:138 and EventCard.tsx:69) — replaced by computed status chips, but keep the isSoon predicate in src/lib/events.ts (EventsList's calculateOrder relevance sort uses it, EventsList.tsx:38); the month/day calendar date tile (details.tsx:84-89); the onlineUrl join-link display + platform icons (see the data-contract section — also dropped from schema/select).
  • "Free" chip: on panel, form header, share header (direct-link/embed visitors lack platform context); off list cards.
  • Reuse the directionsUrl() helper (details.tsx:23-35) for the Directions action.

Acceptance criteria:

  • Panel renders in the specified order; type/status/microcopy/register state all come from the resolver
  • EventSoonChip, date tile, and join-link display removed; isSoon-based list sorting unchanged
  • Register is the only filled control; facts are plain text and non-navigating (address tap at most re-frames the map)
  • Online events show the hosted-from line, no Directions, no distance, one chip per language

WS3 — Secondary action row

Filled tonal circles (light brand tint, icon in brand color) with a text label below, Google-Maps style — a new molecule (the single new top-level design-system component in this issue; IconButton exists but is plain/unlabeled). Chosen over outlined chips: tonal circles are unambiguous tap targets, give equal weight per action, are pre-learned from Maps/contact sheets, and scale 3–5 actions.

  • All circles equal — no dark-filled emphasis on any secondary action; emphasis belongs exclusively to Register (MUST). Exception per the state table: Inactive events have no Register, and Contact becomes the emphasized action.
  • Labels: max ~12 chars/line, 2 lines allowed (i18n budget). Never icon-only (a11y). Touch targets ≥ 44 px. Row scrolls horizontally with an edge fade when it overflows on narrow screens.

Action set by state:

State Actions
Physical, live Directions · Add to calendar · Contact* · Share
Online, live Add to calendar · Contact* · Share
Full Add to calendar · Contact* · Share (+ Directions when physical) + "See nearby events" link
Inactive Contact* (emphasized) · Share (+ Directions when physical)
Ended (direct link) Share only + "See nearby events" link

* Contact only when contactPhone exists. The label stays channel-agnostic ("Contact") — WhatsApp/email channels are deferred; a future action sheet must not change the layout. Behavior: mobile → tel:; desktop → floating-ui popover with the number + a copy button (raw tel: is a desktop dead end). Reuse the EventTime timezone-chip tooltip pattern (@floating-ui/react, same library as Dropdown) and ShareContent's CopyField (src/components/molecules/ShareContent/ShareContent.tsx:15).

  • A Directions icon must be added to atoms/Icons (SVG, own icon set, never emoji; it is directional so it mirrors in RTL — see WS8).

Acceptance criteria:

  • Action set per state matches the table, driven by the resolver
  • Desktop contact popover with copy button; mobile tel:; rendered only when a contact exists
  • ≥ 44 px targets, 2-line labels, horizontal scroll + edge fade verified at narrow widths
  • Directions icon added to the icon set and used

WS4 — Mobile drawer stages + sticky Register

Map the stages onto the existing snap ladder — SNAP_POINTS = ['80px', '300px', 0.97] (src/views/DrawerStack/DrawerStack.tsx:37); [email protected] is patched (patches/) for true non-modality:

  • Peek (80px): title + chips + timing line — the triage payload. EventView currently has no header (floating CloseButton only, src/views/EventView/EventView.tsx) — add a peek-visible header.
  • Half (300px): + location line, Register, action row.
  • Full (0.97): + About.
  • From half upward, Register persists as a sticky bottom bar — scrolling the description must never hide the KPI (MUST). Use the existing DrawerFooter slot (src/components/atoms/Drawer/Drawer.tsx:198).

Acceptance criteria:

  • Peek shows title + chips + timing without expanding
  • Sticky Register from half upward; never obscured by description scroll
  • Desktop (side-direction) drawer behavior unaffected by the snap mapping

WS5 — List card (EventCard)

Three lines, whole card tappable (press state; no chevron):

┌──────────────────────────────────────────────┐
│ {Differentiator}               [status chip] │
│ {Type} · {recurrence} · {time}               │
│ {street address}                    {1.2 km} │
└──────────────────────────────────────────────┘
  • Bold slot = the field that differentiates within the current list grouping: RegionView leaf lists (region-grouped) → locality/venue bold, type demoted to line 2; SearchView and OnlineView (mixed lists) → title bold, locality on line 3.
  • Status chip per the state table; a running series shows none (the panel carries next-session detail; the card doesn't need it).
  • Strip the city via the structured address when the group header already states it; truncate street with ellipsis.
  • Online variant: line 3 → "Online · from %{region}"; line 2 time converted with "(your time)"; no distance.
  • Distance (kept, repositioned): shown when the list results from a location search; the value is distance from the searched location (as today), not GPS — expose that in aria-label/tooltip. Right-aligned on the address line (MUST) so distances form a vertically scannable column, replacing the current ragged "· 123 km" suffix. Drop the current >10 km display threshold (EventCard.tsx:74) — show whenever a distance is defined. Formatting util in src/lib/: 650 m below 1 km; one decimal (1.2 km) below 10; integers above; miles for en-US/en-GB (road-distance convention), km elsewhere — locale→unit map + Intl.NumberFormat unit style.
  • "All events are free" once per list (SHOULD) — e.g. a region-list header suffix in RegionView; no Free chips on cards (identical chips on every card = zero information).
  • Do not change calculateOrder sorting (EventsList.tsx); keep the card's Link wrapper hookable (feat(map): highlight an event's pin when hovering its card #44).

Acceptance criteria:

  • Three-line card with the per-view bold-slot mapping; status chips from the resolver
  • Distance right-aligned, formatted per the util (m/km decimals/miles), aria explains the reference point, no 10 km threshold
  • Online variant per spec; free-line once per region list; list sorting untouched

WS6 — Add to Calendar

  • Hand-rolled ICS builder in src/lib/ — no new runtime dependency (the bundle is public).
  • The export MUST carry the real recurrence: correct TZID + RRULE built from the structured schedule fields (FREQ/INTERVAL/BYDAY, monthly by-date or by-weekday, COUNT/UNTIL) + EXDATE from exclusions. A single dead date for a weekly class is worse than no button. icalRule is available as input/fallback.
  • Courses export the bounded series (COUNT/UNTIL).
  • Also provide a Google Calendar template-link equivalent.
  • Native calendar apps then handle all viewer-timezone conversion — the one place the TZ problem solves itself. Get the export right.
  • Attaching an ICS to the registration confirmation email is CMS scope (companion ticket).

Acceptance criteria:

  • ICS imports with correct recurrence + timezone in at least Google Calendar and Apple Calendar
  • Unit tests cover: one-off, weekly, multi-weekday, every-N-weeks, monthly by-date, monthly by-weekday, bounded course, exclusions, and DST-crossing cases (node lane)

WS7 — Registration form, share panel, embeds

  • Both surfaces repeat the compact summary: title · key chips (type, Free, status) · one-line when · one-line where — the same computed strings as everywhere. Upgrade RegistrationView's private EventSummary sub-component (src/views/RegistrationView/RegistrationView.tsx:26); add a summary to ShareView (today it renders only ShareContent with the bare title, src/views/ShareView/ShareView.tsx:25). Sub-components, not new design-system components.
  • Deep-link gating: the register route (<event-path>/register) is deep-linkable; when the resolver says Closed/Ended/Full it must render the state-appropriate message, not an operative form. (Server-side enforcement is CMS-ticket scope — client-side gating is cosmetic until it lands; note that in code.)
  • Courses: lock the starting-date select to the first session — registration binds to the full run. (RegistrationView currently passes all upcomingDates to the form's starting-date Select.)
  • Embedded form = the existing <sahaj-atlas> widget in map="false" mode booted directly on an event/register route. Wire the declared-but-unused basePath prop (src/Widget.tsx:18 — never destructured, and missing from the r2wc props map at Widget.tsx:75-87) as the initial route. No new custom element, no shadow DOM.
  • Headers must be self-sufficient (no map, list, or Atlas chrome exists in an embed): title/when/where/Free + a small "on Sahaj Atlas" backlink.
  • Document the style-scoping caveat honestly: the widget is deliberately shadow-DOM-free (theme scoped to a wrapper div, CSS injected by JS), so "no style inheritance from the host page" is approximate — a hard guarantee would need shadow DOM, which fights the portal/vaul architecture (out of scope).

Acceptance criteria:

  • Form + share headers render the resolver summary; embed (demo.html, map="false" + basePath) is self-sufficient with the backlink
  • Deep links to closed/ended/full register routes show state messaging, never an operative form
  • Course registration locks startingAt to the first session
  • basePath wired end-to-end (props type → destructure → r2wc map → initial route)
  • Style-scoping caveat documented alongside the embed docs

WS8 — RTL readiness (infrastructure only — no RTL locale ships in this issue)

Arabic is in the ecosystem; prepare now. Current locales (en, fr, de, es, cs, hu, nl, pt-BR, ru, uk) are all LTR, so this is groundwork:

  • Set dir from the active locale on the widget theme root (the wrapper div in src/Widget.tsx:62) — no dir attribute is set anywhere today.
  • Convert the ~21 physical-direction Tailwind utilities repo-wide to logical properties (ml-*→ms-*, left-*→start-*, …); chip/action rows follow text direction.
  • Icon mirroring policy: directional icons (Directions arrow, chevrons) mirror under RTL; symmetric/object icons (phone, calendar, share) do not. Document the policy next to the icon set.
  • Flag-and-note (fix optional): the drawer's desktop direction: 'left' and the framer-motion x-offsets in DrawerStack's PeekStrip are direction-sensitive — leave documented TODOs if full support is deferred.

Acceptance criteria:

  • dir derives from locale on the theme root
  • No physical-direction utilities remain (repo-wide sweep)
  • Mirroring policy documented; the new Directions icon mirrors

WS9 — i18n strings

All new keys use %{var} interpolation (Ruby-style, shared with the Rails backend — not {var} and not i18next's {{var}}). Add across all 10 locales via pnpm i18n:add <dotted.key> '<{lng:value}>' [ns] (scripts/add-locale-key.mjs) — en + best-effort translations now, translators follow up. Exact nesting inside the events namespace is the implementer's choice; reuse existing keys (registration.register_now, details.share, details.contact_for_timing, timing.converted_to, …) where they already say the right thing.

Key en reference Budget (chars)
register_now Register Now 16
registration_required Registration required 28
registration_closed Registration closed 24
contact_to_join_late Contact the host to join late 40
online_joining_note Joining details arrive after you register 48
event_full (new — draft copy) This event is full 28
contact_to_join_full (new — draft copy) Contact the host to join anyway 40
chip_full (new — draft copy) Full 14
action_directions Directions 12 × 2 lines
action_add_calendar Add to calendar 12 × 2
action_contact Contact 12 × 2
action_share Share 12 × 2
chip_today / chip_starts / chip_started / chip_ended / chip_free Today / Starts %{date} / Started %{date} / Ended / Free 14
next_session / first_session Next session: %{date} / First session: %{date} 32
your_time / local_time (your time) / (local time) 14
hosted_from Online event · hosted from %{region} 40
event_ended This event has ended 28
see_nearby See nearby events 22
all_events_free All events are free 24
sessions_count %{count} sessions 16, plural forms
type labels (one key per pattern) One-off event / Weekly class / Fortnightly class / Course 14
  • sessions_count is a genuine plural — define _one/_other forms (plus _few/_many for ru/uk/cs; i18next resolves via Intl.PluralRules) and pass count. Remember count is the reserved plural trigger in this codebase — never use it for a plain interpolated number elsewhere.
  • Recurrence text is templated per pattern, never concatenated (word order breaks in ru/cs/de; no rrule.js toText() — English-only). Existing recurrence.* keys cover only daily/weekly/monthly — add templates for: weekly multi-day ("Every Mon & Wed"), every-N-weeks (fortnightly), monthly by-date, monthly by-weekday ("First Sunday monthly").
  • Language names come from Intl.DisplayNames, not translation strings.
  • Overflow: chips/action labels wrap to their 2-line budget, then truncate with ellipsis — never push layout.
  • Dev gotcha: a new key needs a full page reload (HMR doesn't reload i18next's fetched resources) — a raw key rendering right after pnpm i18n:add is almost always this, not a missing key.

Acceptance criteria:

  • Every string in the table exists in all 10 locales within budget; plural forms correct for ru/uk/cs
  • Every recurrence pattern the CMS can author has a template (incl. multi-weekday and every-N-weeks)
  • No concatenated recurrence/status strings anywhere

Backend verification tasks (acceptance criteria — run against the seeded local backend)

Dev runs against the seeded local SahajCloud at :3000 (.env.local URL override):

  • The new schedule sub-fields pass through the geojson endpoint's select (believed to be a thin select pass-through — confirm; if not, fall back to icalRule for feed-side derivation and file a CMS follow-up)
  • upcomingDates window semantics documented: how many dates it returns, and whether a bounded course returns its complete remaining list (drives course status + ICS decisions)
  • Finished-event read behavior: does GET /api/events/:id stay readable after the ExpireEvents auto-finish (→ render the Ended state) or 404 (→ escape hatch in the not-found fallback)? Handle both regardless: implement the Ended panel state AND add a "See nearby events" affordance to DrawerErrorFallback (src/views/shared.tsx:192)
  • Fullness: no signal exists yet — verify the widget treats every event as not-full with zero errors until the CMS companion lands

Suggested sequencing

  1. WS1 resolver + schema/select changes — everything else consumes it; land WS9 keys alongside as consumers need them.
  2. WS2 panel → WS3 action row → WS4 drawer stages (each builds on the previous visually).
  3. WS5 card, WS6 ICS, WS7 form/share/embed, WS8 RTL — parallelizable once WS1 is in.

Files affected

(refs verified against current main)

  • src/lib/shape/event.ts — resolver home (extends isOnline / nextOccurrence / byNextOccurrence / eventTimeZone)
  • src/lib/events.ts — keep isSoon (sorting); formatTimeZone/formatHour likely absorbed by the resolver
  • src/lib/ — new: ICS builder, distance formatter
  • src/types/event.ts — EventScheduleSchema (line 30) extend; EventDocSchema drop onlineUrl (line 110), add inactive
  • src/config/api/fetch.ts — FEED_SELECT (line 53), getEvent select (line 329; onlineUrl line 333)
  • src/components/organisms/EventDetails/EventDetails.tsx — layout, RegisterAction (lines 22–66), chip row (137–143), description-above-register (144–173); details.tsx — date tile (84–89), weekday bug (104–106), join-link display (135–146), directionsUrl (23–35, reuse)
  • src/components/molecules/EventCard/EventCard.tsx — weekday bug (53), EventSoonChip (69), distance threshold (74)
  • src/components/molecules/EventSoon/ — remove the component
  • src/components/molecules/EventMetadata/EventMetadata.tsx — startDate (21), eventStatus (31) → resolver
  • src/components/molecules/EventTime/ — tooltip pattern to reuse; src/components/molecules/ShareContent/ — CopyField (15) to reuse
  • src/components/atoms/Icons/ — add Directions icon; src/components/molecules/ — new labeled tonal-circle action button
  • src/views/EventView/EventView.tsx — peek-visible header (none today)
  • src/views/RegistrationView/RegistrationView.tsx — EventSummary (26), weekday bug (50), starting-date lock, deep-link gating
  • src/views/ShareView/ShareView.tsx — add the summary (25)
  • src/views/RegionView/ · src/views/SearchView/ · src/views/OnlineView/ — bold-slot mapping, "All events are free" line
  • src/views/DrawerStack/DrawerStack.tsx — SNAP_POINTS (37), PeekStrip direction notes
  • src/components/atoms/Drawer/Drawer.tsx — DrawerFooter (198) sticky Register
  • src/views/shared.tsx — DrawerErrorFallback (192) nearby-events affordance
  • src/Widget.tsx — basePath (18) wiring + r2wc props map (75–87), dir on the theme root (62)
  • public/locales/<lng>/events.json × 10

Dependencies & references

  • Companion CMS ticket on sydevs/SahajCloud — linked in a follow-up comment: server-side registration gating (reject started-course/ended/full registrations with structured errors the widget can map to UI states — verified: today's POST /events/:id/register only checks published/visible), a client-readable fullness signal (e.g. a virtual registrationsFull — CMS decides the shape) on both the geojson feed and the by-id read, ICS attachment on confirmation emails, and translation char-budget tooling.
  • Separate analytics ticket on this repo — linked in a follow-up comment: owns the stack decision (evaluate TelemetryDeck; Fathom is pageview/name-only, so parameterized funnels are unimplementable on it) plus the instrumentation. This issue only keeps surfaces hookable.
  • perf(api): spike — separate region hierarchy from the event feed #32 — query-restructure spike: mirror the FEED_SELECT changes in whatever shape it lands; the locale-missing-from-event-query-keys latent bug is perf(api): spike — separate region hierarchy from the event feed #32's to settle, not this issue's.
  • refactor(i18n): source translations from SahajCloud CMS #28 — translations → CMS: the CMS-side char-budget/translation-system work extends refactor(i18n): source translations from SahajCloud CMS #28 rather than competing with it.
  • feat(map): highlight an event's pin when hovering its card #44 — map-pin hover from card: unrelated, but keep the card's Link wrapper hookable.
  • Spec: "Sahaj Atlas — Event Display & Registration Surfaces Redesign", v2, 2026-07-14, owner Anton (Product). This issue embeds all normative content (adapted to codebase reality); where the spec and later stakeholder decisions differed, the decisions encoded here win.

Definition of done

  • All workstream + backend-verification criteria above
  • pnpm lint + pnpm typecheck + pnpm test:run pass; production build + ladle:build pass
  • Verified in the running widget against the seeded local backend across: a weekly class, a multi-weekday class, a course (pre-start and started), a one-off, an online event, an inactive event, and an ended-event direct link — in at least en plus one other locale, standalone and map="false" embed

Activity

  1. Ardnived commented on Jul 14, 2026

    @Ardnived
    ContributorAuthor

    Companion tickets: analytics instrumentation + stack evaluation is #51; the CMS-side prerequisites (server-side registration gating, the fullness signal, and the registration confirmation email with ICS) are sydevs/SahajCloud#577.

    Flag from drafting the CMS ticket: SahajCloud currently has no registrant-facing confirmation email at all, so the CMS-side joining-info delivery this redesign assumes is created by sydevs/SahajCloud#577 (items 3+5) — treat those as a hard prerequisite for shipping the online-event join-link removal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Hold Until

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions