-
Notifications
You must be signed in to change notification settings - Fork 522
[AITT-1254] Remove getting started prompts for teachers with an active section #69007
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
base: staging
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the default suggested prompts in the AI Differentiation chat by conditionally hiding certain getting-started prompts for teachers who already have active sections with curriculum and students. The changes implement logic to check a teacher's section status and filter out prompts like "Get Started", "Create Section", and "Suggest Curriculum" when they're no longer relevant.
- Adds helper function to filter default suggested prompts based on teacher's section status
- Introduces checks for teacher sections, curriculum assignment, and student enrollment
- Updates default prompt logic to provide context-appropriate suggestions
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
if ( | ||
label === SUGGEST_CURRICULUM_PROMPT.label && | ||
teacherHasSectionWithCurriculum | ||
) { | ||
return false; | ||
} | ||
|
||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This can be simplified to return label === SUGGEST_CURRICULUM_PROMPT.label && teacherHasSectionWithCurriculum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, but I keep as is intentionally, so that it's easier to read and understand what's going on
🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[AITT-1254] Remove getting started prompts for teachers with an active section
2025-10-22.15.49.28.mov
Links
Testing story
Deployment strategy
Follow-up work
Privacy
Security
Caching
PR Creation Checklist: