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

[Woo POS] Update POS success view design #13969

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

iamgabrielma
Copy link
Contributor

@iamgabrielma iamgabrielma commented Sep 16, 2024

Closes: #13967

Description

This PR tackles the design review on TfaZ4LUkEwEGrxfnEFzvJj-fi-4665_22771 by:

  • Removed the success icon
  • Updated the button colour to use white/black combination

Testing

  • In POS, process an order and complete the payment flow
  • Observe the updated success view in light and dark modes:
Before (light) After (light)
before - light after - light
Before (dark) After (dark)
before - dark after - dark

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

Reviewer (or Author, in the case of optional code reviews):

Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement:

  • The PR is small and has a clear, single focus, or a valid explanation is provided in the description. If needed, please request to split it into smaller PRs.
  • Ensure Adequate Unit Test Coverage: The changes are reasonably covered by unit tests or an explanation is provided in the PR description.
  • Manual Testing: The author listed all the tests they ran, including smoke tests when needed (e.g., for refactorings). The reviewer confirmed that the PR works as expected on all devices (phone/tablet) and no regressions are added.

@iamgabrielma iamgabrielma added type: task An internally driven task. feature: POS labels Sep 16, 2024
@iamgabrielma iamgabrielma added this to the 20.5 milestone Sep 16, 2024
@iamgabrielma iamgabrielma marked this pull request as ready for review September 16, 2024 03:34
@@ -204,11 +204,12 @@ private extension TotalsView {
.frame(minWidth: UIScreen.main.bounds.width / 2)
})
.padding(Constants.newOrderButtonPadding)
.foregroundColor(Color.posPrimaryText)
.foregroundColor(.posPrimaryTextInverted)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about creating a new Button style for this change, but since we only use it once across all flows I opted for the simplest change of creating a new colour.

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Sep 16, 2024

WooCommerce iOS📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS WooCommerce iOS
Build Numberpr13969-72fdb6f
Version20.4
Bundle IDcom.automattic.alpha.woocommerce
Commit72fdb6f
App Center BuildWooCommerce - Prototype Builds #10899
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

Copy link
Collaborator

@staskus staskus left a comment

Choose a reason for hiding this comment

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

Thanks for the work!

A button corners look extremely weird 😀. I presume because of a rounded rectangle overlay. Both in your screenshots and when I was running on the device.

View recent photos

@@ -46,12 +46,30 @@ extension Color {
)
}

static var posOverlayFillInverted: Color {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If these colors are only used for the success button, I'm wondering if we should keep them within TotalsView. WDYT?

Copy link
Contributor Author

@iamgabrielma iamgabrielma Sep 17, 2024

Choose a reason for hiding this comment

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

Oops, alright I think I need new glasses 😂 that looks very funny. As you mention it didn't show before due to the overlay usage and the button's background matching the view's background. Addressed on c639cc6 by removing the overlay and applying the borders directly to the button's background:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(Pressed save too fast )

- -
Screenshot 2024-09-17 at 12 49 25 Screenshot 2024-09-17 at 12 49 41

If these colors are only used for the success button, I'm wondering if we should keep them within TotalsView. WDYT?

Agree! Updated on 72fdb6f

Copy link
Collaborator

@staskus staskus left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes!

@iamgabrielma iamgabrielma merged commit 1de47b9 into trunk Sep 17, 2024
14 checks passed
@iamgabrielma iamgabrielma deleted the task/13967-pos-success-view-update branch September 17, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: POS type: task An internally driven task.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Woo POS] Design updates to success view
3 participants