Skip to main content

Leave UI Validation and Error Messages

Summary

Client validation is limited and differs between ESS and the broader compatibility UI; server validation remains authoritative.

Audience

Employees, administrators, QA, support, and developers.

Reference Content

AreaConfirmed UI behaviorMaturity
Missing tenantProtected/client request context blocks or redirects some cases; exact API feedback variesTransitional
Missing/inactive employeeBroader form requires selection; server rules are authoritativePartial
Date orderESS toast and broader conflict text reject reversed datesImplemented
Before joining dateBroader UI blocks using loaded joining dateImplemented
Zero calculated daysNo client preview/check; server validationNot implemented in UI
Attendance conflictBroader UI shows confirmed conflict/check-failure textImplemented in legacy UI
Approved overlapBroader UI shows confirmed overlap textImplemented in legacy UI
Invalid Leave typeNo general client validation; server validationRequires confirmation
Missing balanceInformational empty-account message; creation is not universally blockedTransitional
Invalid transitionClient hides some actions; API remains authoritativeTransitional
Rejection reasonModal requests a reason; client does not prove non-empty enforcementPartial
Workflow restrictionNo visible workflow-aware client stateNot implemented
Cancellation restrictionClient permits self-owned Pending cancellation onlyImplemented in legacy UI
Network/server failureBroader page errors; ESS query/submit presentation has gapsPartial
Permission deniedProtectedRoute renders Unauthorized; ESS maps query 403 but Leave page omits that error propPartial

Exact messages are documented only where they are literal source text. Do not treat client messages as stable API contracts.

Source References

  • UI/salary-ui/apps/client-hrms-portal/src/pages/hr/PayrollFeaturePages.tsx
  • UI/salary-ui/apps/client-hrms-portal/src/ess/EssPages.tsx
  • microservices/src/leave-service/Application/LeaveWorkflows.cs
  • microservices/src/leave-service/Domain/Leave/LeaveDayCalculator.cs

See Also

Keywords

  • Leave UI
  • Leave UI Validation and Error Messages
  • Workforce management

Revision Information

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