-
Notifications
You must be signed in to change notification settings - Fork 1.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
Site Domains: Modernize UI 1/2 #22294
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This view shows a primary domain badge
There are issues with spacing between cards on <iOS 16, since it doesn't yet support |
listRowSpacing is supported on iOS15+ while listSectionSpacing is only supported from iOS17+ which makes it hard to control it
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
|
Combine domainsList and all-domains to show a more comprehensive site domains list that is equivalent to All Domains view
Avoid additional loading of domains when navigating from SiteDomains to AllDomains
13 tasks
AllDomains endpoint result allows to distinguish between a simple and staging free domain
guarani
approved these changes
Jan 4, 2024
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.
Tested via #22311 (review) 👍
Generated by 🚫 dangerJS |
Generated by 🚫 Danger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partially implements #22262
Figma rvVgXupiyONUcJMgPSoMFj-fi-3518_13838
Modernize Site Domains UI and re-use elements from All Domains.
Second PR: #22311, I think it's the best to test on second PR
Issue
All Domains uses
/all-domains/
endpoint while Site Domains usessites/%d/domains
endpoint which produces a bit different data:sites/%d/domains
does not includestatus
(Active/Verifying/Expired..) which is shown on All Domains view. Determiningstatus
involves quite a lot of logic (fbhepr%2Skers%2Sjcpbz%2Sjc%2Qpbagrag%2Syvo%2Sqbznvaf%2Sqbznva%2Qfgnghf%2Qerfbyire%2Sqbznva%2Qfgnghf%2Qerfbyire.cuc%3Se%3Qsn1n97n3%23ertvfgrerq_qbznva_fgnghf-og) therefore we cannot and shouldn't do it on the frontend site.site_slug
which is needed to open domain management.I decided to only focus on UI updates in the scope of this PR, which means that I'm not including the endpoint changes to include "Status" and opening of domain management. I will do it in another PR (#22311).
Solution
SiteDomainsViewModel
and move data loading logic thereAllDomainsListCardView.ViewModel
PrimaryDomainView
badgeSiteDomainsView
to use a new ViewMode and reuseAllDomainsListCardView
InsetGroupStyle
instead of using this style directly, since spacing is only supported from iOS17Simulator.Screen.Recording.-.iPhone.15.-.2023-12-27.at.10.04.58.mp4
To test:
Can be tested together with #22311
Menu -> Domains
UI:Regression Notes
Breaking existing SiteDomains behavior
Manual testing
PR submission checklist:
RELEASE-NOTES.txt
if necessary.UI Changes testing checklist: