-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add goal centric filter groups in design picker #97113
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
@@ -207,34 +227,72 @@ const DesignPicker: React.FC< DesignPickerProps > = ( { | |||
} ) => { | |||
const hasCategories = !! Object.keys( categorization?.categories || {} ).length; | |||
const filteredDesigns = useFilteredDesigns( designs, categorization ); | |||
|
|||
// Pick design | |||
const features = [ 'blog', 'magazine', 'portfolio', 'podcast', 'store' ]; |
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.
There is not newsletter
in the list of categories. I have used magazine
instead.
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.
There are only 2 recommended newsletter designs so the newsletter
category is hidden. We have to add more designs to display it.
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.
Ola is working on adding more themes to newsletter
. It's fine if we only render 4 features in the meantime!
|
||
// Pick design | ||
const features = [ 'blog', 'magazine', 'portfolio', 'podcast', 'store' ]; | ||
const [ featureCategories, setFeatureCategories ] = useState< Category[] >( [] ); |
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 think we can simply use useMemo
to get features and subjects 🙂
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.
Good suggestion :) Fixed in d1ab480
ae28198
to
d1ab480
Compare
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
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.
👍
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/17049293 Some locales (Hebrew, Japanese) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @madhusudhand for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
Related to https://github.com/Automattic/dotcom-forge/issues/10014
Proposed Changes
Features
andSubjects
to the design pickermulti-selection is false
Note:
Buttons aren't given any background as suggested in the mocks. It will be iterated in a followup PR.
Why are these changes being made?
Testing Instructions
design-picker/goal-centric
design-picker/goal-centric
Features
andSubjects
and user should be able to select unselect any of the categories.Pre-merge Checklist