Commit 1f45eeb
committed
Fold provisioning + detection into one single-flight SiteProvisioningSource
Promotes the EditorCapabilityDetector into SiteProvisioningSource: one
per-site, single-flight pipeline that ensures application-password
credentials, recovers the REST root, and detects editor capabilities —
each stage awaited before the next. Because the capability probe is now
structurally downstream of credential provisioning, it can never run
before the mint, so the first-login race is gone by construction rather
than mitigated. The application-password card, connectivity banner, and
editor preloader all render slices of the one SiteReadiness state.
The mint/validate mechanics move out of ApplicationPasswordViewModelSlice
(now a renderer) into the source's ensureAuth stage; the per-site
single-flight subsumes the card's old 409-safety guard. The duplicate
wpApiRestUrl heal collapses into the source's recoverRestUrl stage.1 parent 50b2b88 commit 1f45eeb
11 files changed
Lines changed: 695 additions & 918 deletions
File tree
- WordPress/src
- main/java/org/wordpress/android
- repositories
- ui
- mysite/cards
- applicationpassword
- connectivity
- posts
- test/java/org/wordpress/android
- repositories
- ui
- mysite/cards
- applicationpassword
- connectivity
- posts
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
| 725 | + | |
| 726 | + | |
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| |||
Lines changed: 0 additions & 158 deletions
This file was deleted.
0 commit comments