Skip to content

Commit a7929b3

Browse files
feat: all learners content
1 parent 1aa4904 commit a7929b3

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

src/grading/components/GradingLearnerContent.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,26 @@ const GradingLearnerContent = ({ toolType }: GradingLearnerContentProps) => {
7676
}
7777
];
7878

79-
const allLearnersActionRows = [];
79+
const allLearnersActionRows = [
80+
{
81+
title: intl.formatMessage(messages.resetAttempts),
82+
description: intl.formatMessage(messages.resetAllLearnersAttemptsDescription),
83+
buttonLabel: intl.formatMessage(messages.resetAttemptsButtonLabel),
84+
onButtonClick: () => console.log('Reset attempts for all learners')
85+
},
86+
{
87+
title: intl.formatMessage(messages.rescoreSubmission),
88+
description: intl.formatMessage(messages.rescoreSubmissionAllLearnersDescription),
89+
buttonLabel: intl.formatMessage(messages.rescoreSubmissionButtonLabel),
90+
onButtonClick: () => console.log('Rescore submission for all learners')
91+
},
92+
{
93+
title: intl.formatMessage(messages.taskStatus),
94+
description: intl.formatMessage(messages.taskStatusDescription),
95+
buttonLabel: intl.formatMessage(messages.taskStatusButtonLabel),
96+
onButtonClick: () => console.log('Check task status for all learners')
97+
}
98+
];
8099

81100
const rows = toolType === 'single' ? singleLearnerActionRows : allLearnersActionRows;
82101

src/grading/messages.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,16 @@ const messages = defineMessages({
155155
id: 'instruct.grading.overrideScorePlaceholder',
156156
defaultMessage: 'Score',
157157
description: 'Placeholder text for the override score input field'
158+
},
159+
resetAllLearnersAttemptsDescription: {
160+
id: 'instruct.grading.resetAllLearnersAttemptsDescription',
161+
defaultMessage: 'Allows all learners to work on the problem again.',
162+
description: 'Description for the reset attempts action card in the all learners view'
163+
},
164+
rescoreSubmissionAllLearnersDescription: {
165+
id: 'instruct.grading.rescoreSubmissionAllLearnersDescription',
166+
defaultMessage: 'For the specified problem, rescore all learners\' responses.',
167+
description: 'Description for the rescore submission action card in the all learners view'
158168
}
159169
});
160170

0 commit comments

Comments
 (0)