-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Stories/add media picker for empty blocks #14588
Conversation
…ting empty Story block in Gutenberg
…er provider will be called right away
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
Once this PR is tested, we can update the stories library hash which is conflicting with the base branch 👍 |
You can test the changes on this Pull Request by downloading the APK here. |
# Conflicts: # libs/stories-android
@mzorz I merged in It's there as usual if you then add media from within the story creator: I'm not sure if we're maybe using the wrong picker, or else something from this PR needs to be adapted for the case of launching from GB: #13242 |
Nice catch @aforcier ! Will take a look and get back here 👍 |
…provider to pass it through
This is fixed now in 8bc6e92, the problem was that the parent Activity (ComposeLoopFrameActivity) would take control of the intent before the StoryComposerActivity would have initialized its viewModel through Ready for another pass @aforcier 🙏 |
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.
Working well!
Fixes Automattic/stories-android#593
See related Stories PR Automattic/stories-android#675
To test:
General case
ADD MEDIA
button in the Story block placeholderEDIT: I've been touching on some corner cases so I added some more manual test cases here below.
CASE A: first run and cancel (StoryRepository is empty)
CASE B: second run and cancel (StoryRepository is empty)
CASE C: first run and add media (StoryRepository is empty)
CASE D: second run and add media (StoryRepository is empty)
CASE E: mix photos and video taken with the Stories library's camera functions (cameraX)
Regression Notes
Potential unintended areas of impact
N/A this only affects Stories empty block handling
What I did to test those areas of impact (or what existing automated tests I relied on)
N/A
What automated tests I added (or what prevented me from doing so)
N/A this only changes an extra in an Intent
PR submission checklist:
RELEASE-NOTES.txt
if necessary.