{
 "id": "kanban-column",
 "name": "Kanban column",
 "purpose": "One board column with its count and add button, holding task cards with labels, due date, assignee, comments and subtask progress; one card is lifted mid-drag.",
 "use_when": [
  "on a task board",
  "any pipeline of items moving through a few named stages, such as hiring or support tickets"
 ],
 "avoid_when": [
  "many items compared by several fields at once: use receipts-table",
  "a single task's steps in order: use setup-steps or agent-steps",
  "a timeline of events: use activity-feed"
 ],
 "type": "data",
 "style": "dense",
 "width": "narrow",
 "tags": {
  "audience": "work",
  "industries": [
   "productivity",
   "saas",
   "devtools"
  ],
  "keywords": [
   "kanban",
   "board",
   "cards",
   "tasks",
   "drag and drop"
  ]
 },
 "root": ".odl-kanban-column",
 "parts": [
  {
   "name": "status",
   "selector": ".odl-status",
   "what": "a coloured dot for the column's stage",
   "slot": "none"
  },
  {
   "name": "title",
   "selector": ".odl-head h3",
   "what": "the column's name, followed by the card count",
   "slot": "text"
  },
  {
   "name": "count",
   "selector": "h3 > span",
   "what": "how many cards are in the column",
   "slot": "number"
  },
  {
   "name": "header_actions",
   "selector": ".odl-icon-btn",
   "what": "add a card and column options",
   "slot": "action"
  },
  {
   "name": "cards",
   "selector": ".odl-card",
   "what": "one task card; one can be lifted as if being dragged",
   "slot": "list"
  },
  {
   "name": "id",
   "selector": ".odl-id",
   "what": "the task's short code",
   "slot": "text"
  },
  {
   "name": "card_title",
   "selector": ".odl-title",
   "what": "what the task is",
   "slot": "text"
  },
  {
   "name": "labels",
   "selector": ".odl-tag",
   "what": "one label with a coloured dot",
   "slot": "list"
  },
  {
   "name": "progress",
   "selector": ".odl-progress",
   "what": "a bar and a count of subtasks done",
   "slot": "number"
  },
  {
   "name": "due",
   "selector": ".odl-foot time",
   "what": "the due date; red when overdue",
   "slot": "text"
  },
  {
   "name": "comments",
   "selector": ".odl-foot > span:not(.odl-spacer)",
   "what": "how many comments the card has",
   "slot": "number"
  },
  {
   "name": "assignee",
   "selector": ".odl-avatar",
   "what": "the photo of the person it is assigned to",
   "slot": "media"
  },
  {
   "name": "add",
   "selector": ".odl-add",
   "what": "adds a card at the bottom of the column",
   "slot": "action"
  }
 ],
 "data": {
  "type": "object",
  "required": [
   "title",
   "cards"
  ],
  "properties": {
   "title": {
    "type": "string",
    "maxLength": 20,
    "part": "title"
   },
   "status": {
    "enum": [
     "warning",
     "info",
     "success",
     "neutral"
    ],
    "part": "status"
   },
   "count": {
    "type": "number",
    "part": "count"
   },
   "cards": {
    "type": "array",
    "minItems": 0,
    "maxItems": 8,
    "part": "cards",
    "items": {
     "type": "object",
     "required": [
      "title"
     ],
     "properties": {
      "id": {
       "type": "string",
       "maxLength": 10
      },
      "title": {
       "type": "string",
       "maxLength": 80
      },
      "labels": {
       "type": "array",
       "minItems": 0,
       "maxItems": 3,
       "items": {
        "type": "object",
        "required": [
         "text"
        ],
        "properties": {
         "text": {
          "type": "string",
          "maxLength": 14
         },
         "kind": {
          "enum": [
           "bug",
           "billing",
           "api",
           "design"
          ]
         }
        }
       }
      },
      "subtasks_done": {
       "type": "number"
      },
      "subtasks_total": {
       "type": "number"
      },
      "due": {
       "type": "string",
       "format": "date",
       "maxLength": 10
      },
      "overdue": {
       "type": "boolean"
      },
      "comments": {
       "type": "number"
      },
      "assignee": {
       "type": "object",
       "required": [
        "name"
       ],
       "properties": {
        "name": {
         "type": "string",
         "maxLength": 40
        },
        "photo": {
         "type": "string",
         "maxLength": 300
        }
       }
      },
      "dragging": {
       "type": "boolean"
      },
      "subtasks_share": {
       "type": "number"
      }
     }
    }
   },
   "add_label": {
    "type": "string",
    "maxLength": 16,
    "part": "add"
   },
   "add_hint": {
    "type": "string",
    "maxLength": 120
   }
  }
 },
 "states": {
  "shown": [
   "hover",
   "focus",
   "dragging",
   "overdue",
   "done subtasks"
  ],
  "edge": {
   "empty": {
    "status": "handled",
    "evidence": "data-od-list",
    "how": "the Smart UI renderer puts one plain 'Nothing to show yet.' line in an empty list"
   },
   "loading": {
    "status": "handled",
    "evidence": "data-od-slot",
    "how": "the Smart UI renderer draws each marked slot as a quiet block of its size while the data arrives; the static file shows the filled part"
   },
   "error": {
    "status": "not_built",
    "how": "if a move fails, put the card back where it was and show toast-stack with the reason"
   },
   "disabled": {
    "status": "not_built",
    "how": "for a column the person cannot change, hide Add card and the add button and set the cards to cursor default"
   },
   "overflow": {
    "status": "not_built",
    "how": "a long column grows the page; give the card list a max height and overflow-y: auto so it scrolls in its own box"
   },
   "long_text": {
    "status": "handled",
    "how": "card titles wrap inside the card; labels and footer items stay on one line each and wrap as a group",
    "evidence": "odl-labels { display: flex; flex-wrap: wrap"
   },
   "missing_image": {
    "status": "handled",
    "evidence": "data-od-media",
    "how": "the Smart UI renderer swaps a photo that fails to load for a block of the same size with its alt text"
   }
  }
 },
 "tokens": [
  "--ds-border-width-default",
  "--ds-color-bg-danger-bold",
  "--ds-color-bg-danger-subtle",
  "--ds-color-bg-info-bold",
  "--ds-color-bg-inverse",
  "--ds-color-bg-neutral-subtle",
  "--ds-color-bg-neutral-subtle-hover",
  "--ds-color-bg-success-bold",
  "--ds-color-bg-warning-bold",
  "--ds-color-border-accent",
  "--ds-color-border-default",
  "--ds-color-border-focus",
  "--ds-color-border-strong",
  "--ds-color-border-subtle",
  "--ds-color-icon-default",
  "--ds-color-icon-subtle",
  "--ds-color-surface-raised",
  "--ds-color-surface-sunken",
  "--ds-color-text-danger",
  "--ds-color-text-primary",
  "--ds-color-text-secondary",
  "--ds-color-text-tertiary",
  "--ds-elevation-overlay",
  "--ds-elevation-raised",
  "--ds-focus-ring-offset",
  "--ds-focus-ring-width",
  "--ds-font-weight-label",
  "--ds-icon-stroke-md",
  "--ds-motion-duration-short",
  "--ds-motion-easing-standard",
  "--ds-radius-container",
  "--ds-radius-control",
  "--ds-radius-detail",
  "--ds-radius-full",
  "--ds-radius-nested",
  "--ds-radius-person",
  "--ds-size-control-sm",
  "--ds-size-icon-lg",
  "--ds-size-icon-sm",
  "--ds-size-target-min",
  "--ds-space-2",
  "--ds-space-20",
  "--ds-space-4",
  "--ds-space-6",
  "--ds-space-8",
  "--ds-space-inline-sm",
  "--ds-space-inline-xs",
  "--ds-space-inset-lg",
  "--ds-space-inset-md",
  "--ds-space-inset-sm",
  "--ds-space-inset-xs",
  "--ds-space-stack-md",
  "--ds-space-stack-xs",
  "--ds-text-body-md",
  "--ds-text-code-sm",
  "--ds-text-label-lg",
  "--ds-text-label-md",
  "--ds-text-label-sm",
  "--ds-text-title-md"
 ],
 "a11y": {
  "summary": "Cards are focusable list items with a described keyboard-move hint; progress bars are role=progressbar with values, and counts have screen-reader words.",
  "roles": [
   "list",
   "progressbar",
   "region"
  ],
  "keyboard": [
   "Tab moves through the add and options buttons, then each card, then Add card",
   "Enter or Space presses the focused button; a focused card has no action of its own"
  ],
  "controls": {
   "button": 3,
   "input": 0,
   "link": 0,
   "select": 0,
   "textarea": 0,
   "summary": 0
  },
  "focus_visible": true,
  "reduced_motion": true,
  "min_target": true
 },
 "files": {
  "html": "components/kanban-column/component.html",
  "bytes": 15766,
  "script": false
 },
 "source": null,
 "photos": 3,
 "urls": {
  "html": "https://opendesigner.dev/library/kanban-column.html",
  "json": "https://opendesigner.dev/library/kanban-column.json",
  "page": "https://opendesigner.dev/library/kanban-column/"
 },
 "get": {
  "curl": "curl -fsSLo kanban-column.html https://opendesigner.dev/library/kanban-column.html",
  "opendesigner": "python3 path/to/skills/opendesigner/scripts/library.py add kanban-column --from https://opendesigner.dev",
  "prompt": "Add the OpenDesigner component kanban-column to this project: https://opendesigner.dev/library/kanban-column.html. Keep its markup and states; map its --ds-* variables to my tokens."
 }
}
