Skip to content

fix(examples): taskmanager reactive headers with signals#84

Merged
kolkov merged 1 commit intomainfrom
fix/taskmanager-headers
Apr 29, 2026
Merged

fix(examples): taskmanager reactive headers with signals#84
kolkov merged 1 commit intomainfrom
fix/taskmanager-headers

Conversation

@kolkov
Copy link
Copy Markdown
Contributor

@kolkov kolkov commented Apr 29, 2026

Summary

Collapsible section headers showed static text (CPU 0%, Disk 0 (C:) 0%) that never updated.

Added state.Signal[string] for each header, updated by simulation goroutine at 1 Hz. Headers now display live percentages matching chart data.

Fixes #82

Test plan

  • go build ./examples/taskmanager/
  • Visual: CPU/Memory/Disk headers update every second

Collapsible headers CPU/Memory/Disk showed static text (e.g. 'CPU 0%')
that never updated. Added state.Signal[string] for each header, updated
by runSimulation at 1 Hz via signal.Set(). Headers now display live
percentages matching chart data.

Fixes #82
@kolkov kolkov merged commit 4bfea60 into main Apr 29, 2026
8 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov kolkov mentioned this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Taskmanager

1 participant