Skip to content

Initialising Supabase with seeding #2

Merged
NathanMerrett merged 12 commits intomainfrom
nm-set-up-supabase-v1
Apr 9, 2026
Merged

Initialising Supabase with seeding #2
NathanMerrett merged 12 commits intomainfrom
nm-set-up-supabase-v1

Conversation

@NathanMerrett
Copy link
Copy Markdown
Owner

No description provided.

Jacob-Ismail-Curtis and others added 12 commits March 2, 2026 22:07
- Auth flow: sign-in (Google + Strava OAuth via PKCE), callback screen, AuthGate
- Feature-based structure: features/auth, shared/lib, shared/components, shared/hooks
- Tab navigation: Today, Plan, Settings (stubs ready for P1)
- Supabase client with SecureStore adapter; DB types generated from live schema
- CLAUDE.md documents repo structure and conventions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Updated @supabase/supabase-js to version 2.100.0 in package.json.
- Added expo-dev-client to package.json.
- Excluded supabase/functions from TypeScript compilation in tsconfig.json.
- Created auth.ts for JWT extraction and Supabase client creation.
- Implemented delete-account function to handle user account deletion.
- Added deno.json for module imports in Supabase functions.
- Created SQL migrations for auth triggers, user table, integrations, plans, and athlete profile.
- Seeded database with test data for local development.
- Created `plan_weeks` table to manage weekly plans with associated phases and statuses.
- Implemented triggers for automatic timestamp updates on `plan_weeks`.
- Established row-level security (RLS) policies for user-specific access to `plan_weeks`.

- Created `sessions` table to track training sessions linked to `plan_weeks` and `plans`.
- Added triggers for automatic timestamp updates on `sessions`.
- Set up RLS policies for user-specific access to `sessions`.

- Created `activities` table to log user activities with detailed metrics.
- Implemented triggers for automatic timestamp updates on `activities`.
- Configured RLS policies for user-specific access to `activities`.
@NathanMerrett NathanMerrett merged commit 93d392b into main Apr 9, 2026
1 check passed
@NathanMerrett NathanMerrett deleted the nm-set-up-supabase-v1 branch April 9, 2026 18:55
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.

2 participants