Closed jwold closed 3 years ago
@davidlonjon do you have availability to pick this up for Sprint 2? If so, can you write the implementation brief and move it to Review
?
@ravichdev,
I have added the implementation brief for it. I ran out of time a little bit today so did not go into details. I am not sure if sufficient.
cc @jwold
@jwold , I don't think we will be able to achieve the requirement: "Hovering over a Post title in the edit window will display a tooltip for the Post ID" for MVP as the posts list in the edit mode is provided by an external component from WooCommerce which we cannot modify without embedding into our repo but this will take a long time. I don't think this is a critical feature, so I'll rather have it out for MVP. Is it ok? cc @ravichdev
@davidlonjon I agree this doesn't need to be MVP. Thank you! :)
@davidlonjon we discussed the benefit of having hand-picked pages or custom post types. Is this something that would need to be a new issue? It feels like that, but wanted to get your feedback first.
Hi @jwold, It should be a new issue. Also, we might want to consider to make them different blocks (one for pages and one for CPT) too (?) as it would make the blocks simpler as well as clearer from the user's perspective. cc @ravichdev
Found an issue with QA on staging:
cc @davidlonjon
@jwold ,
Today I did some investigation and I think what you've reported with "New posts appear to not show up", is due to the following issue #128 which is quite a big one. I have submitted a PR for it #129 which should hopefully fix this.
cc @ravichdev
@jwold: This issue "New posts appear to not show up:" should now been fixed as it was due to the bug that I mentioned above and the fix has now been merged
Awesome. Thanks so much!
@csossi this issue is ready for QA as well. Thanks!
A few quick notes:
Hi @jwold, @csossi ,
I think our Material theme might impact the look of the edit mode of the block as on my local it looks like
but on the test environment it looks like
I think there is an alignment issue.
Also here is a video showing how the our material theme is affecting the alignment control (though I cannot replicate what we are seeing on the test environment as shown on the screenshot above):
https://cloudup.com/cnBu4jtRiIJ
Maybe it would be worth trying to switch the theme to Tweenty Tweenty on the test environment to check if the issue still remains as it could be something with the plugin too.
cc @emeaguiar , @ravichdev
Finally, Joshua the tooltip for post ID will not work for MVP as this block is making use (as a module dependency) of a component from WooCommerce which we cannot change. We would have to embed the specific import completely inside our repo and then we could modify for our purpose, but it will be a lot of work because of the way they build the styles with Sass. I am not sure it would be worth the effort for showing the Post ID tooltlip. In any case this cannot be done for MVP.
Thanks for the update David!
I am not sure it would be worth the effort for showing the Post ID tooltlip. In any case this cannot be done for MVP.
Agreed. Let's pass on this.
@davidlonjon I'll take a look to see what's happening
@davidlonjon ~is that alignment button not available in develop yet? It's not appearing in my local install, do I need to activate an option?~ Realized that is the issue.
Also, I've confirmed that the test site alignment of the edit screen looks the same even with the Material Theme deactivated, so something else is going on in there:
After some research it seems the theme needs to enable support for these widths. So this is not exactly a bug. I'll work on adding support.
I have a PR in the repo to add alignment support: xwp/material-theme-wp#41 it'll be visible in the testing site once it's merged.
@jwold
When I use the Search tool to search for posts, there's some cutoff along the bottom edge of design panel - unable to scroll (was using Win10/Chrome):
@jwold
When I use the "clear all" under Posts in the design panel, the posts clear, but hangs on the "loading"/"working" animation:
When I use the Search tool to search for posts, there's some cutoff along the bottom edge of design panel - unable to scroll (was using Win10/Chrome):
It appears that two-line post titles are being cutoff: https://d.pr/i/6oaS2x. Can we increase line height of the item, or something like that?
When I use the "clear all" under Posts in the design panel, the posts clear, but hangs on the "loading"/"working" animation:
I wonder if we should set the hand-picked posts back to the edit
mode, so that users can then pick again?
cc @emeaguiar
Going to move this to complete. We can always open a new ticket if that QA issue appears.
Feature description
Display a number of hand-picked posts as a content block. Similar to Recent Posts, this will display the posts as individual cards.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Adding the block
Editing the block
Previewing the block
Masonry style
,3 columns
, andtext above media
Block settings
text above media
,text over media
,text under media
. These will adjust the placement of the headline and subtitle in relation to the post image. These variants should be matched in the web component demo. https://material-components.github.io/material-components-web-catalog/#/component/card?type=basicPrototype:
Figma link
Implementation brief
Recent Posts
block and showing the selection of individual posts in the left hand side panel when used in theHand-picked Posts
block.Placeholder
component that will be allow the user to select individual posts and manage them (removal). When the user will finish the posts selection he will click on a done button which will remove thePlaceholder
component and use theServerSideRender
component to render the selected posts in a similar fashion as with theRecent Posts
block. TheServerSideRender
handover the rendering to PHP. An example of implementation can be found in the code of the Woocommerce Handpicked products blockPlaceholder
component allowing the selection of the posts should save the posts ids inside an a block attributes so the PHP backend will create a WP_Query based on these ids to get the list of postsphp/blocks/class-recent-posts-block.php
class should be created. The 2 classes should be refactored extend a base class that will allow sharing the common feature of this 2 classes as nearly all the functionality will be the same except for the arguments of the WP_query.QA testing instructions
Note 1: With most of these changes you'll also want to see if the frontend is working, and not just the Gutenberg preview. It's possible there are discrepancies.
Note 2: For now we're just testing with the theme set in the staging env,
Adding the block
Previewing the block
Ensure the ripple effect works as expected
Verify that posts function in all 3 styles and all 3 content layouts with and without images
Test against the card component to validate whether the block overall follows the card guidelines https://material.io/develop/web/components/cards/
Ensure that the 3 styles appear as expected
Ensure that columns work as expected
Ensure that the width options in the block toolbar function correctly
Ensure that each of the post meta settings appear as expected
Test the post orders, may require adding comments to a few posts, and verifying the post publish dates
Test whether the block changes when the font, radius, colors, and icon type are changed in the Customizer
Demo
Changelog entry