Skip to content

Convert cosmoz-treenode-navigator to haunted/lit. #113

@megheaiulian

Description

@megheaiulian

Convert the cosmoz-treenode-navigator component to haunted.

cosmoz-treenode-navigator has the following structural components/parts:

  • path - the node/tree path
  • input - used as query text to search for nodes -> use cosmoz-input instead
  • list - a iron-list elemenet to show a virtualized list of nodes -> just render them all / not virtualized
  • a retry button - to search globally -> use a simple html button element.

Conversion approach:

  1. Extract as much code as possible in pure functions (e.g. _normalizeNodes, _getNode)
  2. create a TreeNodeNavigator function/component and convert the template
  3. write a useTreeNodeNavigator() function linking all the pure functions and render related code

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions