fix(pki): disable the policy selector with a message that no policies are available#5284
Conversation
Greptile OverviewGreptile SummaryThis PR improves the user experience in the Certificate Profile creation modal by disabling the certificate policy selector when no policies are available and displaying a helpful message "No certificate policies available" instead of the generic placeholder. Changes made:
Issue identified: Confidence Score: 4/5
Important Files Changed
|
Additional Comments (1)
This prevents a confusing user experience where the form appears but cannot be submitted. Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This shouldn't matter. They won't be able to submit the form and that's the intended behavior. Once we add the option to create policies in-line, the user will have a way to keep moving forward even if there's no policy available. |
Context
Disabled the policy selector with a message that no policies are available
Screenshots
Steps to verify the change
Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).