Phase 15: Dev Environment + Keycloak SPA Client + Validation #38
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/westside-app#38
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?
Lineage
plan-wkq→ Phase 15 (Production Port — SPA Rebuild)Repo
forgejo_admin/westside-appUser Story
As an admin
I want the SPA dev environment running with Keycloak auth wired
So that I can validate all 13 ported pages on phone with live data before pushing to prod
Context
Previous session completed the full SPA scaffold:
adapter-static,keycloak-js, all 13 playground pages ported to SvelteKit routes. This issue covers standing up the dev overlay, creating the Keycloak SPA client, creating all user accounts (coaches, confirming admin/member creds), and validating the app end-to-end on phone.Key discovery: registered parents have
playerrole in Keycloak but the layout auth guard checks formember. Need to align.File Targets
Files modified:
vite.config.js— addallowedHostsfor dev funnel hostnamesrc/routes/+layout.svelte— fixmember→playerrole referenceFiles in pal-e-deployments (already created):
overlays/westsidekingsandqueens/dev/deployment.yamloverlays/westsidekingsandqueens/dev/service.yamloverlays/westsidekingsandqueens/dev/ingress.yamloverlays/westsidekingsandqueens/dev/kustomization.yamlFiles NOT to touch:
src/lib/keycloak.js— already correctsrc/lib/api.js— already correctAcceptance Criteria
westside-dev.tail5b443a.ts.netserving Vitewestside-spaKeycloak client created (public, PKCE, redirect URIs for prod+dev+capacitor+localhost)coachroleplayervsmemberrole mismatch resolvedTest Expectations
westside-dev.tail5b443a.ts.neton phone — landing page rendersConstraints
<style>blocks — all CSS stays in global app.css~/westside-app— edits are instant via Vite HMR.claude-no-enforcepresent — direct coding authorized for frontend iterationChecklist
Related
phase-wkq-15-production-port— parent phasesop-frontend-dev-overlay— the pattern we followedtodo-document-claude-no-enforce— escape hatch documentationProgress: Dev Environment + Keycloak Client (DONE)
Completed
westsidekingsandqueens/dev/overlay created in pal-e-deployments (4 files)westside-dev.tail5b443a.ts.net— Vite on port 5174, hostPath to~/westside-app.claude-no-enforcedropped in repo rootvite.config.jsupdated withallowedHostswestside-spaKeycloak client created: public, PKCE S256, redirect URIs for prod+dev+capacitor+localhostsilent-check-sso.htmlalready instatic/— confirmed correctDiscovered
playerrole, but layout checks formember— mismatch to fixNext