From 8f2623b15e4a6220b77e586afec5ffd767d669be Mon Sep 17 00:00:00 2001 From: Abizrh Date: Sun, 31 Aug 2025 17:28:11 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20docs=20(readme):=20add=20validat?= =?UTF-8?q?ion=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 694ddf34..a74b7773 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,16 @@ The basic development workflow follows these steps: - Pages load the appropriate flow from `components/flow/`. - They do not contain UI or logic directly, just route level layout or guards. +### Validation + +- UI level validation in `components/app`. help users avoid mistakes before submitting. + - Lightweight/instant validation related to UX. + - Basic formatting (email regex, numeric-only, password length). + - Showing error messages directly under the field. + +- Business level validation in `components/flow`. cannot rely only on the UI, since it often requires server-side checks or rules that may change. + - More complex validation rules tied to business logic. + ## Code Conventions - Under the script setup block, putting things in group with the following order: