Skip to content

tree views do not provide a search option #62

@akelch

Description

@akelch

Description

In Admin, tree/list views do not provide a search option for entries by name or tag.

Example use case: searching for an entry containing "frequ".

A direct request works for leaf entries:

/vi/question/list/leaf?search=frequ

However, there is no UI search available at this location.

Expected Behavior

The Admin UI should provide a search function for tree/list structures.

When searching, the result should include:

  • matching nodes
  • matching leafs
  • parent nodes required to display the path to matching leafs

Technically, the search likely needs to query both endpoints:

/vi/question/list/node?search=frequ
/vi/question/list/leaf?search=frequ

Observed Behavior

There is currently no search option in the UI for this view.

Users cannot easily find entries by name or tag, even though search via request parameter works for leafs.

Technical Notes

The search result should not simply display all nodes.

Only the following nodes should be shown:

  • nodes that match the search query themselves
  • nodes that are part of the path to matching leaf results

This is more complex than a flat search but matches the expected user behavior for hierarchical data.

Acceptance Criteria

  • Tree/list views provide a search input.
  • Search queries are applied to both nodes and leafs.
  • Matching nodes are shown.
  • Matching leafs are shown.
  • Parent path nodes for matching leafs are shown.
  • Non-matching unrelated branches are hidden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions