Skip to content

Dim installed software in the Install menus instead of hiding it - #6955

Merged
dhh merged 1 commit into
quattrofrom
dim-installed-apps-in-install-menu
Aug 15, 2026
Merged

dhh merged 1 commit into
quattrofrom
dim-installed-apps-in-install-menu

Conversation

@dhh

@dhh dhh commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

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: and checked:, 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 their when:"! <present>" hide-guard for the positive disabled:"<present>". Remove rows keep hiding as before.
  • Chromium Account is the one row needing both: it still hides via when: when Chromium isn't installed at all, and dims via disabled: once the account is wired up.
  • The cursor skips disabled rows in the direction of travel (wrapping), and neither Enter, arrows, PageUp/Down, hover, nor a click can reach one. A submenu with nothing selectable in it shows no cursor at all.
  • Search leaves them out entirely — a dimmed row earns its place in the submenu it belongs to, where the list around it is the point, but search is a list of what you can do.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings August 15, 2026 10:53

Copilot AI 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.

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.

Comment thread test/shell.d/menu-test.sh
Comment on lines +259 to +261
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 || ""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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]>
Copilot AI review requested due to automatic review settings August 15, 2026 11:06
@dhh
dhh force-pushed the dim-installed-apps-in-install-menu branch from 991ddeb to b029e0c Compare August 15, 2026 11:06

Copilot AI 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.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@dhh
dhh merged commit 4b93f8d into quattro Aug 15, 2026
4 checks passed
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Aug 26, 2026
…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]>
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
…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]>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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.

3 participants