refactor(kanban): scope card handles to partials

Move kanban card actions onto the reusable card partial, use generated render helpers for board/page composition, and remove manual handle fields plus hidden shell-level action anchors from the composed path.

req: component/003

req: view/001

req: examples/001
This commit is contained in:
slhx agent
2026-06-01 22:25:23 +02:00
parent 4d79dd4dba
commit 54dd401e8b
4 changed files with 24 additions and 38 deletions
@@ -1,10 +1,10 @@
<article class="card" +data-key="self.id">
<strong>{+ self.title +}</strong>
<menu>
<button h-if="self.left_disabled" type="button" +data-hid="self.left_handle" +data-card-id="self.id" disabled="disabled">←</button>
<button h-else type="button" +data-hid="self.left_handle" +data-card-id="self.id">←</button>
<button h-if="self.right_disabled" type="button" +data-hid="self.right_handle" +data-card-id="self.id" disabled="disabled">→</button>
<button h-else type="button" +data-hid="self.right_handle" +data-card-id="self.id">→</button>
<button type="button" +data-hid="self.delete_handle" +data-card-id="self.id">Delete</button>
<button h-if="self.left_disabled" type="button" data-slhx-handle="move_left" +data-card-id="self.id" disabled="disabled">←</button>
<button h-else type="button" data-slhx-handle="move_left" +data-card-id="self.id">←</button>
<button h-if="self.right_disabled" type="button" data-slhx-handle="move_right" +data-card-id="self.id" disabled="disabled">→</button>
<button h-else type="button" data-slhx-handle="move_right" +data-card-id="self.id">→</button>
<button type="button" data-slhx-handle="delete_card" +data-card-id="self.id">Delete</button>
</menu>
</article>