feat: Support direct clan detail links#3928
Conversation
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds ModalRouter.syncArgs(name, args) to serialize selected modal arguments into the URL hash (dropping null/undefined/empty values and skipping the "modal" key) and updates writeHash to ignore empty-string args; ClanModal uses this to sync/clear clan detail args. ChangesModalRouter hash synchronization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 `@src/client/ModalRouter.ts`:
- Around line 134-139: syncArgs and writeHash use different arg-filtering rules
causing inconsistent hashes; update writeHash to match syncArgs by treating
undefined, null, and empty string the same (delete the param) and
continue/skipping when typeof value === "object", then set params.set(key,
String(value)) for remaining values; locate the logic in writeHash (mirror the
checks from syncArgs) so both functions apply identical filtering for keys and
values.
🪄 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
Run ID: 638199be-4667-4a5c-8651-e6f584f0f49f
📒 Files selected for processing (2)
src/client/ClanModal.tssrc/client/ModalRouter.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/client/ClanModal.ts
|
https://add-clan-link.openfront.dev/#modal=clan&clan=UN Doesn’t look that nice, can we change this to be https://add-clan-link.openfront.dev/clan/UN or something? |
I realise it was already like this, never mind |
Description:
Add support for opening clan details directly with
clan=<tag>Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
aotumuri