Skip to content

feat(ai-insights): ai content renderer#110847

Merged
obostjancic merged 7 commits intomasterfrom
ognjenbostjancic/tet-2049-markdown-renderer-vs-xml-tags
Mar 18, 2026
Merged

feat(ai-insights): ai content renderer#110847
obostjancic merged 7 commits intomasterfrom
ognjenbostjancic/tet-2049-markdown-renderer-vs-xml-tags

Conversation

@obostjancic
Copy link
Member

@obostjancic obostjancic commented Mar 17, 2026

closes: TET-2049: Markdown Renderer vs. XML tags

Adds a content renderer that supports multiple different content types like json, python-dict, markdown, plain-text and markdown-with-xml. All of these except Markdown with XML tags were already supported in some way so this component just makes the content type detection explicit and delegates to the correct renderer based on it.

Markdown with XML-like tags

Before:
CleanShot 2026-03-18 at 10 54 01
After:
CleanShot 2026-03-18 at 10 54 25

@linear-code
Copy link

linear-code bot commented Mar 17, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 17, 2026
- Remove `export` from types only used internally (knip)
- Use toEqual instead of property access on discriminated union (typescript)
…arser

The blanket bail-out when both ' and " were present prevented parsing
of Python dicts where string values contain markdown or natural language.
The try/catch around JSON.parse already handles invalid conversions.
Add renderFormatted prop to MultilineText so AIContentRenderer can use
the XML-aware renderer in pretty mode while keeping the raw/pretty toggle.
@obostjancic obostjancic marked this pull request as ready for review March 18, 2026 10:03
@obostjancic obostjancic requested review from a team as code owners March 18, 2026 10:03
Copy link
Member

@ArthurKnaus ArthurKnaus left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@obostjancic obostjancic merged commit 8d82f14 into master Mar 18, 2026
64 checks passed
@obostjancic obostjancic deleted the ognjenbostjancic/tet-2049-markdown-renderer-vs-xml-tags branch March 18, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants