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

Assessments: add summary text component and story #22415

Merged
merged 6 commits into from May 15, 2018
Merged

Conversation

nkiruka
Copy link
Contributor

@nkiruka nkiruka commented May 15, 2018

This PR is to add a "SummaryText" component and story.

The summary text component displays the results of how many students submit an assessment. This component will be displayed above the overview assessment table.

return (
<div>
<div>
{`multiple choice questions overview ${numSubmissions}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: uppercase m
(and add to i18n)

@nkiruka
Copy link
Contributor Author

nkiruka commented May 15, 2018

@caleybrock Updated PR

return (
<div>
<div>
{i18n.summaryAssessmentsOverview()} {`${numStudentSubmissions} / ${totalNumStudents}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

you can do this without double {}:
{i18n.summaryAssessmentsOverview() + '${numStudentSubmissions} / ${totalNumStudents}'}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@caleybrock the string concatenation did not display the text correctly. I reverted back to the string interpolation I had before. Thoughts..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@caleybrock Dave helped out with refactoring code. All set.

Copy link
Contributor

@caleybrock caleybrock left a comment

Choose a reason for hiding this comment

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

Just one style change, otherwise looks good!

@nkiruka nkiruka merged commit 59264e4 into staging May 15, 2018
@nkiruka nkiruka deleted the summary-text branch May 15, 2018 20:27
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.

None yet

2 participants