Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(chat): attach files to question answers #9871

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 10 commits intomain fromrefs/pull/9871/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 40 changed files with 142 additions and 13 deletions (loading 36).

x
0 of 40 viewed, 40 left
13 additions and 13 deletionsapps/mobile/src/features/threads/PendingUserInputCard.tsxModified
View file
@@ -1,3 +1,4 @@
+import { QuestionAttachments } from "./QuestionAttachments";
import type { ApprovalRequestId, UserInputQuestion } from "@t3tools/contracts";
import { useCallback, useRef } from "react";
import { Platform, Pressable, ScrollView, View, type LayoutChangeEvent } from "react-native";
@@ -15,7 +16,7 @@
import { USER_INPUT_TOGGLE_DURATION_MS } from "./pendingUserInputLayout";
​
import { SymbolView } from "../../components/AppSymbol";
-import { AppText as Text, AppTextInput as TextInput } from "../../components/AppText";
+import { AppText as Text } from "../../components/AppText";
import { ControlPill } from "../../components/ControlPill";
import { cn } from "../../lib/cn";
import {
@@ -305,18 +306,17 @@
})}
</View>
- {question.allowCustomAnswer !== false ? (
- <TextInput
- value={draft?.customAnswer ?? ""}
- onChangeText={(value) =>
- props.onChangeCustomAnswer(props.pendingUserInput.requestId, question.id, value)
- }
- onFocus={() => props.onInputFocusChange?.(true)}
- onBlur={() => props.onInputFocusChange?.(false)}
- placeholder="Or type a custom answer"
- className="min-h-[54px] rounded-2xl border border-input-border bg-input px-3.5 py-3 font-sans text-base text-foreground"
- />