mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 12:27:50 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Both blocks read $XDG_RUNTIME_DIR/daily-limits.json (kuhyx/daily-limits, refreshed every 60 s by a user timer) instead of curling the enforcer and duplicating the earner table. Stale or missing cache shows ⏱? rather than old numbers; unknown earners are shown with '?'; left-click opens daily-limits --gui. Steady-state tick: bash only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QrjUTo1yhgAsUUasdw4bpG
16 lines
1.0 KiB
JSON
16 lines
1.0 KiB
JSON
{
|
|
"title": "i3blocks: shutdown and gaming blocks render from the daily-limits cache",
|
|
"objective": "Both status-bar blocks show today's shutdown time, gaming budget and the unearned earners from $XDG_RUNTIME_DIR/daily-limits.json, with no earner logic duplicated in shell and no fork in the steady-state tick beyond bash itself.",
|
|
"acceptance_criteria": [
|
|
"Live output keeps the existing format (⏻ HH:MM +💪2h ... →max 23:00, 🎮 Xh left · used/budget +...)",
|
|
"A cache older than 180 s or missing shows ⏱? and never stale numbers",
|
|
"Unknown earners are shown with a ? marker, not hidden",
|
|
"test_i3blocks_gaming_budget.sh, test_i3blocks_shutdown_hint.sh and test_i3blocks_efficiency.sh pass, and pre-commit is clean"
|
|
],
|
|
"out_of_scope": [
|
|
"The daily-limits app itself (kuhyx/daily-limits)",
|
|
"Shutdown enforcement in screen-locker / digital-wellbeing"
|
|
],
|
|
"verifier": "bash linux_configuration/i3blocks/{gaming_budget,shutdown_countdown}.sh; bash linux_configuration/tests/test_i3blocks_*.sh; pre-commit run"
|
|
}
|