Skip to content

fix(github): open Command-clicked panel links in the browser - #3474

Draft
joshfriend wants to merge 1 commit into
mainfrom
jfriend/github-pr-open-on-github
Draft

joshfriend wants to merge 1 commit into
mainfrom
jfriend/github-pr-open-on-github

Conversation

@joshfriend

Copy link
Copy Markdown

Command-clicking a link inside the GitHub panel (the pull request title, owner, repository, checks, files or body links) did nothing on desktop, because Tauri's automatic link opener deliberately skips Command-clicks. Message links already route Command-clicks through the opener (#2288), but the panel never did, so there was no way to jump from the panel to the browser with the usual gesture. The panel now delegates Command-clicks on its http(s) links to the opener, and plain clicks stay with Tauri's own handling. A new GitHubPanel test covers both and fails without the fix; the GitHub plugin tests, typecheck and biome pass.

Tauri's automatic link opener skips Command-clicks, so Command-clicking the
pull request title, repository, checks or any other link in the GitHub panel
did nothing. Send those clicks through the opener, as message links already do.

Signed-off-by: Josh Friend <jfriend@block.xyz>

This branch has not been deployed

No deployments
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