Frontend mới bằng Next.js App Router
Chuẩn hóa giao diện, luồng auth và Server/Client Components để thay thế frontend HTML/JS cũ.
Bản Next.js này là nền tảng mới cho giao diện người dùng, xác thực, lịch sử chẩn đoán và tích hợp Supabase. AI inference vẫn nằm ở FastAPI để giữ đúng ranh giới trách nhiệm giữa UI và machine learning.
Next.js
App Router, Server Components và Client Components
Supabase
Auth, Database CRUD, RLS, Storage
FastAPI
Microservice AI với OpenCV + PyTorch
Trạng thái Phase 1
Chuẩn hóa giao diện, luồng auth và Server/Client Components để thay thế frontend HTML/JS cũ.
Lưu lịch sử chẩn đoán, file ảnh và quyền truy cập theo user với RLS ngay từ Phase 1.
Backend PyTorch + OpenCV tiếp tục là nơi suy luận plant/disease, frontend chỉ orchestration và hiển thị.