feat(islands): add board.kanban with browser update actions - #46
Merged
Conversation
Add a full-bleed kanban island that groups rows by a column field and persists card moves through a manifest update action. Extend /api/action to support match+set updates (insert remains for form.entry). Dogfood on the operations example Incident board.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a built-in
board.kanbanisland: a full-bleed kanban board (content.editor-style workspace surface) that groups dataset rows into columns and persists card moves through a manifest update action from the browser.Island config (happy path)
{ "type": "board.kanban", "dataset": "incidents", "key": "incident_id", "column": "status", "titleField": "title", "columns": ["investigating", "monitoring", "resolved"], // optional; empty columns still render "details": ["severity", "service"], // optional card meta "action": "move_incident", // mode: "update" action "span": 12 }dataset,key,column,titleField<select>→ POST{ action, match, set }→ live dataset refreshactionor setreadOnly: truemode: "update"on the same datasetInteractions
Same-column reorder is visual-only / not required (no sort field persistence).
ReUI decision
ReUI kanban was reviewed as a reference for interaction structure (columns, cards, drag overlay). We did not vendor ReUI/shadcn components — OpenIslands UI is Kumo. Implementation uses Kumo tokens + native HTML5 DnD + a select for a11y, with pure
buildBoard/planCardMovehelpers unit-tested without a DOM.Runtime write path
/api/actionwas insert-only; it now dispatches by manifest action mode:{ action, row }(form.entry, unchanged){ action, match, set }(board.kanban moves)Shares
insertRows/updateRowswith MCP so validation + checkpoints stay identical.Try it
Skeleton:
openislands add board.kanban(or CLIislandSkeleton("board.kanban")).Wiring
islandRequirements+ action mode checkTest plan
pnpm build && pnpm typecheck && pnpm test && pnpm lintpnpm validate:templatesbuildBoard/planCardMoveunit testssubmitActionupdate path rewrites CSV (runtime action tests)board.kanbanopenislands validate apps/examples— operations board OK