Skip to content
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

Code Quality: Use RichCommands in home and sidebar #15329

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

0x5bfa
Copy link
Member

@0x5bfa 0x5bfa commented May 7, 2024

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Open Files app
  2. Right click widget item (use those three commands)
  3. Right click sidebar item (again)

Confirmed it's working
image

@@ -73,6 +73,9 @@ public override List<ContextMenuFlyoutItemViewModel> GetItemMenuItems(WidgetCard
{
return new List<ContextMenuFlyoutItemViewModel>()
{
new ContextMenuFlyoutItemViewModelBuilder(CommandManager.OpenInNewTabFromHomeAction).Build(),
new ContextMenuFlyoutItemViewModelBuilder(CommandManager.OpenInNewWindowFromHomeAction).Build(),
new ContextMenuFlyoutItemViewModelBuilder(CommandManager.OpenInNewPaneFromHomeAction).Build(),
Copy link
Member

Choose a reason for hiding this comment

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

Are these supposed to be here?

Copy link
Member Author

Choose a reason for hiding this comment

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

In general, any other context menus have them at the top. Should they be placed as were?

Copy link
Member

Choose a reason for hiding this comment

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

What's the before & after?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like the same 🤔
Maybe because Open With didn't work properly in stable.

Before After
image image

@yaira2
Copy link
Member

yaira2 commented May 7, 2024

Are the sidebar contexts hidden from the command palette and actions page?

@0x5bfa
Copy link
Member Author

0x5bfa commented May 8, 2024

Ouch, I forgot to do that, will do.

@0x5bfa
Copy link
Member Author

0x5bfa commented May 9, 2024

Done

@0x5bfa 0x5bfa closed this May 16, 2024
@0x5bfa 0x5bfa deleted the 5bfa/CQ-BroaderRichCommandUsage1 branch May 16, 2024 05:34
@0x5bfa 0x5bfa restored the 5bfa/CQ-BroaderRichCommandUsage1 branch May 16, 2024 05:35
@0x5bfa 0x5bfa reopened this May 16, 2024
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.

None yet

2 participants