feat(assets): wire Assets list, create, detail (CMDB) to the backend (MAPPS-129) #92
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mapps-129-wire-assets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Wires the Assets page (
src/pages/assets.rs) to the CMDB API (PMS-71). It was hardcoded template: fixed "Exchange Server 01 / Acme Corp" list rows, a decorative mock New Asset submit, and a detail page of fake System Information (hostname/IP/OS/CPU), Recent Alerts, Related Tickets, and RMM Integration that the API doesn't provide.Closes MAPPS-129.
How
/assets):GET /api/v1/assets, with type names from/asset-typesand company names from/contacts/companies. Real table (name, type, company, serial/tag, status badge), client-side name/serial search, loading/empty/failed states./assets/new): realPOST /api/v1/assetswith type + company pickers from the live lists and the fields the API has (name, type, company, serial, manufacturer, model, warranty). Dropped the location/notes inputs (no API column)./assets/:id):GET /api/v1/assets/:idfor the info + status sidebar, plus the CMDB surfaces - relationships, configuration items, credentials, and the audit log. Config items and credentials render as secret-free summaries; each row has a Reveal button that calls the audited single-item endpoint (GET /configuration-items/:id,GET /credentials/:id) on demand and shows the decrypted value inline. This matches the PMS-71 model: lists never carry secrets, and every reveal is server-recorded. The fake System Information / Alerts / Related Tickets / RMM cards are gone.Dependencies / notes
Stacked on #88 / #89 / #91
Built on the MAPPS-126/127/128 projects branch. Until those merge, this PR's diff also shows their changes. Merge #88, #89, #91 first, then this.
Verification
cargo fmt --checkclean;cargo clippy --target wasm32-unknown-unknown --all-targets -- -D warningsclean.GET /assetsand/asset-types-> 200; confirmed/credentials/:idreveal 404s on the current (pre-#128) server, i.e. the dependency is real.🤖 Generated with Claude Code