Skip to content

refactor(fetcher): rename sysinfo fetchers to prefix_suffix convention - #57

Merged
unhappychoice merged 1 commit into
mainfrom
feat/system-fetcher-rename
Apr 22, 2026
Merged

unhappychoice merged 1 commit into
mainfrom
feat/system-fetcher-rename

Conversation

@unhappychoice

Copy link
Copy Markdown
Owner

Summary

Rename the sysinfo-backed fetchers to the prefix_suffix registry convention so their names match the module layout (same pattern as clock_* / git_*).

old new
cpu_load system_cpu
memory system_memory
uptime system_uptime
load_average system_load
process_top system_processes
disk disk_usage
  • Only the registry names change; Rust struct names (CpuLoadFetcher, DiskFetcher, …) stay put — internal symbols, separate rename if we want full symmetry.
  • Breaking for user configs that reference the old names. No alias layer (clean break matches the project's no-shim preference). Same-PR migration of the bundled src/default_config.toml and the repo's dogfood .splashboard/config.toml.
  • Doc pages under docs-site/src/content/docs/reference/ are generated by cargo xtask and gitignored, so only source changes land here; CI regenerates the catalog.

Ticks the system_* / disk_usage rows under Rename tracking in #41.

Test plan

  • cargo test (297 + 12 passed)
  • cargo clippy --all-targets -- -D warnings (clean)
  • cargo xtask regenerates reference/ with new names present and old names gone
  • Manual smoke: splashboard with the dogfood config renders the System showcase rows (cpu / memory / uptime / load / processes / disk)

🤖 Generated with Claude Code

Align registry names with the `prefix_suffix` module layout already
used by `clock_*` and `git_*` so fetcher names mirror their source
modules:

- `cpu_load`      → `system_cpu`
- `memory`        → `system_memory`
- `uptime`        → `system_uptime`
- `load_average`  → `system_load`
- `process_top`   → `system_processes`
- `disk`          → `disk_usage`

Struct names (`CpuLoadFetcher`, `DiskFetcher`, …) unchanged — internal
symbols, rename can follow later if we want full symmetry.

Config impact: user configs referencing the old fetcher names must
update to the new names. No alias layer — clean break, consistent with
the project's no-shim preference.

Docs under `docs-site/src/content/docs/reference/` are generated by
`cargo xtask` and gitignored, so the PR only carries source changes;
CI regenerates the catalog.

Refs #41.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@unhappychoice has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 32 minutes and 25 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 32 minutes and 25 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f2678c32-1753-4a05-bcdd-630c0c1b4a7c

📥 Commits

Reviewing files that changed from the base of the PR and between e0e56e5 and fdfa2d0.

📒 Files selected for processing (6)
  • .splashboard/config.toml
  • AGENTS.md
  • src/default_config.toml
  • src/fetcher/mod.rs
  • src/fetcher/system.rs
  • src/runtime.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/system-fetcher-rename

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@unhappychoice
unhappychoice merged commit ca79625 into main Apr 22, 2026
5 checks passed
@unhappychoice
unhappychoice deleted the feat/system-fetcher-rename branch April 22, 2026 10:19
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.

1 participant