Skip to content

Feature: Add shell context menu for widgets #11204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Feb 12, 2023

Conversation

hecksmosis
Copy link
Contributor

@hecksmosis hecksmosis commented Feb 7, 2023

Resolved / Related Issues
Items resolved / related issues by this PR.

Validation
How did you test these changes?

  • Built and ran the app
  • Tested the changes for accessibility

@yaira2
Copy link
Member

yaira2 commented Feb 7, 2023

Should we switch to CommandBarFlyout to be more consistent with the right click menu in other places?

Copy link
Contributor

@ferrariofilippo ferrariofilippo left a comment

Choose a reason for hiding this comment

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

Also, Button_RightTapped and LoadShellMenuItems share almost all the code in all widgets. You may create an helper class to reduce code duplication

@hecksmosis
Copy link
Contributor Author

I don't know if we can add the helper class for the Button_RightTapped because some use Grid

ferrariofilippo
ferrariofilippo previously approved these changes Feb 8, 2023
Copy link
Contributor

@ferrariofilippo ferrariofilippo left a comment

Choose a reason for hiding this comment

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

LGTM

@yaira2
Copy link
Member

yaira2 commented Feb 8, 2023

Just took a quick look and this much closer to what I had in mind. Will do a full review later but it's looking good.

@yaira2
Copy link
Member

yaira2 commented Feb 8, 2023

@hecksmosis functionality looks good too, I wonder if we should move options like properties and open with to the main menu. Just trying to think of ways to make it a little more consistent with the right click menu in the different layout modes.

@hecksmosis
Copy link
Contributor Author

@hecksmosis functionality looks good too, I wonder if we should move options like properties and open with to the main menu. Just trying to think of ways to make it a little more consistent with the right click menu in the different layout modes.

I think properties is in the main menu already

@hecksmosis
Copy link
Contributor Author

Do you want to add properties to recent files?

@yaira2
Copy link
Member

yaira2 commented Feb 9, 2023

Yes, properties, open with and add to favorites.

@yaira2
Copy link
Member

yaira2 commented Feb 9, 2023

image

Any idea why it's showing these icons?

@hecksmosis
Copy link
Contributor Author

Yes, properties, open with and add to favorites.

Add to favorites wouldn't make sense as only files appear there @yaira2

@yaira2
Copy link
Member

yaira2 commented Feb 9, 2023

Good point, comes back to the fact that we don't show pinned files yet. We can probably hide the menu item for that.

@hecksmosis
Copy link
Contributor Author

hecksmosis commented Feb 9, 2023

The icons being wrong is because I didn't notice

@hecksmosis
Copy link
Contributor Author

I fixed the icons and added the open with menu, but I haven't been able to add the properties menu as it shows incomplete, help would be appreciated in that aspect.

@yaira2
Copy link
Member

yaira2 commented Feb 9, 2023

I think it's okay for now, I'll try to finish reviewing today.

Copy link
Member

@d2dyno1 d2dyno1 left a comment

Choose a reason for hiding this comment

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

Some nits 🙂

@hecksmosis
Copy link
Contributor Author

@d2dyno1 Is it ok now?

@d2dyno1
Copy link
Member

d2dyno1 commented Feb 11, 2023

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@d2dyno1 d2dyno1 requested a review from yaira2 February 11, 2023 20:14
@yaira2
Copy link
Member

yaira2 commented Feb 12, 2023

It's not loading on recent files for me but I don't want to hold this back so let's merge as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add shell items to widgets right click menu
4 participants