Commit graph

339 commits

Author SHA1 Message Date
sirpiglr
312072a869 Fix various type errors in API files to ensure proper functionality
Resolves TypeScript errors across multiple API files, including Stripe API version mismatches and incorrect type assertions for request data, enabling successful Vercel builds.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: c124cc2e-6c8d-4ca4-80d3-5d34ca7aed66
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/qPXTzuE
Replit-Helium-Checkpoint-Created: true
2025-12-08 01:29:26 +00:00
sirpiglr
6454eb224e Update Discord activity features and documentation
Refactors Discord activity integration to use new SDK authentication methods, updates API endpoints for token exchange and OAuth, and revises documentation for clarity.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: e54ac654-1faa-42a2-b227-b7df7908c2b7
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/qPXTzuE
Replit-Helium-Checkpoint-Created: true
2025-12-08 00:44:36 +00:00
sirpiglr
1c026f5e76 Improve maintenance mode API by handling multiple environment variable names
Update the maintenance mode API endpoint to check for various Vercel environment variable names and include debug information in responses for easier troubleshooting.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 08b76980-5fd9-40da-aeac-fe3fd5300045
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/qPXTzuE
Replit-Helium-Checkpoint-Created: true
2025-12-07 02:53:55 +00:00
sirpiglr
688cfff89a Add maintenance mode endpoint for Vercel deployments
Create `api/admin/platform/maintenance.ts` to handle maintenance mode logic as a Vercel serverless function, including GET and POST requests for enabling/disabling and admin verification via Supabase.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: eb559abf-e967-427e-a938-a9f28fc6407c
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/qPXTzuE
Replit-Helium-Checkpoint-Created: true
2025-12-07 02:10:17 +00:00
sirpiglr
834c4bd56e Add AI chat assistant and backend API for AI interactions
Introduces new API endpoints for AI chat and title generation, integrates an AI chat component into the layout, and updates client-side services to communicate with the new backend AI endpoints.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 64961019-b4a5-48d8-97fc-c4980d29f3c4
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:58:12 +00:00
sirpiglr
4d5a7dee32 Improve error handling and logging for Discord account linking
Enhance the Discord verification API with granular step-by-step error tracking and more specific error messages for improved debugging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 65035574-4852-4251-bbc4-c9c37cc1ce43
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-03 02:16:30 +00:00
sirpiglr
cad695b4a7 Update Discord verification to handle alphanumeric codes
Modify the Discord verification input to accept alphanumeric characters and update related configurations in the API and client-side components.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 0ba1c751-a5b8-430c-9eb8-ed3da85d8c56
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-03 02:08:08 +00:00
sirpiglr
00063d17e6 Add debug endpoint to verify Discord bot and web app Supabase connection
Creates a new API endpoint at `/api/discord/debug-verify` to help diagnose Supabase connection issues between the Discord bot and the web application by checking environment variables and querying verification and link data.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 5a1c39ef-e200-4d89-8fc8-f9eccc554cf6
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-03 02:02:17 +00:00
sirpiglr
a8efb3ccfa Add logging to Discord verification process to identify errors
Enhance `api/discord/verify-code.ts` with additional console logs to aid in debugging Supabase client creation, code lookup, and general error handling, including more detailed error information in the response.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 409d1922-375f-4f4a-9fbf-f19ce19c2a34
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-03 01:40:16 +00:00
Builder.io
e2efadff2d Prettier format pending files 2025-11-17 08:47:57 +00:00
Builder.io
a4fe444b03 Create Google OAuth callback endpoint with federation
cgen-9e4a8de372824d889bd5f07f8fd4b3ec
2025-11-17 08:46:43 +00:00
Builder.io
34ec4f3955 Create Google OAuth start endpoint
cgen-a3b040d0db1542379753fe8a2901db05
2025-11-17 08:46:28 +00:00
Builder.io
dd8141eafb Create GitHub OAuth callback endpoint with federation
cgen-25a256afe6de4712bb2063effa8b2432
2025-11-17 08:46:23 +00:00
Builder.io
f22d76fe6d Create GitHub OAuth start endpoint
cgen-4899ef160380480abca4d7f7e7d2f1d6
2025-11-17 08:46:08 +00:00
Builder.io
2a885a7ec1 Update Discord linking flow to use OAuth Federation
cgen-ad2e373cde4344ac9232bef944ff782d
2025-11-17 08:39:24 +00:00
Builder.io
f607d58b4e Update Discord OAuth callback to use OAuth Federation
cgen-5a093f40c44247fcae1d7d82d3f9edb9
2025-11-17 08:39:18 +00:00
Builder.io
ac30435fd0 Add OAuth federation import to Discord callback
cgen-21b84a8fe4224d1f828e2414753e08e6
2025-11-17 08:39:10 +00:00
Builder.io
56ea6aee97 OAuth Federation helper - links external OAuth providers to Foundation Passports
cgen-e1b376fce8314d75888ebbacc24dc778
2025-11-17 08:38:37 +00:00
Builder.io
aa434933ab Prettier format pending files 2025-11-17 04:20:27 +00:00
Builder.io
e732100390 Add explicit validation that passport is from Foundation
cgen-63108e08239b4627bd2f01699e795e69
2025-11-17 03:54:42 +00:00
Builder.io
b6e28f2fa3 Make profile endpoint read-only cache, reject writes
cgen-8fb9fd52f1584fc59072bb8d66bb2372
2025-11-17 03:54:25 +00:00
Builder.io
dc8e814746 Clarify one-way passport sync from Foundation
cgen-72a356870ee14a30ac0fc85316be31b6
2025-11-17 03:54:07 +00:00
Builder.io
f9465d75c2 Prettier format pending files 2025-11-17 03:02:34 +00:00
Builder.io
9609e266ce completionId: cgen-6cbf9a545d894ec395b227551a54e127
cgen-6cbf9a545d894ec395b227551a54e127
2025-11-17 02:50:29 +00:00
Builder.io
43f0ef5ac1 completionId: cgen-f397a58d211b4147ab5db5a0646acafb
cgen-f397a58d211b4147ab5db5a0646acafb
2025-11-17 02:50:21 +00:00
Builder.io
e141e68ef4 Prettier format pending files 2025-11-17 02:27:28 +00:00
Builder.io
5ca2381afd Foundation OAuth Callback Handler with PKCE
cgen-d713efbd80604777a94f11f6bb251721
2025-11-17 02:24:35 +00:00
Builder.io
9227230658 Create token exchange endpoint for Foundation OAuth
cgen-8034b9e955d547db9961099058064abf
2025-11-17 02:07:27 +00:00
Builder.io
4513e5cdee Create Foundation OAuth callback handler
cgen-e070431551d945fa9175f949be4d7703
2025-11-17 02:07:21 +00:00
Builder.io
22bceb1ffb completionId: cgen-5723b94d8a1c42d693d94d8552b0af02
cgen-5723b94d8a1c42d693d94d8552b0af02
2025-11-16 09:50:22 +00:00
Builder.io
5ef082c44d Prettier format pending files 2025-11-16 09:42:50 +00:00
Builder.io
06cf0f11f9 completionId: cgen-073937e5287349cb8a9f2793f541378d
cgen-073937e5287349cb8a9f2793f541378d
2025-11-16 09:39:37 +00:00
Builder.io
aeb43b494f completionId: cgen-a2cb923349b24fce8c65221675ca6f6c
cgen-a2cb923349b24fce8c65221675ca6f6c
2025-11-16 09:39:34 +00:00
Builder.io
f3808714c1 completionId: cgen-735b602f6402482f9552d805924b3558
cgen-735b602f6402482f9552d805924b3558
2025-11-16 09:39:29 +00:00
Builder.io
0a9e6167e1 Prettier format pending files 2025-11-16 08:30:05 +00:00
Builder.io
c18390cbfa completionId: cgen-749b1ab65663407aadb24833be766c19
cgen-749b1ab65663407aadb24833be766c19
2025-11-16 08:25:14 +00:00
Builder.io
acfc78303c completionId: cgen-2c6bcee9e0474099952aa8fa6c021307
cgen-2c6bcee9e0474099952aa8fa6c021307
2025-11-16 08:17:57 +00:00
Builder.io
90ec381fad completionId: cgen-da5f615c871041f2b468cd5d02553fc1
cgen-da5f615c871041f2b468cd5d02553fc1
2025-11-16 08:17:54 +00:00
Builder.io
51649d6ae8 completionId: cgen-0c318fecb8884accbe9298eddad0a8f7
cgen-0c318fecb8884accbe9298eddad0a8f7
2025-11-16 08:17:23 +00:00
Builder.io
4c180012b8 completionId: cgen-9c165472fa87466c8c034000852c961f
cgen-9c165472fa87466c8c034000852c961f
2025-11-16 08:17:20 +00:00
Builder.io
cb6cc15aef Create Discord linking session endpoint
cgen-289654089d904a6eb2ac9e254a5a7e89
2025-11-16 08:17:11 +00:00
Builder.io
d9bd7eaf1e Prettier format pending files 2025-11-16 07:12:36 +00:00
Builder.io
8931e66bdf Fix ethos licensing notifications array type casting both occurrences
cgen-db4c4bf1a0d64222b92eaca45669aee1
2025-11-16 07:10:04 +00:00
Builder.io
ba8120ab38 Fix type casting in creators endpoint POST
cgen-ab4e89e188a3492b82638b8c9fbc8e6f
2025-11-16 07:09:38 +00:00
Builder.io
d4e6e1d0f3 Fix type casting in profile update endpoint
cgen-4b420964ffc54e1fae0b9e9e28a930c7
2025-11-16 07:09:24 +00:00
Builder.io
0aa7d46acd Fix gameforge team query type
cgen-659e82113a8c45ef931a66b587d3dab5
2025-11-16 07:09:15 +00:00
Builder.io
249e3c8144 Fix sprint query type casting
cgen-0d1cdb6baef84b6098303256a22a7057
2025-11-16 07:09:05 +00:00
Builder.io
9e6adcd36e Fix type casting in delete account endpoint
cgen-20760d2558004c7bb85ec8501c10b42d
2025-11-16 07:08:46 +00:00
Builder.io
bbc717abda Fix type casting in admin register commands
cgen-281568370d5a4af6be6d5c043658f1c3
2025-11-16 07:08:36 +00:00
Builder.io
1e1917800e Fix type casting in arm affiliations
cgen-4b85470f1cc34fbcbb9db90187212371
2025-11-16 07:08:24 +00:00