Closed StephieTack closed 2 days ago
Hi there!
I have a few suggestions for your user story:
Description
Since this user story involves changes to the user interface, please include wireframes. This will make your Acceptance Criteria clearer, and the user story overall easier to understand and implement.
Acceptance Criteria
Currently, it sounds like there are three separate forms, one for the name, color, and emoji. I’d recommend revising the section that describes the “Create Emotion Type” page. Here’s my suggestion:
The “Create Emotion Type” page displays a form with the following form fields:
- A dropdown to choose an Emotion type name. The options in the dropdown are predefined. - A predefined palette of colors for selecting an emotion color. - A predefined palette of emojis for selecting an emoji.
Additionally, I’d suggest specifying the type of form field for color and emoji selection. Will these also use a dropdown like the Emotion type name?
I also had a question: What if the user decides not to add a new Emotion type after all? Is there a “Cancel” option, or another way for the user to exit this view and return to the “Add Emotion” form? Please consider adding this to your Acceptance Criteria.
Hope, that helps. 🙂
Nice update.
If you are implementing the form as shown in your wireframe, I guess you are going to use radio buttons for the color and emojis, so that only one option can be chosen by the user. I suggest to add that to your acceptance criteria.
Value proposition
As a user I want to create and customize my own emotion types In order to personalize my experience and have options that fit my unique emotions.
Description
Design for the CTA that leads to the new form:
Wireframe for the Create Emotion Type Form:
Acceptance criteria
Tasks
Create a new branch
feature/custom-emotiontypes
Store Custom Options in Configuration Files
customEmotionOptions.js
:EmotionIcon.js
customEmotionTypes
,customColors
, andcustomEmojis
.customEmotionOptions.js
:id
andname
properties, e.g.,{ id: 1, name: "Love" }
name
andhex
properties, e.g.,{ name: "Red", hex: "#FF0000" }
.name
andicon
properties, e.g.,{ name: "Smile", icon: "😊" }
.Set Up Custom Emotion Type Creation with
useLocalStorageState
useLocalStorageState
in theCreateEmotionType
Component:useLocalStorageState
to store and manage an array of custom emotion types.customEmotionTypes
.customEmotionTypes
.customColors
.customEmojis
.CreateEmotionType
.customEmotionTypes
.setCustomEmotionTypes
to update the state and persist in local storage.Homepage
, with the newly created emotion type pre-selected in the form.Integrate Custom Emotion Types in Add Emotion Form
Add Emotion
Component:useLocalStorageState
to fetchcustomEmotionTypes
and merge them with predefined emotion types to dynamically populate the dropdown list.customEmotionTypes
are also available in any filtering components, such as emotion type filters.Update Styling and Components
color
andemoji
props inEmotionCard
.color
prop and display theemoji
as part of the card content.