Repository navigation
New frontend scaffold: Vite + React + TS app at /app/ with auth and shell (Step 1) - #2
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nconfigured mode) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
…p entry Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… 4xx errors - Add ClearCacheOnSignOut component to clear cache when status changes to signedOut - Create queryClient.ts with shouldRetry function that rejects 4xx errors immediately - Update main.tsx to use createQueryClient with proper retry and refetch settings - Prevents stale health data lingering after sign-out and delays expired-session alerts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…/app to /app/ Unverified until a Vercel preview deploy. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… check, supabase client tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Step 1 of the Somada modernization (
docs/superpowers/plans/2026-10-03-step1-web-scaffold.md). Adds the new frontend inweb/(Vite 8, React 19, TypeScript strict, react-router 7, TanStack Query, Vitest 5), served at/app/next to the untouched classic page at/. Builds on Step 0 (per-user data + authenticated API, already merged)./api/supabase_config(no build-time secrets); email/password and Google sign-in; local dev with no Supabase config runs unauthenticated (unconfigured); a failed config fetch is an error state, never authless./api/health, shows "N days of data" and the "sample data" banner when the server marks the demo dataset (is_demo).HealthDatamatches the real parsers (nullable metrics,heart_rate_*); typed client with Bearer auth.scripts/build-site.mjsassemblespublic/(classic page + icon at/, SPA at/app/);vercel.jsonbuilds it, excludes non-API files from the Python functions, and redirects/appto/app/. As a side effect, onlyindex.html,icon.pngandapp/are served now (the repo root is no longer served as static files).webjob (lint, typecheck, tests, build); README, CLAUDE.md and spec updated.NOT verified yet: Vercel deploy
The custom
buildCommand/outputDirectory/functions.excludeFiles//appredirect have never run on Vercel. Do not merge until the preview passes (merging tomasterdeploys to production):https://somada.vercel.app/app/and the preview URL pattern to Redirect URLs (Google sign-in)./shows the classic page and/icon.pngloads;/api/healthis 401 without a token and 200 with one;/api/configand/api/supabase_configwork;/app/redirects to login, email sign-in lands on the dashboard;/app/insightsworks on a hard reload; bare/appredirects to/app/; the build log shows no oversized Python functions; the Vercel project Node version is 22.13+.Known follow-ups (not in this PR)
worst_sleepis always 0 (separate task).Test plan
npm --prefix web test(64 passed),lint,typecheck,buildpython -m pytest(54 passed)🤖 Generated with Claude Code