-
Notifications
You must be signed in to change notification settings - Fork 4.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
Editor help documentation images missing, content obscured #53591
Comments
The cut off content occurs in the Demo editor (iOS and Android). So, possibly related to #52563, which was included in #51303. The images correctly display when using the Demo editor (iOS and Android) and in the WordPress app for Android. So, the missing images in the WordPress app for iOS must relate to packaging the app via an XCFramework and wordpress-mobile/gutenberg-mobile#5924. |
👋🏻 @mokagio do you know if we might need to define specific XCFramework packaging steps to include the relevant static image files? Running the |
I think this may be the case. According to the docs, the name of static image resources needs to be known at bundle time. When logging out the source value of these images, an integer is returned. It appears either the name of the image is not being included, or the image itself is not being packaged. (Side note: I noticed the combined size of these images is 9.7 MB. There is likely an opportunity to use WebP in place of PNG resources here to reduce the bundle size.) |
My understanding is that the documentation's reference to names relates to the lack of support for dynamic names. E.g. you cannot interpolate a value I believe your last point of images "not being packaged" is likely the cause of the reported missing images. My guess is that they are not included when generating the XCFramework.
Good idea! |
@mokagio we'd like to address the reported issue in the 23.0 release before it is published to the stores, if possible. The help articles can be difficult to comprehend without the visuals communicated with the images. I opened wordpress-mobile/gutenberg-mobile#6061 exploring how we might include the static image assets in the XCFramework. Unfortunately, the XCFramework build fails in that branch locally. Would you be willing to help me debug or identify an alternative solution? 🙇🏻 |
@dcalhoun sorry for the late followup. Having a look now 👀 |
Possibly related to woocommerce/WooCommerce-Shared#61 (comment) which was solved via updating the |
I'm working on wordpress-mobile/gutenberg-mobile#6067 which is promising: |
Looks promising indeed, thanks for working on this fix @mokagio! |
I assume it's safe to close this because #53591 landed. However, I don't have the rights to do it. |
Thanks for the prompt @mokagio, as well as for all your help fixing this! Going ahead to close now. |
Description
Images displayed within the editor's "Help" section display blank boxes rather than the images themselves. Additionally, after closing and re-opening the help section, content is obscured by the scroll view only populating 50% of the device height.
This appears to have begun occurring in 23.0 app release, likely related to #51303.
Step-by-step reproduction instructions
Expected behaviour
The images are displayed and all text content is accessible via scrolling.
Actual behaviour
The image are missing and text content at the bottom of the page is inaccessible as it is cut off.
Screenshots or screen recording (optional)
Reproduction video
reproduction.MP4
WordPress information
Device information
The text was updated successfully, but these errors were encountered: