study groups under activities#76
Conversation
|
Warning Review limit reached
Next review available in: 51 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository: alphaonelabs/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR adds a "study_group" activity type across the dashboard and teach pages (icon/color mappings, dropdown option, hero text), and updates the worker to route "/study-groups" URLs to "/activity" pages via redirect and legacy prefix rewriting, with new dispatcher tests. ChangesStudy group support
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant Dispatcher
participant StaticHandler
Client->>Dispatcher: GET /study-groups/slug
Dispatcher->>Dispatcher: match /study-groups?/<slug>
Dispatcher-->>Client: 302 redirect to /activity/slug
Client->>Dispatcher: GET /study-groups
Dispatcher->>StaticHandler: serve static HTML
StaticHandler-->>Client: 200 response
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/worker.py`:
- Around line 6084-6089: Add test coverage for the singular study-group redirect
handled in worker.py by the route-matching logic in the GET branch that uses
re.fullmatch(r"/study-groups?/([^/]+)", route_path) and
_redirect_to_current_route. Extend the existing redirect tests to verify that a
request to /study-group/<slug> (singular) is redirected to /activity/<slug> just
like the plural form, so the regex behavior is covered for both variants.
In `@tests/test_dispatcher.py`:
- Around line 260-282: Add test coverage in TestStudyGroupRedirection for the
singular /study-group/<slug> route, since the dispatcher regex in
worker._dispatch matches it but no test currently exercises that path. Follow
the existing make_env, MockRequest, and set_static_content pattern, then assert
the response is a 302 redirect from /study-group/my-awesome-group to the
corresponding /activity/my-awesome-group Location.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: alphaonelabs/coderabbit/.coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 50104de4-a987-4b5c-966f-4d068a51877d
📒 Files selected for processing (4)
public/dashboard.htmlpublic/teach.htmlsrc/worker.pytests/test_dispatcher.py
Integrates Study Groups into the Activities engine
Screen.Recording.2026-07-09.031316.1.1.mp4
Integrated Study Groups into the Activities experience across the UI and routing layers. Updated dashboard and Host Hub activity card metadata so
study_groupuses the correct icon and styling, added “study groups” to the Host Hub description and create-activity type selector, and extended server-side routing to treat study-group URLs as activity routes with redirects for deep links. Added tests covering study-group page serving and redirect behavior.