- 
                Notifications
    You must be signed in to change notification settings 
- Fork 634
add credits link to starting modal #2333
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
| WalkthroughGameStartingModal styling and content were updated: paragraph and link CSS rules added; loading/title display adjusted; Credits link added and rendered before code_license. A new CREDITS.md file was introduced documenting code, map data, and icon attributions. resources/lang/en.json replaced  Changes
 Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 
 Possibly related PRs
 Poem
 Pre-merge checks❌ Failed checks (1 warning)
 ✅ Passed checks (2 passed)
 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
 🚧 Files skipped from review as they are similar to previous changes (1)
 🧰 Additional context used🧠 Learnings (6)📚 Learning: 2025-06-09T02:20:43.637ZApplied to files: 
 📚 Learning: 2025-08-16T10:52:08.292ZApplied to files: 
 📚 Learning: 2025-06-02T14:27:37.609ZApplied to files: 
 📚 Learning: 2025-08-27T08:12:19.610ZApplied to files: 
 📚 Learning: 2025-07-12T06:35:10.457ZApplied to files: 
 📚 Learning: 2025-08-21T21:42:45.277ZApplied to files: 
 🔇 Additional comments (4)
 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (3)
src/client/GameStartingModal.ts (3)
95-100: Consider reducing the copyright font size.A 32px font in a 300px-wide modal means the copyright text takes up significant vertical and visual space. Consider reducing to 20-24px for better proportion.
.copyright { - font-size: 32px; + font-size: 24px; margin-top: 20px; margin-bottom: 10px; opacity: 1; }
122-127: Consider adding an aria-label for better accessibility.The link properly includes
rel="noopener noreferrer"for security. However, screen reader users would benefit from knowing this opens GitHub in a new tab.<a href="https://github.com/openfrontio/OpenFrontIO/graphs/contributors" target="_blank" rel="noopener noreferrer" + aria-label="View contributors on GitHub (opens in new tab)" >Contributors</a >
128-131: Optional: Consider using semantic HTML for attributions.The attribution list could use more semantic structure for better accessibility and maintainability.
- <p>${translateText("game_starting_modal.code_license")}</p> - <p>Icons from The Noun Project</p> - <p>© OpenStreetMap contributors</p> + <ul class="attributions"> + <li>${translateText("game_starting_modal.code_license")}</li> + <li>${translateText("game_starting_modal.icons_attribution")}</li> + <li>${translateText("game_starting_modal.osm_attribution")}</li> + </ul> <p class="loading">${translateText("game_starting_modal.title")}</p>Add corresponding CSS:
.modal .attributions { list-style: none; padding: 0; margin: 0; } .modal .attributions li { margin: 2px 0; font-size: 14px; }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
- src/client/GameStartingModal.ts(2 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: VariableVince
Repo: openfrontio/OpenFrontIO PR: 1110
File: src/client/Main.ts:293-295
Timestamp: 2025-06-09T02:20:43.637Z
Learning: In src/client/Main.ts, during game start in the handleJoinLobby callback, UI elements are hidden using direct DOM manipulation with classList.add("hidden") for consistency. This includes modals, buttons, and error divs. The codebase follows this pattern rather than using component APIs for hiding elements during game transitions.
📚 Learning: 2025-06-09T02:20:43.637Z
Learnt from: VariableVince
Repo: openfrontio/OpenFrontIO PR: 1110
File: src/client/Main.ts:293-295
Timestamp: 2025-06-09T02:20:43.637Z
Learning: In src/client/Main.ts, during game start in the handleJoinLobby callback, UI elements are hidden using direct DOM manipulation with classList.add("hidden") for consistency. This includes modals, buttons, and error divs. The codebase follows this pattern rather than using component APIs for hiding elements during game transitions.
Applied to files:
- src/client/GameStartingModal.ts
🔇 Additional comments (3)
src/client/GameStartingModal.ts (3)
53-56: LGTM: Paragraph styling is appropriate.The tight margins and smaller font size work well for the attribution content.
58-65: LGTM: Loading text styling is clear.The increased font size and spacing properly distinguish the loading message from the attribution content.
102-115: LGTM: Link styling is interactive and accessible.The color contrast, hover states, and transitions provide good user experience.
36af54b    to
    b3ff553      
    Compare
  
    b3ff553    to
    f00c6d2      
    Compare
  
    f00c6d2    to
    da73573      
    Compare
  
    
Description:
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
evan