feat(assets): add/remove UI for asset relationships #419
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-233-asset-relationships-add-remove"
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?
The asset detail Relationships card was read-only: relationships fetched from GET /assets/{id}/relationships rendered as static badge+link rows with no way to create or remove them.
Add an "Add" action on the card that opens a modal (AssetPicker for the related/child asset, Select for the relationship type: Depends On / Hosts / Connected To / Contains) and POSTs to /assets/{id}/relationships, plus a per-row Remove (trash) button that confirms via ConfirmDialog and DELETEs /asset-relationships/{id}. Both refresh the relationships list and the audit log on success. The flow mirrors the MAPPS-231 credentials add/remove pattern, including the MAPPS-357 server-down disabling of the mutate controls.
RemoteRelationship now also deserializes the row
id(optional, so a row without one just renders no Remove button) needed to address the delete endpoint.#MAPPS-233
The asset detail Relationships card was read-only: relationships fetched from GET /assets/{id}/relationships rendered as static badge+link rows with no way to create or remove them. Add an "Add" action on the card that opens a modal (AssetPicker for the related/child asset, Select for the relationship type: Depends On / Hosts / Connected To / Contains) and POSTs to /assets/{id}/relationships, plus a per-row Remove (trash) button that confirms via ConfirmDialog and DELETEs /asset-relationships/{id}. Both refresh the relationships list and the audit log on success. The flow mirrors the MAPPS-231 credentials add/remove pattern, including the MAPPS-357 server-down disabling of the mutate controls. RemoteRelationship now also deserializes the row `id` (optional, so a row without one just renders no Remove button) needed to address the delete endpoint. #MAPPS-233