Fix definitions for diacritic words, reveal today's word after winning#173
Fix definitions for diacritic words, reveal today's word after winning#173
Conversation
…winning Three fixes: 1. Definition & image endpoints rejected valid words with diacritics (e.g. Portuguese "farão") due to unicode normalization mismatch. Now tries both NFC and NFD forms when validating against word list. 2. Word archive now reveals today's word after the game is over. Checks localStorage for game_over state client-side and shows the word with green tiles instead of question marks. 3. Word archive marks completed past words with a checkmark. Reads game_results from localStorage and maps dates to day indices to show which words the player has already played.
|
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 (4)
✨ 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 |
Same fix as the archive page — checks localStorage for game_over state and reveals the word with tiles + definition instead of showing "Play today's game to reveal this word."
Summary
Test plan
/api/pt/definition/farãoshould return a definition (not 404)