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

Refactor FXIOS-10613 [Homepage] Navigation Actions for BVCState #23964

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

cyndichin
Copy link
Contributor

📜 Tickets

Jira ticket
Github issue

💡 Description

In order to support the ticket of handling navigation actions for top sites / pocket items in the context menu, I did a bit of clean up of our current navigation actions for BVC state.

Instead of duplicating properties between NavigationBrowserAction and NavigationDestination, this PR consolidates the action's payload to take in the navigationDestination property instead. Therefore, the state does not need to know how to parse through the separate actions and rather this get handled in the newState method in BVC instead.

📝 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)

@cyndichin cyndichin marked this pull request as ready for review December 27, 2024 16:36
@cyndichin cyndichin requested a review from a team as a code owner December 27, 2024 16:36
@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Dec 27, 2024

Messages
📖 Project coverage: 33.45%
📖 Edited 5 files
📖 Created 0 files

Client.app: Coverage: 32.51

File Coverage
TrackingProtectionViewController.swift 12.12% ⚠️
BrowserViewControllerState.swift 37.0% ⚠️
NavigationBrowserAction.swift 100.0%
HomepageViewController.swift 40.53% ⚠️

Generated by 🚫 Danger Swift against ece3614

Copy link
Contributor

mergify bot commented Dec 28, 2024

This pull request has conflicts when rebasing. Could you fix it @cyndichin? 🙏

Copy link
Collaborator

@MattLichtenstein MattLichtenstein left a comment

Choose a reason for hiding this comment

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

Looks good 🥳

@cyndichin cyndichin merged commit ab28c74 into main Dec 30, 2024
12 of 14 checks passed
@cyndichin cyndichin deleted the cc/FXIOS-10613_clean-up-navigation-for-BVCstate branch December 30, 2024 16:56
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