Skip to content

Make table headers draggable and save column order #26

@techmore

Description

@techmore

Table headers (columns) in the asset/results table should be draggable to allow users to reorder columns according to their preferences. The custom column order should be saved and persisted across sessions.

Current state:

  • Table columns are fixed in order
  • No ability to reorder columns
  • Column preferences not saved

Desired functionality:

  • Implement drag-and-drop for table headers
  • Allow reordering of columns (IP, Hostname, MAC, Vendor, etc.)
  • Save column order in localStorage or user preferences
  • Restore saved column order on page load
  • Maintain functionality when columns are reordered

Implementation details:

  • Use a JavaScript library like SortableJS or native HTML5 drag-and-drop API
  • Store column order in localStorage
  • Update table rendering to respect saved order
  • Ensure sorting and filtering still work with reordered columns

Location: Modify table rendering in and related JavaScript for the results table.

This enhancement will improve user experience by allowing customization of the table layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions