Repository navigation
fix(sidebar): remove redundant host badges in every grouping - #31744
Conversation
702b96f to
d7c33f3
Compare
ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d426c151-dd69-48ab-94e9-f115a9ff1f02
📥 Commits
Reviewing files that changed from the base of the PR and between ad0bf9a and 702b96f36524e80d598f650fe2c6c017f2e2c01f.
📒 Files selected for processing: 3
mobile/src/host-screen/host-sidebar-feed-sections.test.tssrc/renderer/src/components/sidebar/host-section-context-labels.test.tssrc/shared/sidebar-list/host-section-rows.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
d365eb2 to
d45dbe6
Compare
ELI5
A machine's name appears once in its sidebar header instead of repeating on every card below it.
What Changed
When host sections are rendered, the shared host-section builder clears redundant host labels from workspace cards and imported/external-worktree notices. This applies to Status, Project, PR, and None grouping, including pinned occurrences. Mixed-host lists without host headers keep their badges.
The source rows remain intact, so switching views restores labels wherever they are needed. Desktop and the mobile sidebar feed use the same rule. Mobile health badges remain visible as health-only badges under host headers, including disconnected SSH hosts.
Why
Follow-up to #31233, which reduced machine labels on project headers. Card badges still repeated the enclosing host header, including “Local Mac” in Status grouping.
Linked Issue
User-reported sidebar clutter; related PRs: #31233 and #28250.
Visual Proof
Actual hidden Electron renderer on macOS, with seeded local and SSH workspace data in Status grouping.
Before:
After:
Testing
pnpm tc:web, mobiletypecheck,pnpm run check:code-quality:changed,pnpm run verify:localization-catalogs, andgit diff --checkpassed.Review
Self-reviewed row ownership, collapsed sections, folder workspace handling, and source-row immutability. No IPC/schema, platform-specific, provider-specific, or filesystem behavior changes.
Agent skill upstream boundary
Notes
The shared mobile feed inherits the presentation fix. Host health controls remain available.
Updated both host-section golden fixtures for the intended badge removal (300 rows; no other snapshot changes). Fixed an existing queued-message editor test mock to retain the translation module exports needed by its dependencies; this was an unrelated full-suite failure. Also retired one unused Portuguese localization entry left by #30393, which otherwise failed the catalog gate on the current main branch.
Checklist
d45dbe68d1cecd666321e72c67e6642955980956.