testsAndMisc/docs/superpowers/evidence/i3blocks-focus-project-2026-11-02.json
2026-11-02 08:20:15 +01:00

30 lines
1.4 KiB
JSON

{
"intent": "kuhy sees the active focus project in i3bar: a focus_project block renders the focus field daily-limits now writes to its cache.",
"scope": [
"linux_configuration/i3blocks/focus_project.sh, the [focus_project] stanza in linux_configuration/i3blocks/config, linux_configuration/tests/test_i3blocks_focus_project.sh",
"Non-goal: no focus logic here (focus_project.status() decides); daily-limits owns the cache"
],
"changes": [
"New block: `🎯 <name> <minutes>/<daily_minutes>`, green at the daily target, hidden with no project or a missing/stale/garbage cache; jq re-parse only on cache mtime change",
"Stanza has signal=11 so daily-limits can refresh it with pkill -RTMIN+11 -x i3blocks"
],
"verification": [
{
"command": "bash linux_configuration/tests/test_i3blocks_focus_project.sh",
"result": "pass",
"evidence": "focus_project block: all checks passed"
},
{
"command": "bash ~/.config/i3blocks/focus_project.sh (live cache after daily-limits.service)",
"result": "pass",
"evidence": "🎯 HackerRank prep 0/120, #F1FA8C"
}
],
"risks": [
"The running i3bar loads the stanza only after its next restart; until then the poke is harmless (i3blocks 1.5 survived an unconfigured RTMIN+11)"
],
"rollback": [
"git revert the commit and remove the symlink ~/.config/i3blocks/focus_project.sh"
]
}