Commit graph

315 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
MrPiglr
374f239e3d
feat: implement design system with consistent layout tokens
- Created design-tokens.ts with standardized width, typography, spacing, padding, and grid constants
- Reduced max-w-7xl to max-w-6xl across homepage and major landing pages (Index, Labs, Realms, Foundation)
- Reduced oversized hero text-7xl to text-6xl for better readability
- Applied consistent design standards to dev platform pages (Templates, Marketplace, CodeExamples, DevLanding)
- Improved visual consistency and content readability site-wide
2026-01-11 01:42:19 +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
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
51f0cd2c7d Award experience points for user actions and improve level-up notifications
Introduces XP awarding for post creation, daily logins, and profile completion, alongside enhanced level-up notifications and refactored profile data handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ca9f859b-1a66-40d5-a421-8de34f2805fd
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:44:00 +00:00
sirpiglr
fed6ba1b7b Enhance AI chat with user badge support and tier upgrades
Update AIChat.tsx to fetch and display user badges, enabling persona access based on badge ownership. Modify getUserTier to recognize 'Pro' users and update PersonaSelector to show badge-based access. Add aethexBadgeService to aethex-database-adapter.ts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: f38d8505-dec9-46ac-8d03-1ec1b211b9ac
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-12 23:18:03 +00:00
sirpiglr
a4cf099b2c Update AI personas to include new subscription tiers and unlockable badges
Introduce a new 'Pro' tier for AI personas, update database schemas with tier and Stripe fields, and create a 'badges' table to manage persona access through earned badges.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 66a80a5c-6d47-429a-93e1-cf315013edf0
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-12 23:12:45 +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
1cbff4ed56 Improve security by securing endpoints and fixing data leaks
Implement JWT authentication for achievements activation endpoint and secure Nexus payouts and payment-history endpoints by filtering data at the database level.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 947d796e-4b26-4a17-afb1-6d7696b3c297
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/OjpZ7xP
Replit-Helium-Checkpoint-Created: true
2025-12-06 01:23:38 +00:00
sirpiglr
e1e70713a2 Add detailed logging to help troubleshoot post creation failures
Implement client-side logging within the `createPost` function to capture API request details, response status, and potential errors, aiding in debugging the "Unexpected end of JSON input" issue.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 269a3c56-a424-46ab-8eea-6f3af8c76051
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/zMxtXds
Replit-Helium-Checkpoint-Created: true
2025-12-03 19:09:46 +00:00
sirpiglr
e5e5f1d483 Remove direct Discord post synchronization from server
Removes the HTTP-based Discord post synchronization logic from the server, as the Discord bot now handles this directly via polling Supabase.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: eb03098a-a2c8-4077-bc43-43ade85b9f51
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/duiWnI1
Replit-Helium-Checkpoint-Created: true
2025-12-03 18:56:42 +00:00
sirpiglr
e7cfc78c40 Add logging to track post creation and API fallback
Add detailed console logs to the `createPost` function to trace API calls, successful responses, errors, and fallback to direct Supabase inserts, skipping Discord synchronization.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: feb37d47-5b11-4872-820a-7df0da43eae9
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/duiWnI1
Replit-Helium-Checkpoint-Created: true
2025-12-03 03:52:19 +00:00
Builder.io
f9465d75c2 Prettier format pending files 2025-11-17 03:02:34 +00:00
Builder.io
0c2c1a222c Identifier Resolver - Username/UUID detection utility
cgen-11595de372974e78b16bff40a8f8d7ae
2025-11-17 03:00:57 +00:00
Builder.io
e141e68ef4 Prettier format pending files 2025-11-17 02:27:28 +00:00
Builder.io
6dcf0148b6 Foundation Authentication Cookie and Token Management
cgen-347e005b3330413aa3c62284bbfe8653
2025-11-17 02:25:40 +00:00
Builder.io
f3fad472ca Foundation OAuth Client with PKCE Implementation
cgen-d3f55965924940e5bfdd21901778da89
2025-11-17 02:24:18 +00:00
Builder.io
b1c79e33e8 Foundation authentication integration helper
cgen-96f3cb9df6424ec0926b677c95e4ba87
2025-11-17 02:07:36 +00:00
Builder.io
7859213af2 Create Foundation OAuth client helper
cgen-4cb4790703c748279144104b92975975
2025-11-17 02:07:11 +00:00
Builder.io
1ef0cc707b Create API base URL utility for all client code
cgen-188cac9c01b24a52894ae0eae6b12663
2025-11-16 10:19:31 +00:00
Builder.io
a7d614e9ed Prettier format pending files 2025-11-16 09:32:17 +00:00
Builder.io
39f5133c96 completionId: cgen-db67b3440ff14100bac7c7676f35923c
cgen-db67b3440ff14100bac7c7676f35923c
2025-11-16 08:48:24 +00:00
Builder.io
1994968d5b completionId: cgen-a73be5c85a3a49dfb7c31b7701154244
cgen-a73be5c85a3a49dfb7c31b7701154244
2025-11-16 08:48:14 +00:00
Builder.io
629814caed completionId: cgen-e86110a4e7db406fb2e0a6421eebcc2c
cgen-e86110a4e7db406fb2e0a6421eebcc2c
2025-11-16 08:41:01 +00:00
Builder.io
710788acb0 completionId: cgen-76302c12344547ff927d6e5efb6f069e
cgen-76302c12344547ff927d6e5efb6f069e
2025-11-16 08:40:55 +00:00
Builder.io
245d4f54ea completionId: cgen-7cbdac9a4b28403a879da8baf9b83af6
cgen-7cbdac9a4b28403a879da8baf9b83af6
2025-11-16 08:34:22 +00:00
Builder.io
5f5521eb3a completionId: cgen-159cec7030a340cb9cea8b144d369ce4
cgen-159cec7030a340cb9cea8b144d369ce4
2025-11-16 08:34:08 +00:00
Builder.io
1a680a424f Prettier format pending files 2025-11-15 21:13:01 +00:00
Builder.io
e06e8757b1 Create Ghost API utility service
cgen-61541208cc264e2397a71b7fb4267b90
2025-11-15 19:45:39 +00:00
Builder.io
8a94eb1785 Prettier format pending files 2025-11-15 16:38:40 +00:00
Builder.io
271b8b7ccd Create service to detect arm affiliations from user activities
cgen-b99013b4063e49d6bd3b2747fd962838
2025-11-15 16:38:08 +00:00
Builder.io
aaac82137c Prettier format pending files 2025-11-15 02:11:47 +00:00
Builder.io
ba0d4422ef completionId: cgen-505b60d65f9d4830af0fa75e76b4d226
cgen-505b60d65f9d4830af0fa75e76b4d226
2025-11-15 02:11:04 +00:00
Builder.io
193cdbe008 completionId: cgen-66a66915754d4676ae7c9183b47d45b6
cgen-66a66915754d4676ae7c9183b47d45b6
2025-11-15 02:11:00 +00:00
Builder.io
cb4587de75 completionId: cgen-78ac2f9f459f46b795596185094eeec0
cgen-78ac2f9f459f46b795596185094eeec0
2025-11-15 02:09:01 +00:00
Builder.io
d20f5c06f7 completionId: cgen-bf629a69fccd42c29c077b1a70a3ce1a
cgen-bf629a69fccd42c29c077b1a70a3ce1a
2025-11-15 02:05:16 +00:00
Builder.io
b45894e7ac completionId: cgen-8d2e6a2757bd459586a90088e0256bf3
cgen-8d2e6a2757bd459586a90088e0256bf3
2025-11-15 02:05:08 +00:00
Builder.io
61d85e4924 completionId: cgen-2548a2347fd648b39b42f7a7a81d28b9
cgen-2548a2347fd648b39b42f7a7a81d28b9
2025-11-15 01:57:08 +00:00
Builder.io
0e676421be Update normalizeProfile to include wallet_address
cgen-55d97fab1c7247acad0fcd505ac997dc
2025-11-15 01:35:43 +00:00
Builder.io
96ab07ae43 Add wallet_address property to AethexUserProfile interface
cgen-9b277b48d3ca400eadd89139ea4e0462
2025-11-15 01:35:38 +00:00
Builder.io
d962b7fa03 completionId: cgen-bac09d8b12c047d5a00dffdbe10b6914
cgen-bac09d8b12c047d5a00dffdbe10b6914
2025-11-13 05:54:59 +00:00
Builder.io
049dc581ee completionId: cgen-8a54b9a367034577b4ed8146cb80ea63
cgen-8a54b9a367034577b4ed8146cb80ea63
2025-11-13 05:50:10 +00:00
Builder.io
c69573ea2d completionId: cgen-0bf25ec2292e4630b78076d765ff7890
cgen-0bf25ec2292e4630b78076d765ff7890
2025-11-13 05:50:04 +00:00
Builder.io
ccc280001e Prettier format pending files 2025-11-13 03:58:48 +00:00
Builder.io
2f5086e3ba completionId: cgen-a607689b1b00468ab8712c38cc4c6a6f
cgen-a607689b1b00468ab8712c38cc4c6a6f
2025-11-13 03:54:51 +00:00
Builder.io
381a7dff27 Prettier format pending files 2025-11-13 03:24:02 +00:00
Builder.io
5708d5a1af Fix remaining relative URLs in supabase-service.ts
cgen-40d16f1e5a7a4ca2acf3e12f48b5434e
2025-11-13 02:56:21 +00:00
Builder.io
ef51a19e8b Fix /api/posts fetch in getPosts
cgen-6bac02d8a6004e35871552cd9643fb41
2025-11-13 02:56:12 +00:00
Builder.io
9de9248851 Fix fetch URL in publishActivityLog
cgen-3235f2c4dd84463ea5ea9bcd71719778
2025-11-13 02:55:39 +00:00
Builder.io
dd76c5bcdf Add API_BASE and fix URL in discord-bot-status.ts
cgen-53c6cdaa8201491c839b0f5b69adb1dd
2025-11-13 02:55:33 +00:00