Skip to main content

Asset Inventory Workspace

Summary

The asset inventory workspace is the admin asset tab's table view. It lists the assets loaded from the compatibility workspace endpoint, provides per-row actions, and offers an Excel import control for bulk upload. Lists load in full; there is no real API pagination control.

Audience

  • Developers extending the asset table and actions.
  • QA engineers validating columns, actions, and states.
  • Support engineers explaining table behaviour.
  • Solution architects reviewing data-loading semantics.

Reference Content

Table and columns

The admin table includes a Code column (assetCode) and an Asset column (assetType - assetName). In the employee-oriented view the columns become Category (assetType) and Reason (assetName). The table is rendered through the shared data-table component within the HR Operations workspace.

Row actions

Each row exposes AssetActions:

ActionEffect
ApprovePosts a status change to Issued via the compatibility status endpoint
RejectPosts a status change to Rejected via the same endpoint
DeleteRemoves the asset

An approval confirmation modal ("Approve Asset Request" / "Approve Asset") precedes approve/reject. Toasts confirm outcomes: "Asset issued.", "Asset rejected.", "Asset deleted."

Excel import

An "Assets Excel Import" control is present for admins, providing bulk upload. This is the only bulk mechanism in the UI; there are no other bulk actions.

Empty and error states

When no assets are present, the empty state shows "No assets" ("No asset requests or assignments found."). Row action outcomes surface via toasts.

Data source and full-list loading

The workspace list loads via an API GET reading res.data.assets || res.data.Assets. The list is loaded in full into the browser. There is no client-side pagination control tied to real API paging; large datasets are loaded in their entirety.

Source References

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

See Also

Keywords

asset table, row actions, excel import, empty state, full-list loading

Revision Information

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