LearnNewsExamplesServices
Frontmatter
id7202
titlePhase 1: Foundational Sorting
stateOpen
labels
enhancementno auto close
assigneestobiu
createdAtAug 21, 2025, 12:04 AM
updatedAtNov 19, 2025, 3:01 PM
githubUrlhttps://github.com/neomjs/neo/issues/7202
authortobiu
commentsCount1
parentIssue7201
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]

Phase 1: Foundational Sorting

Openenhancementno auto close
tobiu
tobiu commented on Aug 21, 2025, 12:04 AM

The primary goal of this phase is to implement the core reordering functionality with a standard visual proxy.

  1. Restructure Viewport:

    • In apps/colors/view/Viewport.mjs, wrap the GridContainer, PieChartComponent, and BarChartComponent each within a Neo.container.Panel.
    • This will provide distinct header elements to serve as drag handles.
  2. Develop Container.SortZone:

    • Create a new, reusable SortZone class tailored for generic containers (e.g., src/draggable/container/SortZone.mjs).
    • This class will extend Neo.draggable.DragZone.
    • It will be created by refactoring the logic from the existing Neo.draggable.toolbar.SortZone to work with any vbox or hbox layouts. The toolbar.SortZone will then be updated to extend this new container-level class.
  3. Integration:

    • Instantiate the new Container.SortZone within the Colors.view.Viewport to activate the drag-and-drop functionality on the new panels.
    • The panel headers will be configured with the .neo-draggable class to act as the delegate target for the SortZone.
tobiu assigned to @tobiu on Aug 21, 2025, 12:04 AM
tobiu added parent issue #7201 on Aug 21, 2025, 12:04 AM
tobiu added the enhancement label on Aug 21, 2025, 12:04 AM
tobiu referenced in commit f9a9947 - "#7202 draggable.container.DragZone, draggable.container.SortZone" on Aug 21, 2025, 12:09 AM
tobiu referenced in commit 81579aa - "#7202 Colors.view.Viewport: using 3 panels as wrappers (drag handles)" on Aug 21, 2025, 12:27 AM
tobiu removed the stale label on Nov 19, 2025, 3:01 PM
tobiu added the no auto close label on Nov 19, 2025, 3:01 PM