-
Notifications
You must be signed in to change notification settings - Fork 667
Auto-linkify URLs in status card alert messages #15880
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
base: main
Are you sure you want to change the base?
Conversation
Wrap alert messages in StatusItem with LinkifyExternal to automatically convert URLs to clickable hyperlinks. This makes the status card behavior consistent with the notification drawer, which already uses LinkifyExternal for alert descriptions. This was discovered when investigating why the InsightsDisabled alert from the insights-operator displayed its documentation URL as plain text instead of a clickable link in the cluster dashboard status card.
WalkthroughThe AlertItem component now imports the LinkifyExternal utility and wraps alert messages within it, modifying rendering to process URLs as external links. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🧬 Code graph analysis (1)frontend/packages/console-shared/src/components/dashboard/status-card/AlertItem.tsx (1)
🔇 Additional comments (2)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: adereis The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/retest (fail is unrelated to my change) |
|
@adereis: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
LinkifyExternalcomponent to automatically convert URLs in status card alert messages into clickable linksTest plan
🤖 Generated with Claude Code
Screenshot of the problem being fixed:
