Skip to content

Report 'AC connected' rather than 'charging battery'#14765

Merged
seanbudd merged 5 commits into
masterfrom
acNotCharging
Apr 4, 2023
Merged

Report 'AC connected' rather than 'charging battery'#14765
seanbudd merged 5 commits into
masterfrom
acNotCharging

Conversation

@seanbudd

@seanbudd seanbudd commented Mar 30, 2023

Copy link
Copy Markdown
Member

Link to issue number:

Closes #14726

Summary of the issue:

When the AC is connected, reporting "Charging battery" may be misleading, e.g. when the battery is fully charged.
It is more accurate to state "AC connected"

Description of user facing changes

"AC connected" is reported instead of "charging battery" when reporting battery status

Description of development approach

Update string

Testing strategy:

None

Known issues with pull request:

None

Change log entries:

Not worthwhile

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • Security precautions taken.

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 8219280edb

@seanbudd seanbudd changed the title State 'AC connected' rather than 'charging battery' Report 'AC connected' rather than 'charging battery' Mar 30, 2023
@XLTechie

XLTechie commented Mar 31, 2023 via email

Copy link
Copy Markdown
Collaborator

@CyrilleB79

Copy link
Copy Markdown
Contributor

Hello

I have not revisited all the tickets on this topic. However, it seems that there are actually two requests from users that are handled together:

  1. Is the battery charging? Yes/No; and as an addition, what is the charge level?
  2. Is the charger plugged in?

For sighted people the first question is answered by the icon in the system tray.

Regarding the second question, I think that there is no visual indicator in Windows UI for sighted people. However blind people have expressed several times the need to know if the wire was plugged in (and correctly) or not.

I think that the issue should be handled more globally than this PR, if possible, and provide the 3 following information upon NVDA+B:

  • x%, charger disconnected
  • x%, charging battery (and obviously charger connected)
  • x%, charger connected, battery fully charged

This would allow to make modifications back and forth between "charging battery" / "AC connected"

@XLTechie

XLTechie commented Apr 3, 2023 via email

Copy link
Copy Markdown
Collaborator

@michaelDCurran michaelDCurran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please change these strings to Plugged in and Unplugged to remove the mention of AC.

@CyrilleB79

Copy link
Copy Markdown
Contributor

@CyrilleB79 I agree with you in general. See my comments at the end of the linked ticket about what is going on and why. What you request is possible, and can be done, but it will require a full rewrite of our battery module. I may work on that in the future, if nobody else gets to it first. But for now, I think what Sean has done is a quick solution that solves the immediate problem. We have a saying in the U.S.: don't let the perfect get in the way of the good. The perfect is what you ask. The good is what this does. Perhaps the immediate good can happen, while the perfect is figured out down the road?

Yes this makes sense. This PR is already an improvement and I support it to be merged (including the change requested by Mick).

Then for something more elaborated as described in my previous comment, a new ticket should be opened or, more likely, an old ticket that was recently closed could be reopened (Cc @Adriani90)

@Adriani90

Copy link
Copy Markdown
Collaborator

@CyrilleB79 the issue referenced in this PR is still open and covers your suggestions. The one I've closed is an old one which had less details so I closed it in favor of the new one.
I think this PR should say solves partially #14726 but does not fix it completely so that the issue remains open.

@seanbudd seanbudd requested a review from michaelDCurran April 4, 2023 00:05
@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit ba822281b0

@seanbudd seanbudd merged commit 5f340be into master Apr 4, 2023
@seanbudd seanbudd deleted the acNotCharging branch April 4, 2023 04:29
@nvaccessAuto nvaccessAuto added this to the 2023.2 milestone Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System tray battery message contradicts Windows and is inaccurate

7 participants