-
-
Notifications
You must be signed in to change notification settings - Fork 956
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
SAK-50917 WC SakaiGrader when grading move peer review rubrics to an accordion #13257
base: master
Are you sure you want to change the base?
Conversation
@st-manu Screenshots look great! |
<div> | ||
<span class="fw-bold me-2">${this._i18n.grade}</span> | ||
<span>${pr.scoreDisplay}</span> | ||
<div class="accordion" id="accordionPeerReviews"> |
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.
please use kebab case for all html element ids
<div class="accordion" id="accordionPeerReviews"> | ||
${this._submission.peerReviews.map(pr => html` | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header" id="peerHeading-${pr.assessorUserId}"> |
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.
kebab case please
<div> | ||
<span class="fw-bold me-2">${this._i18n.grade}</span> | ||
<span>${pr.scoreDisplay}</span> | ||
<div class="accordion" id="accordionPeerReviews"> |
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.
<div class="accordion" id="accordionPeerReviews"> | |
<div class="accordion" id="peer-reviews"> |
<div class="accordion" id="accordionPeerReviews"> | ||
${this._submission.peerReviews.map(pr => html` | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header" id="peerHeading-${pr.assessorUserId}"> |
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.
<h2 class="accordion-header" id="peerHeading-${pr.assessorUserId}"> | |
<h2 class="accordion-header" id="peer-heading-${pr.assessorUserId}"> |
${pr.assessorDisplayName} | ||
</button> | ||
</h2> | ||
<div id="peerCollapse-${pr.assessorUserId}" class="accordion-collapse collapse" aria-labelledby="peerHeading-${pr.assessorUserId}" data-bs-parent="#accordionPeerReviews"> |
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.
<div id="peerCollapse-${pr.assessorUserId}" class="accordion-collapse collapse" aria-labelledby="peerHeading-${pr.assessorUserId}" data-bs-parent="#accordionPeerReviews"> | |
<div id="peer-collapse-${pr.assessorUserId}" class="accordion-collapse collapse" aria-labelledby="peer-heading-${pr.assessorUserId}" data-bs-parent="#peer-reviews"> |
${this._submission.peerReviews.map(pr => html` | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header" id="peerHeading-${pr.assessorUserId}"> | ||
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#peerCollapse-${pr.assessorUserId}" aria-expanded="true" aria-controls="peerCollapse-${pr.assessorUserId}"> |
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.
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#peerCollapse-${pr.assessorUserId}" aria-expanded="true" aria-controls="peerCollapse-${pr.assessorUserId}"> | |
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#peer-collapse-${pr.assessorUserId}" aria-expanded="true" aria-controls="peer-collapse-${pr.assessorUserId}"> |
tool-id="${this.toolId}" | ||
entity-id="${this.entityId}" | ||
instructor="true" | ||
is-peer-or-self="true" |
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.
This is a boolean attribute, so you dont need the string value
evaluated-item-owner-id="${this._submission.groupId || this._submission.firstSubmitterId}"> | ||
</sakai-rubric-student> | ||
<hr class="itemSeparator"> | ||
` : ""} |
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.
` : ""} | |
` : nothing} |
</div> | ||
<div class="mt-2 mb-2 fw-bold">${this._i18n.reviewer_comments}</div> | ||
<div>${unsafeHTML(pr.comment)}</div> | ||
${pr.attachmentUrlList && pr.attachmentUrlList.length > 0 ? html` |
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.
${pr.attachmentUrlList && pr.attachmentUrlList.length > 0 ? html` | |
${pr.attachmentUrlList?.length > 0 ? html` |
thank you for the review @adrianfish |
tool-id="${this.toolId}" | ||
entity-id="${this.entityId}" | ||
instructor="true" | ||
is-peer-or-self="true" |
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.
is-peer-or-self="true" | |
is-peer-or-self |
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.
I wanted to make sure it was still working before making the change since the rest of the rubrics use the string, but I can't test it right now
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.
Boolean attributes can not have a string value. is-peer-or-self="false" would still be positive
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.
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.
understood! change made, thanks @adrianfish
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.
Thanks!
…w rubric when grading
https://sakaiproject.atlassian.net/browse/SAK-50917
After adding the rubrics, the content of each peer review may be too lengthy to display all of them expanded. I have changed the format to an accordion (as it is in the classic grader).