Skip to main content

Attendance UI Validation and Error Messages

Summary

UI validation combines client checks, readonly-state evaluation, protected-route behavior, and backend error responses.

Audience

  • Frontend/backend developers, QA engineers, support engineers, and product owners

Reference Content

AreaConfirmed UI behaviorAuthority
Missing tenant / permissionProtected route or API errorGuard plus backend
Missing employeeSelection/self-context checksUI plus backend
Invalid/future/readonly dateDay-cell readonly reason; reopen server restrictionUI plus backend
Duplicate AttendanceNo dedicated client checkBackend/application; Requires confirmation
Invalid hoursNumeric/form schema checks are partialBackend
Invalid Shift/policyRequired name and threshold ordering checksUI plus backend
Overlapping assignmentNo assignment UIBackend only
Missing profileRoster/employee context may be absentSafe empty/error state
Payroll lockReopen approval API errorBackend
Invalid transitionAction availability plus API errorBackend
Duplicate/future reopenAPI-derived errorBackend
Network/server failureInline error and toast fallbackUI
Permission deniedUnauthorized page or API errorGuard plus backend

Exact backend messages can differ between compatibility and extracted-service paths; tests should assert categories unless a contract fixes the text.

Source References

  • UI/salary-ui/apps/client-hrms-portal/src/pages/AttendanceStatus.tsx
  • UI/salary-ui/apps/client-hrms-portal/src/pages/hr/PayrollFeaturePages.tsx
  • microservices/src/attendance-service/Application/Services/AttendanceCommands.cs
  • microservices/src/attendance-service/Application/Services/ReopenRequestWorkflow.cs

See Also

Keywords

  • Attendance UI
  • React
  • User workflow

Revision Information

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