Skip to content

brew: show-upgrades action improvements - #31099

Closed
nhojb wants to merge 6 commits into
raycast:mainfrom
nhojb:brew-upgrades
Closed

nhojb wants to merge 6 commits into
raycast:mainfrom
nhojb:brew-upgrades

Conversation

@nhojb

@nhojb nhojb commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Description

  • Upgrade is now the primary action for the selected formula or cask
  • Upgrade All is the secondary action (if available)
  • Selection can be toggled via the ⌘⇧X shortcut
  • Select/Deselect all can be toggled via the ⌘⇧A shortcut

Screencast

Screenshot 2026-09-14 at 15 23 03 Screenshot 2026-09-14 at 15 23 10 Screenshot 2026-09-14 at 15 23 19

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: brew Issues related to the brew extension platform: macOS labels Sep 14, 2026
@raycastbot

raycastbot commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

@raycastbot raycastbot added the OP is author The OP of the PR is the author of the extension label Sep 14, 2026
@greptile-apps

greptile-apps Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Brew’s Show Upgrades action panel now makes single-package upgrades the main action and keeps selection controls easy to reach. It also updates the visual colors used for available upgrades and selection states.

  • Included packages now lead with Upgrade, while excluded packages lead with Select.
  • Upgrade All stays in the second action slot, and selection shortcuts use ⌘⇧X and ⌘⇧A.
  • Pinned packages keep their unpin action and cannot be selected for upgrades.
  • Available-upgrade icons and tags now use orange instead of yellow.

Confidence Score: 5/5

The PR appears safe to merge.

The empty-selection shortcut issue is fixed, and the resolved thread needs no further action. No new bug or rule violation remains.

Important Files Changed

Filename Overview
extensions/brew/src/outdated.tsx Reorders upgrade and selection actions, adds shortcuts, and keeps the empty-selection run slot safe.
extensions/brew/src/components/actionPanels.tsx Moves each package upgrade action to the caller and groups the remaining actions into clearer sections.
extensions/brew/package.json Keeps the command name aligned with the renamed outdated.tsx entry point.
extensions/brew/src/utils/upgrade-selection.ts Updates a comment to match the new selection shortcut.
extensions/brew/src/components/packageIcons.ts Changes the update color from yellow to orange.
extensions/brew/CHANGELOG.md Adds the new action behavior at the top with the merge-date placeholder.

Reviews (3): Last reviewed commit: "Revert "brew: Rename outdated -> show-ou..." | Re-trigger Greptile

Comment thread extensions/brew/src/show-upgrades.tsx Resolved
@raycastbot raycastbot added the OP is contributor The OP of the PR is a contributor of the extension label Sep 14, 2026
@pernielsentikaer pernielsentikaer self-assigned this Sep 14, 2026
@nhojb

nhojb commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

@TurboCoder13 I found the default Exclude from Upgrade action rather annoying. Usually when I run Show Upgrades I want to upgrade one or more package. Excluding items is usually secondary. So I have found that making the exclude/include actions primary makes them too prominent.

So in this PR I've made Upgrade and Upgrade All the primary & secondary actions with the select/deselect actions available via shortcut - as described above.

Let me know what you think.

@TurboCoder13

Copy link
Copy Markdown
Contributor

@nhojb That makes complete sense and totally fine by me! I think your change arguably fits better with the rest of Raycast actions wrt cmd + shift + x anyway. 💪

Appreciate you tagging me 🙇

@pernielsentikaer pernielsentikaer 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.

Hi @nhojb 👋

Thanks for improving the Show Upgrades actions 💪

Can we keep the old name (outdated)? It is the unique ID where ranking, aliases, and hotkeys are saved, and existing deeplinks use it too. The title can remain “Show Upgrades”; please rename src/show-upgrades.tsx back to src/outdated.tsx to match 🙂


I’ll convert this PR into a draft after submitting this review. Please press Ready for review when it’s ready and we’ll have a look 😊

@pernielsentikaer
pernielsentikaer marked this pull request as draft September 14, 2026 17:17
@pernielsentikaer

Copy link
Copy Markdown
Contributor

Also, I hope my update to the actions is okay; otherwise, I’ll revert them @nhojb 🙂

@nhojb

nhojb commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

Also, I hope my update to the actions is okay; otherwise, I’ll revert them @nhojb 🙂

Thanks @pernielsentikaer, update looks good! I've reverted the rename.

@chrismessina chrismessina mentioned this pull request Sep 16, 2026
6 tasks done
@chrismessina

Copy link
Copy Markdown
Contributor

FYI — I incorporated these changes into my big update adding Homebrew 7 support.

This might be the wrong way to do this, but this PR seemed relatively modest and easy to adapt into my PR so I slurped it up. If that's a faux-pas LMK and I can wait for this to land, then update my PR.

@nhojb nhojb closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: brew Issues related to the brew extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension OP is contributor The OP of the PR is a contributor of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants