Skip to content

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
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.

3 participants