Skip to content

feat: drag-to-reorder dashboard sections#51

Closed
Death-Watcher wants to merge 3 commits into
Xndr2:mainfrom
Death-Watcher:pr/drag-reorder-sections
Closed

feat: drag-to-reorder dashboard sections#51
Death-Watcher wants to merge 3 commits into
Xndr2:mainfrom
Death-Watcher:pr/drag-reorder-sections

Conversation

@Death-Watcher

@Death-Watcher Death-Watcher commented May 19, 2026

Copy link
Copy Markdown
Contributor

Description

Enable drag-to-reorder for dashboard sections using the existing useSettingsSortable hook:

  • Drag handle — Each section gets a grip handle (ChevronGripIcon) on the left side. Hover reveals the handle; cursor changes to grab/grabbing.
  • Drop indicators — Translucent drop-line elements appear between sections during a drag, with the active slot highlighted.
  • Persistence — The new section order is saved to the sectionOrder preference immediately on reorder via setPreference.

Type of Change

  • New feature

How to Test

  • npm install && npm run build
  • Deploy to Spicetify
  • Open Listening Stats dashboard
  • Hover any section — the grip handle should appear
  • Drag a section up or down — drop lines should indicate the target position
  • Refresh the page — the custom order should persist

Checklist

  • Tested locally with npm run build (no errors)
  • All 1188 tests pass (npx vitest run)
  • TypeScript strict (npx tsc --noEmit)
  • No sensitive data included

Files Changed

  • src/app/App.tsxuseSettingsSortable integration, drag UI rendering, data attributes
  • src/app/styles.css.dashboard-* classes for drag handle, drop lines, section layout

Enable drag-to-reorder for dashboard sections using the existing
useSettingsSortable hook. Each section gets a grip handle on the left
side. Drop-line indicators show where the section will land. The new
order is persisted to sectionOrder preference immediately on reorder.
@Death-Watcher Death-Watcher force-pushed the pr/drag-reorder-sections branch 2 times, most recently from ee54594 to ab8ec30 Compare May 19, 2026 19:38
@Xndr2

Xndr2 commented May 22, 2026

Copy link
Copy Markdown
Owner

Not a needed front end feature. Dragging works in the settings menu, which feels more user friendly. Making the dashboard overall less cluttered.
You can update the settings dragging if you like

@Xndr2 Xndr2 closed this May 22, 2026
@Death-Watcher Death-Watcher deleted the pr/drag-reorder-sections branch May 22, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants