Introduce CI quality pipeline, E2E harness, Supabase schema reconciliation, and robust generation/profile flows - #14
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
💡 Codex ReviewLine 16 in db00d20 Because the workout and meal-plan generators use fitness-app/.github/workflows/quality.yml Lines 13 to 14 in db00d20 When ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Motivation
save_profile_with_tdefunction for server-side profile/TDEE writes.Description
.env.example, a GitHubqualityworkflow,playwright.config.ts, Playwright test suites,playwrightsetup, and package script changes (lint,typecheck,test,test:e2e,check,ci), plus.gitignoreupdates for test artifacts.supabaseconfig, a reconciliation migration and preflight SQL, a seed marker, and a generated TypeScriptapp/lib/database.types.tscontract; migrate generation persistence to non-destructiveupsertand add thesave_profile_with_tdeRPC used by profile actions.app/lib/date.ts(local date keys and week ranges),app/lib/generated-plans.ts(strict Zod schemas + parsing), profile and auth schemas (profile.ts,profile-options.ts,auth.ts), and E2E AI fixtures for deterministic mocked generation.app/lib/tde.ts), implement typed Supabase helpers (utils/supabase/{client,server,middleware}.ts) with cookie handling and SSR typing, improve auth confirm callback and add password recovery/reset flows and pages, and wire generation actions to OpenAI with schema validation and mock-mode fallback (workout-generator.ts,meal-planaction).<img>withnext/imageinNavBar, remove Google font dependency and fall back to system fonts, and minor fixes forWeeklyProgressand client-database date handling.eslint.config.mjs, add testtsconfig.test.json, and include a suite ofnode:testunit/integration tests covering schemas, date logic, TDEE, generated-plan validation, migration contract, and various contracts used by the app.Testing
tests/includingtde.test.ts,profile-schema.test.ts,generated-plans.test.ts,date.test.ts,auth-schemas.test.ts,database-migration.test.ts,supabase-client-contract.test.ts,password-recovery.test.ts, and ane2e-harness.test.tscontract; these tests are exercised bynpm testas part of thecheckgate.npm run test:e2eand are wired into the CI workflow to run on push/PRs.checkgate (npm run check), the build (npm run build), and the Playwright E2E suite (npm run test:e2e) are integrated into the.github/workflows/quality.ymlCI job to ensure linting, type checks, unit tests, and E2E tests run in CI.Codex Task