Skip to content

fix(settings): reserve skill badges for attention - #11413

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/hide-uptodate-skills-label
Jul 29, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/hide-uptodate-skills-label

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Hide healthy, loading, and optional not-installed skill badges from the Settings sidebar so navigation stays quiet.
  • Keep actionable freshness badges visible: Update available when Orca can update the skill and Review skill when a copy needs manual attention.
  • Preserve the detailed skill-card status while aligning its manual-review copy with the sidebar.

Screenshots

Healthy, loading, and not-installed skill rows stay quiet; the unrelated Optional account badge remains. Verified in the live Electron build in both dark and light themes.

Dark theme:

Settings sidebar with healthy skill labels hidden in dark theme

Light theme:

Settings sidebar with healthy skill labels hidden in light theme

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Added or updated high-quality tests that would catch regressions

Focused validation:

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/settings/SettingsSidebar.test.tsx src/renderer/src/components/skills/SkillFreshnessStatusPill.test.tsx — 11 passed
  • pnpm run typecheck:web — passed
  • Changed-file oxlint and React Doctor — passed
  • pnpm run verify:localization-catalog — passed
  • pnpm run verify:localization-coverage — passed
  • pnpm run check:max-lines-ratchet — passed
  • Dev renderer/main/preload build and manual Settings smoke test — passed

AI Review Report

Reviewed the status filtering and copy against the freshness-state contract introduced in #10436. The main risks checked were accidentally hiding actionable update states, presenting a manual-repair state as an automatic update, and suppressing unrelated static badges. The implementation narrows visible install statuses to update-available and needs-attention; tests cover hidden healthy/presence states, both visible attention states, and the preserved Optional badge.

Cross-platform compatibility was explicitly reviewed for macOS, Linux, and Windows. This is renderer-only status presentation: it changes no shortcuts or shortcut labels, paths, shell behavior, Electron APIs, Git commands, host routing, SSH behavior, or folder-workspace behavior.

Security Audit

No new input handling, command execution, path handling, authentication, secrets, dependencies, IPC, network access, or persisted state. The change only filters already-derived status values and updates localized display copy. No security follow-up is needed.

Notes

Review skill intentionally remains distinct from Update available: the former can represent stale duplicates, edited copies, inaccessible paths, or other conditions Orca's updater cannot safely resolve.

@greptile-apps

greptile-apps Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR tightens the Settings sidebar by hiding non-actionable skill status badges (installed, up-to-date, checking, not-installed) and surfacing only the two states that require user action: Update available and Review skill. It also renames the needs-attention label from "Needs attention" to "Review skill" across the sidebar, the skill freshness pill, and all locale files.

  • Introduces a VisibleInstallStatus discriminated type and an isVisibleInstallStatus guard in SettingsSidebar.tsx, replacing per-status class logic with a single constant amber style string.
  • Updates SkillFreshnessStatusPill.tsx and all five locale files to reflect the new "Review skill" copy; non-English locales already carried English fallback text for this key, so there is no translation regression.

Confidence Score: 5/5

Safe to merge — renderer-only presentation filtering with no data, IPC, or state changes.

The change is purely UI: it filters which status badges appear in the sidebar and updates a single copy string. The type narrowing via VisibleInstallStatus is sound, the switch is exhaustive, typecheck and localization checks passed, and the tests explicitly cover every hidden state (install, installed, up-to-date, checking) and both visible states (update-available, needs-attention). No business logic, data paths, or security-sensitive code is touched.

Files Needing Attention: No files require special attention.

Important Files Changed

Filename Overview
src/renderer/src/components/settings/SettingsSidebar.tsx Adds VisibleInstallStatus type + isVisibleInstallStatus guard to hide non-actionable badges; narrows installStatusLabel to only amber attention states; simplifies installStatusClassName from a per-status function to a constant string.
src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx Single label change: "Needs attention" → "Review skill" for the needs-attention status pill; no logic changes.
src/renderer/src/components/settings/SettingsSidebar.test.tsx Adds checking and needs-attention fixture entries; updates test to assert all hidden statuses (install, installed, up-to-date, checking) are absent and both actionable labels (Update available, Review skill) are present, while Optional badge is preserved.
src/renderer/src/components/skills/SkillFreshnessStatusPill.test.tsx Single assertion updated to match the new "Review skill" copy for the needs-attention state.
src/renderer/src/i18n/locales/en.json Updates needsAttention translation key from "Needs attention" to "Review skill" in the English canonical locale.
src/renderer/src/i18n/locales/es.json Updates needsAttention value from "Needs attention" to "Review skill" — both are English; this key was already untranslated before this PR, so no regression.
src/renderer/src/i18n/locales/ja.json Same untranslated English fallback update as es.json (Needs attention → Review skill).
src/renderer/src/i18n/locales/ko.json Same untranslated English fallback update as es.json (Needs attention → Review skill).
src/renderer/src/i18n/locales/zh.json Same untranslated English fallback update as es.json (Needs attention → Review skill).

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[section.installStatus] --> B{isVisibleInstallStatus?}
    B -- "update-available\nneeds-attention" --> C[Show amber badge]
    C --> D{"update-available?"}
    D -- yes --> E["'Update available'"]
    D -- no --> F["'Review skill'"]
    B -- "install / installed\nup-to-date / checking\nundefined" --> G{section.badge?}
    G -- yes --> H["Show static badge\n(e.g. 'Optional')"]
    G -- no --> I[No badge rendered]
Loading

Reviews (2): Last reviewed commit: "test(settings): cover hidden checking ba..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

SettingsSidebar now displays install-status pills only for update-available and needs-attention, using the labels “Update available” and “Review skill” with a fixed amber style. Sidebar tests cover both visible and hidden statuses. The skill freshness pill and its English, Spanish, Japanese, Korean, and Chinese translations now use “Review skill” for the needs-attention state, with its test updated accordingly.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely summarizes the sidebar badge visibility change.
Description check ✅ Passed The description matches the template with Summary, Screenshots, Testing, AI Review Report, Security Audit, and Notes filled in.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
src/renderer/src/components/settings/SettingsSidebar.test.tsx (1)

141-148: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Test doesn't exercise the checking hidden state.

The new test covers install/installed/up-to-date (hidden) and update-available/needs-attention (visible), but not checking, which isVisibleInstallStatus also hides. Coverage for the other three hidden statuses already exercises the same code path, so this is a minor gap.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 447e3934-6472-4627-8910-384adad71ef7

📥 Commits

Reviewing files that changed from the base of the PR and between dde72f8 and 4755580.

📒 Files selected for processing (9)
  • src/renderer/src/components/settings/SettingsSidebar.test.tsx
  • src/renderer/src/components/settings/SettingsSidebar.tsx
  • src/renderer/src/components/skills/SkillFreshnessStatusPill.test.tsx
  • src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

@brennanb2025
brennanb2025 merged commit 5c8013a into main Jul 29, 2026
25 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* fix(settings): reserve skill badges for attention

* test(settings): cover hidden checking badge
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