Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Implement Bookmark All Tabs Long-Press Action #4133

Merged
merged 12 commits into from
Sep 9, 2021

Conversation

soner-yuksel
Copy link
Contributor

@soner-yuksel soner-yuksel commented Sep 3, 2021

Summary of Changes

This pull request fixes #4132

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Test Plan:

  • Long Press Tabs button in bottom action bar
  • Press Bookmark All Tabs
  • Choose folder to save

Screenshots:

1

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue and pull request is assigned to a milestone (should happen at merge time).

@soner-yuksel soner-yuksel requested a review from iccub September 7, 2021 14:36
style: .default, handler: { [unowned self] _ in

let addBookMarkController = AddEditBookmarkTableViewController(
mode: BookmarkEditMode.addFolderUsingTabs(title: Strings.savedTabsFolderTitle, tabList: tabManager.allTabs))
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if you have 2 tabs opened in regular mode, 3 tabs in private mode and you add them?

Please double check this code works well in this case, priv mode tabs and regular tabs should be added and counted separately

Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps tabsForCurrentMode should be the correct getter, not tabManager.allTabs, haven't checked it though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tabsForCurrentMode is the correct getter just checked.

Fix at cbe4bfc

@soner-yuksel soner-yuksel requested a review from iccub September 8, 2021 15:30
Copy link
Contributor

@iccub iccub left a comment

Choose a reason for hiding this comment

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

Such a nice feature in less than 100 lines, good job :)

@soner-yuksel soner-yuksel requested a review from iccub September 8, 2021 20:07
@soner-yuksel soner-yuksel requested a review from iccub September 9, 2021 14:36
@soner-yuksel soner-yuksel merged commit 8d797e1 into development Sep 9, 2021
@soner-yuksel soner-yuksel deleted the feature/bookmark-all-tabs branch September 9, 2021 15:35
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement 'Bookmark all tabs'
3 participants