-
Notifications
You must be signed in to change notification settings - Fork 5
Add feedback message support to request approval/rejection flow #262
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: main
Are you sure you want to change the base?
Conversation
Co-authored-by: cycomachead <1505907+cycomachead@users.noreply.github.com>
… modal Co-authored-by: cycomachead <1505907+cycomachead@users.noreply.github.com>
Co-authored-by: cycomachead <1505907+cycomachead@users.noreply.github.com>
Co-authored-by: cycomachead <1505907+cycomachead@users.noreply.github.com>
Co-authored-by: cycomachead <1505907+cycomachead@users.noreply.github.com>
…consistency Co-authored-by: cycomachead <1505907+cycomachead@users.noreply.github.com>
|
@copilot can you remove the default text from the DB entry. Update docs/instructors documentation |
…tion Co-authored-by: cycomachead <1505907+cycomachead@users.noreply.github.com>
Done in commit 1d10e5f:
The Request model now uses |
General Info
Changes
Instructors can now provide feedback when approving or rejecting extension requests. Feedback is stored in the database and included in email notifications to students.
Database Schema
requests.feedback_message(text, nullable) - stores instructor feedback for both approved/rejected requestscourse_settings.rejection_email_subject(string, nullable) - customizable rejection email subjectcourse_settings.rejection_email_template(text, nullable) - customizable rejection email body with{{feedback_message}}placeholderCourseSettingsmodelModel Layer
Application-Layer Defaults:
CourseSettings::DEFAULT_REJECTION_EMAIL_SUBJECT- default rejection subject lineCourseSettings::DEFAULT_REJECTION_EMAIL_TEMPLATE- default rejection template with {{feedback_message}}Request::DEFAULT_FEEDBACK_MESSAGE- default message when feedback is nilUI/UX
aria-labelledby,aria-describedby) and keyboard navigationBackward Compatibility
feedback_messageparameter is optional (defaults to nil)Testing
Added 20 test cases:
All tests pass. Syntax validated with
ruby -c.Documentation
Updated instructor documentation in
docs/instructors.md:{{feedback_message}}Code includes self-documenting constants:
DEFAULT_FEEDBACK_MESSAGE,DEFAULT_REJECTION_EMAIL_SUBJECT,DEFAULT_REJECTION_EMAIL_TEMPLATEChecklist
copilot/improve-request-rejection-flow)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.