Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: load private uploads in PR and MR descriptions #11374

ClosedRasalas(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/11374/headopened View on GitHub

Showing 25 changed files with 77 additions and 8 deletions (loading 22).

x
0 of 25 viewed, 25 left
16 additions and 0 deletionsapps/mobile/src/features/threads/ThreadFeed.tsxModified
View file
@@ -2154,6 +2154,22 @@
const imageSource = classifyMarkdownImageSource(image.href, props.workspaceRoot ?? null);
+ if (imageSource._tag === "SourceControlMedia") {
+ const resource = {
+ _tag: "source-control-media",
+ reference: imageSource.reference,
+ } as const;
+ return (
+ <ThreadMarkdownImage
+ environmentId={props.environmentId}
+ resource={resource}
+ fallbackUrl={imageSource.uri}
+ alt={image.alt}
+ actionsSource={media?.source.actionsSource}
+ onPressPreview={(source) => setExpandedFile((current) => current ?? source)}
+ />
+ );
+ }
if (imageSource._tag === "Direct") {
return (
<ThreadMarkdownImageView
48 additions and 8 deletionsapps/mobile/src/features/threads/ThreadMarkdownImage.tsxModified
View file
@@ -35,6 +35,7 @@
readonly uri: string | null;
readonly sourceKey: string;