Skip to content

[FE-38] Build asset relationship and CMDB dependency view — link assets and visualise dependencies #975

Description

@yusuftomilola

Overview

Enterprise IT teams need to map relationships between assets (e.g., this server is hosted in that rack, this laptop connects via that docking station). A CMDB-style dependency view lets users link assets together and visualise the impact if one fails.

Context

  • A new AssetRelationship entity is needed on the backend (not currently defined in any existing issue — add a backend issue reference here or create it as part of this work)
  • For the frontend: a graph visualisation library such as react-flow or d3 may be needed
  • Accessible from the asset detail page as a new "Dependencies" tab

Acceptance Criteria

  • Add a "Dependencies" tab to the asset detail page
  • Visualise the asset's relationships as a node graph: the current asset at the centre, related assets as nodes connected by labelled edges (relationship type: DEPENDS_ON, CONTAINS, CONNECTED_TO, REPLACES)
  • "Add Relationship" button: opens a modal with asset search and relationship type selector
  • Clicking a related asset node navigates to that asset's detail page
  • "Remove Relationship" button per edge
  • Fallback table view if graph rendering is not supported (mobile browsers)
  • New API endpoints needed: POST /assets/:id/relationships, GET /assets/:id/relationships, DELETE /assets/:id/relationships/:relId

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions