-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat(ui): Make URLs clickable in workflow node info #13494
feat(ui): Make URLs clickable in workflow node info #13494
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oo I like the table! A few considerations below
@@ -68,10 +69,40 @@ interface Props { | |||
onResume?: () => void; | |||
} | |||
|
|||
const linkify = new LinkifyIt(); | |||
|
|||
function linkifyText(text: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be a util function given that it's likely to be used in other places.
That also raises the question: is this the only place we'd add this? Does this open too many floodgates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No you're right we could definitely use this in other places, can't see where atm but I'll make it easily reusable
do u think same approach would work on #13148 ? |
No, since that uses a terminal with |
cd6a765
to
661cb79
Compare
Signed-off-by: Adrien Delannoy <[email protected]>
Signed-off-by: Adrien Delannoy <[email protected]>
661cb79
to
511acae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No linked issue as it's a very small quick win, not sure it needs discussions
Motivation
In workflow node details we may have templates that output links to other systems or other workflows. So that would be great to make navigation easier by showing links instead of text.
Modifications
I implemented
linkify-it
library to find url matches and wrap those in a link tag.Verification
I tested of several workflow to make sure everything is fine