What this page does
This page lets operators change the category order with drag and drop and then save the new ordering explicitly.
The page loads a fixed first page of categories, sorts that loaded set by current order, lets the operator reorder it locally, and sends the resulting category id sequence when Save Order is clicked.
When to use it
- change how categories appear in the curated catalog order
- review whether a recent order change should be reverted
- discard unsaved drag changes before leaving the reorder page
How the page works
The page loads up to 100 categories, sorts them by Order, and displays a reorderable table with Drag, ID, Name, Status, and Order columns.
Dragging a row changes local order only. The page shows an unsaved-changes message and enables Save Order and Reset Order after the local order differs from the originally loaded order.
Reset Order restores the originally loaded local order. It does not submit a saved order change.
Save Order sends the current local category id sequence to the save flow. On success, the page shows a success message and returns to the category list after a short delay.
Known caveats
- The page loads only the first 100 categories in the verified code path.
- The search input filters the loaded local list, not the full saved catalog.
- Dragging while search is active can be confusing because the visible filtered indexes are used against the local reorder list.
- Dragging items does not publish the order until Save Order is used.
- Reset Order restores the original loaded list for the current session.
- The verified order save starts per-category order updates asynchronously; if the list looks stale immediately after save, refresh after a moment before making another order decision.