Commit graph

17 commits

Author SHA1 Message Date
mikl0s
14445a092c fix: build-release script and remaining build errors
Remove --ignore-scripts from npm install (better-sqlite3 needs native
build). Add tar.gz fallback when zip is not available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 22:03:45 +00:00
mikl0s
3a54ba40d3 fix: update quotes route to use checkAuth, fix zod type errors
Replace getCurrentUser import with checkAuth in quotes API route.
Fix z.coerce.number() type mismatch with zodResolver in calculator
forms by using z.number() directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 22:01:36 +00:00
mikl0s
3816e5e2e8 feat: add release build script for zip delivery
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:59:34 +00:00
mikl0s
50c2664078 docs: add setup guides in English and Danish
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:58:44 +00:00
mikl0s
5ca984a018 chore: remove bcrypt dependency (auth is now env-based)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:57:24 +00:00
mikl0s
c22dc09cc7 docs: update .env.example with Office 365 SMTP and admin config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:57:11 +00:00
mikl0s
534ad07a73 feat: add npm run setup seed script for database initialization
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:56:38 +00:00
mikl0s
05419e9457 feat: add rate limiting to login and quote-request endpoints
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:55:40 +00:00
mikl0s
4889ead690 chore: strip debug console.log/error statements
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:54:39 +00:00
mikl0s
efe19f0cda refactor: consolidate protected routes under /intern/*
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:53:20 +00:00
mikl0s
90407c4f8d refactor: simplify auth routes, remove setup endpoint
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:51:04 +00:00
mikl0s
9b6d8f0555 refactor: clean DB schema, remove users/sessions tables
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:50:10 +00:00
mikl0s
bc300f54f2 refactor: replace DB-based auth with env-based single admin user
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:48:33 +00:00
mikl0s
7eae4fde33 Add delivery cleanup implementation plan
12-task plan covering route restructure, auth simplification,
DB cleanup, security hardening, debug stripping, setup docs,
and build script for zip delivery.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:35:06 +00:00
mikl0s
23f623db2c Add delivery cleanup design document
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:31:40 +00:00
mikl0s
3ebb63dc6c Add admin dashboard, authentication, step wizard, and quote management
Expand the calculator with a multi-step wizard flow, admin dashboard with
quote tracking, login/auth system, distance API integration, and history
page. Add new UI components (dialog, progress, select, slider, switch),
update pricing logic, and improve the overall design with new assets.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 20:59:11 +00:00
mikl0s
7d2bbae1c6 Initial implementation of Foam King Gulve price calculator
Features:
- Complete Next.js 16 app with TypeScript and Tailwind CSS
- Customer-facing price calculator form with validation
- Admin mode showing detailed price breakdowns
- Accurate price calculations matching business requirements
- Responsive design with custom shadcn/ui theme
- API endpoint for quote requests
- Danish postal code distance calculations
- Complete test coverage against documentation examples

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-10 14:27:28 +00:00