-
Notifications
You must be signed in to change notification settings - Fork 112
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
Custom fields: Update list screen to be shown in Order Details as part of current navigation #14059
Conversation
…stead of being presented modally. Also updates the View to use NavigationStack
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.
|
…-custom-fields-list-nav-update
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.
I'm not sure why, but after these changes, I see the cell with padding on the right and left sides, at least on iOS 18.
@pmusolino thanks for checking! I added 35ae02d to remove the padding and have updated the videos in the original post to reflect it. Can you check again and see if you still have the issue? |
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.
It works as expected.
However, presenting a navigation that is different from the original one creates a small glitch during navigation.
I suggest leaving a TODO
note to remind us that this needs to be improved.
@itsmeichigo also raised something similar in #14068 (comment) I agree with that, though, and in hindsight it would've been more consistent to copy Blaze's method of creating navigation coordinator ( An improvement here would be to refactor the navigation to use coordinator. Given what's already set up, this would be a decently sized task, so let's keep this for now. In the meanwhile I'll add a bit more things like turning off animation and making the back icon bolder, to make the back navigation look less odd. |
Description
Please do not merge until target is
trunk
This quick PR updates the Custom Fields List screen to no longer appear as a modal, but instead as part of the existing navigation controller.
Check out this new behavior in iPhone and iPad:
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-27.at.19.46.18.mp4
Simulator.Screen.Recording.-.iPad.Pro.13-inch.M4.-.2024-09-27.at.19.45.51.mp4
Steps to reproduce
Build and go to Order Details, then try the Custom Fields button there. Ensure the navigation matches the video above, and that the List screen is not shown in a modal.
Also smoke test the navigation between Order Details <-> Custom Fields List <-> Custom Fields Editor and ensure everything works fine.
Testing notes
I tested the steps above in Simulator iPhone and iOS, as seen in the video.
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: