- content/vault/: _index.md, diff.md, session.md, status.md, tasks.md, wikilinks.md - content/docs/: _index.md, introduction, tokens, reset, semantic-html, components, data-attributes, navigation, layouts, charts, chroma, accordion-dialog 96 pages build clean (was 36). Docs use sidebar nav + TOC layout. Vault uses sidebar with section fallback (no vault menu configured yet). URLs fixed: playground refs → asw.trentuna.com. Closes: asw#12, asw#9
38 lines
816 B
Markdown
38 lines
816 B
Markdown
---
|
|
title: "Tasks"
|
|
description: "Render task lists with semantic state: done, wip, blocked, todo."
|
|
section: vault
|
|
prev-url: ""
|
|
prev-title: ""
|
|
next-url: "wikilinks/"
|
|
next-title: "Wikilinks"
|
|
type: vault
|
|
date: 2026-04-09
|
|
tags: ["vault", "tasks", "reference"]
|
|
ai-disclosure: "generated"
|
|
ai-model: "claude-sonnet-4-5"
|
|
ai-provider: "Anthropic"
|
|
|
|
---
|
|
|
|
## Overview
|
|
|
|
Use `data-task` on list items to convey task state without CSS classes.
|
|
|
|
```html
|
|
<ul>
|
|
<li data-task="done">Completed item</li>
|
|
<li data-task="wip">Work in progress</li>
|
|
<li data-task="blocked">Blocked item</li>
|
|
<li data-task="todo">Not started</li>
|
|
</ul>
|
|
```
|
|
|
|
## States
|
|
|
|
| Value | Meaning |
|
|
|-------|---------|
|
|
| `done` | Completed — green check |
|
|
| `wip` | In progress — amber |
|
|
| `blocked` | Blocked — red |
|
|
| `todo` | Not started — muted |
|