fix(ui): use DS::Pill for the background-jobs queue chip#2804
fix(ui): use DS::Pill for the background-jobs queue chip#2804rsnetworkinginc wants to merge 1 commit into
Conversation
The queue-status chips on the super-admin background jobs console used a hand-rolled rounded-full/px/py span instead of the design-system pill primitive. Render them through DS::Pill (badge mode, neutral tone) so the chips pick up the DS palette, border, and text scale like every other status badge. Addresses Finding 1 of the DS Drift Patrol report in we-promise#2745.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe background jobs console now renders each queue entry with the reusable ChangesBackground jobs UI
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related issues
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Reviewed the diff against Component usage — correct. Semantic meaning preserved — confirmed. The pre-PR chip never varied color by queue state (size/latency) — it was always the same flat i18n — no new user-facing strings; One visual regression worth flagging: the original Everything else (params, tone semantics, i18n) looks clean. Generated by Claude Code |
PR body — we-promise/sure — account: rsnetworkinginc (PR #2 on this repo)
Branch:
fix/ds-pill-background-jobs-queue-chip(in WSL clone/root/sure, commit58053fe4, based onorigin/main@6b6ae0ca)Title:
fix(ds): render background-jobs queue chips with DS::PillSummary
Addresses Finding 1 of the DS Drift Patrol report in #2745.
The queue-status chips on the super-admin background jobs console (
app/views/settings/background_jobs/show.html.erb:33, added in #2682) hand-roll the pill pattern with a rawrounded-full bg-container-inset px-3 py-1span. That same PR's review cycle already fixed two other Drift Patrol comments before merge — this chip was the instance that slipped through.What changed
DS::Pill(badge mode —marker: false— with the:neutralsemantic tone), replacing the hand-rolled span. One template, 1 chip block, no logic changes.text-xsDS scale. The chip picks up the pill primitive's standard border/palette treatment (soft gray) instead of the rawbg-container-inset; the bespokefont-monostyling is dropped since the pill primitive owns typography — this is the intended DS conformance.Test plan
bin/rails test— full suite green (5,920 runs, 23,808 assertions, 0 failures, 0 errors).bin/rails test test/controllers/settings/background_jobs_controller_test.rb— green (renders this view with stubbed Sidekiq queues).bundle exec erb_lint app/views/settings/background_jobs/show.html.erb— no offenses.bin/rubocop— clean;bin/brakeman— no warnings.Checklist for opening: base =
main, allow edits from maintainers ON. Do NOT use closing keywords (#2745 has a second finding covered separately) — reference it as "Addresses Finding 1 of #2745".Summary by CodeRabbit