Skip to main content

Employee UI Validation and Error Messages

Summary

This catalog separates visible client checks from extracted-service validation and generic API/network error handling.

Audience

  • HR administrators, developers, QA engineers, and support engineers

Reference Content

CategoryConfirmed behaviorLayer/status
Required nameVisible client message and Basic step activationUI
Employee/login emailMust contain an email separatorUI
Temporary passwordMinimum length when manual creation is selectedUI
Direct/hourly compensationPositive annual amount or hourly rateUI
Duplicate employee codeExtracted service has tenant-scoped checkService; UI cutover transitional
Duplicate emailExtracted service has tenant-scoped checksService; UI cutover transitional
Invalid departmentExtracted service requires active referenceService
Invalid designationExtracted service requires active reference and create-time department matchService
Invalid manager/self-managerExtracted service requires active manager and prevents self-referenceService/domain
Missing tenantExtracted service validator reports missing contextService
Not foundUpdate validator and endpoints support not-found outcomesService/API
Permission deniedRoute unauthorized page; monolith can return forbiddenUI/API
Server/network failureGeneric list/save/status/document messagesUI

Exact monolith duplicate and validation text can differ from extracted-service text. Do not rely on text matching across cutover.

Error presentation

Form validation uses a shared page error and jumps to the relevant step. Save success/failure also uses toast notifications. Load and document errors use page-level or local empty states. Inputs do not have confirmed per-field error association.

Source References

  • UI/salary-ui/apps/client-hrms-portal/src/App.tsx
  • UI/salary-ui/apps/client-hrms-portal/src/pages/Labor.tsx
  • UI/salary-ui/apps/client-hrms-portal/src/utils/ProtectedRoute.tsx
  • microservices/src/employee-service/Application/Validators/EmployeeCommandValidators.cs
  • Controllers/LaborController.cs

See Also

Keywords

  • UI errors
  • validation messages
  • API failure

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-15
  • Review cycle: Quarterly