{"name":"task-rows","title":"Task Rows","description":"","kind":"block","category":"agent","status":"beta","props":{"variant":{"type":"enum","values":["capsules","list"],"default":"capsules"},"rows":{"type":"array","items":{"key":"string","label":"string","amount":"string","status":"done | running | failed","step":"number?","details":"{ label, meta }[]"},"description":"Rows in order; the host updates status as work progresses. A row appended later enters without a stagger delay."},"open":{"type":"array","model":true,"description":"Keys of expanded rows. Each row is a collapsible: aria-expanded on its trigger, data-state on the row."},"labels":{"type":"object","description":"{ completed, failed, running }"},"appear":{"type":"boolean","default":false,"description":"Whether the rows present at mount fade up, staggered. Off by default: set it on the list your code adds live, never on one rendered from history or with the page (a mount is not an arrival). Rows added after mount enter either way."}},"playground":{"name":"Playground","props":{"variant":"capsules","open":["notes"],"rows":[{"key":"tests","label":"Ran the test suite","amount":"412 tests","status":"done","details":[{"label":"Unit tests","meta":"388/388"},{"label":"Playwright smoke tests","meta":"24/24"}]},{"key":"preview","label":"Deployed the preview of harbor/web","amount":"2m 14s","status":"done","details":[{"label":"Compiled 1,284 modules","meta":"48s"},{"label":"Uploaded assets","meta":"18.2 MB"}]},{"key":"notes","label":"Writing the release notes","amount":"23 PRs","status":"running","step":3,"details":[{"label":"Grouped merged pull requests","meta":"23"},{"label":"Drafting the summary","meta":"2 of 4"}]}]}},"exampleFiles":[{"file":"capsules","title":"Agent preparing a release"},{"file":"list","title":"Month-end close, as a list"},{"file":"failed-step","title":"Import stopped on one file"},{"file":"live-progress","title":"Triage running step by step"}],"worstCase":[{"name":"40 long rows","props":{"variant":"capsules","open":["r1"],"rows":[{"key":"r0","label":"Reconcile invoice batch 01 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"12,480 line items","status":"done","step":1,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"12,480/12,480"}]},{"key":"r1","label":"Reconcile invoice batch 02 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"24,960 line items","status":"running","step":2,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"24,960/24,960"}]},{"key":"r2","label":"Reconcile invoice batch 03 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"37,440 line items","status":"failed","step":3,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"37,440/37,440"}]},{"key":"r3","label":"Reconcile invoice batch 04 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"49,920 line items","status":"done","step":4,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"49,920/49,920"}]},{"key":"r4","label":"Reconcile invoice batch 05 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"62,400 line items","status":"running","step":5,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"62,400/62,400"}]},{"key":"r5","label":"Reconcile invoice batch 06 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"74,880 line items","status":"failed","step":6,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"74,880/74,880"}]},{"key":"r6","label":"Reconcile invoice batch 07 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"87,360 line items","status":"done","step":7,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"87,360/87,360"}]},{"key":"r7","label":"Reconcile invoice batch 08 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"99,840 line items","status":"running","step":8,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"99,840/99,840"}]},{"key":"r8","label":"Reconcile invoice batch 09 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"112,320 line items","status":"failed","step":9,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"112,320/112,320"}]},{"key":"r9","label":"Reconcile invoice batch 10 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"124,800 line items","status":"done","step":10,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"124,800/124,800"}]},{"key":"r10","label":"Reconcile invoice batch 11 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"137,280 line items","status":"running","step":11,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"137,280/137,280"}]},{"key":"r11","label":"Reconcile invoice batch 12 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"149,760 line items","status":"failed","step":12,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"149,760/149,760"}]},{"key":"r12","label":"Reconcile invoice batch 13 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"162,240 line items","status":"done","step":13,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"162,240/162,240"}]},{"key":"r13","label":"Reconcile invoice batch 14 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"174,720 line items","status":"running","step":14,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"174,720/174,720"}]},{"key":"r14","label":"Reconcile invoice batch 15 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"187,200 line items","status":"failed","step":15,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"187,200/187,200"}]},{"key":"r15","label":"Reconcile invoice batch 16 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"199,680 line items","status":"done","step":16,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"199,680/199,680"}]},{"key":"r16","label":"Reconcile invoice batch 17 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"212,160 line items","status":"running","step":17,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"212,160/212,160"}]},{"key":"r17","label":"Reconcile invoice batch 18 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"224,640 line items","status":"failed","step":18,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"224,640/224,640"}]},{"key":"r18","label":"Reconcile invoice batch 19 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"237,120 line items","status":"done","step":19,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"237,120/237,120"}]},{"key":"r19","label":"Reconcile invoice batch 20 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"249,600 line items","status":"running","step":20,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"249,600/249,600"}]},{"key":"r20","label":"Reconcile invoice batch 21 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"262,080 line items","status":"failed","step":21,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"262,080/262,080"}]},{"key":"r21","label":"Reconcile invoice batch 22 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"274,560 line items","status":"done","step":22,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"274,560/274,560"}]},{"key":"r22","label":"Reconcile invoice batch 23 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"287,040 line items","status":"running","step":23,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"287,040/287,040"}]},{"key":"r23","label":"Reconcile invoice batch 24 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"299,520 line items","status":"failed","step":24,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"299,520/299,520"}]},{"key":"r24","label":"Reconcile invoice batch 25 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"312,000 line items","status":"done","step":25,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"312,000/312,000"}]},{"key":"r25","label":"Reconcile invoice batch 26 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"324,480 line items","status":"running","step":26,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"324,480/324,480"}]},{"key":"r26","label":"Reconcile invoice batch 27 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"336,960 line items","status":"failed","step":27,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"336,960/336,960"}]},{"key":"r27","label":"Reconcile invoice batch 28 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"349,440 line items","status":"done","step":28,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"349,440/349,440"}]},{"key":"r28","label":"Reconcile invoice batch 29 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"361,920 line items","status":"running","step":29,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"361,920/361,920"}]},{"key":"r29","label":"Reconcile invoice batch 30 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"374,400 line items","status":"failed","step":30,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"374,400/374,400"}]},{"key":"r30","label":"Reconcile invoice batch 31 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"386,880 line items","status":"done","step":31,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"386,880/386,880"}]},{"key":"r31","label":"Reconcile invoice batch 32 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"399,360 line items","status":"running","step":32,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"399,360/399,360"}]},{"key":"r32","label":"Reconcile invoice batch 33 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"411,840 line items","status":"failed","step":33,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"411,840/411,840"}]},{"key":"r33","label":"Reconcile invoice batch 34 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"424,320 line items","status":"done","step":34,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"424,320/424,320"}]},{"key":"r34","label":"Reconcile invoice batch 35 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"436,800 line items","status":"running","step":35,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"436,800/436,800"}]},{"key":"r35","label":"Reconcile invoice batch 36 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"449,280 line items","status":"failed","step":36,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"449,280/449,280"}]},{"key":"r36","label":"Reconcile invoice batch 37 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"461,760 line items","status":"done","step":37,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"461,760/461,760"}]},{"key":"r37","label":"Reconcile invoice batch 38 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"474,240 line items","status":"running","step":38,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"474,240/474,240"}]},{"key":"r38","label":"Reconcile invoice batch 39 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"486,720 line items","status":"failed","step":39,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"486,720/486,720"}]},{"key":"r39","label":"Reconcile invoice batch 40 of 40 against the Northwind Industries Holdings (EMEA) purchase-order ledger","amount":"499,200 line items","status":"done","step":40,"details":[{"label":"Matched supplier tax identifiers against the master vendor registry for every subsidiary","meta":"499,200/499,200"}]}]}},{"name":"No rows","props":{"variant":"list","rows":[]}},{"name":"One long word","props":{"variant":"list","open":["w"],"rows":[{"key":"w","label":"Supercalifragilisticexpialidociousreconciliationjobidentifier","amount":"1","status":"failed","details":[{"label":"Supercalifragilisticexpialidociousreconciliationstep","meta":"99,999,999"}]}]}},{"name":"Right-to-left","props":{"variant":"capsules","open":["a"],"labels":{"completed":"مكتمل","failed":"فشل","running":"قيد التشغيل"},"rows":[{"key":"a","label":"التحقق من سجلات الموردين","amount":"12 موردًا","status":"done","details":[{"label":"مطابقة المعرّفات الضريبية","meta":"12/12"}]},{"key":"b","label":"صياغة رسائل الموردين","amount":"رسالتان","status":"running","step":3,"details":[{"label":"متابعة مورد الأقماع","meta":"مسودة"}]}]}}],"anatomy":[{"part":"root","element":"div","description":"data-variant capsules | list"},{"part":"row","element":"div","repeat":true,"description":"A collapsible (variant row) with this class on its root: its trigger is the whole row (badge · label · status · amount in the trigger's label part, then the caret), its region holds the detail grid. data-state=open|closed on the row from the engine; the capsule radius follows it."},{"part":"badge","element":"span","description":"24px aria-hidden slot; the mark or the ring replace each other in place"},{"part":"mark","element":"span","optional":true,"description":"22px filled badge, data-tone green | red; scales in from 0.5 on a status swap"},{"part":"ring","element":"span","optional":true,"description":"24px progress ring; data-active spins (also under reduced motion)"},{"part":"ring-track","element":"circle","optional":true},{"part":"ring-arc","element":"circle","optional":true},{"part":"step","element":"span","optional":true,"description":"step number inside the ring"},{"part":"label","element":"span","description":"Truncates; full text in title"},{"part":"amount","element":"span","description":"Tabular figures, never truncated"},{"part":"status","element":"span","description":"role=status live region that stays mounted; holds a status-pill (sm; green Completed, red Failed + retry glyph) or, while running, sr-only words. Sits before the amount so a pill that arrives moves nothing"},{"part":"detail-grid","element":"div"},{"part":"rail","element":"span"},{"part":"detail-list","element":"div"},{"part":"detail","element":"div","repeat":true},{"part":"detail-label","element":"span"},{"part":"detail-meta","element":"span"}],"events":{"toggleRow":"(key: string, open: boolean)","openChange":"(keys: string[]) (React; Vue/Svelte through v-model:open / bind:open)"},"states":["row-hover","row-press","row-focus-visible","row-open","running","failed","done"],"tokens":["color.surface","color.ink","color.ink-2","color.ink-3","color.line","color.green","color.red","color.on-accent","shadow.card","radius.card","radius.window","text.xs","font.mono","easing.out-strong","duration.base","duration.press","duration.reveal","duration.enter","duration.stagger","motion.stagger-max","text.sm"],"a11y":{"keyboard":["Tab moves through the row triggers","Enter / Space expand or collapse a row; focus stays on the trigger"],"notes":["Each trigger is a real button with aria-expanded and aria-controls pointing at its details.","Status text sits in a role=status region per row that stays mounted; the pill inside it is swapped, so a change (running → failed → completed) is announced once. While running the region holds a visually hidden 'Running'.","The badge slot (mark, ring, step number) is aria-hidden.","Collapsed details are visibility: hidden, so they are not read out."]},"motion":["mount: nothing plays unless appear is set; with appear, rows present at first render fade up over duration.enter (easing.out-strong, fill both), staggered by duration.stagger and capped at motion.stagger-max; a row added after mount always enters, with no delay","expand / collapse: each row's collapsible reveals the details (its reveal recipe; instant from the keyboard); the detail lines do not enter again; the capsule radius morphs 22 → radius.window over duration.reveal easing.out-strong and the caret turns from right to down over duration.move","status swap: transitions armed by data-ready (never first paint), interruptible: a new mark scales in from 0.5 with opacity (duration.press / duration.base), a ring fades in, a status-pill arrives out of opacity 0 + blur(2px) over duration.base; the pill sits before the amount, so nothing to its right moves","loops: the running ring spins (1.1s linear) and keeps spinning under reduced motion; the retry glyph on a failed pill is static","hover (gated) and press: the collapsible trigger's (--fndn-hover, --fndn-hover-2)"]}