From f9a7637e44bcce5331542cecddde42bdb7f111f7 Mon Sep 17 00:00:00 2001 From: Ruben Carlo Benante Date: Mon, 13 Jul 2026 10:32:04 -0300 Subject: [PATCH] OrganonTweaks: per-column persistent sort -- number-aware title sort + sticky toggle (v1.9.0) --- Plugin.php | 2 +- README.md | 25 +++++++++++++++++++++++++ VERSION | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/Plugin.php b/Plugin.php index 7647298..ea669b6 100644 --- a/Plugin.php +++ b/Plugin.php @@ -162,7 +162,7 @@ class Plugin extends Base public function getPluginVersion() { - return '1.8.6'; + return '1.9.0'; } public function getPluginHomepage() diff --git a/README.md b/README.md index 19307ce..70aafe4 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,27 @@ edits when it opens (there is no template hook, so it is done in JS, - **On by default.** Toggle it under "Settings -> Organon Tweaks". +### Persistent column sort + +Kanboard's native column sort is a one-shot physical reorder: it rewrites task positions once, so +the order already survives refreshes, but a newly created or dropped-in card lands out of order +until you sort again -- and there is no sort-by-title. This tweak replaces the per-column sort +control with one that: + +- adds a **number-aware Title sort** (A to Z / Z to A), so "Task 2" sorts before "Task 10"; +- adds a **Persistent sort: ON / OFF** toggle. When ON, the column is re-sorted (server-side, + physically) whenever a card is dropped into it or created in it, so it **stays** sorted; when + OFF it behaves exactly like the native one-shot sort. + +The header icon shows the state: the native double-arrow when persistent is OFF, and a **red +single arrow** (up for ascending, down for descending) when it is ON. + +- Reorders reuse core's `TaskReorderModel` for the native criteria (id / priority / assignee / + due date) and add the title sort; the sticky re-apply runs on the move / creation events. +- The control is injected via the `template:board:column:dropdown` hook + `Asset/js/relocate.js` + (which also hides the native sort menu). Per-column state lives in project metadata. +- **On by default.** Toggle it under "Settings -> Organon Tweaks". + ## Settings Global (per Kanboard instance) and admin-only, under "Settings -> Organon Tweaks", grouped as on @@ -118,6 +139,10 @@ the page: - **Show keyboard shortcuts on the task menu** -- default on. - **Clicking a task title opens the edit form** -- default on. +**Board columns** + +- **Per-column persistent sort** -- default on. + Standalone: - **Keep the board scroll position across refreshes** -- default on. diff --git a/VERSION b/VERSION index 0955410..888fe7d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -OrganonTweaks v1.8.6 +OrganonTweaks v1.9.0