pc - add ReportHeaderTable.js and storybook entry for it #61
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.
Overview
In this PR, we introduce frontend components that will be used to implement the instructor report.
The two new components are:
ReportHeaderTable
, which displays rows from thereports
table, and represents a snapshot of information about aCommons
(i.e. one of the games being played). It is intended to display only one row at a time and appear at the top of a report about a specific commons.ReportLineTable
which displays lines from thereport_lines
table, each of which represents one player in the game, and a snapshot of their data at the time the report was made.Issues Addressed
This is all in service of #18 but does not close it.
Storybook Links / Screenshots
ReportHeaderTable
: https://ucsb-cs156.github.io/proj-happycows/prs/61/storybook/?path=/story/components-reports-reportheadertable--one-reportReportLineTable
https://ucsb-cs156.github.io/proj-happycows/prs/61/storybook/?path=/story/components-reports-reportlinetable--one-reportDetails
We add storybook entries for table components that can display the header for a report (information from the Commons)
and the detail of the report (information from each UserCommons associated with that commons.)
These components will be used later in a page for the instructor report.