Skip to content

Conversation

@DRadmir
Copy link
Contributor

@DRadmir DRadmir commented Oct 28, 2025

Summary

  • Added EnablePushNotificationsScene that appears after wallet creation during onboarding
  • Shows only for new wallets when push notifications are not yet enabled
  • Updated banner logic to show enable notifications banner in wallet tab

TODO:

  • Localize

Closes #1284

##Screenshots
Simulator Screenshot - iPhone 17 - 2025-10-28 at 16 37 17

Simulator.Screen.Recording.-.iPhone.17.-.2025-10-28.at.16.24.45.mov

Introduced EnablePushNotificationsScene and its view model to prompt users to enable push notifications during onboarding. Integrated the scene into RootScene and RootSceneViewModel, showing it when appropriate based on user preferences. Updated dependencies and tests to support the new feature. Also added a bell emoji to the Emoji struct and removed the unused EmojiView.swift.
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @DRadmir, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the user onboarding experience by integrating a dedicated screen to encourage new users to enable push notifications. This screen appears after a new wallet is created, ensuring timely engagement with notification settings. The changes also include updates to the application's core logic to manage and display this new notification prompt effectively, improving overall user interaction and ensuring critical wallet activity alerts are received.

Highlights

  • New Onboarding Scene: Introduced a new EnablePushNotificationsScene to prompt users to enable push notifications immediately after wallet creation.
  • Conditional Display: This new scene is displayed only for newly created wallets and if push notifications are not yet enabled, ensuring a targeted user experience.
  • Banner Logic Update: The existing banner logic has been updated to show the 'enable notifications' banner within the wallet tab, ensuring consistent user prompts across the application.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

…enable-push-notifications-during-first-onboarding
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a screen to prompt users to enable push notifications during the initial wallet setup. The implementation is well-structured, adding a new SwiftUI scene and view model, and integrating it into the main application flow. My review includes suggestions to align with modern SwiftUI practices for state management, and to improve localization by moving hardcoded user-facing strings into resource files. These changes will enhance the code's maintainability and provide a better experience for international users.

@DRadmir DRadmir self-assigned this Oct 28, 2025
@DRadmir DRadmir marked this pull request as draft October 30, 2025 08:35
…enable-push-notifications-during-first-onboarding
Replaces the custom UI in EnablePushNotificationsScene with the reusable InfoSheetScene, simplifying the view and centralizing presentation logic. Updates dependencies and view model to support InfoSheet integration.
import Localization
import PrimitivesComponents

public struct EnablePushNotificationsScene: View {
Copy link
Contributor

Choose a reason for hiding this comment

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

EnablePushNotificationsScene I think think we need another scene, should be easily integrated into InfoSheet with actions so we can customize different presenting messages

image: SystemImage.network
)
)
.sheet(isPresented: $model.isPresentingEnablePushNotifications) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should be generic for info sheet, so we can ask to enable face id, notifications and many others

…enable-push-notifications-during-first-onboarding
Moved push notification onboarding logic to a generic InfoSheetActionScene and related types. Introduced InfoSheetActionType and InfoSheetActionable protocol for extensibility. Updated RootScene and RootSceneViewModel to use onboardingPresenter and present InfoSheet actions. Added OnboardingPresenter and corresponding tests. Updated dependency injection and factories to support new onboarding flow.
@DRadmir DRadmir marked this pull request as ready for review October 31, 2025 12:11
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.

Add Enable Push Notifications during first onboarding

3 participants