-
Notifications
You must be signed in to change notification settings - Fork 2
Optimize/error hanlding #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| using System.Text.Json.Serialization; | ||
|
|
||
| namespace BlotzTask.Modules.ChatTaskGenerator.Dtos; | ||
|
|
||
| public class AiGenerationError | ||
| { | ||
| [JsonPropertyName("errorCode")] | ||
| public string ErrorCode { get; set; } = ""; | ||
|
|
||
| [JsonPropertyName("errorMessage")] | ||
| public string ErrorMessage { get; set; } = ""; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,7 @@ import useTaskMutations from "@/shared/hooks/useTaskMutations"; | |
| import { useNotesMutation } from "@/feature/notes/hooks/useNotesMutation"; | ||
| import Toast from "react-native-toast-message"; | ||
| import { analytics } from "@/shared/services/analytics"; | ||
| import { toastConfig } from "@/shared/components/toast-config"; | ||
|
|
||
| export default function AiTaskSheetScreen() { | ||
| // --- Hooks --- | ||
|
|
@@ -31,7 +32,14 @@ export default function AiTaskSheetScreen() { | |
| const [textInput, setTextInput] = useState(""); | ||
| const { isVisible: isKeyboardVisible } = useKeyboardState(); | ||
| const { isHoldHintVisible, showHoldHint, hideHoldHint } = useHoldHint(1500); | ||
| const { userInput, transcript, streamedTasks, streamedNotes, submitAudioForTranscription, sendTextMessage } = useAiTaskGenerator({ | ||
| const { | ||
| userInput, | ||
| transcript, | ||
| streamedTasks, | ||
| streamedNotes, | ||
| submitAudioForTranscription, | ||
| sendTextMessage, | ||
| } = useAiTaskGenerator({ | ||
| setIsAiGenerating, | ||
| }); | ||
| const { labels } = useAllLabels(); | ||
|
|
@@ -168,7 +176,6 @@ export default function AiTaskSheetScreen() { | |
| )} | ||
|
|
||
| {/* Input bar sticks to the keyboard only */} | ||
|
|
||
| <AiInputBar | ||
| // Text input | ||
| textInput={textInput} | ||
|
|
@@ -190,6 +197,7 @@ export default function AiTaskSheetScreen() { | |
| </KeyboardStickyView> | ||
| </LinearGradient> | ||
| </View> | ||
| <Toast config={toastConfig} position="bottom" bottomOffset={120} /> | ||
| </View> | ||
| ); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can revert package-lock json?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what do you mean
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you changed the package-lock json code but you didn't change any code in package json |
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.