Add survey-assignment linking, group mentors, and analytics#623
Add survey-assignment linking, group mentors, and analytics#623
Conversation
- Link surveys to assignments via optional assignment_id FK on surveys table - Add available_at field to surveys for controlling when they become visible - Add mentor_profile_id to assignment_groups for TA mentor assignment - Copy mentors when copying groups between assignments - Show survey completion status banner on student submission pages - Add survey analytics with quantitative comparison across groups - Add "Assign to group mentors" mode in bulk review assignment - Show linked assignment column in instructor surveys table - Update RLS policy to enforce available_at visibility for students https://claude.ai/code/session_01C4xcTvQXMFsm7A3osxUwMF
The hook was previously called inside a Controller render prop callback, which violates the Rules of Hooks. Moved it to the component body. https://claude.ai/code/session_01C4xcTvQXMFsm7A3osxUwMF
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (13)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
This PR adds comprehensive survey management features including linking surveys to assignments, assigning mentors to student groups, and providing analytics views for survey responses across groups.
Key Changes
Survey-Assignment Linking
assignment_idandavailable_atcolumns to surveys tableavailable_atfield controls when surveys become visible to studentsavailable_attimestampGroup Mentor Assignment
mentor_profile_idcolumn toassignment_groupstableSurvey Analytics & Status Tracking
SurveyAnalyticscomponent displays statistical analysis of survey responsesSurveyStatusBannercomponent displays survey completion status on assignment submission pagesDatabase Functions
get_survey_status_for_assignment(): Returns survey completion status for a student on a specific assignmentget_survey_responses_with_group_context(): Aggregates survey responses with group and mentor information for analyticsUI Enhancements
Implementation Details
https://claude.ai/code/session_01C4xcTvQXMFsm7A3osxUwMF