Repository navigation
fix(auth): bound device match codes to eight letters - #535
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe device login adjective and noun pools now use shorter curated lists. A test verifies that every combination stays within eight letters and that the lists provide exactly 240 combinations. ChangesDevice Login Match Codes
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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: 1
🤖 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 `@internal/auth/device_login_words_test.go`:
- Around line 17-18: Update the combinations assertion in the device match
word-list test to require at least 240 combinations instead of 128, preserving
the intended 12-adjective by 20-noun pool size and collision resistance.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 79a06b6e-5aa9-4a04-b949-56be14d86918
📒 Files selected for processing (2)
internal/auth/device_login_words.gointernal/auth/device_login_words_test.go
Problem
Fire TV's phone-confirmation card can clip long human-readable device match codes such as
SPRUCE TRAIL. This is a Fire TV rc.1+4 QA follow-up; no issue was filed.Approach
Testing
go test ./internal/auth -count=1go test ./internal/auth ./internal/api/handlers -count=1make verify-local-pathspnpm run lint— 0 errors; 160 existing warningspnpm run format:checkpnpm run buildmake lint— repository-wide baseline remains red with 303 pre-existing issues, as documented inAGENTS.md; neither touched file was reportedAI Disclosure
Checklist
make lintremains blocked by the documented pre-existing repository baseline; focused tests and all other applicable gates above pass.)Summary by CodeRabbit
Bug Fixes
Tests