Skip to main content

Asset UI Validation and Feedback

Summary

Asset UI validation is client-side and minimal: the form requires asset Type and asset Name. Feedback is delivered through inline errors, confirmation modals, toasts, and empty states. The compatibility endpoints are tenant-scoped; fine-grained validation and authorization are not enforced at the backend layer the UI calls.

Audience

  • Developers implementing validation and feedback.
  • QA engineers verifying enforcement layers.
  • Support engineers interpreting errors and toasts.
  • Security engineers assessing enforcement boundaries.

Reference Content

Validation matrix

ScreenField/actionRuleUI enforcementAPI/domain enforcementError presentationBlockingSource path
Employee request formAsset TypeRequiredYes (client)Requires confirmation (tenant-scoped compat, not role-authorized)Inline "Asset type is required."YesUI/salary-ui/apps/client-hrms-portal/src/pages/hr/HrOperationsPage.tsx
Employee request formAsset NameRequiredYes (client)Requires confirmationInline name-required errorYesUI/salary-ui/apps/client-hrms-portal/src/pages/hr/HrOperationsPage.tsx
Admin create formAsset CodeUppercase transformYes (client, forced uppercase)Requires confirmationn/a (transform)NoUI/salary-ui/apps/client-hrms-portal/src/pages/hr/HrOperationsPage.tsx
Admin create formType / ConditionFixed option setYes (fixed select options)Requires confirmationn/aNoUI/salary-ui/apps/client-hrms-portal/src/pages/hr/HrOperationsPage.tsx
WorkspaceApprove / RejectConfirmation before actionYes (modal)Compat status endpointModal + toastNomicroservices/src/asset-service/Api/AssetCompatEndpoints.cs

UI-only vs API-backed vs domain vs missing

  • UI-only: required Type/Name checks, uppercase code transform, fixed dropdown option sets, confirmation modal.
  • API-backed: status change, request creation, and delete are executed against compatibility endpoints.
  • Domain: full asset domain rules (status set, conditions) exist in the backend but are not surfaced or enforced through the UI form beyond the subset shown.
  • Missing: no client-side cross-field validation beyond Type/Name; backend role authorization at the compatibility layer is not present (tenant-scoped only) — classified Requires confirmation for domain-level enforcement.

Feedback mechanisms

  • Inline field errors ("Asset type is required.", name required).
  • Confirmation modal ("Approve Asset Request" / "Approve Asset").
  • Toasts: "Asset request submitted.", "Asset issued.", "Asset rejected.", "Asset deleted."
  • Empty state: "No assets" ("No asset requests or assignments found.").

Source References

  • UI/salary-ui/apps/client-hrms-portal/src/pages/hr/HrOperationsPage.tsx
  • microservices/src/asset-service/Api/AssetCompatEndpoints.cs

See Also

Keywords

validation, feedback, toasts, inline error, confirmation modal

Revision Information

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