-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[Settings][Plugin manager] Activation commands: Fix conflict with calc plugin and add warning #19593
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PR is ready. |
I do not want the program plugin in this PR per the issue |
This comment was marked as outdated.
This comment was marked as outdated.
I have reverted the changes for program plugin (and did some small tweaks.) |
Actually, I found one: #9473 |
Sure. But let's have this in a second issue. The dot warning can be added easily and because I can't work on this PR the next weeks this should not block merging. If we enable the warning for dot then we have the warning per default on for program plugin. I don't think this is a good idea. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer a simpler solution with a generic warning that alert user that some activation commands may limits some plugins.
At the moment ~
, /
, \
affects Program plugin.
This will be kinda hard to be mantained in future with new plugins.
I am fine with change default activation command for TimeDate.
|
Not allowed means
Does it means that I can't set these? I think we shouldn't block anything. |
Same thoughts. It means only that the codeparts are named I think we should combine both to a warning message that says the following: |
src/settings-ui/Settings.UI.Library/ViewModels/PowerLauncherPluginViewModel.cs
Outdated
Show resolved
Hide resolved
src/settings-ui/Settings.UI.Library/ViewModels/PowerLauncherPluginViewModel.cs
Outdated
Show resolved
Hide resolved
I kinda agree with this. We shouldn't add warnings per plugin as it'll make a mess in the future |
A solution could be having each plug-in to provide a list of keywords that may conflict but it sounds a bit overkill. A generic warning and/or user docs should be fine. And of course don't ship new plug-ins with those keywords 😃 |
Restarted it ;) |
src/settings-ui/Settings.UI.Library/ViewModels/PowerLauncherPluginViewModel.cs
Outdated
Show resolved
Hide resolved
Done a few tests. It's working but looks a bit overkill to me. I would go just for these but I am up to the core team (#19593 (comment)):
|
We could add a centralized warning above the plugin list saying "Some direct activation commands may break global queries for other plugins." with a link to Second alternative would be to have a generic (always visible) information bar above the plugin list linking to @jaimecbernardo @crutkas, what is your preference on this as core team leader? |
@jaimecbernardo |
Hi @htcfreek,
I imagine people still trying it, though, but if it's only a warning above the list when they do it they won't read it. |
Should we use warning or information style? Can I add a section header to a aka link or de we need a new one? |
I'm guessing informational one. Didn't understand the header question. |
okay
The question was if a link like |
Can someone help boil down what the POR here is? I looked at the issue and seemed like the solution proposed was to change the keyword. I look at the screenshot and the issue is it doesn’t explain in the error how to help / what exactly is conflicting. I do like maybe an error box at the top that could consolidate the conflicts. |
I will say out of the box is shipping with conflicts feels odd :) |
The initial solution was to change the keyword. And additional @jaimecbernardo asked for an error message and I implemented it. Because the current implemention might be to anoying we decide to have a generic always visible infobox hinting about the "possible conflict thing" and containing a "learn more" link to An automatic visible one (based on input) is more complex and in theory we then have to link keywords with plugins to check if the conflict plugin is enabled or not. This feels a bit to much here as @davidegiacometti mentioned. I hope you are up to date now and everything is clear now 😉 |
Agree. There are two possible solutions:
What do you prefer? |
@htcfreek, I don't want to change the program plugin activation word as this time. I think list it as a conflict. what i currently don't want to affect primary usage item for edge cases. |
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}" | ||
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"> | ||
<muxc:InfoBar.ActionButton> | ||
<HyperlinkButton NavigateUri="https://aka.ms/PowerToysOverview_PowerToysRun#direct-activation-commands" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crutkas
New aka-Link to not have coded section header reference?
@davidegiacometti, @jaimecbernardo, @crutkas, @stefansjfw |
@jaimecbernardo |
Sorry for the delay and thanks for pinging 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for the contribution!
I think it's better now 👍
Summary of the Pull Request
The old activation command for
Time and Date
plugin is problematic and brake some global queries for calculator plugin. This PR updates the default activation command.(
)
Additionally this PR removes the existing
NotAllowedKeyword
warning and replaces it with a generic information bar above the plugin list. The bar contains a link to the "docs.msft" page where we describe the problem more detailed including a list of problematic keywords.PR Checklist
Detailed Description of the Pull Request / Additional comments
Additionally this PR adds a replacement for the InfoBadge control that isn't available currently.
Validation Steps Performed
Test on local build and run unit tests successfully.