classifai
classifai copied to clipboard
Recommended Content settings iteration
Is your enhancement related to a problem? Please describe.
The current Recommended Content block takes input from a user via several controls, two of which are the Categories and Tags multiselect boxes. Let's look into an iteration here that:
- Sets the
Post typefield to the same post type for the currently edited post type (e.g., if editing on a Page, then set thePost typetoPage). - Set the
CategoriesandTagsto be the same as the currently edited post type (e.g., if editing on a Page that's set asCategories=Sports,Tags=[Soccer, Technology], then set those categories and tags as the default ones for the Recommended Content block). - Add a
Use this Post's Categories and Tagstoggle that defaults to enabled and sets those fields based on #2 above. This makes those fields uneditable (or alternatively hides them). Disabling this toggle makes theCategoriesandTagsfields editable.
Props to @jakemgold for the inspiration on this UX improvement.
Designs
Use This Posts Categories And Tags setting enabled and showing full view of pre-set fields:

Use This Posts Categories And Tags setting enabled but hiding the pre-set fields / collapsing them away from view:

UseThisPostsCategoriesAndTags_Disabled:

Describe alternatives you've considered
n/a
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
While we work on a replacement for Personalizer in #392 the work here can be put on hold until work wraps in 392.