Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: let agents work with PDFs, ZIPs, and other files #8092

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 14 commits intomain fromt3code/generic-file-uploadsopened View on GitHub

Showing 79 changed files with 77 additions and 28 deletions (loading 75).

x
0 of 79 viewed, 79 left
36 additions and 17 deletionsapps/mobile/src/components/ComposerAttachmentStrip.tsxModified
View file
@@ -2,12 +2,13 @@
import { Image, Pressable, ScrollView, View } from "react-native";
import { useThemeColor } from "../lib/useThemeColor";
​
-import type { DraftComposerImageAttachment } from "../lib/composerImages";
+import { AppText as Text } from "./AppText";
+import type { DraftComposerAttachment } from "../lib/composerImages";
​
export interface ComposerAttachmentStripProps {
- /** Attachment images to display. */
- readonly attachments: ReadonlyArray<DraftComposerImageAttachment>;
- /** Called when the user taps the remove button on an image. */
+ /** Attachments to display. */
+ readonly attachments: ReadonlyArray<DraftComposerAttachment>;
+ /** Called when the user removes an attachment. */
readonly onRemove: (imageId: string) => void;
/** Called when the user taps on an image thumbnail to preview it. */
readonly onPressImage?: (previewUri: string) => void;
@@ -20,8 +21,7 @@
​
/**
- * A horizontally-scrollable strip of image attachment thumbnails with remove
- * buttons. Used by both the thread composer and the new-task draft screen.
+ * Attachment thumbnails used by the thread composer and the new-task draft screen.
*/
export function ComposerAttachmentStrip(props: ComposerAttachmentStripProps) {
const subtleBg = useThemeColor("--color-subtle");