Repository navigation
fix(chat): thread links open their thread, one look - #565
Merged
Merged
Conversation
Links that streamed into a reply lost their click once more text arrived. Each render of the reply owned its nodes' listeners, and the next render disposed them while morph kept the old nodes on screen. Every markdown build now lives as long as one of its nodes is shown. A thread link is now always its thread's row card. In a sentence or a bullet the words stay where they are and the card follows the text; a link that starts a line is the card itself, with any note after it. The chat plugin's second thread link renderer is gone, and sidebar rows keep their offscreen speedup on a wrapper so a card in a list lines up with its bullet.
Performance: ✅ every row is within its limitMain
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Thread links in chat open their thread every time, and every thread link is drawn as the same row card.
What
thread:link is always the thread's row card. In a sentence or a bullet, the words stay in place and the card follows the text. A link that starts a line becomes the card, with any note after it shown below.thread:renderer is removed, along with link schemeorderand the block/inlineplace, which only existed for the two looks.content-visibilityon a wrapper, so a card in a list lines up with its bullet.Why
Verification
plugins/ui/chat/chat/test/web/thread-link.ts(added totest:phone) streams a reply in chunks, stops the turn, then clicks or taps the card. Desktop fails onmainwith a dead click and passes with this change; phone passes on both.tsc,vrui-check,scripts/deps.tsandscripts/comments.tspass. Unit tests inplugins/ui/{shell,chat,threads,panel}andplugins/botspass, and so do thewindow,drawers,partsandappweb tests.