-
Notifications
You must be signed in to change notification settings - Fork 1k
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] Fix API inconsistent naming + Add Dashboard-only support for Account Management component #4036
[Connect] Fix API inconsistent naming + Add Dashboard-only support for Account Management component #4036
Conversation
1802618
to
cf3cbc1
Compare
990be64
to
d639757
Compare
d639757
to
fc2d6f3
Compare
fc2d6f3
to
efe90a3
Compare
func payouts(_ payouts: PayoutsViewController, | ||
didFailLoadWithError error: Error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had intended to make this consistent with the AccountOnboarding delegate style, but it slipped past API review. Paper trail of API approval:
https://docs.google.com/document/d/195BaU6k2J-2CAs9anNE6e4OlZO34N-e2HTYc6pacpTw/edit?pli=1#bookmark=id.dk457iw2wtca
@@ -98,6 +98,13 @@ public class EmbeddedComponentManager { | |||
.init(componentManager: self) | |||
} | |||
|
|||
@_spi(DashboardOnly) | |||
public func createAccountManagementViewController( | |||
collectionOptions: AccountCollectionOptions = .init()) -> AccountManagementViewController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure yet whether we plan to set account collection options or whether this does anything for Dashboard, but putting it in for now so we can test it
dd968f0
to
e844c0f
Compare
🚨 New dead code detected in this PR: AccountManagementViewController.swift: warning: Property 'collectionOptions' is assigned, but never used Please remove the dead code before merging. If this is intentional, you can bypass this check by adding the label ℹ️ 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 |
e844c0f
to
13b9949
Compare
13b9949
to
a272b52
Compare
a272b52
to
62516e2
Compare
Dead code check has a false positive – adding label |
StripeConnect/StripeConnect/Source/Components/ComponentType.swift
Outdated
Show resolved
Hide resolved
Co-authored-by: Chris Mays <[email protected]>
## Summary - Includes line numbers in the dead code check - Retains `Codable` properties in dead code check (#4036 (comment)) - Better format API diff output ## Motivation Improve CI ## Testing #4088 ## Changelog N/A
Summary
Adds the account management component with DashboardOnly access
Fixes inconsistent delegate naming in PayoutsViewController
The account onboarding component had a delegate signature of:
However, the payouts component was using:
During API review, we had intended to use the account onboarding style signature (see papertrail)
Motivation
https://jira.corp.stripe.com/browse/MXMOBILE-2503
Testing
Unit tests