feat(kanban): prove accessible local reorder

req: client_local/013\nreq: accessibility/002\nreq: accessibility/003\nreq: accessibility/004\nreq: accessibility/006\nreq: milestone/001
This commit is contained in:
slhx agent
2026-07-13 14:29:21 +02:00
parent dd5ea0827f
commit 7eb65d77c8
11 changed files with 407 additions and 48 deletions
+16
View File
@@ -1117,6 +1117,22 @@ where
key: Some(key.to_string()),
}
}
pub fn move_before(self, key: K, before: K) -> Effect {
Effect::Move {
target: ResourceRef::unscoped(self.id),
key: key.to_string(),
before: Some(before.to_string()),
}
}
pub fn move_to_end(self, key: K) -> Effect {
Effect::Move {
target: ResourceRef::unscoped(self.id),
key: key.to_string(),
before: None,
}
}
}
#[derive(Debug, Eq, PartialEq, Hash)]