Commit Graph

12 Commits

Author SHA1 Message Date
Kunthawat Greethong
66bef5d583 docs: Add comprehensive AGENTS.md development log
Created AGENTS.md with complete project documentation:
- Project overview and status
- All PDPA features implemented (March 10, 2026)
- Files created/modified (13 files, 1955+ lines)
- Configuration and environment variables
- Testing & verification results
- Deployment history with commit tracking
- Security checklist
- Access information
- Ongoing maintenance guide
- Technical specifications
- Future enhancements

Purpose: Serve as comprehensive record for AI agents
working on this project with full deployment history.
2026-03-11 09:33:51 +07:00
Kunthawat Greethong
6ebc97f6e8 ci: Trigger Easypanel rebuild with synced package-lock.json
Latest commit 3660d43 contains the package-lock.json fix.
This commit ensures Easypanel picks up the correct dependencies.
2026-03-10 22:10:44 +07:00
Kunthawat Greethong
3660d43f24 fix: Sync package-lock.json with package.json
Regenerated package-lock.json to fix Docker build error:
- Added missing typescript@5.9.3 dependency
- Synced with all current dependencies
- Required for npm ci to work in Docker build
2026-03-10 22:00:42 +07:00
Kunthawat Greethong
b76da284cc docs: Add complete PDPA-compliant legal pages and documentation
Legal Pages Updated:
 Privacy Policy - All 14 PDPA Section 36 requirements
  - Data controller information
  - Purpose of data processing
  - Types of data collected
  - Legal basis for processing
  - Data retention period
  - Data sharing & disclosure
  - Cross-border transfers
  - Automated decision making
  - Cookies & tracking technologies
  - 8 data subject rights
  - Security measures
  - DPO contact
  - Right to lodge complaint
  - Policy version & effective date

 Terms & Conditions - 17 comprehensive sections
  - Acceptance of terms
  - Services description
  - Intellectual property rights
  - User obligations
  - Data processing & PDPA compliance
  - Cookies & tracking
  - Limitation of liability
  - Indemnification
  - Termination conditions
  - Modifications to terms
  - Governing law (Thailand)
  - Dispute resolution
  - Contact information
  - Severability
  - Waiver
  - Assignment
  - Version & effective date

Documentation Added:
 .env.example - Environment variables template
 PDPA-COMPLIANCE.md - Complete compliance guide
  - Feature documentation
  - Configuration instructions
  - Deployment guide
  - Admin dashboard usage
  - Security recommendations
  - PDPA compliance checklist

All legal pages are in Thai language with professional terminology.
2026-03-10 21:28:39 +07:00
Kunthawat Greethong
b485320afc feat: Add full PDPA compliance with cookie consent, admin dashboard, and conditional analytics
Features implemented:
 Cookie consent banner (Accept/Reject) with localStorage storage
 Conditional Umami Analytics (loads only with consent)
 Admin dashboard at /admin/consent-logs (password protected)
 API endpoints for consent logging (POST/GET/DELETE)
 Astro DB integration with consent logging schema
 Production-ready Dockerfile with Node.js server adapter
 Node.js 20+ requirement for Astro 5.x compatibility

Files added:
- src/components/consent/CookieBanner.astro
- src/pages/api/consent/index.ts (POST/GET endpoints)
- src/pages/api/consent/[sessionId]/index.ts (DELETE endpoint)
- src/pages/admin/consent-logs.astro (admin dashboard)
- db/schema.ts (ConsentLog table schema)

Files modified:
- src/layouts/Layout.astro (CookieBanner + conditional Umami)
- astro.config.mjs (Node adapter + DB integration)
- package.json (start script, engines field, dependencies)
- Dockerfile (custom deployment with Node.js server)

Configuration:
- Umami Analytics: Conditional loading based on consent
- Admin password: 'changeme' (MUST change in production)
- Database: SQLite file (data/consent.db)
- Server: Node.js standalone adapter

Deployment:
- Docker build with SQLite runtime support
- Custom Dockerfile for Easypanel
- Start command: node dist/server/entry.mjs

Security notes:
⚠️  CHANGE ADMIN_PASSWORD before production deployment
⚠️  Enable HTTPS for secure cookie consent
⚠️  Consider server-side authentication for admin dashboard
2026-03-10 21:25:49 +07:00
Kunthawat Greethong
c6b56b9e26 Fix: Change text-xs and text-sm to text-base 2026-03-04 13:37:40 +07:00
Kunthawat Greethong
34e5625a17 Redesign: Complete AI transformation with new branding
Features:
- New 5-color palette (Yellow, Black, Blue, Purple, Teal)
- White footer with updated navigation
- Homepage redesigned with Hero, Tech Stack, Process, FAQ, Blog sections
- 4 new AI service pages (Strategy, Automation, Training, Analytics)
- Modern effects: glass morphism, hover animations, gradients
- Removed all 'รับปรึกษา ฟรี' CTAs, replaced with Phone/Line
- Updated content to AI Transformation theme
- Port changed to 80 for Easypanel deployment

Breaking Changes:
- Old service pages removed (replaced with AI-focused services)
- Layout structure updated with new color variables
- CSS completely rewritten with new design system
2026-03-04 00:15:08 +07:00
Kunthawat Greethong
80e0c0406f Update: use port 80 with serve package 2026-03-03 23:36:45 +07:00
Kunthawat Greethong
7a64054475 Add Easypanel deployment guide with manual steps 2026-03-03 22:58:25 +07:00
Kunthawat Greethong
4aadcbad34 Add deployment scripts and Easypanel guide 2026-03-03 22:17:09 +07:00
Kunthawat Greethong
06b81dc99c Update: correct Gitea repository URL 2026-03-03 21:26:49 +07:00
Kunthawat Greethong
a578dd5a30 Initial commit: MoreminiMore redesign with Astro 2026-03-03 21:18:55 +07:00