-
-
Notifications
You must be signed in to change notification settings - Fork 638
Complete Turbo migration: Update Pro dummy app and docs #1908
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
Changed from deprecated 'data-turbolinks-track' to modern 'data-turbo-track' attribute with 'reload' value. Also explicitly added defer: true for clarity. This fixes Turbo navigation issues in the dummy app. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Address inconsistencies identified in the Turbo migration by updating: 1. Pro version dummy app layout (react_on_rails_pro/spec/dummy/app/views/layouts/application.html.erb): - Change 'data-turbolinks-track': true to 'data-turbo-track': 'reload' - Ensures consistency with main dummy app which was already updated 2. Documentation (docs/building-features/turbolinks.md): - Clarify Turbolinks 5.x vs 2.x syntax differences - Add note pointing users to modern Turbo syntax - Improve readability of legacy Turbolinks section These changes complete the Turbo migration across all dummy apps and provide clearer guidance for users on the recommended modern approach. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Warning Rate limit exceeded@justin808 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 15 seconds before requesting another review. ⌛ 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 (3)
✨ 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 |
|
@claude review this PR. |
|
Claude finished @justin808's task —— View job PR Review Complete ✅Tasks:
Code ReviewOverall Assessment: ✅ Approved with Minor SuggestionsThis PR successfully completes the Turbo migration by updating the Pro dummy app and improving documentation clarity. The changes are consistent, well-documented, and align with modern best practices. Changes Reviewed1. Pro Dummy App Layout (
|
Code Review - PR #1908: Complete Turbo migration✅ Overall AssessmentThis PR successfully completes the Turbo migration by updating deprecated Turbolinks syntax to modern Turbo syntax. The changes are well-focused, properly tested, and include good documentation updates. 📝 Code Quality & Best PracticesStrengths:
Code changes are minimal and surgical:
🔍 Potential Issues & Observations1. Defer Attribute Inconsistency (Pre-existing, not introduced by this PR)I noticed the main dummy app and Pro dummy app have different Main dummy app (spec/dummy): <%= javascript_pack_tag('client-bundle', 'data-turbo-track': 'reload', defer: true) %>Pro dummy app (react_on_rails_pro/spec/dummy): <%= javascript_pack_tag('client-bundle', 'data-turbo-track': 'reload', defer: false) %>Question: Is this intentional? The Pro version uses 2. Missing Stylesheet in Main Dummy AppThe main dummy app (spec/dummy) doesn't include a Pro version has: <%= stylesheet_pack_tag('client-bundle', media: 'all', 'data-turbo-track': 'reload') %>Main version doesn't include this. Is this intentional or an oversight? For complete Turbo integration, stylesheets should also have the tracking attribute. 🔒 Security Considerations✅ No security concerns identified
⚡ Performance Considerations✅ Performance impact is positive
Note on defer attribute:
🧪 Test Coverage✅ Adequate test coverage confirmed
📚 Documentation Quality✅ Excellent documentation improvements The updated docs/building-features/turbolinks.md now:
Minor suggestion: Consider adding a deprecation notice at the top of the "Legacy Turbolinks Support" section to emphasize that users should prefer modern Turbo. 🎯 Recommendations
✅ Final VerdictAPPROVED - This is a clean, well-executed PR that completes the Turbo migration as intended. The changes are safe, properly tested, and improve code maintainability. The observations noted above are minor and either pre-existing or optional improvements for future PRs. Great work completing this migration! 🎉 🤖 Review generated with Claude Code |
Code Review: PR #1908 - Complete Turbo Migration✅ Overall AssessmentThis is a high-quality PR that completes the Turbo migration with excellent attention to detail. The changes are minimal, focused, and well-documented. Great work! 🎯 Strengths
📋 Code Quality ReviewDocumentation Changes (
|
Summary
This PR addresses the incomplete migration to modern Turbo syntax identified in the codebase review. It completes the migration by updating:
'data-turbo-track': 'reload'instead of deprecated'data-turbolinks-track': trueChanges
1. Pro Version Dummy App (
react_on_rails_pro/spec/dummy/app/views/layouts/application.html.erb)Before:
After:
This brings the Pro version in sync with the main dummy app, which was already updated in a previous commit.
2. Documentation (
docs/building-features/turbolinks.md)Testing
Context
This PR completes the Turbo migration work started in PR #1620. The main dummy app was already updated to use modern Turbo syntax, but the Pro version and documentation were missed. This ensures consistency across all test apps and provides clearer guidance for users.
🤖 Generated with Claude Code
This change is