Repository navigation
Block the app with a sign-in gate when the WordPress.com token is missing - #26130
crazytonyli wants to merge 2 commits into
Conversation
Generated by 🚫 Danger |
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 34902 | |
| Version | PR #26130 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 0187850 | |
| Installation URL | 1abp62iih9p58 |
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 34902 | |
| Version | PR #26130 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 0187850 | |
| Installation URL | 1s1330bv0iltg |
a4b3968 to
f9a4f7a
Compare
f9a4f7a to
763d7d3
Compare
763d7d3 to
0187850
Compare
|
Version |
0187850 to
6dd8b0f
Compare
|
I see we've been added a reviewers on this one, but looking at the diff this branch (and PR stack) clearly needs a clean rebase before even consider merging/reviewing, as its diff includes a lot more things than it is supposed to, like bumps in the |
6dd8b0f to
c7242d9
Compare
🤖 Build Failure AnalysisThis build has failures. Claude has analyzed them - check the build annotations for details. |
…sing The "Log out / Sign In" alert shown after cancelling the web sign-in was presented on the window's root view controller, so UIKit dropped it whenever the root was already presenting something, such as the "Your Sites" tip. The app also never asked for sign-in when the token was missing at launch. A gate in the window manager's alert-level overlay window now offers only Sign In and Log out. It appears at launch, on foreground, and when a request is rejected, stays until the account has a token or is removed, and follows the scene when the system reconnects it.
c7242d9 to
a1fa87d
Compare
|
@AliSoftware I think you were notified to review the PR because of the rebase brought in some trunk changes. Sorry for the noise. |


Description
Users can currently cancel WordPress.com sign-in and keep using the app with no token. Cached content still looks available, but requests fail. The fallback "Log out / Sign In" alert can be dropped when the root view controller is already presenting something, such as the "Your Sites" tip.
The app now shows a blocking screen offering Sign In and Log out until the account has a token again or is removed. Cancelling web sign-in returns to this screen, keeping the recovery options available.
The screen uses
WindowManager's overlaying window so existing presentations cannot hide it. It also checks at launch and on foreground: relying on an API request to trigger sign-in misses users whose screens never access the v1 API getter.