OrganonTweaks: per-column persistent sort -- number-aware title sort + sticky toggle (v1.9.0)
This commit is contained in:
@@ -162,7 +162,7 @@ class Plugin extends Base
|
||||
|
||||
public function getPluginVersion()
|
||||
{
|
||||
return '1.8.6';
|
||||
return '1.9.0';
|
||||
}
|
||||
|
||||
public function getPluginHomepage()
|
||||
|
||||
25
README.md
25
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.
|
||||
|
||||
Reference in New Issue
Block a user