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

File Actions menu #31220

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

File Actions menu #31220

wants to merge 144 commits into from

Conversation

Aaron-Junker
Copy link
Collaborator

@Aaron-Junker Aaron-Junker commented Feb 1, 2024

Summary of the Pull Request

Adding a new menu invokable by selecting files in explorer and pressing a shortcut set in the settings.

Screenshots

image
image
image
image
image
image
image

PR Checklist

Detailed Description of the Pull Request / Additional comments

Things left to do:

  • Add installer
  • Add icon
  • DPI Awareness

Validation Steps Performed

</ui:MenuItem.Icon>
</ui:MenuItem>
<Separator/>
<ui:MenuItem Header="Copy path of files sperated by">

Check failure

Code scanning / check-spelling

Unrecognized Spelling

[sperated](#security-tab) is not a recognized word. \(unrecognized-spelling\)
@Aaron-Junker
Copy link
Collaborator Author

@niels9001 Do you have an idea why the contextmenu doesn't take the WPFUI style?

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

check-spelling found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

This comment has been minimized.

@Aaron-Junker
Copy link
Collaborator Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Collaborator

@jaimecbernardo jaimecbernardo left a comment

Choose a reason for hiding this comment

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

Hi @Aaron-Junker , Thanks for the fixes.
I've merged the current main and fix an issue in runner.cpp after the merge.
I've given it some quick tests and found some quick issues, can you please take a look?

Feedback:

1 - The File Locksmith entry still appears even if the module is turned off. I imagine the same might be true with the other utilities we're trying to show.

2 - When trying to move or copy a collection of files and folder to another where there will be conflicts, nothing happens. We see a progress bar appearing for a fraction and just disappearing.

3 - When trying to collapse a folder structure where it would cause file conflicts, it did seems to have done what it could until it found the first conflict and then exited, without trying any other files after that. This means we ended up with an incomplete operation. Once again all feedback the user has was that a progress bar was seen for a bit and then disappeared. So the conflict dialog was removed from the utility? Anyway, much better than deleting ignored files.

4 - Save file as also doesn't do anything or give any UI feedback in case there's a conflict, just silently fails.

@Aaron-Junker
Copy link
Collaborator Author

@jaimecbernardo It seems like the conflict dialog causes the process to crash, cause I didn't remove it.

@jaimecbernardo
Copy link
Collaborator

@jaimecbernardo It seems like the conflict dialog causes the process to crash, cause I didn't remove it.

@Aaron-Junker , can you please fix it and mention me once I can re-review 😉 Thank you!

@Aaron-Junker
Copy link
Collaborator Author

@jaimecbernardo The conflict dialog works again now. And disabled modules are now respected. Thank you for the feedback.


public IconElement? Icon => IconHelper.GetIconFromModuleName("ImageResizer");

public bool IsVisible => SelectedItems.All(path => path.IsImage()) && GPOWrapperProjection.GPOWrapper.GetConfiguredImageResizerEnabledValue() != GPOWrapperProjection.GpoRuleConfigured.Disabled && SettingsRepository<GeneralSettings>.GetInstance(new SettingsUtils()).SettingsConfig.Enabled.ImageResizer;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This policy check won't work as expected if the module is force enabled by policy. Correct? Then you need to improve the check.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why? As long as it is not disabled (either manually or by policy) it will show (regardless of how it is enabled. Or what am I missing here exactly?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The policy can override manual disabling (force enabled). This should happen if policy value equals enabled.

@jaimecbernardo
Copy link
Collaborator

Hi @Aaron-Junker , I've tried merging in latest main since the PR was missing the .NET 9 upgrade that got into main. File Actions menu seems to be crashing at startup for me, though, according to event logs. Are you able to run it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Review This Pull Request awaits the review of a maintainer.
Projects
Status: 📑In Review
Status: No status
Development

Successfully merging this pull request may close these issues.

7 participants