-
Notifications
You must be signed in to change notification settings - Fork 121
Domain settings: show a list of domains with a CTA to add a domain #8606
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
Conversation
You can test the changes from this Pull Request by:
|
* trunk: Fix build errors. Networking layer changes for 2 domain settings endpoints.
* trunk: (79 commits) Updated copyright year Bump version number Update metadata translations Update app translations – `Localizable.strings` Correct title in the Payments Menu Fix bug where variation count was duplicated Update EditAttributesViewModel.swift 8627 Add manual link fixes to the 11.9 release 8627 Update card reader manual URLs 8622 8621 Add metadata to payment intent for TTPoI Update documentation for Today and `to date` ranges Adjust formatting operations for date ranges Remove commented code Adds changelog Removes genereateAllVariation feature flag Fix contentEdgeInsets deprecation warnings Show action sheet/popover with bulk edit options Improve string descriptions Add disabled state for link button style Enabled bulk edit button conditionally ...
| static let domainPadding: EdgeInsets = .init(top: 10, leading: 16, bottom: 10, trailing: 16) | ||
| static let actionButtonPadding: EdgeInsets = .init(top: 18, leading: 16, bottom: 18, trailing: 23) | ||
| static let dividerPadding: EdgeInsets = .init(top: 0, leading: 16, bottom: 0, trailing: 0) | ||
| static let dividerHeight: CGFloat = 1 |
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.
Super nit: this doesn't seem to be used, should we remove it?
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.
Removed in 82d240c
| .captionStyle() | ||
|
|
||
| ForEach(domains, id: \.name) { domain in | ||
| HStack { |
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.
❓ Are we planning to add some button on the right side of the item? Asking because I'm not sure why we need a HStack to embed the contents here.
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.
Good question, we don't plan to add any button to the trailing side. Originally it was the only straightforward way for me to align the domain rows on the trailing edge, however it doesn't look needed anymore. Removed in 5ba1ff5
Part of #8558
Description
When there are non-zero domains other than the free staging domain, a list of domains should be shown with a link button to add a domain. This PR just contains the UI changes to show the domain list.
Testing instructions
The UI is still using mock data, you can test the SwiftUI previews so that a domain list is shown when there are non-empty domains.
Screenshots
RELEASE-NOTES.txtif necessary.