-
Notifications
You must be signed in to change notification settings - Fork 108
[MBL-19568][Student] Fix folder bookmarking and quiz routing #3431
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
Conversation
- Disable bookmarking for non-root folders to prevent routing issues with embedded links - Add route for new quizzes opened from quiz list to Assignment Details Test Plan: - Verify bookmarking is only available in root folder - Verify new quizzes route to Assignment Details correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
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.
Review Summary
This PR fixes the bookmarking behavior for file lists and adds routing support for new quizzes from the quiz list. The changes are focused and address specific navigation issues.
Issues Found
- Route pattern syntax error in
RouteMatcher.kt:408- Missing leading/in route pattern which may prevent URLs from matching correctly
Positive Feedback
FileListFragment.kt:
- Good fix for the bookmark behavior - adding the
folder?.isRoot == truecheck ensures that only root folder views in courses/groups are bookmarkable, which is the appropriate UX behavior - The null-safe navigation operator usage (
folder?.isRoot) is correct and handles the case where folder might be null
RouteMatcher.kt:
- The comment explaining the purpose of the new route is helpful for future maintainers
- The route correctly maps QuizListFragment → AssignmentDetailsFragment for new quizzes, which aligns with the architecture where new quizzes are displayed on assignment details
Code Quality
- Changes follow existing patterns in the codebase
- Code is concise and focused on the specific issues being addressed
- Null safety is properly handled with the safe call operator
Testing Recommendations
While no test files were modified, consider:
- Manual testing of bookmarking file list views in courses/groups at root and non-root levels
- Manual testing of navigation from quiz list to new quiz assignment details
- Verifying the route pattern matches expected URLs once the syntax issue is fixed
apps/student/src/main/java/com/instructure/student/router/RouteMatcher.kt
Show resolved
Hide resolved
📊 Code Coverage Report
|
🧪 Unit Test Results✅ 📱 Student App
✅ 🌅 Horizon
✅ 📦 Submodules
📊 Summary
Last updated: Thu, 04 Dec 2025 15:01:20 GMT |
kdeakinstructure
left a comment
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.
QA 👍
adamNagy56
left a comment
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.
QA +1
Test plan:
In the ticket
refs: MBL-19568
affects: Student
release note: Fixed folder and quiz bookmarking.
Checklist
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]