Closed Bug 1870352 Opened 11 months ago Closed 7 months ago

Implement Select Translations Panel Copy Button

Categories

(Firefox :: Translations, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

Details

Attachments

(4 files, 1 obsolete file)

Description

This bug tracks the progress of implementing the Copy button in the Select Translations Panel

When clicked, the button should add the translated text to the clipboard, and should change its display to "Copied"


Steps to implement

  • Add translated text to clipboard on click
  • Change displayed text on click

Tests to implement

  • Test that the translated text is in the clipboard on click
  • Test that the localized text changes to "Copied" on click.
Depends on: 1878721
No longer depends on: 1878721
Assignee: nobody → enordin
Attachment #9396726 - Attachment description: WIP: Bug 1870352 - WIP → WIP: Bug 1870352 - Refactor SelectTranslationsPanel state changes

Ensures that SelectTranslationsPanel tests assert the
visibility of the try-another-source-language menulist
popup in all test cases.

Depends on D207467

Ensures that the copy button's visuals are appropriately changed
when clicked, or when re-translation is triggered after the copy
button is in the "copied" visual state.

Depends on D207601

Ensures that the copy button in the SelectTranslationsPanel
correctly stores text into the clipboard when clicked.

Depends on D207602

Attachment #9396726 - Attachment description: WIP: Bug 1870352 - Refactor SelectTranslationsPanel state changes → Bug 1870352 - Refactor SelectTranslationsPanel state changes r=#translations-reviewers!
Attachment #9396944 - Attachment description: WIP: Bug 1870352 - Assert try-another-source popup visibility → Bug 1870352 - Assert try-another-source popup visibility r=#translations-reviewers!
Attachment #9396945 - Attachment description: WIP: Bug 1870352 - Change copy button visuals in SelectTranslationsPanel → Bug 1870352 - Change copy button visuals in SelectTranslationsPanel r=#translations-reviewers!
Attachment #9396946 - Attachment description: WIP: Bug 1870352 - Store translated text to clipboard with copy button → Bug 1870352 - Store translated text to clipboard with copy button r=#translations-reviewers!
Attachment #9397242 - Attachment is obsolete: true
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/831fdb39ecef Assert try-another-source popup visibility r=translations-reviewers,gregtatum https://hg.mozilla.org/integration/autoland/rev/8161079c8bd1 Refactor SelectTranslationsPanel state changes r=translations-reviewers,gregtatum https://hg.mozilla.org/integration/autoland/rev/50b8f697f523 Change copy button visuals in SelectTranslationsPanel r=translations-reviewers,fluent-reviewers,desktop-theme-reviewers,gregtatum,bolsson,emilio https://hg.mozilla.org/integration/autoland/rev/64651ee52a95 Store translated text to clipboard with copy button r=translations-reviewers,gregtatum
Regressions: 1893345
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: