Reader: Support Stories in detail view - #13002
Conversation
Specifically, this keeps class tags which we need for the Stories CSS to be applied. Otherwise, the story's preview image isn't centered vertically if it's shorter than the story container.
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APK here. |
There was a problem hiding this comment.
Thanks @aforcier! It all looks great overall. I've encountered one small issue though. When I click on a story on a .com site the system prompts me to choose an app I want to open it in -> when I choose WordPress Android it just re-opens Reader Post Detail view. I'm not sure we can modify the intent filter somehow. Wdyt?
|
Yikes, good catch - I'm not sure why this doesn't trigger on my emulators, but I can confirm it on an actual device. Looks like the intent filter needs to be modified, yes - I'll look into it and follow up, thanks 👍 |
|
So here's what I've found out. We already disable the Reader deeplink when opening an external URL, so that the app doesn't appear as an option. We then re-enable it (there and in a couple of other places for safety). As far as I can tell, on certain APIs and devices the re-enabling of the Reader deeplink component in that This affects the Reader deeplinks in general (try hitting the globe button in the detail page instead for example) and isn't specific to Stories, but affects Stories a bit worse since they effectively link to themselves. Reproduced on: Could not reproduce on: I'll open an issue and resolve this in a separate PR - I think the change will be somewhat deep and I don't want to bury it in an apparently unrelated PR. |
malinajirka
left a comment
There was a problem hiding this comment.
Thanks, LGTM and I can confirm the fix works as expected.

Tweaks the Reader to support the Story block in detail view:
The bulk of the work for this has been done in the shared CSS file in Calypso and already deployed: Automattic/wp-calypso#45397
Extra changes that were needed for WPAndroid:
iOS PR: wordpress-mobile/WordPress-iOS#14965
To test:
reader-mobile.cssand aren't hit by the 5-day cachePR submission checklist:
RELEASE-NOTES.txtif necessary.