Skip to content

(#728) Add open gallery context menu#1139

Merged
vexx32 merged 1 commit into
chocolatey:developfrom
AdmiringWorm:add-open-gallery-context-menu
May 26, 2026
Merged

(#728) Add open gallery context menu#1139
vexx32 merged 1 commit into
chocolatey:developfrom
AdmiringWorm:add-open-gallery-context-menu

Conversation

@AdmiringWorm

Copy link
Copy Markdown
Member

Description Of Changes

  • Add OpenGallery() method to PackageViewModel with error handling and user feedback
  • Add "Open Gallery" context menu item to package context menu with visibility binding to GalleryDetailsUrl
  • Add localized resource strings for gallery operation labels and error messages
  • Update Resources.Designer.cs with new resource accessors

Motivation and Context

Improve user experience by providing quick access to package gallery pages, enabling users to view detailed package information without manual URL navigation.

Testing

Before starting the testing step, ensure that you have at least 1 package installed from the Chocolatey Community Repository, one package from a non Chocolatey Community Repository source, as well as having the Chocolatey Community Repository source, and one non Chocolatey Community Repository source available and enabled.

  1. Navigate to the This PC sidebar menu
  2. Right click a package coming from the Chocolatey Community Repository source
  3. In the context menu click on the Open Gallery, then verify a new browser tab is opened and shows the expected package page
  4. Back in the Chocolatey GUI window, Right click a package not from the Chocolatey Community Repository
  5. Verify the context menu does not include an entry for Open Gallery
  6. Navigate to the chocolatey source
  7. Right click on any not installed packages
  8. In the context menu click on the Open Gallery, then verify a new browser tab is opened and shows the expected package page
  9. Navigate to one of your custom sources
  10. Right click on any not installed packages
  11. Verify the context menu does not include an entry for Open Gallery

Operating Systems Testing

  • Windows 11

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added. (Some of them)
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v3 compatibility checked?
  • All items are complete on the Definition of Done.

Related Issue

Fixes #728

@AdmiringWorm AdmiringWorm requested review from gep13 and vexx32 May 21, 2026 11:12
@AdmiringWorm AdmiringWorm self-assigned this May 21, 2026
@AdmiringWorm

Copy link
Copy Markdown
Member Author

Keeping this in draft until #1138 have been merged, once that is merged this can be taken out of draft.

@AdmiringWorm AdmiringWorm changed the title Add open gallery context menu (#728) Add open gallery context menu May 21, 2026
@AdmiringWorm AdmiringWorm marked this pull request as ready for review May 21, 2026 14:27
@AdmiringWorm AdmiringWorm requested a review from a team as a code owner May 21, 2026 14:27
@vexx32 vexx32 marked this pull request as draft May 21, 2026 21:13
vexx32
vexx32 previously approved these changes May 21, 2026

@vexx32 vexx32 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall LGTM for the bits added just for this PR. We'll wait on merging this until the other PR this was building on is merged and this is rebased.

@AdmiringWorm AdmiringWorm force-pushed the add-open-gallery-context-menu branch from 70d62b6 to 2cce2bd Compare May 22, 2026 12:20
@AdmiringWorm AdmiringWorm marked this pull request as ready for review May 26, 2026 09:28
Implement the ability to open package gallery URLs directly from the
context menu. This feature allows users to quickly access the gallery
page for a specific package version in their default browser.

Key Changes:
- Add OpenGallery() method to PackageViewModel with error handling and
  user feedback
- Add "Open Gallery" menu item to package context menu with visibility
  binding to GalleryDetailsUrl
- Add localized resource strings for gallery operation labels and error
  messages
- Update Resources.Designer.cs with new resource accessors

Reason of the change:
- Improve user experience by providing quick access to package gallery
  pages
- Enable users to view detailed package information without manual URL
  navigation
- Provide proper error handling and localized feedback when gallery URL
  cannot be opened
@AdmiringWorm AdmiringWorm force-pushed the add-open-gallery-context-menu branch from 2cce2bd to c65f839 Compare May 26, 2026 09:29
@AdmiringWorm AdmiringWorm requested a review from vexx32 May 26, 2026 09:30
@vexx32 vexx32 merged commit fef8a92 into chocolatey:develop May 26, 2026
2 checks passed
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.

Add an option to open the Chocolatey.org page for any package

2 participants