Skip to content

[P1/doc-drift] FR-9.2.2 hierarchical folders and drag-drop reordering — categories are flat strings #334

Closed

Description

@EVWorth

Context

DESIGN_REQUIREMENTS FR-9.2.2 (docs/design/DESIGN_REQUIREMENTS.md:553) requires hierarchical folders and drag-and-drop reordering.

Problem

The implementation has a flat list of category names ("Uncategorized", "Reports", "Monitoring") with no nested structure. Hierarchical folders would require a tree of categories (e.g., Reports / Daily / Weekly / Monthly); the data model doesn't support that. No drag-and-drop handlers exist.

Files

  • src/stores/favoritesStore.ts:28 (categories: string[])
  • src/components/favorites/QueryFavorites.tsx

Expected

A user creates a folder Reports / Daily and drops a favorite into it; the sidebar shows the nested hierarchy; the favorite is stored with the full path.

Proposed fix

Scope L — replace categories: string[] with categories: TreeNode<{ id, name, children }>[]; add hierarchy UI in the sidebar (expand/collapse nested folders); add drag-and-drop using HTML5 DnD or a small library. Alternatively, downgrade the spec to "flat folders" in the doc-keeper sweep.

Acceptance

A user creates a folder Reports / Daily and drops a favorite into it; the sidebar shows the nested hierarchy; the favorite is stored with the full path.

Needs human verify

yes

Doc drift

DESIGN_REQUIREMENTS FR-9.2.2

Activity

  1. added
    audit
    severity/p1
    kind/doc-drift
    area/favorites
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/favoritesauditkind/doc-driftseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions