Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Conversation

@ayoy
Copy link
Collaborator

@ayoy ayoy commented Jul 27, 2023

Task/Issue URL: https://app.asana.com/0/1177771139624306/1205124491027651/f

Description:
Fix favorites row count calculation for the drag gesture to include
last favorites row also when it's not fully populated.

Steps to test this PR:
It's easiest to populate and manage favorites by importing favorites from e.g. Safari and then adjusting them in Bookmark Management view.

  1. Add 5 or fewer favorites and verify that they can be reordered on the new tab page.
  2. Add 6 favorites and verify the same.
  3. Add 7-11 favorites and verify the same. Check reordering between rows.
  4. Add 13 favorites and verify the same. Check reordering between rows.
  5. Add >14 favorites and verify the same. Check reordering between rows.
  6. Collapse favorites to only show 1 row and check reordering. Ensure that collapsed rows are not affected by reordering.

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

Copy link
Collaborator

@SabrinaTardio SabrinaTardio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly now!

@ayoy ayoy merged commit ff7e5cf into develop Jul 27, 2023
@ayoy ayoy deleted the dominik/fix-reordering-favorites branch July 27, 2023 08:31
samsymons added a commit that referenced this pull request Jul 28, 2023
# By Dominik Kapusta (7) and others
# Via Sam Symons (2) and others
* develop:
  Modularize debug menu and login items logic #3 (#1397)
  Modularize debug menu and login items logic (#1378)
  Fixes of minor issues with Fire Button after the new logic release (#1395)
  Fire Window (#1357)
  Fix reordering favorites in the last row when it's not fully populated (#1401)
  Close the window when cmd+w is pressed on a pinned tab and there are no regular tabs (#1390)
  update sparkle to 2.4.2 (#1362)
  disable trailing_comma (#1394)
  Add support for per-model Sync Data Providers initialization (#1387)
  update favicon logic to fix gsuite icons (#1380)
  Update minor version by default in code_freeze lane (#1392)
  Upload dSYMs from release builds to S3 for Sentry (#1393)
  Set version to 1.48.2.
  Hide Cards UI on macOS Catalina (#1386)
  Hide Cards UI on macOS Catalina (#1386)
  update shield icon only after navigation ended and tab is selected (#1314)
  Add Debug menu option back in for resetting the Email Protection InContext prompt (#1373)
  Bump version to 1.49.0 (42)
  Update embedded files

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants