Closed Bug 2094503 Opened 16 days ago Closed 14 days ago

Remove the entry points for adding tabs to collections

Categories

(Firefox for Android :: Collections, task, P3)

All
Android
task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: gl, Assigned: gl)

References

Details

(Whiteboard: [fxdroid] [group5])

Attachments

(7 external files, 1 obsolete file)

With collections being migrated to tab groups, remove the entry points for adding tabs to collections. Existing collections should stay viewable on the homepage for users who turn off the "Hide Collections UI" secret setting (hideCollectionsUi).

Today every way of adding tabs to a collection is hidden behind Settings.collections, so turning the secret setting off brings them all back. Remove them instead:

  • The "Add to collection" button in the tabs tray multi-select banner, along with CollectionsDialog, CollectionsListAdapter and their layouts and strings.
  • The "Save to collection" item in the browser menu (FenixMenuItem.SaveToCollection and SaveToCollectionMenuItemProvider). It is also still listed in the menu customization screen and preview.
  • The "Add tab" option in the homepage collection menu, plus leftover code from the removed collections placeholder.
  • The unit and UI tests for these entry points.

Viewing, opening, deleting and sharing existing collections from the homepage stays as is.

  • Saved menu customizations only store section ids, so removing the item does not affect them
  • CollectionsDialog is left unused and is removed in the next part
  • Remove leftover code from the removed collections placeholder that nothing calls
Attachment #9686092 - Attachment description: Bug 2094503 - Part 3: Remove the Add to collection button from the tabs tray → Bug 2094503 - Part 2: Remove the Add to collection button from the tabs tray
Attachment #9686093 - Attachment description: Bug 2094503 - Part 4: Remove the Add tab option from the homepage collections menu → Bug 2094503 - Part 3: Remove the Add tab option from the homepage collections menu
Attachment #9686091 - Attachment is obsolete: true
  • Its only caller was the tabs tray button removed in Part 2
  • Use the androidx.preference recycler_view id in settings, which only resolved through the deleted collection dialog layout
  • Rename was its last entry point, removed in Part 5
  • Remove the collection saved snackbars, which only collection creation triggered
Pushed by gluong@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a0087b30ef0e https://hg.mozilla.org/integration/autoland/rev/0e87ca1d1ebb Part 1: Remove the Save to collection item from the browser menu r=android-reviewers,android-l10n-reviewers,mobiletest-reviewers,petru,parker,aaronmt https://github.com/mozilla-firefox/firefox/commit/35ebda49ca81 https://hg.mozilla.org/integration/autoland/rev/5843d797ea3b Part 2: Remove the Add to collection button from the tabs tray r=android-reviewers,android-l10n-reviewers,android-tabs-reviewers,mobiletest-reviewers,007,parker,aaronmt https://github.com/mozilla-firefox/firefox/commit/4b68da58b252 https://hg.mozilla.org/integration/autoland/rev/62552dd6cebc Part 3: Remove the Add tab option from the homepage collections menu r=android-reviewers,mobiletest-reviewers,npoon,aaronmt https://github.com/mozilla-firefox/firefox/commit/0a6115116c50 https://hg.mozilla.org/integration/autoland/rev/bfa1d5d0c380 Part 4: Remove the unused CollectionsDialog r=android-reviewers,android-l10n-reviewers,mobiletest-reviewers,parker,npoon,aaronmt https://github.com/mozilla-firefox/firefox/commit/94e96742ea28 https://hg.mozilla.org/integration/autoland/rev/a4f8d012dd18 Part 5: Remove the Rename collection option from the homepage collections menu r=android-reviewers,mobiletest-reviewers,npoon,aaronmt https://github.com/mozilla-firefox/firefox/commit/c5b2b063a2a5 https://hg.mozilla.org/integration/autoland/rev/b537cb0ad5a3 Part 6: Remove the unused collection creation screen r=android-reviewers,android-l10n-reviewers,mobiletest-reviewers,parker,npoon,aaronmt https://github.com/mozilla-firefox/firefox/commit/f4898c8a049e https://hg.mozilla.org/integration/autoland/rev/364c74d04308 Part 7: Remove the collection telemetry that is no longer recorded r=android-reviewers,npoon
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: