5 Commits

Author SHA1 Message Date
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
github-actions[bot]
d06690963c sync: Add files via upload (A@f3f0916866583911d315136c8b16f45e6a96c236) 2026-06-04 15:56:19 +00:00
github-actions[bot]
e713fcbf18 sync: Add files via upload (A@e5347bf93cdb38c0fdf86271231c0e884465195a) 2026-05-28 06:28:50 +00:00
github-actions[bot]
3f7377b142 sync: Add files via upload (A@87b0a27431d8596edf55a7e623f944ca2f39f234) 2026-05-28 05:54:23 +00:00
github-actions[bot]
6517a3f4cd sync: update auto sync (A@67794d69b70f7d291333020c5ffd071a7836d177) 2026-05-26 05:15:10 +00:00