refactor(inquiries): Update form validation and error handling

- Change required fields in inquiries form to enforce mandatory input
- Enhance API error handler to provide user-friendly messages without exposing raw server text
- Improve test cases for API error handling to ensure accurate message mapping and validation
- Refactor error messages for clarity and consistency across the application
This commit is contained in:
AmirReza Jamali
2026-04-13 08:37:22 +03:30
parent 1ee57a4ec1
commit 8518c2c140
4 changed files with 380 additions and 115 deletions
+2 -2
View File
@@ -4,9 +4,9 @@ import Image from "next/image";
import Link from "next/link";
import { ToastContainer, Zoom } from "react-toastify";
import "../../globals.css";
import { Suspense } from "react";
import GoogleAnalytics from "@/app/_components/GoogleAnalytics";
import "@/app/globals.css";
import { Suspense } from "react";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],