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:
| Action | Effect |
|---|---|
| Approve | Posts a status change to Issued via the compatibility status endpoint |
| Reject | Posts a status change to Rejected via the same endpoint |
| Delete | Removes 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.tsxmicroservices/src/asset-service/Api/AssetCompatEndpoints.cs
Related Articles
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