Skip to content

fix(panel): add up/down buttons to chore reorder dialog#385

Merged
tempus2016 merged 1 commit into
mainfrom
fix/panel-reorder-arrow-buttons
Jun 7, 2026
Merged

fix(panel): add up/down buttons to chore reorder dialog#385
tempus2016 merged 1 commit into
mainfrom
fix/panel-reorder-arrow-buttons

Conversation

@tempus2016

Copy link
Copy Markdown
Owner

Summary

The admin panel's Chore Order dialog (Manage → Children → Chore Order, and the global chore reorder) only supported native HTML5 drag-and-drop. Native DnD never fires on touchscreens, so reordering was completely broken on phones/tablets — and drag was the only method even on desktop.

Fix

Added up/down arrow buttons to each reorder row — the same reliable, accessible, cross-device pattern already shipping in taskmate-reorder-card.js. The buttons work on mouse, touch, and keyboard. Existing drag-and-drop is left untouched for desktop users.

  • First row's ▲ and last row's ▼ are disabled at the edges.
  • Reuses the existing reorder.move_up / reorder.move_down translation keys (already present in every locale) — no new strings.

Testing

  • Move logic unit-tested (move down/up, edge no-ops, unknown id, disabled-edge rendering) — all pass.
  • node --check clean; click wiring mirrors the panel's existing data-act delegation.

Fixes #383

The admin panel's Chore Order dialog (Manage > Children > Chore Order and
the global chore reorder) relied solely on native HTML5 drag-and-drop.
Native DnD never fires on touchscreens, so reordering was impossible on
phones/tablets and was the only available method on desktop.

Add up/down arrow buttons to each reorder row — the same reliable,
accessible, cross-device pattern already used in taskmate-reorder-card.js.
Existing drag-and-drop is unchanged for desktop. Reuses the existing
reorder.move_up / reorder.move_down translation keys (present in all
locales).

Fixes #383
@tempus2016 tempus2016 merged commit 85f2c9e into main Jun 7, 2026
2 checks passed
@tempus2016 tempus2016 deleted the fix/panel-reorder-arrow-buttons branch June 7, 2026 12:33
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.

[Bug]: Chore Order in Admin Panel is not working

1 participant