Non admins get this error from loading site domains: ⛔️ Error retrieving domains for siteID 215173688: Dotcom Error: [authorization_required] User or Token does not have access to specified site.
Fetch info for the current state of domains: https://public-api.wordpress.com/rest/v1.1/sites/{siteId}/domains/?locale=en_US
Fetch plans info, and check for "current_plan": true to determine the currently selected plan and then "has_domain_credit": true, to determine if the user has credit to claim a domain: https://public-api.wordpress.com/rest/v1.3/{sideId}/plans/?locale=en_US
[ ] Add unit tests for PaidDomainSelectorDataProvider
[ ] Add unit tests for DomainSettingsCoordinator
Yosemite/Networking
Load all the products and match them later with the domain suggestions to apply the proper discount: https://public-api.wordpress.com/rest/v1.1/products?http_envelope=1&type=domains.
Spike: pe5sF9-Ug-p2 Design: VyLr7LvKodHE4kINfBE7Lw-fi-682%3A40227&t=S2CYnbufFyxeCeMk-0
Subtasks
domainSettings
https://github.com/woocommerce/woocommerce-ios/pull/8581*.wordpress.com
domain in the list https://github.com/woocommerce/woocommerce-ios/pull/8848Analytics
Eligibility check
Non admins get this error from loading site domains:
⛔️ Error retrieving domains for siteID 215173688: Dotcom Error: [authorization_required] User or Token does not have access to specified site.
Domain dashboard screen
UI
*.wpcomstaging.com
URL at the top, and one of the following below: https://github.com/woocommerce/woocommerce-ios/pull/8581https://wordpress.com/start/domains/use-your-domain
Yosemite/Networking
Fetch info for the current state of domains:
https://public-api.wordpress.com/rest/v1.1/sites/{siteId}/domains/?locale=en_US
Fetch plans info, and check for
"current_plan": true
to determine the currently selected plan and then"has_domain_credit": true
, to determine if the user has credit to claim a domain:https://public-api.wordpress.com/rest/v1.3/{sideId}/plans/?locale=en_US
[x] Networking layer https://github.com/woocommerce/woocommerce-ios/pull/8600
[x] Yosemite layer https://github.com/woocommerce/woocommerce-ios/pull/8601
Domain selector screen
UI
PaidDomainSelectorDataProvider
DomainSettingsCoordinator
Yosemite/Networking
Load all the products and match them later with the domain suggestions to apply the proper discount:
https://public-api.wordpress.com/rest/v1.1/products?http_envelope=1&type=domains
.Checkout screen
Domain credit checkout flow
+areacode.number
https://github.com/woocommerce/woocommerce-ios/pull/8859❓ How about the error state? a banner?
Success screen
Settings screen
Nice to haves
fun testing
, Calpyso useshttps://public-api.wordpress.com/rest/v1.1/domains/suggestions?http_envelope=1&query=funtesting&quantity=30&include_wordpressdotcom=false&include_dotblogsubdomain=false&tld_weight_overrides=&vendor=variation8_front&site_slug=funtestingusa.com&recommendation_context=fun,testing