feat(kanban): Interactive Kanban board with real-time task tracking (#83)

* feat(kanban): add Kanban board with task-manager skill, modal UI, and desk clutter

Implement a full Kanban board system for tracking agent tasks:
- Add task-manager skill with shared JSON task store for persistence
- Render board as a floating modal over the live 3D office (not immersive)
- Auto-create tasks from actionable user messages with heuristic filtering
- Sync task status through OpenClaw agent lifecycle events
- Collapse task details panel by default, expand on card click
- Add dynamic desk clutter (papers, folders, etc.) reflecting active task count
- Exclude done tasks from desk clutter count
- Extract KANBAN_CLUTTER_OFFSET for easy positioning adjustment
- Add install flow with progress bar for the task-manager skill
- Include unit and e2e test coverage

Made-with: Cursor

* feat(kanban): production-harden task board with AI-free classification, resilient persistence, and modal UX

- Harden shared task store with atomic writes, payload size limits, and server-side enum validation
- Add client resilience: request timeouts (AbortController), exponential backoff retries, poll deduplication
- Implement optimistic UI with rollback on all card mutations (update, move, archive)
- Add modal accessibility: focus trap, Escape to close, aria-modal, keyboard card navigation
- Trust OpenClaw agent lifecycle phase=start as task classification signal instead of regex heuristics
- Keep regex heuristic only as lightweight filter for direct chat events (conversational noise)
- Expand verb recognition with typo tolerance and broader action vocabulary
- Create tasks from agent runs even when no chat event is received (external channel support)
- Merge dual header bars into single bar; reposition close button outside modal corner
- Exclude done tasks from desk clutter count; make clutter position configurable via KANBAN_CLUTTER_OFFSET
- Update default furniture layout to match user configuration
- Ensure kanban_board furniture persists in local storage across sessions
- Add comprehensive test coverage for store, API route, and controller logic

Made-with: Cursor

---------

Co-authored-by: iamlukethedev <lucas.guilherme@smartwayslfl.com>
This commit is contained in:
Luke The Dev
2026-03-30 22:58:18 -05:00
committed by GitHub
parent 464a49bb6d
commit a997f13601
46 changed files with 5950 additions and 143 deletions
+14 -3
View File
@@ -5,6 +5,7 @@ import type { ReactNode } from "react";
export type HQSidebarTab =
| "inbox"
| "history"
| "kanban"
| "playbooks"
| "analytics";
@@ -19,6 +20,7 @@ type HQSidebarProps = {
onOpenCompanyBuilder?: () => void;
inboxPanel: ReactNode;
historyPanel: ReactNode;
kanbanPanel: ReactNode;
playbooksPanel: ReactNode;
analyticsPanel: ReactNode;
};
@@ -26,11 +28,12 @@ type HQSidebarProps = {
const TAB_LABELS: Record<HQSidebarTab, string> = {
inbox: "Inbox",
history: "History",
kanban: "Kanban",
playbooks: "Playbooks",
analytics: "Analytics",
};
const PRIMARY_TABS: HQSidebarTab[] = ["inbox", "history", "playbooks"];
const PRIMARY_TABS: HQSidebarTab[] = ["inbox", "history", "kanban", "playbooks"];
export function HQSidebar({
open,
@@ -43,6 +46,7 @@ export function HQSidebar({
onOpenCompanyBuilder,
inboxPanel,
historyPanel,
kanbanPanel,
playbooksPanel,
analyticsPanel,
}: HQSidebarProps) {
@@ -53,9 +57,12 @@ export function HQSidebar({
? inboxPanel
: activeTab === "history"
? historyPanel
: activeTab === "kanban"
? kanbanPanel
: activeTab === "playbooks"
? playbooksPanel
: analyticsPanel;
const boardLikeWidth = activeTab === "kanban";
return (
<aside className="pointer-events-none fixed inset-y-0 right-0 z-20 flex justify-end">
@@ -108,7 +115,11 @@ export function HQSidebar({
</div>
{open ? (
<div className="pointer-events-auto flex h-full w-56 flex-col border-l border-cyan-500/20 bg-black/85 shadow-2xl backdrop-blur">
<div
className={`pointer-events-auto flex h-full flex-col border-l border-cyan-500/20 bg-black/85 shadow-2xl backdrop-blur ${
boardLikeWidth ? "w-[min(94vw,1180px)]" : "w-56"
}`}
>
<div className="border-b border-cyan-500/15 px-4 py-3">
<div className="font-mono text-[10px] font-semibold tracking-[0.32em] text-cyan-300/80">
{analyticsOnly ? "ANALYTICS" : "HEADQUARTERS"}
@@ -151,7 +162,7 @@ export function HQSidebar({
<div
role="tablist"
aria-label="Headquarters panels"
className="grid grid-cols-3 border-b border-cyan-500/15"
className="grid grid-cols-4 border-b border-cyan-500/15"
>
{PRIMARY_TABS.map((tab) => {
const isActive = tab === activeTab;