-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
Add UI messages when an action cannot be performed #13500
Conversation
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.
While I agree with the general direction of letting user know why their action has no effect this should only be done in cases where:
- The given code path is available in secure mode and
- it is invoked directly by the user.
I agree with (2) and hope that this PR meets that now. |
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.
Al my comments are addressed, and the introduction of the blockAction.when
decorator makes this very readable. Thanks for your work on this @seanbudd !
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.
Please try to keep these messages as explicit as possible.
d761856
to
ce0b537
Compare
343fd13
to
7bd98d8
Compare
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.
Generally looks good.
I'd suggest this targets 2022.2
add appx ui message Add ui messages when blocked by modal message boxes, secure mode, and appx move function out of gui init revert additions to config init create and use block action decorators fix lint Add documentation for block action when improve message strings Co-authored-by: Cyrille Bougot <cyrille.bougot2@laposte.net> change messageSting to translatedMessage remove unused import remove missed redundant code fix when documentation Co-authored-by: Luke Davis <8139760+XLTechie@users.noreply.github.com> fix docs
7bd98d8
to
b3d441b
Compare
I've squashed and rebased the approved commit onto master in b5e171b . This is so the PR can target 2022.2 |
Co-authored-by: Luke Davis <8139760+XLTechie@users.noreply.github.com>
This comment was marked as outdated.
This comment was marked as outdated.
…ode when trying to open the symbol dialog. (#13539) Fix-up of #13535 Follow-up of #13500 Summary of the issue: In #13500 a decorator has been introduced to speak a message when an action is unavailable in secure mode. In parallel an NVDA 2021.3.5 patch release has been produced; this release contains a fix preventing to open the symbol dialog in secure mode. The 2021.3.5 (rc) branch has then been merged into master to get this fix in master. This led to the fact that no message was reported when trying to use a script to open the symbol dialog in secure mode. Description of how this pull request fixes the issue: Added the blockAction.when decorator where it was missing.
1. `@blockAction.when` now checks and reports first secure mode, then modal. 2. Add secure mode decorators to future-proof `onCheckForUpdateCommand`. 3. Use secure mode decorator for `onSaveConfigurationCommand`.
1. `@blockAction.when` now checks and reports first secure mode, then modal. 2. Add secure mode decorators to future-proof `onCheckForUpdateCommand`. 3. Use secure mode decorator for `onSaveConfigurationCommand`.
Link to issue number:
Closes #6549
Summary of the issue:
Some UI messages are missing when an action cannot be performed.
If a user should be notified if they cannot perform an action due to being in secure mode, using the windows store version or a modal dialog is blocking.
Description of how this pull request fixes the issue:
The following ui messages have been added and implemented
These were found by searching for usages of
config.isAppX
globalVars.appArgs.secure
andisModalMessageBoxActive
, respectively.Testing strategy:
Known issues with pull request:
Some messages may be confusing or unexpected
Change log entries:
Changes
Code Review Checklist: