Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): move composer context into inline references #10234

Closedchrisdeeming(GitHub profile, opens in a new tab)wants to merge 46 commits intomain fromrefs/pull/10234/headopened View on GitHub

Showing 89 changed files with 11 additions and 3 deletions (loading 86).

x
0 of 89 viewed, 89 left
6 additions and 3 deletionsapps/mobile/src/features/threads/ThreadFeed.tsxModified
View file
@@ -11,6 +11,7 @@
TurnId,
} from "@t3tools/contracts";
import { renderAssistantCitationsAsText } from "@t3tools/shared/assistantCitations";
+import { replaceComposerContextReferences } from "@t3tools/shared/composerContextReferences";
import {
codexArtifactTemplatePresentationLabel,
type CodexArtifactTemplate,
@@ -1677,13 +1678,15 @@
readonly linkHandlers: MarkdownLinkHandlers;
readonly renderImage: MarkdownImageRenderer;
- const segments = parseReviewCommentMessageSegments(props.text);
+ // Inline context references render as their labels until mobile grows chips for them.
+ const text = replaceComposerContextReferences(props.text, (occurrence) => occurrence.label);
+ const segments = parseReviewCommentMessageSegments(text);
const hasReviewComment = segments.some((segment) => segment.kind === "review-comment");
if (!hasReviewComment) {
if (hasNativeSelectableMarkdownText()) {
return (
<SelectableMarkdownText
- markdown={props.text}
+ markdown={text}
skills={props.skills}
textStyle={props.markdownStyles.nativeTextStyle}
preserveSoftBreaks
@@ -1699,7 +1702,7 @@
styles={props.markdownStyles.styles}