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

FEATURE - API - Add the ability to return the solution buttons in a node #120

Open
3 tasks
ritarora opened this issue Jun 14, 2022 · 0 comments
Open
3 tasks
Assignees
Labels
guided-answers-api For guided answers API type:feature New feature or request

Comments

@ritarora
Copy link
Member

ritarora commented Jun 14, 2022

As a user, I want to be able to see the solution buttons for the node of the tree as defined in the Guided Answers

Description

While creating the tree the content creator can add solution buttons to a node of a tree and other outcomes.

If a content creator chooses to show solution buttons and add other outcomes then as there is other outcomes available to the user only the 'This is solved the issue' button is displayed to the user along with the other outcomes. Currently, the API returns only the outcomes in this scenario. If the user has added solution buttons and other outcomes then whether the solution buttons are present should also be returned to the API so this scenario can be reflected in the extension.

If a content creator chooses to add the solutions buttons with no others outcomes then the 'This solved my issue' and 'This did not solve my issue' buttons are displayed to the user. As this scenario would mean that this node is the last node in the tree then 'This solved my issue' and 'This did not solve my issue' buttons are displayed by default. Regardless, that these buttons are displayed by default the solutions should be returned by the API also.

Technical Design

This is an example of the last node where no outcomes are returned
Screenshot 2022-06-14 at 13 26 18

This is an example of a node where solution buttons and outcomes are defined, but only the outcomes are returned in the API and not the solution buttons
Screenshot 2022-06-14 at 13 26 30

Acceptance Criteria

Given the user has reached the last node of the Guided Answers tree,
solution buttons should be displayed with or without the custom outcomes

Notes

Tasks

  • Unit Tests added
  • Test Cases defined
@ritarora ritarora added type:feature New feature or request guided-answers-api For guided answers API labels Jun 14, 2022
@ritarora ritarora changed the title FEATURE - Add the ability to return the solution buttons for last node FEATURE - Add the ability to return the solution buttons Jun 14, 2022
@carwelsh carwelsh changed the title FEATURE - Add the ability to return the solution buttons FEATURE - Add the ability to return the solution buttons in a node Jun 14, 2022
@carwelsh carwelsh changed the title FEATURE - Add the ability to return the solution buttons in a node FEATURE - API - Add the ability to return the solution buttons in a node Jun 16, 2022
@JonWiens JonWiens self-assigned this Aug 2, 2022
@carwelsh carwelsh mentioned this issue Mar 23, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guided-answers-api For guided answers API type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants