Commit graph

140 commits

Author SHA1 Message Date
AeThex
7fec93e05c feat: Authentik SSO, nav systems, project pages, and schema fixes
Some checks are pending
Build / build (push) Waiting to run
Deploy / deploy (push) Waiting to run
Lint & Type Check / lint (push) Waiting to run
Security Scan / dependency-check (push) Waiting to run
Security Scan / semgrep (push) Waiting to run
Test / test (18.x) (push) Waiting to run
Test / test (20.x) (push) Waiting to run
Auth & SSO
- Wire Authentik (auth.aethex.tech) as OIDC PKCE SSO provider
- Server-side only flow with HMAC-signed stateless state token
- Account linking via authentik_sub in user metadata
- AeThex ID connection card in Dashboard connections tab
- Unlink endpoint POST /api/auth/authentik/unlink
- Fix node:https helper to bypass undici DNS bug on Node 18
- Fix resolv.conf to use 1.1.1.1/8.8.8.8 in container

Schema & types
- Regenerate database.types.ts from live Supabase schema (23k lines)
- Fix 511 TypeScript errors caused by stale 582-line types file
- Fix UserProfile import in aethex-database-adapter.ts
- Add notifications migration (title, message, read columns)

Server fixes
- Remove badge_color from achievements seed/upsert (column doesn't exist)
- Rename name→title, add slug field in achievements seed
- Remove email from all user_profiles select queries (column doesn't exist)
- Fix email-based achievement target lookup via auth.admin.listUsers
- Add GET /api/projects/:projectId endpoint
- Fix import.meta.dirname → fileURLToPath for Node 18 compatibility
- Expose VITE_APP_VERSION from package.json at build time

Navigation systems
- DevPlatformNav: reorganize into Learn/Build grouped dropdowns with descriptions
- Migrate all 11 dev-platform pages from main Layout to DevPlatformLayout
- Remove dead isDevMode context nav swap from main Layout
- EthosLayout: purple-accented tab bar (Library, Artists, Licensing, Settings)
  with member-only gating and guest CTA — migrate 4 Ethos pages
- GameForgeLayout: orange-branded sidebar with Studio section and lock icons
  for unauthenticated users — migrate GameForge + GameForgeDashboard
- SysBar: live latency ping, status dot (green/yellow/red), real version

Layout dropdown
- Role-gate Admin (owner/admin/founder only) and Internal Docs (+ staff)
- Add Internal section label with separator
- Fix settings link from /dashboard?tab=profile#settings to /dashboard?tab=settings

Project pages
- Add ProjectDetail page at /projects/:projectId
- Fix ProfilePassport "View mission" link from /projects/new to /projects/:id

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 05:01:10 +00:00
sirpiglr
8bf8584fa6 Fix Discord login and update deployment configuration
Correct Discord login flow by falling back to window.location.origin when VITE_API_BASE is not set. Update deployment configuration for autoscale and remove dead reference in Login.tsx.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 364421d0-abed-4b4a-a686-4aa79792a4a3
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/LFvmEVc
Replit-Helium-Checkpoint-Created: true
2025-12-09 02:02:36 +00:00
sirpiglr
c2b45166b8 Update authentication flow and remove unused verification components
Refactors authentication context and login page, removing manual verification UI and ensuring proper profile creation via auth state changes. Updates Supabase auth linking and unlinking types.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ec4482a8-b3eb-4d1e-8edb-34a8f6b04f0b
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/fhRML7y
Replit-Helium-Checkpoint-Created: true
2025-12-06 03:30:01 +00:00
sirpiglr
79664f3e4c Improve authentication by extending timeouts and enhancing refresh handling
Extend loading timeout to 30s, remove onboarding progress from local storage clear, and remove invalid TOKEN_REFRESH_FAILED event handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 7c308a4f-cdda-469f-b6dd-d39d0348d45c
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/saoW2ee
Replit-Helium-Checkpoint-Created: true
2025-12-02 22:06:25 +00:00
Builder.io
a7d614e9ed Prettier format pending files 2025-11-16 09:32:17 +00:00
Builder.io
9e63a9dc87 completionId: cgen-7335c5c640504f1081885bb4461dc9d6
cgen-7335c5c640504f1081885bb4461dc9d6
2025-11-16 08:34:15 +00:00
Builder.io
60d83c97d8 completionId: cgen-23094e4a72da4e0c8e2b70331f6a0196
cgen-23094e4a72da4e0c8e2b70331f6a0196
2025-11-16 08:25:33 +00:00
Builder.io
c5f6952b19 completionId: cgen-8fad880b65dd4d46bff93913659dcc24
cgen-8fad880b65dd4d46bff93913659dcc24
2025-11-13 03:54:56 +00:00
Builder.io
381a7dff27 Prettier format pending files 2025-11-13 03:24:02 +00:00
Builder.io
2353778a52 Fix /api/auth/send-verification-email in AuthContext.tsx
cgen-137341a3d8e545fea1c5a970023cb9f2
2025-11-13 03:01:27 +00:00
Builder.io
9dc954c273 Fix API_BASE definition in DiscordActivityContext.tsx
cgen-21330814c81248ce9920ae7b7fd93b6b
2025-11-13 03:00:32 +00:00
Builder.io
10e9411d36 Add API_BASE to AuthContext.tsx
cgen-546e43c8f9d0444b9d5ec87e43f89c10
2025-11-13 03:00:27 +00:00
Builder.io
65fea3ce45 completionId: cgen-21d129e4101b4d48a240419f117d5df5
cgen-21d129e4101b4d48a240419f117d5df5
2025-11-11 22:08:52 +00:00
Builder.io
132ce26fb3 completionId: cgen-e72cccfa914f4573ac1471eb67a3f05c
cgen-e72cccfa914f4573ac1471eb67a3f05c
2025-11-10 23:37:41 +00:00
Builder.io
0575151ffe Prettier format pending files 2025-11-10 22:02:35 +00:00
Builder.io
6dbb4a140f Improve Discord linking error handling and add better logging
cgen-550dfacfbd974366b78837beba90f6e7
2025-11-10 22:00:17 +00:00
Builder.io
074b93f79e Fix signIn to return user object for Login.tsx compatibility
cgen-000542f19b3744a798ac3d30a63af094
2025-11-10 21:58:58 +00:00
Builder.io
7d451e8bba Add redirectTo parameter to signInWithOAuth for staff login support
cgen-a5840c22e224448a971db83eb1de3b17
2025-11-10 19:28:07 +00:00
Builder.io
01c9e0212c Prettier format pending files 2025-11-10 03:18:01 +00:00
Builder.io
1db004b259 completionId: cgen-bfa502fa2cc04e66b20493388085f512
cgen-bfa502fa2cc04e66b20493388085f512
2025-11-10 03:06:24 +00:00
Builder.io
17a751f897 completionId: cgen-6586e28a76354f0f80f494746ac41b3f
cgen-6586e28a76354f0f80f494746ac41b3f
2025-11-10 02:56:03 +00:00
Builder.io
e945424d86 completionId: cgen-66675a65e7a84423a447d28a0dc4d5e0
cgen-66675a65e7a84423a447d28a0dc4d5e0
2025-11-10 02:55:36 +00:00
Builder.io
27695fe46b completionId: cgen-a24837f6b41847acab05e6def167c408
cgen-a24837f6b41847acab05e6def167c408
2025-11-10 02:52:14 +00:00
Builder.io
371aaba38a completionId: cgen-9848465b25094a989d6ad3c49589848a
cgen-9848465b25094a989d6ad3c49589848a
2025-11-10 02:52:10 +00:00
Builder.io
c66987bdf5 completionId: cgen-661dc5a5705841a2be21c7e64b90117b
cgen-661dc5a5705841a2be21c7e64b90117b
2025-11-10 02:45:25 +00:00
Builder.io
33d1641229 Fix AuthContext clearing session on every page load
cgen-fab9160a1ffc453fa595032e67855330
2025-11-10 00:45:49 +00:00
Builder.io
d3f8fad03e Prettier format pending files 2025-11-10 00:25:57 +00:00
Builder.io
982bc98155 Handle Discord OAuth link separately using custom endpoint
cgen-16af96fa93134cf2b2466e359454d4b3
2025-11-10 00:24:17 +00:00
Builder.io
fe49f35017 Add Discord to supported OAuth providers
cgen-520b7aed050442f6b12f57fe9e555355
2025-11-10 00:17:52 +00:00
Builder.io
e9fd001484 Prettier format pending files 2025-11-08 21:49:58 +00:00
Builder.io
9a278b1540 completionId: cgen-c0575340e2b84fd28c7184e69b2f8d0b
cgen-c0575340e2b84fd28c7184e69b2f8d0b
2025-11-08 21:20:49 +00:00
Builder.io
8335d86cb8 completionId: cgen-18edb2567d724ccbba492dd8c87d9419
cgen-18edb2567d724ccbba492dd8c87d9419
2025-11-08 21:20:43 +00:00
Builder.io
60df6e82f5 completionId: cgen-75a4234e130d49ea98d36327ce84d562
cgen-75a4234e130d49ea98d36327ce84d562
2025-11-08 21:20:38 +00:00
Builder.io
e5aacf6773 Prettier format pending files 2025-11-08 11:03:25 +00:00
Builder.io
12d0881954 Simplify signOut and add console logging to debug the issue
cgen-954b41933e494fdeaee44cceefe0a1eb
2025-11-08 09:28:44 +00:00
Builder.io
eb6069098b Ensure loading is false immediately after signOut, don't rely on callback
cgen-ea5718d6e90447a5beaaf996136f5f41
2025-11-08 09:26:54 +00:00
Builder.io
938e8662af Prettier format pending files 2025-11-08 09:25:03 +00:00
Builder.io
3327c6873d Fix sign-out by not blocking UI with loading state - handle async in background
cgen-0fac0902eded4650a12f24e20af6ec96
2025-11-08 09:23:58 +00:00
Builder.io
1de4389c6c Ensure loading is false after auth state changes, especially on sign-out
cgen-cd6e5ce6ad9b4e58b7e26f92be607960
2025-11-08 09:22:04 +00:00
Builder.io
0f927576e4 Guarantee loading is false - add catch-all timeout
cgen-dd485462dbf14ff18179816ae9b214e8
2025-11-08 09:21:56 +00:00
Builder.io
ed1318b249 Ensure loading is false and stays false after sign-out completes
cgen-5a94fd0f27fa4864961560b9c816bd34
2025-11-08 09:18:57 +00:00
Builder.io
c5cff03c57 Ensure loading is set to false as soon as we know the user state
cgen-9bd5e0f856eb40d1ae27daf9a8ab9718
2025-11-08 09:15:12 +00:00
Builder.io
d386535a63 Always show buttons immediately - set loading to false synchronously
cgen-4de9bcdc6b7b410aacc4338228a2fa8b
2025-11-08 09:15:05 +00:00
Builder.io
2e5563fe59 Force loading to false after timeout, regardless of fetchUserProfile state
cgen-fc94b84d308e41afbb64105f43788e13
2025-11-08 09:14:58 +00:00
Builder.io
4e18d6c7a5 Reduce auth loading timeout from 8s to 3s and add safeguard
cgen-61ae4533517c4651aaffe06b7bb3ae68
2025-11-08 09:11:51 +00:00
Builder.io
9c87fb3341 completionId: cgen-265ec82eefda428d91889ceaf735a0fb
cgen-265ec82eefda428d91889ceaf735a0fb
2025-11-05 06:59:25 +00:00
Builder.io
c619ef3a92 completionId: cgen-fcdf2289a18c443ca98f91cf088d61e2
cgen-fcdf2289a18c443ca98f91cf088d61e2
2025-11-05 06:44:22 +00:00
Builder.io
acfd6aeec6 Optimize AuthContext profile and roles fetching - reduce timeout and parallelize
cgen-1e2d2bf6be8c4afd90dbd95755cf75fc
2025-11-05 06:36:45 +00:00
Builder.io
a4d2466bd1 Prettier format pending files 2025-11-05 03:54:58 +00:00
Builder.io
2df17dc8ec Todo list updated
cgen-7dee112ec2a44f7eba17438c4a8b4675
2025-11-05 03:44:40 +00:00