Skip to content

chore: add session auth to event-board example#167

Merged
dangreen merged 1 commit into
mainfrom
chore/event-board-auth
Jul 15, 2026
Merged

chore: add session auth to event-board example#167
dangreen merged 1 commit into
mainfrom
chore/event-board-auth

Conversation

@dangreen

Copy link
Copy Markdown
Member

Brings the event-board example up to a complete fullstack reference:

  • in-memory API: login/logout/me, HttpOnly session cookie, per-user RSVP toggle, author on created events
  • injectable ApiService$/EventsService$/UserService$/IntlService$; SSR requests forward the session cookie and locale
  • login page, user zone in the header, route guard with SSR 302, localized 404 page
  • svelte variant gets intl parity and is renamed to svelte-nano_kit-intl-ssr
  • examples sync merges shared dirs instead of replacing them, keeping variant-local files
  • .env.example per variant; API spec + auth integration tests (107 total)
  • vite is deduped to a single 8.1.2 across the workspace

Depends on #166 — the 404 status integration test needs the notFound(loadable(...)) router fix; merge #166 first and update this branch.

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.86%. Comparing base (2febcf7) to head (fa7cecd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #167   +/-   ##
=======================================
  Coverage   83.86%   83.86%           
=======================================
  Files         138      138           
  Lines        2969     2969           
  Branches      560      560           
=======================================
  Hits         2490     2490           
  Misses        340      340           
  Partials      139      139           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- in-memory API: login/logout/me, HttpOnly `session` cookie, per-user RSVP toggle, `author` on created events
- injectable `ApiService$`/`EventsService$`/`UserService$`/`IntlService$`; SSR requests forward the session cookie and locale
- login page, user zone in the header, route guard with SSR 302, localized 404 page
- svelte variant gets intl parity and is renamed to `svelte-nano_kit-intl-ssr`
- examples sync merges shared dirs instead of replacing them, keeping variant-local files
- `.env.example` per variant; API spec + auth integration tests (107 total)
- vite is deduped to a single 8.1.2 across the workspace
@dangreen
dangreen force-pushed the chore/event-board-auth branch from 9604670 to fa7cecd Compare July 15, 2026 11:10
@dangreen
dangreen merged commit 92bc716 into main Jul 15, 2026
10 checks passed
@dangreen
dangreen deleted the chore/event-board-auth branch July 15, 2026 11:18
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