Skip to content

Add flatten mode to topic tree #564

@bracyw

Description

@bracyw

Description

Add a flatten mode toggle to the graph sidebar topic tree. When active, the tree renders as a flat list with nodes displayed as (system name)...(base topic name) instead of the nested hierarchy. This is a building block for other views like a selected-topics-only mode.

Acceptance Criteria

  • Flatten mode toggle is visible in the topic tree header
  • Activating flatten mode renders a flat node list (no nesting) showing (system name)...(base topic name)
  • Node selection behavior unchanged — clicking toggles selection on/off
  • Toggling flatten mode off returns to normal tree with selection state preserved

Proposed Solution

Add a flattenMode signal to the sidebar components. When active, derive a flat node list from the existing tree built by dataTypesToNodes() in utils/dataTypes.utils.ts. Add the toggle button near the existing search input in the sidebar header.

Metadata

Metadata

Assignees

Labels

angular-clientDevelopment Focused in the FrontenddifficultA task most likely involving researchnew featureNew feature or request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions