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-10007 [Bookmarks Evolution] Add sign in button to empty state #23442

Merged

Conversation

MattLichtenstein
Copy link
Collaborator

@MattLichtenstein MattLichtenstein commented Nov 27, 2024

📜 Tickets

Jira ticket
Github issue

💡 Description

  • Add sign in button to bookmarks root folder empty state to present Mozilla account sign in flow

📝 Notes:

  • FirefoxAccountSignInViewController is presented as a fullscreen modal for consistency with the remote tabs panel sign in flow

📷 Screenshots

Screenshot 2024-12-02 at 1 36 56 PM

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

@MattLichtenstein MattLichtenstein marked this pull request as ready for review December 2, 2024 18:40
@MattLichtenstein MattLichtenstein requested a review from a team as a code owner December 2, 2024 18:40
@@ -182,6 +221,26 @@ class BookmarksCoordinator: BaseCoordinator,
return controller
}

private func makeSignInController() -> UIViewController {
let fxaParams = FxALaunchParams(entrypoint: .libraryPanel, query: [:])
// NEED TO CHANGE PARENT TYPE
Copy link
Contributor

Choose a reason for hiding this comment

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

still todo?

Suggested change
// NEED TO CHANGE PARENT TYPE

key: "Bookmarks.EmptyState.Root.ButtonTitle.v135",
tableName: "Bookmarks",
value: "Sign in to Sync",
comment: "The button title for the sign in button on the placeholder screen shown when there are no saved bookmarks, located at the root level of the bookmarks panel within the libray modal. This button starts the initiates allowing users to sign in to their Mozilla Account to sync data")
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo + I am not sure I get the sentence "This button starts the initiates [...]"

Suggested change
comment: "The button title for the sign in button on the placeholder screen shown when there are no saved bookmarks, located at the root level of the bookmarks panel within the libray modal. This button starts the initiates allowing users to sign in to their Mozilla Account to sync data")
comment: "The button title for the sign in button on the placeholder screen shown when there are no saved bookmarks, located at the root level of the bookmarks panel within the library modal. This button starts the flow allowing users to sign in to their Mozilla Account to sync data")

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

woah, yea I don't understand what I was going for there either 😂

@MattLichtenstein MattLichtenstein force-pushed the ml/FXIOS-9742_bookmarks-empty-state-sign-in-flow branch from 0797c41 to e41f37a Compare December 3, 2024 15:40
@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Dec 3, 2024

Messages
📖 Project coverage: 33.59%
📖 Edited 10 files
📖 Created 0 files

Client.app: Coverage: 31.46

File Coverage
FirefoxAccountSignInViewController.swift 27.88% ⚠️
BookmarksCoordinator.swift 42.58% ⚠️
BookmarksFolderEmptyStateView.swift 0.0% ⚠️
BookmarksViewController.swift 0.0% ⚠️
BookmarksPanelViewModel.swift 80.87%

Generated by 🚫 Danger Swift against 6d5d1bd

@MattLichtenstein MattLichtenstein merged commit 0eefe98 into main Dec 3, 2024
10 checks passed
@MattLichtenstein MattLichtenstein deleted the ml/FXIOS-9742_bookmarks-empty-state-sign-in-flow branch December 3, 2024 21:24
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