Skip to content

New context menu item on branch toolbar and pull requests list#19505

Merged
tidy-dev merged 7 commits intodesktop:developmentfrom
DylanDevelops:new-pr-context-menus
Nov 6, 2024
Merged

New context menu item on branch toolbar and pull requests list#19505
tidy-dev merged 7 commits intodesktop:developmentfrom
DylanDevelops:new-pr-context-menus

Conversation

@DylanDevelops
Copy link
Contributor

@DylanDevelops DylanDevelops commented Nov 5, 2024

Closes #19453

Description

  • Added a new context menu item to the checked-out branch toolbar button
  • Added a new context menu to the pull request list items

Note: I did not add an item to the context menu for each branch that shows on the branches list. I am not sure if this is something you wanted me to do or not. You can see what I added in the screenshots below.

Screenshots

Checked-Out Branch Toolbar Context Menu
Screenshot 2024-11-04 at 4 58 35 PM

Pull Request List Context Menu
Screenshot 2024-11-04 at 4 53 06 PM

Release notes

Notes: [ADDED] Add "View Pull Request on GitHub" Option to the Checked-Out Branch Button and Pull Requests List
(You can make this sound better as I am not 100% sure how to phrase this)

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

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

@DylanDevelops This is most definitely the right direction!

I have one change we have to have for accessibility, and then another suggested change that is for less verbose code. :) Thanks for such a quick turn around.

@DylanDevelops
Copy link
Contributor Author

@tidy-dev Let me know if these changes are what you were asking for!

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

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

Thank you for those fixes! I tested and I can invoke this context menu with the keyboard. 🎉

After reviewing the code and seeing where we now have the item with the PullRequest object on it from the list component callback. I put a suggestion where I think we can tighten up the code just a little further. It also takes away any possible ambiguity in the difference between the context menu item and the "selectedPullRequest".. which are only the same thing after the right click event has fired.. and with keyboard focus/clicking/selecting possibly being different when using a screenreader. I think it would be cleaner to make sure we are talking about the same thing at the same time. :D (FWIW, it works with screen readers, just screen reader support seems to change out from under us regularly).

@DylanDevelops
Copy link
Contributor Author

@tidy-dev How does this look?

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

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

💖 Thank you for all the iterations. Looks good!

@tidy-dev tidy-dev merged commit 9e54b02 into desktop:development Nov 6, 2024
@DylanDevelops
Copy link
Contributor Author

Thank you, @tidy-dev, for mentoring me! :)

@DylanDevelops DylanDevelops deleted the new-pr-context-menus branch November 6, 2024 00:09
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.

Context Menu + Option to View Pull Request on GitHub Website

2 participants