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

[Connect] Add message handling for closing and mobile inputs. #4563

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nschris-stripe
Copy link
Contributor

Summary

This change provides a way for the connect component to trigger a close event. The new events added are:

  • closeWebView - This will trigger the component to close
  • mobileInputReceived - The SDK will send this to the web view to indicate when an X button is pressed.

Test Plan

Added tests for new events.

@nschris-stripe nschris-stripe force-pushed the stakr/nschris/refactorOnboardingComponent-1 branch from c768e51 to 237379a Compare February 13, 2025 02:27
@nschris-stripe nschris-stripe marked this pull request as ready for review February 13, 2025 02:31
@nschris-stripe nschris-stripe requested review from a team as code owners February 13, 2025 02:31
@nschris-stripe nschris-stripe force-pushed the stakr/nschris/refactorOnboardingComponent-1 branch from 237379a to 5da48e1 Compare February 13, 2025 06:42
case close = "closeButtonPressed"
}

struct MobileInputReceivedSender: MessageSender {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be used in a follow up PR.

@nschris-stripe nschris-stripe force-pushed the stakr/nschris/refactorOnboardingComponent-1 branch from 5da48e1 to 333fcd6 Compare February 13, 2025 14:14
@stripe stripe deleted a comment from github-actions bot Feb 13, 2025
@nschris-stripe nschris-stripe force-pushed the stakr/nschris/refactorOnboardingComponent-1 branch from 333fcd6 to 3189fb1 Compare February 13, 2025 15:04
@stripe stripe deleted a comment from github-actions bot Feb 13, 2025
Copy link

github-actions bot commented Feb 13, 2025

🚨 New dead code detected in this PR:

MobileInputReceivedSender.swift:12 warning: Struct 'MobileInputReceivedSender' is unused

Please remove the dead code before merging.

If this is intentional, you can bypass this check by adding the label skip dead code check to this PR.

ℹ️ If this comment appears to be left in error, double check that the flagged code is actually used and/or make sure your branch is up-to-date with master.

@nschris-stripe nschris-stripe force-pushed the stakr/nschris/refactorOnboardingComponent-1 branch from 3189fb1 to 80755dd Compare February 13, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant