Closed Bug 2004473 Opened 10 months ago Closed 7 months ago

Display Unsupported Info Message in about:translations

Categories

(Firefox :: Translations, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Description

The new about:translations design (internal only) includes an error message with a learn-more button when the device does not support Translations.

Priority: -- → P2
Summary: Display Unsupported Error Message in about:translations → Display Unsupported Info Message in about:translations

This commit makes improvements to the scheduling algorithm
around reacting to user input in the source text area.

There are now 3 priorities of actions that occur.

  1. Actions that happen every time an input occurs.
  2. Actions that are throttled while input continually occurs.
  3. Actions that are debounced and take place after input stops.

This commit adds a new info message to the source section if the
detected language of the source text is not a language that we
support for translation.

It also removes the condition on the confidence of the detection,
allowing for more continuous feedback to the user as they're typing
now that we have a UI-facing message about language support.

Attachment #9543199 - Attachment description: WIP: Bug 2004473 - Rework about:translations scheduling r=#translations-reviewser! → WIP: Bug 2004473 - Rework about:translations scheduling r=#translations-reviewers!

This commit removes an unused learn-more button from the message bar
that displays when the device hardware is unsupported. The page that
we would go to is the same page as the primary learn-more link above.

Assignee: nobody → enordin
Attachment #9543199 - Attachment description: WIP: Bug 2004473 - Rework about:translations scheduling r=#translations-reviewers! → Bug 2004473 - Rework about:translations scheduling r=#translations-reviewers!
Status: NEW → ASSIGNED
Attachment #9543200 - Attachment description: WIP: Bug 2004473 - Add about:translations Unsupported Language Message r=#translations-reviewers! → Bug 2004473 - Add about:translations Unsupported Language Message r=#translations-reviewers!
Attachment #9543203 - Attachment description: WIP: Bug 2004473 - Remove unused learn-more button from about:translations r=#translations-reviewers! → Bug 2004473 - Remove unused learn-more button from about:translations r=#translations-reviewers!
Attachment #9543199 - Attachment description: Bug 2004473 - Rework about:translations scheduling r=#translations-reviewers! → Bug 2004473 - Rework about:translations scheduling r=sfoster!
Attachment #9543200 - Attachment description: Bug 2004473 - Add about:translations Unsupported Language Message r=#translations-reviewers! → Bug 2004473 - Add about:translations Unsupported Language Message r=sfoster!
Attachment #9543203 - Attachment description: Bug 2004473 - Remove unused learn-more button from about:translations r=#translations-reviewers! → Bug 2004473 - Remove unused learn-more button from about:translations r=sfoster!
Pushed by enordin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2d7f9990835b https://hg.mozilla.org/integration/autoland/rev/1c24f82ec636 Rework about:translations scheduling r=sfoster https://github.com/mozilla-firefox/firefox/commit/78de82fecd01 https://hg.mozilla.org/integration/autoland/rev/51140ade6de2 Add about:translations Unsupported Language Message r=fluent-reviewers,desktop-theme-reviewers,bolsson,sfoster https://github.com/mozilla-firefox/firefox/commit/9ede4df6ed09 https://hg.mozilla.org/integration/autoland/rev/970d5d0e0236 Remove unused learn-more button from about:translations r=fluent-reviewers,bolsson,sfoster
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/db8bbb5706ea https://hg.mozilla.org/integration/autoland/rev/97cc667f93e9 Revert "Bug 2004473 - Remove unused learn-more button from about:translations r=fluent-reviewers,bolsson,sfoster"

This is part of a single backout that spanned multiple bugs.

In the patch stack, I increased the timeout when waiting for a mocked RemoteSettings model to download within our Translations tests, hoping that it might also help to reduce intermittent Translations test failures.

There are a few ml related tests that share our Remote Settings mocks. This test case happens to wait for the full duration of the timeout as part of the success path of the test case.

I've reverted the timeout change, and everything should hopefully be fine now.

I would one day like to either fully separate this code, or unify it in a way that ml doesn't rely on Translations under the hood, so that its more clear where the downstream consumers are.

Flags: needinfo?(enordin)
Pushed by enordin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a68790401a54 https://hg.mozilla.org/integration/autoland/rev/3e36743e6c56 Rework about:translations scheduling r=sfoster https://github.com/mozilla-firefox/firefox/commit/8fe7035a7b9c https://hg.mozilla.org/integration/autoland/rev/7828930caa5e Add about:translations Unsupported Language Message r=fluent-reviewers,desktop-theme-reviewers,bolsson,sfoster https://github.com/mozilla-firefox/firefox/commit/83183a79e99d https://hg.mozilla.org/integration/autoland/rev/dded11dd36ac Remove unused learn-more button from about:translations r=fluent-reviewers,bolsson,sfoster
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: