Skip to content

design: unpark frontend architecture — vision v0.6 + ADR-016 (Frontend Live-Update Transport)#33

Merged
erikshafer merged 1 commit into
mainfrom
design/frontend-architecture-unpark
Jun 16, 2026
Merged

design: unpark frontend architecture — vision v0.6 + ADR-016 (Frontend Live-Update Transport)#33
erikshafer merged 1 commit into
mainfrom
design/frontend-architecture-unpark

Conversation

@erikshafer

Copy link
Copy Markdown
Owner

Summary

  • ADR-016 (Accepted): SignalR as the browser-client live-update transport for rider, driver, and ops frontend surfaces. Transport-agnostic push→Query-cache-bridge architecture ported from CritterBids' createSignalRProvider<TMessage>; component contract decoupled from transport at the createConnection seam. gRPC-web ruled out as niche/experimental — gRPC thesis demonstrated by the backend service mesh, not the browser transport. Cross-references ADR-005 (browser-client push is the fourth transport category) and ADR-006 (token acquisition for authed hub connections).
  • Vision v0.6: Adopted convergent house stack (React 19 / Vite 8 / TS 6 / Tailwind v4 / TanStack Query / shadcn/ui / Zod) and audience-SPA monorepo shape (rider/driver/operations/shared/e2e) as working direction. Removed "Frontend architecture" and "Map library for frontend" from §Explicitly Parked. Added three §Open Questions entries: map library, contracts-package shape, frontend monorepo vs. separate repos.
  • Retro: Five decisions walked; transport resolved on the first grill question (gRPC-web off the table before question 2). Two successor sessions named: map-library spike (after Telemetry geospatial repr. settles) and contracts/monorepo session (at first frontend implementation).

Artifacts changed

File Change
docs/decisions/016-frontend-live-update-transport.md New ADR
docs/decisions/README.md ADR-016 index row
docs/vision/README.md v0.6 — stack/monorepo direction, two parked items re-filed, three open questions, Document History entry
docs/retrospectives/frontend-architecture-unpark.md New retro
docs/retrospectives/README.md Retro index entry

Design-return cadence

This is a design-return per ADR-004 — deliberate step back into the design phase after the recent implementation/tidy/workshop stretch. No code is produced; the deliverables are the vision amendment and the ADR. The survey input (docs/research/frontend-survey-sibling-repos.md) was committed in the prior session.

Out of scope

  • No frontend code, no SPA scaffolding, no package installed
  • Map-library selection deferred (named successor spike session)
  • gRPC-web spike not needed — transport decision resolved
  • Contracts-package and monorepo-shape decisions deferred to first frontend implementation session

…d Live-Update Transport)

Discharges the vision's explicit frontend-architecture unpark trigger ("CritterBids
lands on a stable live-update pattern"), confirmed by the sibling-repo frontend survey
(docs/research/frontend-survey-sibling-repos.md, committed in prior session).

ADR-016 (Accepted): SignalR (`@microsoft/signalr` v10) as the browser-client
live-update transport for rider, driver, and ops frontend surfaces. Architecture is
the transport-agnostic push→Query-cache-bridge pattern from CritterBids'
`createSignalRProvider<TMessage>`: component contract (useListen / useConnectionState /
applyMessage) is decoupled from transport at the createConnection seam. gRPC-web ruled
out as niche and experimental; gRPC thesis demonstrated by the backend service mesh.
Cross-references ADR-005 (browser-client push is the fourth transport category not
covered by service-to-service ADR-005) and ADR-006 (accessTokenFactory token
acquisition for authed hub connections).

Vision v0.6: adopted convergent house stack (React 19 / Vite 8 / TS 6 / Tailwind v4 /
TanStack Query / shadcn/ui / Zod) and audience-SPA monorepo shape (rider / driver /
operations / shared / e2e) as working direction in §Tentative Technology Stack. Removed
"Frontend architecture" and "Map library for frontend" from §Explicitly Parked. Added
three new §Open Questions entries: map library (candidates: MapLibre GL / Leaflet /
deck.gl; couples to Telemetry BC geospatial representation), contracts-package shape
(one @crittercab/shared vs. per-BC packages), and frontend monorepo vs. separate repos.
Two successor sessions named: map-library spike (after Telemetry geospatial repr. is
settled) and contracts/monorepo session (at first frontend implementation).

Null narrative/workshop spec delta — vision/ADR-layer design-return per ADR-004.
@erikshafer erikshafer self-assigned this Jun 16, 2026
@erikshafer erikshafer merged commit ab3d592 into main Jun 16, 2026
1 check passed
@erikshafer erikshafer deleted the design/frontend-architecture-unpark branch June 16, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant