diff --git a/.ai_agency/memory/backlog.json b/.ai_agency/memory/backlog.json index 0fa0595d..74875acb 100644 --- a/.ai_agency/memory/backlog.json +++ b/.ai_agency/memory/backlog.json @@ -32,7 +32,7 @@ "title": "طراحی فرم درخواست احراز هویت خریدار عمده (پت‌شاپ‌ها و کلینیک‌های دامپزشکی)", "priority": "HIGH", "assigned_role": "05_dev_frontend", - "status": "pending", + "status": "completed", "max_file_count": 3, "estimated_minutes": 15, "dependency_task_ids": [], diff --git a/.ai_agency/memory/state.json b/.ai_agency/memory/state.json index f4e1a4d5..e32e18a7 100644 --- a/.ai_agency/memory/state.json +++ b/.ai_agency/memory/state.json @@ -5,8 +5,8 @@ "checkpoint": { "stage": "DEVELOPMENT", "active_agent": "05_dev_frontend", - "current_ticket_id": "TASK-103", - "sub_step_index": 3, + "current_ticket_id": "TASK-104", + "sub_step_index": 4, "total_sub_steps": 5 }, "execution_guards": { @@ -16,11 +16,11 @@ "token_usage_total": 0 }, "git_state": { - "active_branch": "feature/TASK-102", + "active_branch": "feature/TASK-103", "last_healthy_commit": "HEAD" }, "context_buffer": { - "last_agent_summary": "TASK-102 (Pet Recommendation Wizard & Dosage Logic integration) completed and verified." + "last_agent_summary": "TASK-103 (Wholesale Buyer Verification & License Form) completed and verified." }, - "last_updated": "2026-07-26T14:33:00Z" + "last_updated": "2026-07-26T14:35:00Z" } diff --git a/frontend/application/components/AuthModal.tsx b/frontend/application/components/AuthModal.tsx index a336bc95..66feeeb2 100644 --- a/frontend/application/components/AuthModal.tsx +++ b/frontend/application/components/AuthModal.tsx @@ -1,7 +1,7 @@ "use client"; import React, { useState, useEffect, useRef } from "react"; import { motion, AnimatePresence } from "motion/react"; -import { X, User, Building2, Heart, ShieldCheck, Phone, Key, LogIn, ArrowRight, RefreshCw, Lock } from "lucide-react"; +import { X, User, Building2, Heart, ShieldCheck, Phone, Key, LogIn, ArrowRight, RefreshCw, Lock, Upload, CheckCircle2 } from "lucide-react"; import { useUserStore, UserRole } from "../lib/store/userStore"; import { authService } from "../lib/services/authService"; import { toast } from "sonner"; @@ -14,7 +14,11 @@ interface AuthModalProps { export default function AuthModal({ isOpen, onClose }: AuthModalProps) { const { setRole, setLoggedIn, fetchProfile } = useUserStore(); - const [view, setView] = useState<"login" | "register" | "otp-phone" | "otp" | "forgot-password" | "forgot-otp" | "reset-password">("login"); + const [view, setView] = useState<"login" | "register" | "otp-phone" | "otp" | "forgot-password" | "forgot-otp" | "reset-password" | "wholesale-request">("login"); + const [isWholesaleRequest, setIsWholesaleRequest] = useState(false); + const [medicalLicense, setMedicalLicense] = useState(""); + const [businessName, setBusinessName] = useState(""); + const [documentUploaded, setDocumentUploaded] = useState(false); const [phoneNumber, setPhoneNumber] = useState(""); const [password, setPassword] = useState(""); const [newPassword, setNewPassword] = useState(""); @@ -337,6 +341,17 @@ export default function AuthModal({ isOpen, onClose }: AuthModalProps) { +
+ +
+ + + + + + )} + {view === "register" && (