Repository navigation
fix(frontend): say nothing declares a role and show invite refusals in the reader's language - #278
Conversation
There was a problem hiding this comment.
Code Health Improved
(1 files improve in Code Health)
Gates Passed
4 Quality Gates Passed
See analysis details in CodeScene
View Improvements
| File | Code Health Impact | Categories Improved |
|---|---|---|
| graphTransport.ts | 8.82 → 9.10 | Overall Code Complexity, Primitive Obsession, String Heavy Function Arguments |
Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Code Review ✅ Approved🟡 Medium risk · Mapping invitation refusal reasons to typed frontend errors changes error handling; mismatched server reasons could show a generic or incorrect message. Fixes the role-unknown and role-beyond-reach messages to say nothing declares the role, and shows the server's invite refusal under the New user form in the reader's language instead of raw English. No issues found. VerificationRules No rules evaluated Functional validation Not enabledFor more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
[Medium impact] Safe to merge within the reviewed scope; the invitation transport and rendered refusal messages behaved as intended.
|
Closes #197.
What
role_unknownas "nothing declares the role".Why
Roles come from the code and the plugins that declare them, so "a role this deployment names" was the wrong idea. The invite form also lost the reason the server sent, so it could not show the translated sentence the role dialog already shows.
Testing Instructions
Summary by CodeRabbit