fix(frontend): remove un-needed ? in checks#239
fix(frontend): remove un-needed ? in checks#239peterfortuin wants to merge 9 commits intogrimmory-tools:developfrom
? in checks#239Conversation
|
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 (2)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
📝 WalkthroughWalkthroughLowered the CI build warning threshold from 24 to 0, removed optional chaining on Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
|
OK, a couple things -- lets fix the conflicts, but also i want to reframe the checks: they should not have a threshold at this point, lets reset all to zero. it's ok if the check fails because of it. |
…moved unused ExternalDocLinkComponent import
I have set the threshold to zero. There where 2 warnings left. I fixed one, but I have no idea how to fix the other one. This is the one warning that is left: ▲ [WARNING] Module '@stomp/stompjs' used by 'node_modules/@stomp/rx-stomp/esm6/index.js' is not ESM
CommonJS or AMD dependencies can cause optimization bailouts.
For more information see: https://angular.dev/tools/cli/build#configuring-commonjs-dependencies
Because there is now one warning more then the threshold the build is failing. @imajes Can you help me out with this? |
Description
To solve build warnings in the frontend I removed unneeded
?in checks.Linked Issue: No linked issue.
Changes
This pull request refactors how user permissions are accessed in the
app.topbar.component.htmlfile. The main change is the removal of optional chaining (?.) when checking properties on thepermissionsobject, assuming thatpermissionswill always be defined on thecurrentUserobject. This results in cleaner and slightly more efficient code.Template cleanup and consistency:
currentUser.permissions?.<permission>withcurrentUser.permissions.<permission>throughout the topbar and mobile menu UI logic, ensuring permissions are accessed directly without optional chaining.Summary by CodeRabbit
Chores
Refactor