Repository navigation
Dim installed software in the Install menus instead of hiding it - #6955
Conversation
There was a problem hiding this comment.
Pull request overview
Adds disabled menu guards so installed software remains visible but unselectable.
Changes:
- Evaluates and renders
disabled:guards. - Skips disabled rows during navigation and search.
- Converts Install-menu visibility guards and expands tests.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
shell/plugins/menu/MenuModel.js |
Adds disabled guard modeling and evaluation. |
shell/plugins/menu/Menu.qml |
Implements disabled-row rendering and interaction. |
default/omarchy/omarchy-menu.jsonc |
Converts Install rows to disabled guards. |
test/shell.d/menu-test.sh |
Tests menu behavior and configuration. |
test/shell.d/menu-guards-test.sh |
Tests disabled guard script generation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| defaultItems | ||
| .filter(item => item.id.startsWith('install.') && item.action && /-present\b|^\[\[ !/.test(item.when)) | ||
| .map(item => item.id), |
| when: value.when || "", | ||
| checked: value.checked || "" | ||
| checked: value.checked || "", | ||
| disabled: value.disabled || "" |
There was a problem hiding this comment.
Real, but it predates this PR and isn't specific to disabled:. mergeMenuSources() copies every normalized key over the default, so a label-only override already wipes action: and when: too — on quattro today, overriding remove.browser.zen with {label: "Zen Browser"} leaves it with no action at all, a dead row.
So disabled: inherits the existing behavior rather than introducing it, and fixing the merge means deciding how an override signals "clear this field" for every field at once. That's its own change; leaving it out of this one to keep the commit atomic.
Install rows hid themselves with `when:"! <present>"`, so software you already had vanished from the very list it was installed from. Add a `disabled:` guard that keeps a row listed but dim, ✓-marked, unselectable and out of search, and move every Install row onto it. Co-Authored-By: Claude Fable 5 <[email protected]>
991ddeb to
b029e0c
Compare
…com#6955) Install rows hid themselves with `when:"! <present>"`, so software you already had vanished from the very list it was installed from. Add a `disabled:` guard that keeps a row listed but dim, ✓-marked, unselectable and out of search, and move every Install row onto it. Co-authored-by: Claude Fable 5 <[email protected]>
…com#6955) Install rows hid themselves with `when:"! <present>"`, so software you already had vanished from the very list it was installed from. Add a `disabled:` guard that keeps a row listed but dim, ✓-marked, unselectable and out of search, and move every Install row onto it. Co-authored-by: Claude Fable 5 <[email protected]>
Install rows guarded a hide with
when:"! <present>", so anything you already had disappeared from the very list it was installed from — leaving no way to tell "Omarchy can't install this" from "you already have it."Now the row stays where it is, dimmed and marked with the same ✓ the menu uses elsewhere, and the cursor steps over it.
How
A third guard expression alongside
when:andchecked:, evaluated in the same batched bash subprocess (<id>:d:<0|1>):disabled:keeps the row listed but marks it unselectable. All 60 Install rows swapped theirwhen:"! <present>"hide-guard for the positivedisabled:"<present>". Remove rows keep hiding as before.when:when Chromium isn't installed at all, and dims viadisabled:once the account is wired up.🤖 Generated with Claude Code