-
Notifications
You must be signed in to change notification settings - Fork 215
Refactor: Featured product and Featured category classes
#6443
Conversation
fecf7ec to
a6679dc
Compare
|
Size Change: 0 B Total Size: 862 kB ℹ️ View Unchanged
|
Featured product and Featured category classes
a6679dc to
ed11bce
Compare
Script Dependencies ReportThe
This comment was automatically generated by the |
sunyatasattva
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.
I'm super happy with this. I think we have managed to improve these blocks a lot with this refactor! My only comments are small nitpicks.
sunyatasattva
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.
❤️ Nice job! Thank you for addressing my nitpicks. In the end you didn't decide to bring up the string concatenation thing, I see :)
Following the same idea as in the #6406 refactor, this PR aims to reduce code duplication in the
Featured ProductandFeatured Categoryblocks.FeaturedItem.phpwith the common code is introduced.FeaturedProductandFeaturedCategoryclasses extend the newFeaturedItemclass and implement some functions with the specific code needed for each.Testing
Automated Tests
User Facing Testing
Featured Categoryblock.Featured Productblock.