Commit Graph

50 Commits

Author SHA1 Message Date
f2ac1c426e Migrate stack to SQLite and set Coolify defaults 2026-02-26 15:45:22 -05:00
d1df80dfc2 Fix auth migration for legacy column naming 2026-02-26 14:24:22 -05:00
74fee52c4e chore: commit all changes 2026-02-26 13:26:18 -05:00
fd8edb1f21 fix(docker): run pinned local migration binaries at startup 2026-02-25 23:02:17 -05:00
a0106f6d13 fix(drizzle): avoid runtime import in migration config 2026-02-25 22:46:53 -05:00
301e66f19f auto-run drizzle migrations on container startup 2026-02-24 22:47:28 -05:00
ae9f081f90 simplify better-auth integration in elysia routes 2026-02-24 21:04:06 -05:00
122030e487 Make initial Drizzle auth migration idempotent 2026-02-24 16:22:08 -05:00
0ab464f910 Use Drizzle adapter and Drizzle CLI auth migrations 2026-02-24 16:21:03 -05:00
11eeafafef Migrate API to Elysia and switch runtime to Bun 2026-02-24 15:50:40 -05:00
44bc53820f Fix Postgres Better Auth migration index SQL 2026-02-24 15:44:09 -05:00
468ea5f252 fix deployment by adding postgres service to base compose 2026-02-24 14:02:49 -05:00
52a4ab38d3 implement better-auth auth with postgres and route protection 2026-02-24 13:32:43 -05:00
fd168f607c upgrade dependencies and docker builds to npm latest 2026-02-24 11:20:18 -05:00
bb01311a8a avoid coolify host-port collisions by exposing app port internally 2026-02-24 11:00:13 -05:00
3e72f38928 fix docker healthcheck to probe 127.0.0.1 in container 2026-02-24 00:29:13 -05:00
168c05cb71 flatten app to repo root and update docker deployment for single-stack runtime 2026-02-24 00:25:03 -05:00
2987ac06fa remove legacy backend stack and stale deployment docs after rebuild 2026-02-23 23:43:33 -05:00
6012dd3fcf rebuild app as turbopack-first single-stack with internal api and openclaw tasks 2026-02-23 23:38:06 -05:00
5df09b714b fix(frontend): remove route config exports from auth pages 2026-02-23 22:12:56 -05:00
1f7366fb1e fix: relax recharts tooltip formatter types for production build 2026-02-23 21:49:23 -05:00
04e5caf4e1 feat: rebuild fiscal clone architecture and harden coolify deployment 2026-02-23 21:10:39 -05:00
cae7cbb98f Remove social auth and stabilize email/password flow 2026-02-21 23:16:16 -05:00
40f956f9f9 Fix Coolify routing/network availability 2026-02-21 19:28:19 -05:00
575bf91ecd Make Docker Compose Coolify-ready 2026-02-20 22:41:21 -05:00
6e299b1e1f Fix frontend Docker build and session ID typing 2026-02-20 22:02:48 -05:00
Francesco
7df3d54103 fix: Update Tailwind CSS and Better Auth imports for frontend build
- Update Tailwind CSS v4 PostCSS configuration
- Fix Better Auth React imports (better-auth/react)
- Update all page components to use Better Auth useSession
- Add @tailwindcss/postcss to dependencies
- Remove SessionProvider from layout (Better Auth handles sessions)
- Fix globals.css for Tailwind v4 compatibility
- Update page components with correct session state checking

This addresses build failures related to:
- Tailwind CSS v4 PostCSS plugin compatibility
- Better Auth React client import paths
- NextAuth v5 to Better Auth migration
2026-02-21 02:09:11 +00:00
Francesco
517db95126 chore: Remove next-auth, add better-auth to dependencies 2026-02-20 04:13:50 +00:00
Francesco
f8356e0945 feat: Migrate from NextAuth to Better Auth
Backend changes:
- Add better-auth and pg packages
- Create Better Auth instance with PostgreSQL adapter
- Add Better Auth route handler at /api/auth/*
- Create migration script for Better Auth database schema
- Update main index to use Better Auth routes instead of custom auth
- Configure email/password and OAuth (GitHub/Google) providers

Frontend changes:
- Add better-auth client
- Create Better Auth client instance configuration
- Update lib/auth.ts to use Better Auth session
- Rewrite sign-in page with Better Auth methods
- Rewrite sign-up page with Better Auth methods
- Remove NextAuth route handler

Documentation:
- Add comprehensive migration guide with setup instructions
- Document environment variables and API endpoints
- Include testing checklist and rollback plan

Benefits:
- Unified authentication for both Elysia backend and Next.js frontend
- Database-backed sessions (more secure than JWT)
- Better TypeScript support
- Extensible plugin system for future features
- Active development and frequent updates
2026-02-20 04:13:26 +00:00
Francesco
73282c71af docs: Document npm update and Tailwind v4 PostCSS fixes
- Add Build System Updates section documenting npm version update
- Document Tailwind CSS v4 PostCSS configuration changes
- Update Last Updated timestamp
2026-02-20 04:06:47 +00:00
Francesco
eb9b60811d chore: Remove Dockerfile.fixed artifact 2026-02-20 04:06:20 +00:00
Francesco
b6b749ad60 fix: Update npm to latest version and fix Tailwind v4 PostCSS configuration
- Install @tailwindcss/postcss for Tailwind v4 compatibility
- Update postcss.config.js to use new Tailwind PostCSS plugin
- Update npm to latest version in backend Dockerfile
- Fixes build failures with Next.js 16.1.6 and Tailwind CSS v4.2.0
2026-02-20 04:06:16 +00:00
Francesco
d9e61d58a0 docs: Add summary to DEPENDENCY_UPDATES.md 2026-02-19 03:24:04 +00:00
Francesco
1573e07927 chore: Update all dependencies to latest versions
Backend updates:
- zod: 3.24.1 → 4.3.6 (major)
- bcryptjs: 2.4.3 → 3.0.3 (major)
- jsonwebtoken: 9.0.2 → 9.0.3 (patch)
- @types/bcryptjs: 2.4.6 → 3.0.0 (major)

Frontend updates:
- next-auth: 5.0.0-beta.25 → 5.0.0-beta.30 (latest v5 beta)
- react: 19.1.0 → 19.2.4 (patch)
- react-dom: 19.1.0 → 19.2.4 (patch)
- recharts: 2.15.4 → 3.7.0 (major)
- tailwind-merge: 2.6.1 → 3.5.0 (major)
- @types/node: 22.12.0 → 25.3.0 (major)
- tailwindcss: 3.4.19 → 4.2.0 (major)

Notes:
- All dependencies updated to absolute latest stable versions
- next-auth kept on v5 beta (upgraded to latest beta.30)
- See DEPENDENCY_UPDATES.md for full details and testing checklist
- Potential breaking changes in zod v4, bcryptjs v3, recharts v3, and tailwindcss v4
- Configuration files may need updates for tailwindcss v4 compatibility
2026-02-19 03:23:51 +00:00
Francesco
ffb7ffce57 chore: Update backend devDependencies to latest
- @types/pg: 8.12.0 -> 8.16.0
- @types/jsonwebtoken: 9.0.7 -> 9.0.10
2026-02-19 03:10:20 +00:00
Francesco
3f0e3102a2 chore: Update frontend devDependencies to latest
- @types/react: 19.1.0 -> 19.2.14
- @types/react-dom: 19.1.1 -> 19.2.3
- postcss: 8.4.50 -> 8.5.6

Note: @types/node kept at 22.x for Node 20 compatibility
2026-02-19 03:09:41 +00:00
Francesco
18010af951 chore: Revert recharts to stable v2
- recharts: 3.7.0 (v3, breaking changes) -> 2.15.4 (stable v2)

Recharts v3 has breaking changes that require code updates.
Sticking with latest v2 for stability.
2026-02-19 03:09:09 +00:00
Francesco
d4483d2d60 chore: Revert to stable versions for Tailwind ecosystem
- tailwindcss: 4.2.0 (beta) -> 3.4.19 (stable)
- tailwind-merge: 3.5.0 (beta) -> 2.6.1 (stable)

Tailwind v4 is still in beta and requires breaking config changes.
Sticking with v3 for stability.
2026-02-19 03:08:29 +00:00
Francesco
8dd7c7a9dc chore: Update all dependencies to absolute latest versions
Backend updates:
- elysia: 1.1.13 -> 1.4.25
- @elysiajs/cors: 1.1.0 -> 1.4.1
- @elysiajs/swagger: 1.1.0 -> 1.3.1
- pg: 8.13.1 -> 8.18.0
- postgres: 3.4.5 -> 3.4.8
- dotenv: 16.4.7 -> 17.3.1

Frontend updates:
- next: 16.0.0 -> 16.1.6
- recharts: 2.16.0 -> 3.7.0 (MAJOR UPDATE)
- lucide-react: 0.475.0 -> 0.574.0
- date-fns: 4.2.0 -> 4.1.0
- @radix-ui/react-dialog: 1.1.3 -> 1.1.15
- @radix-ui/react-dropdown-menu: 2.1.5 -> 2.1.16
- @radix-ui/react-slot: 1.1.2 -> 1.2.4
- @radix-ui/react-tabs: 1.1.2 -> 1.1.13
- @radix-ui/react-toast: 1.2.6 -> 1.2.15
- tailwind-merge: 2.7.0 -> 3.5.0 (MAJOR UPDATE)
- tailwindcss: 3.4.18 -> 4.2.0 (MAJOR UPDATE)
- typescript: 5.8.0 -> 5.9.3
- autoprefixer: 10.4.21 -> 10.4.24
2026-02-19 03:07:32 +00:00
Francesco
46d06eaff0 chore: Add next-env.d.ts for Next.js 16 type safety
- Added Next.js type declarations
- Required for proper TypeScript support in Next.js 16
2026-02-19 02:57:49 +00:00
Francesco
7b87ff2f04 chore: Update auth files for NextAuth v5 compatibility
Breaking changes for NextAuth v5:
- Updated route.ts to use NextAuthConfig and new export pattern
- Changed getServerSession import to use auth from config
- Updated types and session handling for NextAuth v5
- Maintained backward compatibility with existing auth flow
2026-02-19 02:57:42 +00:00
Francesco
11af7921e8 chore: Add output: 'standalone' to Next.js config for Docker compatibility
- Ensures Next.js 16 generates minimal standalone output
- Required for the Dockerfile's production stage to work correctly
2026-02-19 02:57:04 +00:00
Francesco
8fe93c8a39 chore: Update to Next.js 16 and latest dependencies
Major updates:
- next: 15.1.3 -> 16.0.0
- next-auth: 4.24.8 -> 5.0.0-beta.25 (Next-Auth v5 for Next.js 16)
- react: 19.0.0 -> 19.1.0
- react-dom: 19.0.0 -> 19.1.0

Other updates:
- recharts: 2.15.0 -> 2.16.0
- lucide-react: 0.474.0 -> 0.475.0
- date-fns: 4.1.0 -> 4.2.0
- @radix-ui/*: Updated to latest
- tailwindcss: 3.4.17 -> 3.4.18
- typescript: 5.7.2 -> 5.8.0
2026-02-19 02:56:52 +00:00
Francesco
a542eee29c chore: Update tsconfig.json for Next.js 15 compatibility
- Remove .next/types/**/*.ts from include (no longer needed in Next.js 15)
2026-02-19 02:52:28 +00:00
Francesco
9fa29059da chore: Update all dependencies to latest versions
Backend updates:
- elysia: 1.0.20 -> 1.1.13
- @elysiajs/*: 1.0.2 -> 1.1.0
- pg: 8.11.3 -> 8.13.1
- postgres: 3.4.4 -> 3.4.5
- dotenv: 16.4.5 -> 16.4.7
- zod: 3.22.4 -> 3.24.1
- @types/*: Updated to latest

Frontend updates:
- next: 14.2.0 -> 15.1.3
- react: 18.3.0 -> 19.0.0
- react-dom: 18.3.0 -> 19.0.0
- next-auth: 4.24.0 -> 4.24.8
- recharts: 2.12.0 -> 2.15.0
- lucide-react: 0.344.0 -> 0.474.0
- date-fns: 3.3.0 -> 4.1.0
- @radix-ui/*: Updated to latest
- tailwindcss: 3.4.0 -> 3.4.17
- typescript: 5.3.0 -> 5.7.2
2026-02-19 02:52:06 +00:00
Francesco
69994c8af2 fix: Use npm install instead of npm ci (no package-lock.json) 2026-02-19 02:40:41 +00:00
Francesco
da34fc0304 fix: Correct backend healthcheck command - remove 'run' from bun -e 2026-02-19 02:34:40 +00:00
Francesco
b8ccd00cb4 Fix docker-compose.yml - remove external network
Remove 'external: true' from the fiscal network to allow Docker Compose
to create it automatically during deployment. This fixes the deployment
failure in Coolify where the network doesn't exist.
2026-02-18 06:43:44 +00:00
Francesco
973f0c85fa Fix backend Dockerfile - remove unnecessary build step
The backend is designed to run TypeScript directly with Bun, not to build.
Updated Dockerfile to skip build step and run src/index.ts directly.
2026-02-18 06:37:53 +00:00
Francesco
da58289eb1 feat: Complete Fiscal Clone deployment package
- SEC filings extraction (10-K, 10-Q, 8-K)
- Portfolio analytics with real-time prices
- Watchlist management
- NextAuth.js authentication
- OpenClaw AI integration
- PostgreSQL database with auto P&L calculations
- Elysia.js backend (Bun runtime)
- Next.js 14 frontend (TailwindCSS + Recharts)
- Production-ready Docker configurations
2026-02-16 03:49:32 +00:00