6 Commits

Author SHA1 Message Date
Chever John
df0d490a42
Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	Dockerfile
2026-06-23 09:34:08 +08:00
Chever John
a4914dd14c
fix: ensure devDependencies install for webpack build
Copy .npmrc for registry mirror, set NODE_ENV=development during
npm ci to ensure webpack (devDep) is installed, use npx webpack
for build step.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:23:29 +08:00
Chever John
6558d137d9
fix: use --legacy-peer-deps for npm ci
Resolves peer dependency conflict with @testing-library/react-hooks
and @types/react versions.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:18:45 +08:00
Chever John
5591c705de
fix: use Harbor base images for CI builds
Docker Hub unreachable from k3s cluster. Switch Dockerfile to pull
node and nginx base images from Harbor registry.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:17:38 +08:00
Chever John
e399f0070e
feat: add Dockerfile and GitLab CI pipeline for Harbor
Multi-stage Docker build: node:20-alpine + nginx:1.27-alpine.
CI builds and pushes to harbor-in-k3s.cheverjohn.me/iloom/iloom-frontend.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:01:55 +08:00
Chever John
b1c2c33aa2
refactor: replace Supabase SDK with self-hosted REST API client layer
WHY: migrating from Supabase BaaS to self-hosted iloom backend
(Go microservices) deployed on K3s. Supabase client and realtime
subscriptions no longer applicable.

HOW:
- add src/api/ layer (client.ts, auth.ts, purchaser.ts, textile.ts,
  washing.ts, websocket.ts) targeting iloom-gateway REST endpoints
- rewrite all hooks (usePlanData, useInventoryData, useDashboardData,
  useRealtime, etc.) to use new API client instead of Supabase queries
- rewrite all page/component data fetching and mutations accordingly
- delete src/supabase/client.ts, remove @supabase/supabase-js dep
- add Dockerfile (multi-stage node build + nginx) and nginx.conf
  with reverse proxy to iloom-gateway for /api/ and /ws/ routes
- adjust webpack.config.js for API_URL environment variable injection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-14 12:38:47 +08:00