Skip to content

feat(Discussion): Summarize student responses in grading tool#2262

Merged
hirokiterashima merged 3 commits intocm-component-ai-summarizerfrom
cm-discussion-summarize-responses
Feb 4, 2026
Merged

feat(Discussion): Summarize student responses in grading tool#2262
hirokiterashima merged 3 commits intocm-component-ai-summarizerfrom
cm-discussion-summarize-responses

Conversation

@hirokiterashima
Copy link
Member

@hirokiterashima hirokiterashima commented Jan 27, 2026

Notes

Please style and change the system prompt as you see fit

Changes

For units with AI enabled (see "Test Prep" below), in the CM for any Discussion item:

  • Show "Generate Student Summary" button if there is at least one post for the period selected (includes when "All Periods" is selected)
    • Clicking on the button generates summary and displays it.
      • Show spinner while waiting
      • Shows summary in the same language as the prompt
      • Show (# responses) after summary
    • Summary is saved in localStorage. Coming back to the component should re-display the summary
    • Clicking on the button again generates new summary and overwrites the existing one.
  • Show "No student responses" if there is no post for the period selected

Test Prep

Add top-level json field in the unit to enable this feature:

{
...
"ai": { "enabled": true }
...
}

Test

  • Changes work as described above
  • Units that don't have AI enabled do not show the Discussion summarizer

@hirokiterashima hirokiterashima self-assigned this Jan 27, 2026
@hirokiterashima hirokiterashima added the enhancement New feature of any size or improvement (UI, performance, security) label Jan 27, 2026
@hirokiterashima hirokiterashima marked this pull request as ready for review January 27, 2026 22:47
@hirokiterashima hirokiterashima requested review from breity and removed request for breity February 4, 2026 18:11
Copy link
Member

@breity breity left a comment

Choose a reason for hiding this comment

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

Looks good. Time of summary generated isn't showing up. As discussed, @hirokiterashima will fix in feature branch.

@hirokiterashima hirokiterashima merged commit d99fdcc into cm-component-ai-summarizer Feb 4, 2026
1 check failed
@hirokiterashima hirokiterashima deleted the cm-discussion-summarize-responses branch February 4, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature of any size or improvement (UI, performance, security)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants