-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add ratings, reviews and icons into Marketplace's Product Cards #30840
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
Conversation
|
Local test run results: Failed scenarios:
It looks like failed tests aren't connected with the changes. |
andfinally
left a comment
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.
Looks great, thanks! I just left a couple of minor suggestions.
kloon
left a comment
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.
Changes looks great so far @tgglv, just left a small couple of comments that needs addressing.
| <span class="price"><?php esc_html_e( 'Free', 'woocommerce' ); ?></span> | ||
| <?php else : ?> | ||
| <span class="price"><?php echo wp_kses_post( $addon->price ); ?></span> | ||
| <span class="price-suffix"><?php esc_html_e( 'per year', 'woocommerce' ); ?></span> |
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.
How about we fetch the suffix from the API with a fallback to per year?
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.
Added in 4e370a4. I'm not sure how we'd translate such strings – we'll have to start passing the locale to the endpoint. Added 11488-gh-Automattic/woocommerce.com for the back end changes.
|
@tgglv I just tested it, and that works beautifully! Just a small comment, I'd suggest that the comments in the I made the changes in this diff file in case you want to implement it. |
andfinally
left a comment
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.
Thanks for the changes, looking good! Approving on the assumption we'll apply Gerhard and Remi's suggestions.
|
I took the liberty to pushing Remi's comment changes to the branch. Still waiting for confirmation on the UTM tags from marketing. |
vedanshujain
left a comment
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.
Left a minor comment. Looks like tests are also failing but seems unrelated, can you please rebase with latest trunk to see if that fixes the failing tests.
| * | ||
| * @return string CSS class to use. | ||
| */ | ||
| function wccom_get_star_class( $rating, $index ) { |
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.
can we move this function to class-wc-admin-addons.php? seems like this can be used in multiple views in the future and not just this one.
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.
Thanks, @vedanshujain! Addressed in 8e2f8bd.
@vedanshujain, it seems that the problem is in the |
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.
Thanks for the changes, LGTM! I am not merging it just yet, and will leave it to @Konamiman to see where we want to fix the composer for unit tests.
Also there are merge conflicts, once fixed let's see what can we do with that |
…ketplace-product-card
|
Hi @Konamiman, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
… allowing prices per month. This was added in #30840, but was accidentally omitted when we fixed conflicts.
All Submissions:
Changes proposed in this Pull Request:
The search on WooCommerce > Marketplace page that shows product from the WooCommerce.com marketplace as cards. During previous re-design phase we added updated product cards in #30410.
This PR updates those product cards by:
Also, the text color for recurring payment cadence ("per year") was changed according to the design.
Closes 10867-gh-Automattic/woocommerce.com
How to test the changes in this Pull Request:
Other information:
Changelog entry
FOR PR REVIEWER ONLY: