-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Desktop] "Undo" delete of a top site tile does not restore the tile to its previous position #9457
Comments
- Move gridSiteState to sessionStorage (not localStorage) and default value for "use custom links". Includes cleanup of previous localStorage value (if user has one). sessionStorage seems to be persisted between tabs and should be cleaned up when browser is closed. - X to remove tiles is now right aligned - Update top sites mode/visible setting when NTP gets updates - Fixed disabled icon showing when tiles are movable (condition was reversed) - Title case the new preference (to match existing preference) And of course, closing keywords for this PR: Fixes brave/brave-browser#11500 Fixes brave/brave-browser#9788 Fixes brave/brave-browser#9457 Fixes brave/brave-browser#11551
- Move gridSiteState to sessionStorage (not localStorage) and default value for "use custom links". Includes cleanup of previous localStorage value (if user has one). sessionStorage seems to be persisted between tabs and should be cleaned up when browser is closed. - X to remove tiles is now right aligned - Update top sites mode/visible setting when NTP gets updates - Fixed disabled icon showing when tiles are movable (condition was reversed) - Title case the new preference (to match existing preference) And of course, closing keywords for this PR: Fixes brave/brave-browser#11500 Fixes brave/brave-browser#9788 Fixes brave/brave-browser#9457 Fixes brave/brave-browser#11551
- Move gridSiteState to sessionStorage (not localStorage) and default value for "use custom links". Includes cleanup of previous localStorage value (if user has one). sessionStorage seems to be persisted between tabs and should be cleaned up when browser is closed. - X to remove tiles is now right aligned - Update top sites mode/visible setting when NTP gets updates - Fixed disabled icon showing when tiles are movable (condition was reversed) - Title case the new preference (to match existing preference) And of course, closing keywords for this PR: Fixes brave/brave-browser#11500 Fixes brave/brave-browser#9788 Fixes brave/brave-browser#9457 Fixes brave/brave-browser#11551
- Move gridSiteState to sessionStorage (not localStorage) and default value for "use custom links". Includes cleanup of previous localStorage value (if user has one). sessionStorage seems to be persisted between tabs and should be cleaned up when browser is closed. - X to remove tiles is now right aligned - Update top sites mode/visible setting when NTP gets updates - Fixed disabled icon showing when tiles are movable (condition was reversed) - Title case the new preference (to match existing preference) And of course, closing keywords for this PR: Fixes brave/brave-browser#11500 Fixes brave/brave-browser#9788 Fixes brave/brave-browser#9457 Fixes brave/brave-browser#11551
Verification is passed on
Verify top site tiles are addedRe-ordering top site tiles
Removing sites and Most Visited mode
Removing and restoring
Super Referral behavior
Verified passed with
Verified test plan from brave/brave-core#6584 Verify top site tiles are addedConfirmed top site tiles are added to NTP: Confirmed first 6 top site tiles on NTP match Reordering Top Site tilesReordered top site tiles on NTP: Confirmed reorder matches on Closed/relaunched. Confirmed order on Brave NTP and Visited additional sites. Confirmed sites are not moved around after re-ordering. Removing sites and Most Visited modeRemoved some top site tiles from NTP: Closed/relaunched. Confirmed confirmed removed sites were not re-added. Disabled Confirmed NTP top site tiles changed: Confirmed unable to re-order the top site tiles after disabling this setting. Removing and RestoringConfirmed top site tiles are added to NTP: Removed a tile: Undo notice: Confirmed site is added back: Removed two tiles: Selected Restore All: Confirmed all sites restored: Super Referral behaviorSR NTP: SR NTP Top Site Tiles: Confirmed SR NTP top site tiles cannot be moved, unable to drag and drop to a new place. Visited a few websites, open top site tile spots were populated with sites visited: Confirmed able to move the non SR top site tiles: Confirmed able to remove non SR top site tiles: Confirmed able to restore non SR top site tiles: Confirmed able to disable SR theme in brave://settings/themes: Confirmed SR top site tiles are removed and the tiles for the sites I visited are shown: Upgrade - no top site tile modification in 1.16.xInstalled 1.16.x Updated to 1.17. Confirmed able to move/delete top site tiles post upgrade: Confirmed close/relaunch, modifications were retained. Upgrade - top site tile modifications made with 1.16.xInstalled 1.16.x Updated to 1.17. Note, for the STR in the description there is no more pinning top site tiles with 1.17.x. Additionally, modifications to top site tiles made with 1.16.x (and before) are not retained when upgrading to 1.17.x. Modified STR to check Undo restoring a tile was confirmed as per the above in "Removing and Restoring" case. |
Test plan
See brave/brave-core#6584
Description
Found while testing #2971
In 1.7.x version if you delete a tile (by clicking on the
x
) and then selectUndo
on the modal, the deleted top site tile is restored to its previous position.If you do this on 1.8.x, the restored tile jumps to the first non-pinned position.
Steps to Reproduce
Undo
.Actual result:
Restored top site tile jumps to the first unpinned position (in this case, the 2nd place).
Expected result:
Tile is restored to its former position/place as it is in 1.7.x.
Reproduces how often:
easily
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
cc @brave/legacy_qa @rebron @cezaraugusto @bsclifton
The text was updated successfully, but these errors were encountered: