This pull request introduces the functionality to display options as expandable rows within a React Table. For a workaround using React Table, the questions' 'options' in the JSON file returned from the RDS were transformed to match the needed columns of the parent rows. This allows each question option to be rendered along with an indication of whether it is the correct answer or not.
What changes are introduced in this pull request?
Updated JSON data format to render into React Table for the subrows.
Updated Column's object to render indices rather than the respective question IDs.
Motivation and Context
These changes are necessary to enhance the table for results, making it more detailed and manageable for end users. By allowing options to be expandable, users can view and interact with the data more effectively.
Testing Steps:
Transformed JSON data and verified it matches the required format.
Rendered React Table with expandable rows and checked for correct display of options.
Verified that correct answer indications are displayed accurately.
Screenshots (if applicable)
Example:
Additional Notes
Known Issues:
Results table UI is not correct, will update in further updates.
UserSelected answer for each question will also need to be investigated. It returns null.
Future Improvements:
Further optimize the JSON transformation process.
Enhance user interaction capabilities with the expandable rows.
Pull Request Summary
Title
Create ability to show options as expandable
Description
This pull request introduces the functionality to display options as expandable rows within a React Table. For a workaround using React Table, the questions' 'options' in the JSON file returned from the RDS were transformed to match the needed columns of the parent rows. This allows each question option to be rendered along with an indication of whether it is the correct answer or not.
What changes are introduced in this pull request?
Motivation and Context
These changes are necessary to enhance the table for results, making it more detailed and manageable for end users. By allowing options to be expandable, users can view and interact with the data more effectively.
Screenshots (if applicable)
Additional Notes
Known Issues: Results table UI is not correct, will update in further updates. UserSelected answer for each question will also need to be investigated. It returns null.
Future Improvements: