Skip to content
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

Add FXIOS-8703 Share action to library items context menu #19333

Merged
merged 4 commits into from
Mar 22, 2024

Conversation

cyndichin
Copy link
Contributor

📜 Tickets

Jira ticket
Github issue

💡 Description

Add Share Option to Library Menus (Bookmark, History, Reading List).

  • Created a shared protocol LibraryPanelCoordinatorDelegate so that Bookmark, Reading List, History delegates can conform to it + reduce code.
  • Passed in LibraryNavigationHandler so that all the panels can create the share extension via the LibraryCoordinator.
  • Moved HistoryPanel+ContextMenuExtensions to HistoryPanel and use MARK instead of extension as per wiki: https://github.com/mozilla-mobile/firefox-ios/wiki/When-To-Use-Extensions. This also allows us to access the private tableView property.

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

Screenshots

Bookmarks History Reading List
Simulator Screenshot - iPhone 15 Pro - 2024-03-21 at 10 16 51 Simulator Screenshot - iPhone 15 Pro - 2024-03-21 at 10 16 59 Simulator Screenshot - iPhone 15 Pro - 2024-03-21 at 10 17 07

@cyndichin cyndichin requested a review from thatswinnie March 21, 2024 15:57
@cyndichin cyndichin requested a review from a team as a code owner March 21, 2024 15:57
actions.append(PhotonRowActions(removeAction))

let cell = tableView.cellForRow(at: indexPath)
actions.append(getShareAction(site: site, sourceView: cell ?? self.view, delegate: historyCoordinatorDelegate))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

only changed this line, but moved the code from HistoryPanel+ContextMenuExtensions to here

@mobiletest-ci-bot
Copy link

Messages
📖 Project coverage: 33.79%
📖 Edited 13 files
📖 Created 2 files

Client.app: Coverage: 32.47

File Coverage
HistoryCoordinator.swift 89.47%
BookmarksCoordinator.swift 78.26%
ReaderPanel.swift 44.93% ⚠️
HistoryPanel.swift 37.69% ⚠️
ReadingListCoordinator.swift 100.0%
LibraryCoordinator.swift 91.41%
BookmarksPanel.swift 39.64% ⚠️
LibraryPanelContextMenu.swift 0.0% ⚠️

Generated by 🚫 Danger Swift against d2dbc46

@cyndichin
Copy link
Contributor Author

@mergify backport release/v125

Copy link
Contributor

mergify bot commented Mar 22, 2024

backport release/v125

✅ Backports have been created

@cyndichin cyndichin merged commit 866dc8b into main Mar 22, 2024
10 checks passed
@cyndichin cyndichin deleted the cc/FXIOS-8703_add-share-to-library-items branch March 22, 2024 12:54
mergify bot pushed a commit that referenced this pull request Mar 22, 2024
cyndichin added a commit that referenced this pull request Mar 22, 2024
…19349)

(cherry picked from commit 866dc8b)

Co-authored-by: Cyndi Chin <cgc95@cornell.edu>
rojinpra7 pushed a commit to rojinpra7/firefox-ios that referenced this pull request Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants