nerubia / kh360-react

KH360 Frontend
0 stars 0 forks source link

Answer Survey Forms - add Save button #899

Open gborgonia-ir opened 4 months ago

gborgonia-ir commented 4 months ago

On Answer Survey Forms, currently available actions include: Cancel & Exit, Save & Submit

Add Save as Draft button beside Save & Submit

Create API for this, it will be same as Submit Survey but the status will remain the same as current status

And submitted data should not show yet on the results

jatnerubia commented 3 weeks ago

FE: https://github.com/nerubia/kh360-react/pull/1253 BE: https://github.com/nerubia/kh360-nodejs/pull/672

Acey06 commented 3 weeks ago

Hello @gborgonia-ir, for the AC stated:

Create API for this, it will be same as Submit Survey but the status will remain the same as current status

And submitted data should not show yet on the results

image

image

image

Acey06 commented 3 weeks ago

Hello @jatnerubia, based on DSU discussion, here's the update for Save as Draft behavior:

  1. As is for "Draft" status in:
    • Survey Admin Result screen
    • Survey Form screen
  2. In Survey Admin Result screen, Selected items shouldn't be displayed yet (Empty).
  3. When reopening the Saved as Draft Survey:
    • Should still be able to select
    • "Save as Draft" and "Save & Submit" should be highlighted
jatnerubia commented 3 weeks ago

BE: https://github.com/nerubia/kh360-nodejs/pull/679

Acey06 commented 3 weeks ago

Verified OK in Beta

https://github.com/nerubia/kh360-react/assets/26914098/ef09d9b9-fed6-40c7-a789-0c7c1a46b466