feat(mobile): bring inline context to native composer and chat #10368
Closedchrisdeeming(GitHub profile, opens in a new tab)wants to merge 125 commits into
main fromrefs/pull/10368/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
chrisdeeming(GitHub profile, opens in a new tab) changed the title
- apps/mobile/modules/t3-markdown-text/ios/T3MarkdownTextShadowNode.mm lines 198 to 199Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -188,4 +192,5 @@188192 props.shadowRadius - ParagraphStyleEncodingOffset,189193 });190194 }191- if (props.nativeId.rfind(FileAttachmentNativeIdPrefix, 0) == 0 && fragmentLength > 0) {195+ if (props.nativeId.rfind("t3-chip:", 0) == 0 && fragmentLength > 0) {196+ const std::string uri = props.nativeId.substr(3);apps/mobile/src/components/ComposerAttachmentStrip.tsx line 205Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -173,8 +175,19 @@175+function ComposerFileAttachment(176+ props: ComposerAttachmentThumbnailProps & { readonly attachment: DraftComposerFileAttachment },177+) {178+ const { attachment } = props;179+ const style = { width: props.size, height: props.size, borderRadius: props.borderRadius };173180 const canPreview = isPdfFile(attachment) && props.onPressPreview !== undefined;174181 const sourceIdentifier = `draft-file:${attachment.id}`;182+ const { share, sharing } = useMediaActions({183+ name: attachment.name,184+ mimeType: attachment.mimeType,185+ sourceIdentifier,186+ attachment,187+ });175188 return (176189 <PresentationSource identifier={sourceIdentifier}>177190 <Pressable178191 accessibilityRole="button"179- accessibilityLabel={`Open ${attachment.name}`}180- disabled={!canPreview}192+ accessibilityLabel={`${canPreview ? "Open" : "Share"} ${attachment.name}`}193+ disabled={!props.onPressPreview || sharing}apps/mobile/src/components/ComposerContextAttachment.tsx line 40Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -0,0 +18,21 @@18+}) {19+ const { record, attachment } = props;20+ const shareSourceIdentifier = useId();21+ const resource = useMemo(22+ () => ({23+ _tag: "attachment" as const,24+ attachmentId: record.attachmentId,25+ fileName: record.name,26+ }),27+ [record.attachmentId, record.name],28+ );29+ const local = attachment?.fileUri30+ ? (attachment as DraftComposerAttachment & { fileUri: string })31+ : undefined;32+ const asset = useAssetUrlState(local ? null : (props.environmentId ?? null), resource);33+ const refresh = useRefreshAssetUrl(local ? null : (props.environmentId ?? null), resource);34+ const [localUri, setLocalUri] = useState<string | null>(null);35+ const [error, setError] = useState<string | null>(null);36+ const [sharing, setSharing] = useState(false);37+ const [previewOpen, setPreviewOpen] = useState(false);38+ useEffect(() => {apps/mobile/src/state/use-composer-drafts.ts line 1008OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -897,3 +1005,4 @@8971005 const draft = {8981006 ...normalizeDraft(current[draftKey]),8991007 text: value,1008+ context: referencedComposerContext(value, current[draftKey]?.context),apps/mobile/src/state/use-composer-drafts.ts lines 1077 to 1081OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -952 +1061,21 @@9521061 scheduleUnusedComposerAttachmentCleanup(rejected);1062+ if (options?.appendReference) {1063+ const records = attachments.slice(0, attachments.length - rejected.length).map((attachment) => {1064+ const common = {1065+ version: 1 as const,1066+ contextId: ComposerContextId.make(attachment.id),1067+ label: attachment.name,1068+ attachmentId: attachment.id,1069+ name: attachment.name,1070+ mimeType: attachment.mimeType,1071+ sizeBytes: attachment.sizeBytes,1072+ };1073+ return attachment.type === "image"1074+ ? { ...common, kind: "image" as const }1075+ : { ...common, kind: "file" as const };1076+ });1077+ if (records.length > 0)1078+ insertComposerDraftContext(draftKey, {1079+ text: records.map(formatComposerContextReference).join(" "),1080+ context: { version: 1, records },1081+ });apps/web/src/components/chat/ChatComposer.tsx lines 3284 to 3325Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -2568,3 +2962,20 @@2568- syncTerminalContextsByIds(composerTerminalContexts, terminalContextIds),2962+ composerTerminalContexts.filter((context) => referenced.has(context.id)),25692963 );25702964 }2965+ for (const comment of composerReviewComments) {2966+ if (!referenced.has(reviewCommentContextId(comment.id))) {2967+ removeComposerDraftReviewComment(composerDraftTarget, comment.id);2968+ }2969+ }2970+ for (const annotation of composerPreviewAnnotations) {2971+ if (!referenced.has(previewAnnotationContextId(annotation.id))) {2972+ releaseAttachmentUpload(annotation.id);2973+ removeComposerDraftPreviewAnnotation(composerDraftTarget, annotation.id);2974+ }2975+ }2976+ // Files live only as chips; images stay on the shelf when their chip goes.2977+ for (const file of composerFiles) {2978+ if (!referenced.has(file.id)) {2979+ removeComposerFileFromDraft(file.id);2980+ }2981+ }apps/web/src/components/ChatMarkdown.tsx lines 2362 to 2368Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -2318,4 +2334,8 @@23182334 if (!payload) return;23192335 event.preventDefault();23202336 event.clipboardData.setData("text/plain", payload.text);2321- event.clipboardData.setData("text/html", payload.html);2337+ const fragment = event.clipboardData.getData(COMPOSER_CONTEXT_CLIPBOARD_MIME);2338+ event.clipboardData.setData(2339+ "text/html",2340+ fragment ? encodeComposerContextClipboardHtml(payload.text, fragment) : payload.html,2341+ );apps/web/src/components/ComposerContextReferenceNode.tsx line 49Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -0,0 +29,21 @@29+>;30+31+/**32+ * One inline occurrence of a context payload. The node's text is the canonical link, so the33+ * prompt string carries kind and id and rebuilding the editor from it restores the same chip.34+ * `referenceId` identifies this occurrence; duplicating the node mints a new one.35+ */36+export class ComposerContextReferenceNode extends DecoratorNode<ReactElement> {37+ __kind: string;38+ __contextId: string;39+ __label: string;40+ __referenceId: string;41+42+ static override getType(): "composer-context-reference" {43+ return "composer-context-reference";44+ }45+46+ static override clone(node: ComposerContextReferenceNode): ComposerContextReferenceNode {47+ return new ComposerContextReferenceNode(48+ { kind: node.__kind, contextId: node.__contextId, label: node.__label },49+ node.__referenceId,apps/web/src/composerDraftStore.ts lines 2990 to 3002Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -2993,7 +2913,7 @@29932913 const existing = state.draftsByThreadKey[threadKey] ?? createEmptyThreadDraft();29942914 const nextDraft: ComposerThreadDraftState = {29952915 ...existing,2996- prompt: ensureInlineTerminalContextPlaceholders(2916+ prompt: ensureInlineContextReferences(29972917 existing.prompt,2998- normalizedContexts.length,2918+ normalizedContexts.map(terminalContextReference),29992919 ),apps/web/src/composerDraftStore.ts lines 3726 to 3729Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -3732,5 +3588,18 @@3732- });3733- },3734- addPreviewAnnotation: (threadRef, annotation) => {3588+ addPreviewAnnotation: (threadRef, annotation, options) => {37353589 const threadKey = resolveComposerDraftKey(get(), threadRef);37363590 if (!threadKey) return;3591+ const compactAnnotation: PreviewAnnotationPayload = {3592+ ...annotation,3593+ screenshot: annotation.screenshot ? { ...annotation.screenshot, dataUrl: "" } : null,3594+ };3595+ const reference = previewAnnotationContextReference(compactAnnotation);3596+ const current = get().draftsByThreadKey[threadKey];3597+ const alreadyPresent =3598+ current?.previewAnnotations.some((entry) => entry.id === annotation.id) ?? false;3599+ // The handler updates the same draft through `setPrompt`. Run it before this store3600+ // update so the latest prompt is what the record update preserves. Calling it from3601+ // inside the updater lets the outer update overwrite the inserted reference.3602+ const placedAtCaret =3603+ !alreadyPresent &&3604+ options?.appendReference !== false &&3605+ (contextInsertionHandlers.get(threadKey)?.([reference]) ?? false);apps/web/src/composerDraftStore.ts lines 3862 to 3865OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -3944,4 +3859,7 @@39443859 }39453860 const nextDraft: ComposerThreadDraftState = {39463861 ...current,3947- prompt: ensureInlineTerminalContextPlaceholders("", current.terminalContexts.length),3862+ prompt: ensureInlineContextReferences(3863+ "",3864+ current.terminalContexts.map(terminalContextReference),3865+ ),apps/web/src/lib/composerContextRecords.ts line 341OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -0,0 +321,21 @@321+ };322+}323+324+/** Lossy on purpose: geometry and screenshot do not travel; the agent-facing detail does. */325+export function previewAnnotationFromRecord(326+ record: PreviewAnnotationContextRecord,327+): PreviewAnnotationPayload {328+ return {329+ id: record.annotationId || record.contextId,330+ pageUrl: record.pageUrl,331+ pageTitle: record.pageTitle,332+ comment: record.comment,333+ elements: (record.elements ?? []).map((element, index) => ({334+ id: `${record.contextId}-element-${index + 1}`,335+ rect: { x: 0, y: 0, width: 0, height: 0 },336+ element: { ...element, stack: [], pickedAt: new Date().toISOString() },337+ })),338+ regions: [],339+ strokes: [],340+ styleChanges: record.styleChanges.flatMap((change, index) => {341+ const match = /^(.+?): (.*) → (.*)$/.exec(change);packages/shared/src/composerContextReferences.ts line 45OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -0,0 +25,21 @@25+26+export function formatComposerContextHref(kind: ComposerContextKind, contextId: ComposerContextId) {27+ return `${COMPOSER_CONTEXT_HREF_PREFIX}${kind}/${contextId}`;28+}29+30+export function parseComposerContextHref(31+ href: string,32+): { kind: ComposerContextKind; contextId: ComposerContextId } | null {33+ if (!href.startsWith(COMPOSER_CONTEXT_HREF_PREFIX)) return null;34+ const rest = href.slice(COMPOSER_CONTEXT_HREF_PREFIX.length);35+ const parts = rest.split("/");36+ if (parts.length !== 2) return null;37+ const [kind, contextId] = parts as [string, string];38+ if (!CONTEXT_KIND_PATTERN.test(kind) || !CONTEXT_ID_PATTERN.test(contextId)) return null;39+ return { kind, contextId: contextId as ComposerContextId };40+}41+42+/** Labels must survive a Markdown link: no brackets or line breaks, bounded, never empty. */43+export function sanitizeComposerContextLabel(label: string, kind: ComposerContextKind): string {44+ const cleaned = label45+ .replace(/[[\]\r\n]/g, " ")
- apps/mobile/src/features/review/reviewCommentSelection.ts lines 295 to 298OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -286,6 +287,12 @@286287 const segments: ReviewCommentMessageSegment[] = [];287288 let cursor = 0;288289 let parsedCommentIndex = 0;289-290- for (const match of value.matchAll(REVIEW_COMMENT_BLOCK_PATTERN)) {291- const matchIndex = match.index ?? 0;290+ // Labels are opaque text, even when they contain legacy review markup. Keep offsets intact.291+ const masked = replaceComposerContextReferences(value, (reference) =>292+ " ".repeat(reference.source.length),293+ );294+ for (const maskedMatch of masked.matchAll(REVIEW_COMMENT_BLOCK_PATTERN)) {295+ const match = new RegExp(REVIEW_COMMENT_BLOCK_PATTERN.source).exec(296+ value.slice(maskedMatch.index, maskedMatch.index + maskedMatch[0].length),297+ )!;298+ const matchIndex = maskedMatch.index;apps/mobile/src/state/use-composer-drafts.ts line 546OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -450,3 +537,10 @@450537 ]);451538 }452539540+/** Clipboard fragments can refer to a local file that has not finished uploading yet. */541+export function findLocalComposerClipboardAttachment(542+ environmentId: EnvironmentId,543+ id: string,544+): DraftComposerAttachment | undefined {545+ for (const [key, draft] of Object.entries(appAtomRegistry.get(composerDraftsAtom))) {546+ if (composerDraftEnvironmentId(key, []) !== environmentId) continue;apps/mobile/src/state/use-composer-drafts.ts lines 958 to 971OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -851,3 +955,17 @@851955 ...draft,852956 ...existing,853957 text: mergeComposerDraftText(existing.text, draft.text),958+ context:959+ draft.context || existing.context960+ ? {961+ version: 1,962+ records: [963+ ...new Map(964+ [965+ ...(draft.context?.records ?? []),966+ ...(existing.context?.records ?? []),967+ ].map((record) => [record.contextId, record]),968+ ).values(),969+ ],970+ }971+ : undefined,
- apps/web/src/components/chat/ExpandedImageDialog.tsx line 176OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -158,0 +156,21 @@156+ <DialogTitle className="sr-only">Expanded {mediaLabel} preview</DialogTitle>157+ {preview.images.length > 1 && (158+ <Button159+ type="button"160+ size="icon"161+ variant="ghost"162+ className="absolute left-2 top-1/2 z-20 -translate-y-1/2 text-white/90 hover:bg-white/10 hover:text-white sm:left-6"163+ aria-label="Previous media"164+ onClick={() => navigateImage(-1)}165+ >166+ <ChevronLeftIcon className="size-5" />167+ </Button>168+ )}169+ <MediaActions source={actionsSource}>170+ <div className="relative isolate z-10 max-h-[92vh] max-w-[92vw]">171+ <Button172+ type="button"173+ ref={closeButtonRef}174+ size="icon-xs"175+ variant="ghost"176+ className="absolute right-2 top-2 z-20 bg-black/65 text-white shadow-sm ring-1 ring-white/20 hover:bg-black/80 hover:text-white focus-visible:ring-white"apps/web/src/components/chat/ExpandedImageDialog.tsx line 152OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -146,13 +145,8 @@146- <Button147- type="button"148- size="icon"149- variant="ghost"150- className="absolute left-2 top-1/2 z-20 -translate-y-1/2 text-white/90 hover:bg-white/10 hover:text-white sm:left-6"151- aria-label="Previous image"152- onClick={() => navigateImage(-1)}153- >154- <ChevronLeftIcon className="size-5" />155- </Button>156- )}157- <MediaActions source={actionsSource}>158- <div className="relative isolate z-10 max-h-[92vh] max-w-[92vw]">145+ <DialogPopup146+ {...composerFloatingLayerProps}147+ variant="media"148+ showCloseButton={false}149+ bottomStickOnMobile={false}150+ backdropClassName="z-[60]"151+ viewportClassName="z-[60] grid-rows-1 place-items-center px-4 py-6 [-webkit-app-region:no-drag]"152+ className="row-start-1 max-h-[92vh] w-auto max-w-[92vw] overflow-visible"apps/web/src/components/chat/ExpandedImageDialog.tsx line 162OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -156,3 +145,18 @@156- )}157- <MediaActions source={actionsSource}>158- <div className="relative isolate z-10 max-h-[92vh] max-w-[92vw]">145+ <DialogPopup146+ {...composerFloatingLayerProps}147+ variant="media"148+ showCloseButton={false}149+ bottomStickOnMobile={false}150+ backdropClassName="z-[60]"151+ viewportClassName="z-[60] grid-rows-1 place-items-center px-4 py-6 [-webkit-app-region:no-drag]"152+ className="row-start-1 max-h-[92vh] w-auto max-w-[92vw] overflow-visible"153+ initialFocus={closeButtonRef}154+ finalFocus={() => returnFocusTarget}155+ >156+ <DialogTitle className="sr-only">Expanded {mediaLabel} preview</DialogTitle>157+ {preview.images.length > 1 && (158+ <Button159+ type="button"160+ size="icon"161+ variant="ghost"162+ className="absolute left-2 top-1/2 z-20 -translate-y-1/2 text-white/90 hover:bg-white/10 hover:text-white sm:left-6"
- apps/web/src/components/chat/ChatComposer.tsx line 4883OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -4327,6 +4864,20 @@43274864 }43284865 }4866+ return insertedAny;4867+ };4868+4869+ /**4870+ * Chips for freshly attached files land at the caret; when the editor cannot take4871+ * input (approval, pending questions) they are appended so the file is never invisible.4872+ */4873+ const insertAttachmentReferences = (references: ReadonlyArray<ComposerContextReference>) => {4874+ if (references.length === 0) return;4875+ const text = references.map(formatInlineContextReference).join(" ");4876+ const inserted = insertComposerText(`${text} `, "cursor", { ensureLeadingBoundary: true });4877+ if (!inserted) {4878+ setPrompt(ensureInlineContextReferences(promptRef.current, references));4879+ }43294880 };4330488143314882 const removeComposerImage = (imageId: string) => {4332- removeComposerImageFromDraft(imageId);4883+ const referenced = collectInlineContextIds(promptRef.current).includes(imageId);apps/web/src/composerDraftStore.ts lines 1921 to 1927Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -1931,0 +1873,21 @@1873+ ["review-comment", reviewComments],1874+ ["preview-annotation", previewAnnotations],1875+ ] as const) {1876+ for (const entry of entries) {1877+ const contextId = toKindScopedComposerContextId(kind, entry.id);1878+ contextIds.set(`${kind}/${entry.id}`, contextId);1879+ contextIds.set(`${kind}/${toComposerContextId(entry.id)}`, contextId);1880+ if (kind === "preview-annotation") {1881+ contextIds.set(`${kind}/${toComposerContextId(`annotation-${entry.id}`)}`, contextId);1882+ }1883+ }1884+ }1885+ // Older drafts used producer ids (including dots and colons) directly in links.1886+ // Rewrite only links backed by this draft, before appending any missing references.1887+ const migratedPrompt = promptCandidate.replace(1888+ /\[([^\]\r\n]*)\]\(t3-context:\/\/v1\/([a-z-]+)\/([^/()\r\n]+)\)/g,1889+ (source, label: string, kind: string, id: string) => {1890+ const contextId = contextIds.get(`${kind}/${id}`);1891+ return contextId ? formatInlineContextReference({ kind, contextId, label }) : source;1892+ },1893+ );packages/shared/src/composerContextLegacy.ts lines 344 to 345OutdatedResolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -0,0 +325,21 @@325+ formatComposerContextReference(reviews[Number(index)]!),326+ );327+328+ // Placeholders bind to terminal entries in order, like the old materialize step did.329+ let placeholderIndex = 0;330+ body = body.replace(new RegExp(PLACEHOLDER, "g"), () => {331+ const record = terminals[placeholderIndex];332+ placeholderIndex += 1;333+ return record ? formatComposerContextReference(record) : "";334+ });335+ // Sent messages carry the materialized `@terminal-1:509-514` label instead of the336+ // placeholder; each such label becomes the chip in place.337+ const placedTerminals = new Set(terminals.slice(0, placeholderIndex));338+ for (const record of terminals) {339+ if (placedTerminals.has(record)) continue;340+ const label = inlineTerminalLabel(record);341+ let at = body.indexOf(label);342+ while (343+ at !== -1 &&344+ (/[\p{L}\p{N}\p{M}_@.-]$/u.test(body.slice(0, at)) ||345+ /^[\p{L}\p{N}\p{M}_@.-]/u.test(body.slice(at + label.length)))
- apps/web/src/components/chat/ChatComposer.tsx lines 3996 to 4008Resolvedby chrisdeeming(GitHub profile, opens in a new tab)@@ -3204,3 +3683,12 @@32043683 });32053684 }320636853686+ const rewrittenContextIds = entry.records3687+ ? importContextRecords(entry.records, null)3688+ : new Map<string, string>();3689+ const restoredPrompt = replaceComposerContextReferences(entry.prompt, (reference) => {3690+ const contextId = rewrittenContextIds.get(reference.contextId);3691+ return contextId3692+ ? formatInlineContextReference({ ...reference, contextId })3693+ : reference.source;3694+ });
- @@ -0,0 +207,21 @@207+ props.isVideo208+ ? CONTEXT_INLINE_CHIP_TONE_CLASS_NAMES.video209+ : CONTEXT_INLINE_CHIP_TONE_CLASS_NAMES.file,210+ props.onOpen && !props.disabled && CONTEXT_INLINE_CHIP_INTERACTIVE_CLASS_NAME,211+ props.onOpen && !props.disabled && (props.isVideo ? "cursor-zoom-in" : "cursor-pointer"),212+ props.unresolved && "border-dashed text-foreground",213+ props.error && "border-destructive/35 bg-destructive/8 text-destructive",214+ );215+ const content = <FileChipContent {...props} />;216+ const attributes = {217+ className,218+ "aria-label": [props.accessibleLabel, props.suffix].filter(Boolean).join(", "),219+ "data-markdown-copy": props.copyMarkdown,220+ "data-context-unresolved": props.unresolved ? "true" : undefined,221+ };222+ return (223+ <Tooltip>224+ <TooltipTrigger225+ render={226+ props.onOpen ? (227+ <button type="button" disabled={props.disabled} onClick={props.onOpen} {...attributes}>@@ -0,0 +59,21 @@59+ <TooltipPopup side="top" className={tooltipClassName}>60+ {tooltip}61+ </TooltipPopup>62+ </Tooltip>63+ );64+}65+66+export function ContextChipPopover(props: {67+ copyMarkdown?: string;68+ accessibleLabel: string;69+ chip: ReactNode;70+ children: ReactNode;71+ triggerClassName?: string;72+ popupClassName?: string;73+ viewportClassName?: string;74+}) {75+ return (76+ <Popover>77+ <PopoverTrigger78+ render={79+ <button@@ -0,0 +98,21 @@98+ <PopoverTitle className="sr-only">{props.accessibleLabel}</PopoverTitle>99+ {props.children}100+ </PopoverPopup>101+ </Popover>102+ );103+}104+105+export function PullRequestChip(props: {106+ metadata: PullRequestContextMetadata;107+ label: string;108+ kindLabel: string;109+ className: string;110+ labelClassName: string;111+ copyMarkdown?: string;112+ onOpen: (event: MouseEvent<HTMLElement>, url: string) => void;113+}) {114+ return (115+ <Tooltip>116+ <TooltipTrigger117+ render={118+ <button@@ -0,0 +141,21 @@141+ <PullRequestContextDetails metadata={props.metadata} />142+ </TooltipPopup>143+ </Tooltip>144+ );145+}146+147+export function ImageChipButton({148+ name,149+ previewUrl,150+ className,151+ labelClassName,152+ suffix,153+ ...props154+}: ComponentProps<"button"> & {155+ name: string;156+ previewUrl: string | undefined;157+ labelClassName: string;158+ suffix?: string | null;159+}) {160+ return (161+ <button
- @@ -0,0 +63,21 @@63+ </Tooltip>64+ );65+}66+67+export function ContextChipPopover(props: {68+ copyMarkdown?: string;69+ accessibleLabel: string;70+ chip: ReactNode;71+ children: ReactNode;72+ triggerClassName?: string;73+ popupClassName?: string;74+ viewportClassName?: string;75+}) {76+ return (77+ <Popover>78+ <PopoverTrigger79+ render={80+ <Button81+ variant="chip"82+ className={cn(83+ "inline-flex max-w-full cursor-pointer items-center rounded-[0.5em] align-middle",
juliusmarminge closed this
Sign in to join this conversation.
Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — This PR adds a substantial cross-platform inline-context capability spanning native composers, web rendering, clipboard and attachment flows, server orchestration, persistence, and schema migration. It also changes mobile product defaults, so the scope and runtime impact exceed what can be auto-approved.
Not approved because:
- Per-review cost limit exceeded (workspace setting). Approvability relies on correctness review in order to determine eligibility
Review your spending limits in [Billing settings](https://app.macroscope.com/pingdotgg/settings/billing), or comment `@macroscope-app review this PR` to bypass the limit and review now. You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).