Commit graph

25 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
AeThex
c67ee049b6 fix: resolve broken auth imports and JSX tag mismatches
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 / semgrep (push) Waiting to run
Security Scan / dependency-check (push) Waiting to run
Test / test (18.x) (push) Waiting to run
Test / test (20.x) (push) Waiting to run
- Fix 14 files importing useAuth from nonexistent @/lib/auth or @/hooks/useAuth → @/contexts/AuthContext
- Fix ClientReports: Button wrapping Card content, add proper Tabs/TabsContent structure
- Fix ClientInvoices, ClientContracts: </div> → </section> tag mismatch
- Fix ClientSettings: orphaned </TabsContent>, add missing Tabs wrapper and profile tab
- Re-enable 12 disabled pages in App.tsx (hub + staff routes)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 01:39:46 +00:00
Claude
b640b0d2ad
Mobile optimization pass for responsive layouts
- TabsList: Add responsive grid columns (grid-cols-2/3 on mobile)
- Headers: Stack vertically on mobile with responsive text sizes
- Dialogs: Use viewport-relative heights (70-80vh on mobile)
- Grids: Add sm: breakpoints for single-column mobile layouts
- Tables: Add overflow-x-auto for horizontal scrolling
- Buttons: Full-width on mobile with flex-1 sm:flex-none
- Select triggers: Full-width on mobile

Files updated: 21 component and page files across admin,
staff, dashboards, and hub sections.
2026-01-26 22:46:26 +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
01026d43cc
Wire remaining 6 staff pages to real APIs
- StaffLearningPortal: Fetches courses from /api/staff/courses, supports
  starting courses and tracking progress
- StaffPerformanceReviews: Fetches reviews from /api/staff/reviews,
  supports adding employee comments with dialog
- StaffKnowledgeBase: Fetches articles from /api/staff/knowledge-base,
  supports search, filtering, view tracking, and helpful marking
- StaffProjectTracking: Fetches projects from /api/staff/projects,
  supports task status updates and creating new tasks
- StaffInternalMarketplace: Now points marketplace with /api/staff/marketplace,
  supports redeeming items with points and viewing orders
- StaffTeamHandbook: Fetches handbook sections from /api/staff/handbook,
  displays grouped by category with expand/collapse

All pages now use real Supabase data instead of mock arrays.
2026-01-26 22:31:35 +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
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
Builder.io
e690205c62 Remove Staff.tsx - consolidating into Admin
cgen-d4b4630792bd4ad7845f599a7eedbd34
2025-11-11 01:51:44 +00:00
Builder.io
55af77df88 completionId: cgen-4c07ba3b56ce463691809b0a1145753e
cgen-4c07ba3b56ce463691809b0a1145753e
2025-11-10 20:27:38 +00:00
Builder.io
0e0849cb25 completionId: cgen-441826299bbd4c78937f0a8d4515b0ff
cgen-441826299bbd4c78937f0a8d4515b0ff
2025-11-10 20:27:23 +00:00
Builder.io
312e17a73d Prettier format pending files 2025-11-10 20:15:49 +00:00
Builder.io
bdc55f1032 Create Staff Expense Reports page for reimbursements and budgets
cgen-767808b46fb242d1bec5993097d6ac9e
2025-11-10 19:30:32 +00:00
Builder.io
f84ad4fc30 Create Staff Performance Reviews page for 360 feedback and assessments
cgen-cf8cd9065b8549a2a250330e7bbf2f5b
2025-11-10 19:30:13 +00:00
Builder.io
cbbb30d39d Create Staff Announcements page for company news and updates
cgen-5abf94bef5284d2f81eeac753e9abf26
2025-11-10 19:29:55 +00:00
Builder.io
8bb8e516be Create Staff Internal Marketplace for inter-team services
cgen-ca70bbc626654e9faa0d3b59551cf18f
2025-11-10 19:29:40 +00:00
Builder.io
66b2a767d7 Create Staff Learning Portal for training and certifications
cgen-454b756963b3484f880d77d96ffa3e01
2025-11-10 19:29:25 +00:00
Builder.io
0aa1d5bb43 Create Staff Project Tracking page for OKRs and initiatives
cgen-6c819a80ab054d0ca1dd28b1f7076700
2025-11-10 19:29:10 +00:00
Builder.io
ec29ee2621 Create Staff Team Handbook page with benefits and policies
cgen-11a93e286526475b8c8af096fedec14c
2025-11-10 19:28:54 +00:00
Builder.io
3795c3ad0e Create Staff Knowledge Base page with SOPs and troubleshooting guides
cgen-5fe7fad6691a48429399a2b3d77b08ab
2025-11-10 19:28:41 +00:00
Builder.io
9a1d1c24f0 Prettier format pending files 2025-11-10 05:16:52 +00:00
Builder.io
0481b90681 Create Staff internal collaboration page
cgen-faa92222a91047fdbe00290a28284303
2025-11-10 04:48:14 +00:00
Builder.io
98b8cd6972 Create Staff achievements & performance tracking page
cgen-035d94f178664002906b4974ab4764a9
2025-11-10 04:48:00 +00:00
Builder.io
10485c230a Create Staff internal docs & API keys page
cgen-0b6b7a894685433a863ece4f87f932d6
2025-11-10 04:47:49 +00:00
Builder.io
c85bd04971 Create Staff Admin tools page
cgen-d8d9df6094324d899739f71d7be8b6db
2025-11-10 04:47:37 +00:00
Builder.io
11ba0753b5 Create Staff Directory page to browse team members
cgen-08a324ec531e49cbafa937f8fca1c4aa
2025-11-10 04:47:27 +00:00