Skip to content

Conversation

@jaclync
Copy link
Contributor

@jaclync jaclync commented Jan 10, 2023

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

non-empty domains no domains
Screen Shot 2023-01-10 at 12 57 21 PM Screen Shot 2023-01-10 at 12 57 29 PM

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@jaclync jaclync added the type: task An internally driven task. label Jan 10, 2023
@jaclync jaclync added this to the 11.9 milestone Jan 10, 2023
@jaclync jaclync mentioned this pull request Jan 10, 2023
35 tasks
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jan 10, 2023

You can test the changes from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr8606-5ba1ff5 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

* 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
Copy link
Contributor

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?

Copy link
Contributor Author

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 {
Copy link
Contributor

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.

Copy link
Contributor Author

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

@jaclync jaclync enabled auto-merge January 16, 2023 08:40
@jaclync jaclync merged commit 5b982c5 into trunk Jan 16, 2023
@jaclync jaclync deleted the feat/8558-domain-list branch January 16, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants