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

Feedback enhancements - more feedback options added #46

Merged
merged 3 commits into from
Aug 5, 2022

Conversation

sei-jperrino
Copy link
Contributor

@sei-jperrino sei-jperrino commented Aug 5, 2022

Backend part of the feedback expansion. Allows questions more flexibility in a few ways:

  • Questions can now be single-select multiple choice by using selectOne as the question type in the feedback yaml file
    • Can be turned into a dropdown by adding display: dropdown under the question; otherwise uses radio buttons
  • Questions can now be multi-select multiple choice by using selectMany as the question type in the feedback yaml file
  • Text box can be added to a single-select or multi-select question by adding specify under the question, then providing a key and a prompt
    • key determines what answer option in a question has the text box (maximum one text box is allowed per question)
    • prompt is the guidance text to help a user give an answer in the text box (can also be left empty)

Example of a single-select dropdown:

- id: q1
  prompt: Best captain?
  type: selectOne
  display: dropdown
  options:
    - Kirk
    - Picard
    - Sisko
    - Janeway
    - Archer

Example of a multi-select with a text box on the "Other" option:

- id: q2
  prompt: What board games do you like?
  type: selectMany
  options:
    - Monopoly
    - Sorry
    - Clue
    - Mouse Trap
    - Settlers of Catan
    - Other
  specify:
    key: Other
    prompt: Please enter a board game for 2+ players ages 8 and up.

- Select one and multiple choice now supported
- Options field created to allow for multiple-choice answer options
- Counts added for select one and select all that apply
- Questions can now have a value called specify, which allows one field in a question to have a text box to pop up when selected
  - key specified in yaml says which option in the question allows this
  - prompt specified in yaml determines what "flavor text" to show in addition to the option (i.e. if no, "What could we have done differently?")
@sei-mkaar sei-mkaar added enhancement New feature or request and removed enhancement New feature or request labels Aug 5, 2022
Copy link
Collaborator

@sei-mkaar sei-mkaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in Foundry Appliance 👍

@sei-mkaar sei-mkaar merged commit 0783c4f into main Aug 5, 2022
@sei-mkaar sei-mkaar deleted the feedback-enhancements branch August 5, 2022 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants