forked from pingdotgg/t3code
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(web): render mermaid diagrams in chat #2
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
Draft
cloudbridgeuy
wants to merge
25
commits into
main
Choose a base branch
from
mermaid-rendering
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 7 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
080138f
feat(web): render mermaid fences as diagrams with a source toggle
guzmonne e093adf
fix(web): make mermaid render failures representable, not a permanent…
guzmonne d322b20
merge: V1 mermaid diagrams render with the source one click away
guzmonne 0f1afcf
fix(web): give mermaid blocks honest pending and failure states
guzmonne 3b655a7
fix(web): stop the mermaid toggle from lying and the diagram from re-…
guzmonne f9c9f57
fix(web): stop replaying in-flight mermaid renders and strip a raw NU…
guzmonne 6cf29a8
merge: V2 honest states while streaming and on failure
guzmonne 22ecde8
fix(web): trim mermaid rendering comments per review
guzmonne 398dcad
fix(web): restore named markdown action failure context
guzmonne 8454d88
merge: address PR review — comment pruning and restored failure conte…
guzmonne 0eec550
fix(web): drop code-move narration from markdown code block
guzmonne 8483afa
merge: drop code-move narration and restore failure context type
guzmonne 6afcc61
feat(web): render mermaid diagrams only near the viewport
guzmonne 530332c
fix(web): stop the mermaid viewport gate starving fast-stream draws
guzmonne 4408547
fix(web): resolve nearest scrolling ancestor as the mermaid viewport …
guzmonne 3bc7020
merge(V3): bound the mermaid render cache and gate rendering on the v…
guzmonne d64754c
feat(web): persist mermaid source preference and add diagram size toggle
guzmonne 7ea9246
fix(web): stop rendering mermaid diagrams a user has opted out of
guzmonne 31d4d29
fix(web): make natural mermaid size mode actually widen the diagram
guzmonne 803ce19
fix(web): write mermaid natural-width Tailwind class literally
guzmonne dec7a5c
fix(web): cap natural-mode mermaid diagrams to a scrollable height
guzmonne 2cf855d
merge(V4): remember the mermaid mode and add a natural size toggle
guzmonne 9522f35
fix(web): cap mermaid diagram height in fit mode too
guzmonne 5c21cc4
fix(web): copying a message keeps its rendered mermaid diagrams
guzmonne c381c89
perf(web): stop remounting every code block on each streamed token
guzmonne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.