testsAndMisc/docs/superpowers/contracts/i3blocks-leisure-live-2026-10-19.json
Krzysztof kuhy Rudnicki 66321e555b i3blocks: 🛋 Leisure label and hidden SHADOW block once leisure is live
Phase 2 of the leisure rollout, dormant until daily-limits' cache says
"leisure_active": true. gaming_budget.sh then labels the block
"🛋 Leisure" (short "🛋", same colour logic, stale state keeps the label);
leisure_shadow.sh prints nothing so i3bar hides it. A missing, false or
non-boolean key keeps today's output.

Also: gaming_budget.sh floors generated_at and says "no data" for a
non-numeric one; a fractional timestamp used to make it exit 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dsh4Znwh2KnC7q6vbGpX1N
2026-10-19 16:22:02 +02:00

13 lines
1.1 KiB
JSON

{
"title": "i3blocks: leisure labels and hidden SHADOW block once the leisure budget is live",
"objective": "Build the i3blocks half of leisure Phase 2 dormant: when daily-limits' cache has leisure_active true, gaming_budget.sh shows '🛋 Leisure' with the same colour logic and leisure_shadow.sh prints nothing; a missing key keeps current behaviour; both always exit 0 and stay shellcheck clean.",
"acceptance_criteria": [
"leisure_active true: gaming_budget full text starts '🛋 Leisure', short text '🛋', colours unchanged (green/yellow/orange/red/grey)",
"leisure_active true: leisure_shadow prints 0 lines and exits 0, even for stale/no-data caches",
"leisure_active missing/false/null/non-boolean: output identical to before",
"gaming_budget exits 0 on a fractional or non-numeric generated_at"
],
"out_of_scope": ["daily-limits itself (own repo)", "enforcer and extension behaviour"],
"verifier": "linux_configuration/tests/test_i3blocks_gaming_budget.sh, test_i3blocks_leisure_shadow.sh, test_i3blocks_efficiency.sh, shellcheck, pre-commit"
}