Commit graph

351 commits

Author SHA1 Message Date
MrPiglr
f2823e2cd1
Merge branch 'main' into claude/find-unfinished-flows-vKjsD 2026-01-26 15:50:36 -07:00
Claude
88e364f4c5
Add admin moderation and analytics dashboards
Moderation Dashboard:
- API with admin-only access for content moderation
- View/filter reports by status (open, resolved, ignored)
- View/resolve contract disputes
- Manage flagged users (warn, ban, unban)
- Resolution notes for audit trail
- Stats for open reports, disputes, resolved today

Analytics Dashboard:
- Comprehensive platform metrics API
- User stats: total, new, active, creators
- Opportunity and application metrics
- Contract tracking and completion rates
- Revenue tracking by period
- Daily signup trend visualization
- Top performing opportunities ranking
- Period selector (7, 30, 90, 365 days)

Both dashboards have proper admin authorization checks.
2026-01-26 22:39:47 +00:00
Claude
ebf62ec80e
Add OKR management and time tracking features
OKR Management:
- Database tables for OKRs, key results, and check-ins
- Full CRUD API with progress auto-calculation
- UI with quarter/year filtering, create/edit dialogs
- Key result progress tracking with status indicators
- Trigger to auto-update OKR progress from key results

Time Tracking:
- Database tables for time entries and timesheets
- API with timer start/stop, manual entry creation
- Week/month/all view with grouped entries by date
- Stats for total hours, billable hours, avg per day
- Real-time timer with running indicator

Both features include RLS policies and proper indexes.
2026-01-26 22:36:16 +00:00
Claude
f1efc97c86
Add staff feature APIs and update 2 pages to use real data
- Add database migration for staff features (announcements, expenses,
  courses, reviews, knowledge base, projects, marketplace, handbook)
- Add 8 new API endpoints: announcements, expenses, courses, reviews,
  knowledge-base, projects, marketplace, handbook
- Update StaffAnnouncements.tsx to use real API with read tracking
- Update StaffExpenseReports.tsx to use real API with submit dialog

More staff pages to be updated in next commit.
2026-01-26 22:25:14 +00:00
Claude
0674a282b0
Add Candidate Portal foundation - API and core pages
- Add database migration for candidate_profiles, candidate_interviews,
  and candidate_offers tables with RLS policies
- Add API endpoints: /api/candidate/profile, /api/candidate/interviews,
  /api/candidate/offers
- Add CandidatePortal.tsx main dashboard with stats, quick actions,
  upcoming interviews, and pending offers
- Add CandidateProfile.tsx profile builder with tabs for basic info,
  work experience, education, and portfolio links
2026-01-26 21:58:45 +00:00
Claude
0136d3d8a4
Build complete Staff Onboarding Portal
- Add StaffOnboarding.tsx main hub with welcome banner, progress ring,
  and quick action cards
- Add StaffOnboardingChecklist.tsx with interactive Day 1/Week 1/Month 1
  checklist that saves progress to database
- Add database migration for staff_onboarding_progress and
  staff_onboarding_metadata tables with RLS policies
- Add API endpoint /api/staff/onboarding for fetching and updating
  onboarding progress with admin view for managers
- Add routes to App.tsx for /staff/onboarding and /staff/onboarding/checklist
2026-01-26 21:14:44 +00:00
MrPiglr
25d584fd46
feat: Complete database migration and developer platform
- Applied all 31 pending Supabase migrations successfully
- Fixed 100+ policy/trigger/index duplication errors for shared database
- Resolved foundation_contributions schema mismatch (added user_id, contribution_type, resource_id, points columns)
- Added DROP IF EXISTS statements for all policies, triggers, and indexes
- Wrapped storage.objects operations in permission-safe DO blocks

Developer Platform (10 Phases Complete):
- API key management dashboard with RLS and SHA-256 hashing
- Complete API documentation (8 endpoint categories)
- 9 template starters + 9 marketplace products + 12 code examples
- Quick start guide and SDK distribution
- Testing framework and QA checklist

Database Schema Now Includes:
- Ethos: Artist/guild tracking, verification, tracks, storage
- GameForge: Games, assets, monetization
- Foundation: Courses, mentorship, resources, contributions
- Nexus: Creator marketplace, portfolios, contracts, escrow
- Corp Hub: Invoices, contracts, team management, projects
- Developer: API keys, usage logs, profiles

Platform Status: Production Ready 
2026-01-10 02:05:15 +00:00
sirpiglr
4b0f5742af Update authentication and authorization logic across multiple API endpoints
Replaces direct Supabase client instantiation with a unified authentication and authorization helper, introducing role-based access control to sensitive endpoints like escrow and payroll, and standardizing compliance event logging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 5eb35c62-c5ab-4c7e-9552-8dc89efa29f3
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/aPpJgbb
Replit-Helium-Checkpoint-Created: true
2025-12-13 03:17:12 +00:00
sirpiglr
f5939941d4 Implement shared authentication and authorization helpers for API security
Creates a new `api/_auth.ts` file containing functions for user authentication, role-based authorization, and compliance event logging, enhancing API security and access control.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 21812339-5bf1-448b-9ecf-95db42576ce2
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/aPpJgbb
Replit-Helium-Checkpoint-Created: true
2025-12-13 03:06:44 +00:00
sirpiglr
e60e71476f Add core architecture, API endpoints, and UI components for NEXUS
Introduces NEXUS Core architecture documentation, new API endpoints for escrow, payroll, talent profiles, time logs, and UI components for financial dashboards and compliance tracking.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: e82c1588-4c11-4961-b289-6ab581ed9691
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/aPpJgbb
Replit-Helium-Checkpoint-Created: true
2025-12-13 03:01:54 +00:00
sirpiglr
2decee28e2 Add subscription management and pricing tiers to the platform
Implement Stripe integration for subscription creation, management, and webhook handling. Update pricing page to display membership tiers and integrate checkout functionality.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 6d5c407a-473f-4820-a33d-abb2ae3e6b37
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/MdI1YXa
Replit-Helium-Checkpoint-Created: true
2025-12-12 23:27:03 +00:00
sirpiglr
4f4025fe83 Improve Discord Activity UI with public endpoints and new realm setting
Refactors the client-side Activity page to use public API endpoints for feed and opportunities, handles authentication errors gracefully, and introduces a new API endpoint `/api/user/set-realm.ts` for updating user realm preferences.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 1ada65e5-e282-425e-a4c8-c91528fd1e2c
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 22:13:52 +00:00
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