-
Notifications
You must be signed in to change notification settings - Fork 0
Improve notifications for training day attendance and questions #106
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
Improve notifications for training day attendance and questions #106
Conversation
- Add clear messages on announcements/questions pages indicating they only handle training program items, with links to training day pages - Add alerts to side menu showing total unanswered questions and pending delay requests across all training days - Add red circles with counts to each training day in the side menu - Training program questions page now shows alerts for training days with unanswered questions with direct links - Training program attendance page now shows alerts for training days with pending delay requests with direct links - Add orange color styling for delay request indicators to differentiate from question indicators (red) Co-Authored-By: Ron Ryvchin <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
📝 WalkthroughWalkthroughCentralizes training-program render context via BaseHandler.render_params_for_training_program(), aggregates per-training-day metrics (unanswered questions and pending delay requests), updates many admin handlers to use it, and surfaces these metrics in templates and sidebar styling. Changes
Sequence Diagram(s)(Skipped — changes are refactor/UI/data-aggregation focused and do not introduce a new multi-component sequential flow that requires diagramming.) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
- Refactor render_params_for_training_program() to include contest, unanswered questions count, and training day notifications in a single helper method - Update all training program handlers to use the consolidated helper method - Remove duplicate code for setting training_program, contest, unanswered params - Remove redundant Attendance badge from sidebar (now shown in Training Days) - Fix CSS layout so notification badges stay inline with training day names Co-Authored-By: Ron Ryvchin <[email protected]>
When the contest is a managing contest for a training program, use render_params_for_training_program() to show training day notifications in the sidebar on the overview and resourceslist pages. Co-Authored-By: Ron Ryvchin <[email protected]>
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
* Improve notifications for training day attendance and questions - Add clear messages on announcements/questions pages indicating they only handle training program items, with links to training day pages - Add alerts to side menu showing total unanswered questions and pending delay requests across all training days - Add red circles with counts to each training day in the side menu - Training program questions page now shows alerts for training days with unanswered questions with direct links - Training program attendance page now shows alerts for training days with pending delay requests with direct links - Add orange color styling for delay request indicators to differentiate from question indicators (red) Co-Authored-By: Ron Ryvchin <[email protected]> * Consolidate training program render params into helper method - Refactor render_params_for_training_program() to include contest, unanswered questions count, and training day notifications in a single helper method - Update all training program handlers to use the consolidated helper method - Remove duplicate code for setting training_program, contest, unanswered params - Remove redundant Attendance badge from sidebar (now shown in Training Days) - Fix CSS layout so notification badges stay inline with training day names Co-Authored-By: Ron Ryvchin <[email protected]> * Add training day notifications to overview and resourceslist pages When the contest is a managing contest for a training program, use render_params_for_training_program() to show training day notifications in the sidebar on the overview and resourceslist pages. Co-Authored-By: Ron Ryvchin <[email protected]> * Notifications on right + new util useage --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Improve notifications for training day attendance and questions
Summary
This PR enhances the admin interface to provide better visibility into unanswered questions and pending delay requests across training days within a training program.
Changes include:
.unread-delay) to differentiate delay request indicators from question indicatorsUpdates since last revision:
render_params_for_training_program()helper method inbase.pythat handles setting training_program, contest, unanswered questions count, and training day notificationsReview & Testing Checklist for Human
render_params_for_training_program()inbase.pyqueries unanswered questions and pending delay requests for each training day on every page load within a training program context. Verify this doesn't cause noticeable slowdown with many training days.Recommended test plan:
Notes
Summary by CodeRabbit
New Features
Style
✏️ Tip: You can customize this high-level summary in your review settings.