Skip to content

Fix node list tooltip markdown rendering#1469

Merged
kanushka merged 1 commit intowso2:release/bi-1.8.xfrom
kanushka:codex/node-tooltip-markdown
Feb 17, 2026
Merged

Fix node list tooltip markdown rendering#1469
kanushka merged 1 commit intowso2:release/bi-1.8.xfrom
kanushka:codex/node-tooltip-markdown

Conversation

@kanushka
Copy link
Copy Markdown
Contributor

@kanushka kanushka commented Feb 17, 2026

Summary

  • Render node list tooltips using Markdown (strip HTML), matching form description behavior
  • Hide multi-line code blocks while preserving inline code styling
Screen.Recording.2026-02-17.at.20.20.45.mov

Related issues

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the rendering of tooltips in the node list by converting them to use Markdown formatting while stripping HTML tags. This aligns the tooltip behavior with the form description rendering approach.

Changes:

  • Added ReactMarkdown dependency and imported it along with the stripHtmlTags utility
  • Created styled component TooltipMarkdown with formatting rules that hide multi-line code blocks while preserving inline code
  • Implemented renderTooltipContent function to process node descriptions through HTML stripping and Markdown rendering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +138 to +141
code {
display: inline;
}

Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The display: inline; property for code elements is redundant since <code> is already an inline element by default. This rule can be removed unless there's a specific reason to override inherited styles.

Suggested change
code {
display: inline;
}

Copilot uses AI. Check for mistakes.
@kanushka kanushka merged commit 9449fa0 into wso2:release/bi-1.8.x Feb 17, 2026
11 of 12 checks passed
@kanushka kanushka deleted the codex/node-tooltip-markdown branch February 17, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants