-
Notifications
You must be signed in to change notification settings - Fork 0
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
[XI-6368] Enhance results page #77
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JuliaCasamitjana
force-pushed
the
jc/XI-6368_enhance_results_page
branch
from
April 26, 2024 08:21
95ac4f4
to
c9dcd34
Compare
JuliaCasamitjana
force-pushed
the
jc/XI-6368_enhance_results_page
branch
from
April 26, 2024 09:29
c9dcd34
to
03a3b8f
Compare
As discussed, let's try to implement without reusing the
|
JuliaCasamitjana
force-pushed
the
jc/XI-6368_enhance_results_page
branch
from
April 30, 2024 08:10
03a3b8f
to
6fea0e2
Compare
Rows can now be expanded or collapsed by clicking them. A chevron icon indicates the state. When collapsed, the question text truncates to one line and it becomes fully visible when the row is expanded. Markdown styles are reset to maintain the same font size and for the collapsed state they adopt the paragraph style (no colors, font weight, underlines...)
JuliaCasamitjana
force-pushed
the
jc/XI-6368_enhance_results_page
branch
from
April 30, 2024 08:47
6fea0e2
to
63da2b2
Compare
christophblessing
requested changes
Apr 30, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice progress! I find the refactored solution much more straight forward.
JuliaCasamitjana
force-pushed
the
jc/XI-6368_enhance_results_page
branch
from
April 30, 2024 13:44
63da2b2
to
9decffb
Compare
The component style is based on the question and answers component. Specific answers can highlighted. We use it to display the last selection the user made. For that we need to extend the ResultType with a selections property. This property will be updated every time the user submits an answer. Extend result component tests and update documentation
Remove reference heading and replace attempts heading with icon on mobile view
JuliaCasamitjana
force-pushed
the
jc/XI-6368_enhance_results_page
branch
from
April 30, 2024 14:14
9decffb
to
65e1baa
Compare
christophblessing
approved these changes
Apr 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR enhances the results table by:
Commit 1: Introducing collapse/expand functionality for table rows. It truncates the questions text to 1 line in the collapsed state. For this we create the
ResultsRow
component.Commit 2: Including answers with the last user selection. For this we create the
ResultViewer
component, which contains a representation of the question and answers form but in a static way.It also improves the responsiveness (commit 3)
See mobile view
Decisions / Choices I made
Markdown styles are reset to maintain the same font size and for the collapsed state they adopt the paragraph style (no colours, no font weight, no underline...)
To include a representation of non-checked radio and checkboxes the regular font awesome package is required.
Since the
ResultViewer
component is rather straightforward (not too much logic is involved), we're including its testing into the Results test. This way, we can also verify that the collapsed state gets passed from the entire row to theResultViewer
component.Checklist