Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: aggregate systeminfo messages via marker interface#281

Merged
clangenb merged 1 commit into
mainfrom
aggregate-systeminfo-messages
Mar 10, 2026
Merged

refactor: aggregate systeminfo messages via marker interface#281
clangenb merged 1 commit into
mainfrom
aggregate-systeminfo-messages

Conversation

@eldara-cruncher
Copy link
Copy Markdown
Collaborator

@eldara-cruncher eldara-cruncher commented Mar 10, 2026

Summary

  • Introduces a SystemInfoMsg marker interface in the systeminfo package, implemented by all four message types (Msg, SlowStatusMsg, TickMsg, SpinnerTickMsg)
  • Collapses four identical case branches in app/update.go into a single interface match
  • New systeminfo message types now route automatically without touching the app-level router

Closes #114

Test plan

  • go build ./... passes
  • go vet ./... passes
  • go test ./... passes (including views/systeminfo)
  • Manual smoke test: system header updates CPU/MEM with spinners and trend arrows as before

🤖 Generated with Claude Code

Replaces four identical case branches in the app-level router with a
single SystemInfoMsg interface match. New systeminfo message types now
route automatically without touching app/update.go.

Closes #114

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Copy link
Copy Markdown
Collaborator

@clangenb clangenb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked, works!

@clangenb clangenb merged commit 59f41b2 into main Mar 10, 2026
11 of 17 checks passed
@eldara-cruncher eldara-cruncher deleted the aggregate-systeminfo-messages branch June 5, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

agregate systemview messages in order to simplify app's case statement

2 participants