Skip to main content

Expense UI Validation and Error Messages

Summary

Client checks are minimal; domain and command validation remain authoritative.

Audience

Frontend/backend developers, QA, support, and product owners.

Reference Content

AreaConfirmed client behaviorServer behavior
ESS createCategory required and amount greater than zeroValidates tenant, claimant, category, amount, currency, and date
Compatibility createEmployee and amount greater than zeroUses native create validation
RejectModal collects decision inputRejection reason required
Invalid lifecycleNo complete client state machineConflict returned by command
Workflow-managed decisionNo task integration in Expense screenDirect decision rejected
DeletePending presentation onlyPending and self-ownership checks
API failureToast/helper or inline page errorStructured result categories

The source-defined ESS success message follows submission. Compatibility actions show source-defined success notifications and extracted API errors. Exact downstream text can vary by route and result.

Requires confirmation

Unified error taxonomy, field-level messages, localization, retry affordances, and accessible error focus require confirmation.

Source References

  • UI/salary-ui/apps/client-hrms-portal/src/ess/EssPages.tsx
  • UI/salary-ui/apps/client-hrms-portal/src/pages/hr/HrOperationsPage.tsx
  • microservices/src/expense-service/Application/Commands/ExpenseClaimCommands.cs
  • microservices/src/expense-service/Domain/Expense/ExpenseClaim.cs

See Also

Keywords

  • Expense UI
  • Validation and Errors

Revision Information

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