fix: hide today's word on archive, fix unicode word-image 403s#171
fix: hide today's word on archive, fix unicode word-image 403s#171
Conversation
- Words archive (/lang/words): today's word now shows a mystery card with "?" tiles and "Play to reveal!" CTA instead of spoiling the word - API: today's entry returns null word/definition/stats to prevent spoilers even via API - word-image & definition endpoints: normalize URL word param to NFC to fix 403 errors for words with diacritics (ö, é, etc.)
|
Warning Rate limit exceeded
⌛ 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. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
- Filter out today's null word from structured data ItemList to prevent SSR crash (toUpperCase on null) - Update API test to verify today's word is hidden (null) and past words are visible
Summary
/{lang}/wordsnow shows a mystery card with?tiles and a "Play to reveal!" CTA linking to the game, instead of exposing the word, definition, and stats/api/{lang}/wordsendpoint now returnsnullfor today's word/definition/stats to prevent spoilers even via direct API accessword-imageanddefinitionendpoints now normalize the URL word parameter to NFC form, fixing 403 "Not a valid daily word" errors for words with diacritics (ö, é, ü, etc.)Test plan
/en/words— first card should show?????tiles with green "Play to reveal!" text/de/words— same mystery card for today's word/{lang}game page/de/word/1729(past word with umlaut) — image should load/api/de/word-image/schön?day_idx=1729— should return 200 (not 403)/en/wordspage 2+ — no mystery card (all past words)