Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] The same site can be added multiple times to the top sites #8108

Closed
sflorean opened this issue Feb 5, 2020 · 15 comments · Fixed by #23105
Closed

[Bug] The same site can be added multiple times to the top sites #8108

sflorean opened this issue Feb 5, 2020 · 15 comments · Fixed by #23105
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:Shortcuts Top Sites/Topsites on the Firefox home page good first issue Good for newcomers S2 Major Functionality/product severely impaired and a satisfactory workaround doesn't exist
Milestone

Comments

@sflorean
Copy link
Contributor

sflorean commented Feb 5, 2020

Depends on three-dot menu redesign: #17796

Steps to reproduce

  1. Browse any site(wikipedia.com).
  2. Tap on 3dot menu and select "Add to Home screen".
  3. Tap again on the 3dot menu and select "Add to Home screen".

Expected behavior

The "add to home screen" item will say "Remove from home screen" if the site has already been added.
The option is greyed out for the pages that are already added to the home screen /or a message is displayed that the page is already added.

Actual behavior

The same page can be added multiple times to the home screen.

Device information

  • Android device: Sony Xperia Z5 Premium (Android 7.1.1), Samsung Note 8 (Android 9.0)
  • Fenix version: Firefox Nightly 2/5 #20360607

┆Issue is synchronized with this Jira Task

@sflorean sflorean added 🐞 bug Crashes, Something isn't working, .. Feature:HomeScreen S2 Major Functionality/product severely impaired and a satisfactory workaround doesn't exist labels Feb 5, 2020
@github-actions github-actions bot added the needs:triage Issue needs triage label Feb 5, 2020
@sflorean
Copy link
Contributor Author

sflorean commented Feb 5, 2020

Reproducible also for Private browsing shortcut, from settings and from the private browsing pop-up.

@sv-sdeiac
Copy link

sv-sdeiac commented Feb 7, 2020

Notes:

  • If you have multiple Top Sites from the same page, one of those shortcuts can't be deleted.

Device: Samsung Galaxy S8 (Android 9);
Build: Firefox Preview Nightly 2/7 #20380605.
20200207_170407

@mcarare
Copy link
Contributor

mcarare commented Mar 20, 2020

@topotropic How do we want to handle this?
Should we not show the option to add or should we notify that it already exists (text on the Snackbar instead of the confirmation one). IMO the last one is more user friendly. TY!

LE: And maybe a decision for #8312?

@mcarare mcarare added Feature:Shortcuts Top Sites/Topsites on the Firefox home page and removed Feature:HomeScreen labels Mar 20, 2020
@mcarare mcarare removed their assignment Mar 30, 2020
@brampitoyo
Copy link

@mcarare – @topotropic will make the final decision, but another potential solution would be to rename the menu item to “Remove from Top Sites”.

(Another question: will it be possible to do the same for the home screen, so we have a menu item called “Remove from Home screen”?)

@mcarare
Copy link
Contributor

mcarare commented Apr 1, 2020

@brampitoyo There already is a "Remove" menu option for a top site, if that is what you are referring to.
I like your idea with renaming the menu option in the browser! 👍

@brampitoyo
Copy link

@mcarare Correct. Each top site, when long-pressed, shows a context menu with “Remove” in it. This is replicating the same functionality inside the main menu, when the top site is open.

Instead of removing the list item “Add to top sites”, or greying it out, we can rename it to “Remove from top sites”.

I’ll leave the decision to @topotropic :-)

@AmyYLee
Copy link
Collaborator

AmyYLee commented Jun 3, 2020

@topotropic to follow-up

@topotropic
Copy link

Yes, to what Bram said. Thanks!

@topotropic topotropic removed the needs:UX-feedback Needs UX Feedback label Jun 4, 2020
@topotropic topotropic removed their assignment Jun 4, 2020
@sflorean sflorean removed the needs:triage Issue needs triage label Oct 20, 2020
@eliserichards eliserichards added Feature:HomeScreen good first issue Good for newcomers help wanted Help wanted from a contributor. More complex than good first issue. labels Apr 2, 2021
@chrishernan
Copy link
Contributor

Hello. Could I work on this issue please?

@stale
Copy link

stale bot commented Oct 4, 2021

See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 4, 2021
@mcarare mcarare removed the help wanted Help wanted from a contributor. More complex than good first issue. label Jan 7, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 7, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 7, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 7, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 10, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 11, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 11, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 11, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 12, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 12, 2022
Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 13, 2022
@nick-morhun
Copy link

@mcarare @Alexandru2909 Hello. Sorry, I'm not a part of this project or anything, just want to help. I still believe that the report is about the OS Home screen, not the Top Sites inside the browser. So you cannot fix the original issue.

Alexandru2909 pushed a commit to Alexandru2909/fenix that referenced this issue Jan 13, 2022
@gabrielluong gabrielluong added the eng:qa:needed QA Needed label Jan 14, 2022
@gabrielluong gabrielluong added this to Ready for Engineering (min-5 ; max-22) in Android Engineering Team Kanban board via automation Jan 14, 2022
@gabrielluong gabrielluong added this to the 98 milestone Jan 14, 2022
@gabrielluong gabrielluong moved this from Ready for Engineering (min-5 ; max-22) to Reviewer approved, ready for test (WIP limit - ?) in Android Engineering Team Kanban board Jan 14, 2022
@gabrielluong
Copy link
Member

@mcarare @Alexandru2909 Hello. Sorry, I'm not a part of this project or anything, just want to help. I still believe that the report is about the OS Home screen, not the Top Sites inside the browser. So you cannot fix the original issue.

This seems sensible. I opened #23202 to track Home Screen.

@gabrielluong gabrielluong changed the title [Bug] The same site can be added multiple times to home screen [Bug] The same site can be added multiple times to the top sites Jan 14, 2022
@gabrielluong gabrielluong linked a pull request Jan 14, 2022 that will close this issue
3 tasks
@gabrielluong gabrielluong moved this from Reviewer approved, ready for test (WIP limit - ?) to In Testing/QA in Android Engineering Team Kanban board Jan 14, 2022
@sflorean
Copy link
Contributor Author

Verified as fixed on latest Nightly build (98.0a1) with OnePlus 9(Android 11).
"Remove from top sites" is displayed in Settings, for websites already added to Top Sites.

Android Engineering Team Kanban board automation moved this from In Testing/QA to Done Jan 18, 2022
@sflorean sflorean added eng:qa:verified QA Verified and removed eng:qa:needed QA Needed labels Jan 18, 2022
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Mar 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:Shortcuts Top Sites/Topsites on the Firefox home page good first issue Good for newcomers S2 Major Functionality/product severely impaired and a satisfactory workaround doesn't exist
Projects
No open projects
Development

Successfully merging a pull request may close this issue.