Skip to content

feat(IdeasSummary): Show student responses#2268

Merged
hirokiterashima merged 5 commits intodevelopfrom
cm-idea-summary-show-student-responses
Feb 18, 2026
Merged

feat(IdeasSummary): Show student responses#2268
hirokiterashima merged 5 commits intodevelopfrom
cm-idea-summary-show-student-responses

Conversation

@hirokiterashima
Copy link
Member

@hirokiterashima hirokiterashima commented Feb 7, 2026

Notes

Please style as you see fit. It would be great to distinguish between the responses a bit more, with maybe a border or background. Maybe make the responses italic?

Also, as you can see in the image below, the expanded idea has 3 students who had this idea, but we only show 2 users. Would this be a bit confusing because users might expect to see 3 students? Maybe we should explain this in the UI, like displaying a message "showing 2 of 3 responses" or "sample responses" in the expanded panel, or "click to see sample responses" when hovering over the expand icon?

Changes

Screenshot 2026-02-06 at 4 06 06 PM
  • For Dialog Guidance and Open Response idea summaries in the teacher tools, clicking on the ideas will show up to 2 examples of the students' actual responses that contained that idea.
  • These are toggled divs, so you can have multiple details opened at the same time
  • This should work in both the condensed and full views of the summary display.

Test

  • Test both Dialog Guidance and Open Response items and make sure that the feature works as described above.

@qltysh
Copy link

qltysh bot commented Feb 7, 2026

❌ 4 blocking issues (4 total)

Tool Category Rule Count
qlty Duplication Found 20 lines of similar code in 2 locations (mass = 78) 4

{ text: 'Computer response 2', ideas: [{ detected: true, name: 'idea2' }] }
]
}
})
Copy link

Choose a reason for hiding this comment

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

Found 20 lines of similar code in 2 locations (mass = 78) [qlty:similar-code]

{ text: 'Computer response 1b', ideas: [{ detected: true, name: 'idea1' }] }
]
}
})
Copy link

Choose a reason for hiding this comment

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

Found 20 lines of similar code in 2 locations (mass = 78) [qlty:similar-code]

@qltysh
Copy link

qltysh bot commented Feb 7, 2026

Qlty

Coverage Impact

Unable to calculate total coverage change because base branch coverage was not found.

Modified Files with Diff Coverage (2)

RatingFile% DiffUncovered Line #s
New file Coverage rating: A
...mmary-display/ideas-summary-display/ideas-summary.component.ts100.0%
New file Coverage rating: C
...teacher-summary-display/idea-summary/idea-summary.component.ts76.5%21-30
Total78.4%
🤖 Increase coverage with AI coding...

In the `cm-idea-summary-show-student-responses` branch, add test coverage for this new code:

- `src/assets/wise5/directives/teacher-summary-display/idea-summary/idea-summary.component.ts` -- Line 21-30

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@hirokiterashima hirokiterashima self-assigned this Feb 7, 2026
@hirokiterashima hirokiterashima marked this pull request as ready for review February 7, 2026 00:25
@hirokiterashima hirokiterashima added the enhancement New feature of any size or improvement (UI, performance, security) label Feb 9, 2026
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.

Functionality is great. I updated to utilize MatExpansionPanel for expanding and collapsing and updated styles. I also added "Sample responses:" text above the responses display.

@hirokiterashima hirokiterashima merged commit 01cd0cb into develop Feb 18, 2026
4 checks passed
@hirokiterashima hirokiterashima deleted the cm-idea-summary-show-student-responses branch February 18, 2026 06:01
@hirokiterashima
Copy link
Member Author

🎉 This PR is included in version 5.208.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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) released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants