Skip to content

feat: Dynamic title in problem set initial message #156

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

Merged
merged 1 commit into from
Aug 8, 2025

Conversation

jonkafton
Copy link
Contributor

What are the relevant tickets?

Description (What does it do?)

The problemSetInitialMessages can be specified on AiChat props, which are the messages that replace the chat messages once a problem set is selected.

This change will replace occurrences of "<title>" with the selection so we can set e.g. "Can I help you with any of the problems in <title>?" to display as

Screenshots (if appropriate):

image image

How can this be tested?

Start Storybook with yarn start and navigate to http://localhost:6006/?path=/docs/smoot-design-ai-aichat--docs#assignment-selection.

  • Select an assignement
  • Ensure the assistant message updates with the assignment title, e.g. "Can I help you with any of the problems in Assignment 2?"

@jonkafton jonkafton added the Needs Review An open Pull Request that is ready for review label Aug 8, 2025
@jonkafton jonkafton changed the title Dynamic title in problem set initial message feat: Dynamic title in problem set initial message Aug 8, 2025
Copy link

@arslanashraf7 arslanashraf7 left a comment

Choose a reason for hiding this comment

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

👍

@arslanashraf7 arslanashraf7 added Waiting on Author and removed Needs Review An open Pull Request that is ready for review labels Aug 8, 2025
@arslanashraf7 arslanashraf7 self-assigned this Aug 8, 2025
@jonkafton jonkafton merged commit 12c6292 into main Aug 8, 2025
8 of 9 checks passed
Copy link

github-actions bot commented Aug 8, 2025

🎉 This PR is included in version 6.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants