Skip to content
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

AnswerStep component #102

Open
12 of 14 tasks
ddfridley opened this issue Apr 3, 2024 · 2 comments
Open
12 of 14 tasks

AnswerStep component #102

ddfridley opened this issue Apr 3, 2024 · 2 comments
Assignees
Labels

Comments

@ddfridley
Copy link
Contributor

ddfridley commented Apr 3, 2024

<AnswerStep className=""
     intro: "" // text for the introduction
     whyQuestion: "" // the text for the left of the why input
     question: {} // a pointObj
     shared: {
        startingPoint: {} // the pointObj
         whyMosts: []
     }
     onDone: ()=>{}
/>

Figma
Image

  • the horizontal bar at the bottom and Next button are not part of this component
  • Use the step-intro component for the top
  • User the why-input component to ask for each part
  • When the user has filled in both parts, call onDone with {valid: true, value: {startingPoint: {}, whyMost: {}})
  • If either of the why-input components passes valid: false - need to call onDone with valid:false and the current data
  • should set parentId of the whyMost point to the _id of the startingPoint
  • whyMosts is a list, need to use the _id of the startingPoint to find the corresponding whyPoint in the list
  • create a story
  • create a case for empty - no props yet
  • create a default case
  • create a case where there is an inital startingPoint and whyPoints
  • create a case where there are multiple whyMosts, but only one has a parentId of the startingPoint
  • create a test case where the use sets the why answer first, and then the startingPoint - this case needs to get the parentId right
  • create play tests of the above and check the onDone callback results.
@ddfridley ddfridley changed the title Answer component AnswerStep component Apr 3, 2024
@ldgze ldgze assigned ldgze and unassigned ldgze May 13, 2024
@ldgze ldgze self-assigned this Jun 3, 2024
@ddfridley
Copy link
Contributor Author

@ldgze How's it going? You have this issue assigned to you as well as #80 are you working on both? If not, can you unassign one? Thanks.

@ldgze
Copy link
Contributor

ldgze commented Jun 18, 2024

@ldgze How's it going? You have this issue assigned to you as well as #80 are you working on both? If not, can you unassign one? Thanks.

Hi David,

I would like to focus on #80, which I am currently working on. Could you please unassign me from #102?

Thank you!

@ldgze ldgze removed their assignment Jun 18, 2024
@MingyiXu11 MingyiXu11 self-assigned this Jun 23, 2024
@ddfridley ddfridley mentioned this issue Jul 9, 2024
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants