-
Type:
Task
-
Resolution: Merged
-
Priority:
Should have
-
None
-
2
-
Actions, Block: Actions List, Campaigns
-
Sprint #261, Sprint #262
-
pandora
Summary
Allow content editors to select a type for each action card via a dropdown in the WordPress editor on Action Pages. This type should display on the frontend (e.g., as a badge or label) as per the provided designs.
Requirements
- The whole implementation should be enabled only when a feature flag is enabled (off by default) under Planet 4 > Features
- Label: Actions Task Type
- Description: Adds option for showing whether an Action is either Online or IRL on Actions List block
- On Actions add a new sidebar section called "Action Options"
- Under "Action Options", add a new option called Task Type. (This field should be optional to fill out)
- Task Type field should be a dropdown with two options:
- Do it Online
- Do it IRL
- You can see a mockup of how the field will look like here:
- On the frontend:
-
- Display the selected type visually within each task box (style according to design specs).
- So if the action's task type is Do it Online the text on the tab of the card will say do Do it Online and the background of the card will be transparent.
- Else, if the action's task type is Do it IRL the text on the tab of the card will say do Do it IRL and the background of the card will be white.
- Default to no label on the card and a transparent background if the editor does not choose a value.