Skip to content

Resources tree view additional features #1840

@tdruez

Description

@tdruez

Navigation

  • 1. Display the current path above the right pane table. PR: add path breadcrumbs and copy-to-clipboard button in resource_table_view #1851

    • Follow the style of the resource details view header
    • Add a "copy path" icon action (also available in the resource details view header )
  • 2. Track the current browsing path in the browser URL. PR: Track the current browsing path in the browser URL #1853

    • Update the URL when navigating nodes in the left pane
    • Ensure page refresh restores the same context
    • Implement with htmx (see the built-in functions)
  • 3. Add a ".." (go to parent directory) entry as the first row in the right-side table

    • Do not display for root directories
  • 4. Add a "Go to file" type search, similar to this GitHub view: https://github.com/aboutcode-org/scancode.io/tree/main/scancodeio

    • Add the search input above the tree nodes.
    • Let's start simple, return the first 30 results, sorted by path, by doing a basic database lookup in the Resources path of the project. (We can add regex support in a future enhancement.)
    • This requires a new view that returns the list of results and fetch it using HTMX.
    • Click on a result should behave the same as a click on one of the tree nodes.
  • 5. Load ResourceDetailsView in the right pane when clicking a file

    • Allow rendering the view without the global header context

Notes: Let's do 1 PR per item.

Metadata

Metadata

Assignees

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