This commit is contained in:
Mo Tarbin
2026-07-12 18:11:00 -04:00
parent 925ebf3210
commit b7cc19b719

View File

@@ -22,6 +22,8 @@ import {
import SmartTaskTitleInput from './SmartTaskTitleInput'
import KeyboardShortcutHint from '../../components/common/KeyboardShortcutHint'
import { useDocumentScanner } from '../../hooks/useDocumentScanner'
import { localAIService } from '../../service/LocalAIService'
import { TASK_COLOR } from '../../utils/Colors'
import AssigneePickerField from './AssigneePickerField'
import AttachmentPickerField from './AttachmentPickerField'
@@ -29,12 +31,10 @@ import DueDatePickerField from './DueDatePickerField'
import LabelsPickerField from './LabelsPickerField'
import LearnMoreButton from './LearnMore'
import NotificationPickerField from './NotificationPickerField'
import ScanPanel from './ScanToTask/ScanPanel'
import { useDocumentScanner } from '../../hooks/useDocumentScanner'
import { localAIService } from '../../service/LocalAIService'
import PriorityPickerField from './PriorityPickerField'
import RepeatPickerField from './RepeatPickerField'
import RichTextEditor from './RichTextEditor'
import ScanPanel from './ScanToTask/ScanPanel'
import SubTasks from './SubTask'
const getDefaultNotification = () => {
const storedDefault = localStorage.getItem('defaultNotificationTemplate')
@@ -558,7 +558,11 @@ const TaskInput = ({ onChoreUpdate, isModalOpen, onClose }) => {
createChore()
}
const handleTaskExtracted = ({ taskName, description: extractedDesc, dueDate: extractedDue }) => {
const handleTaskExtracted = ({
taskName,
description: extractedDesc,
dueDate: extractedDue,
}) => {
if (taskName) {
processText(taskName)
}
@@ -766,7 +770,10 @@ const TaskInput = ({ onChoreUpdate, isModalOpen, onClose }) => {
task's due date, priority, and frequency.
</Typography>
<Typography level='body-sm' sx={{ fontWeight: 'bold', mt: 2 }}>
<Typography
level='body-sm'
sx={{ fontWeight: 'bold', mt: 2 }}
>
Examples:
</Typography>
@@ -776,10 +783,11 @@ const TaskInput = ({ onChoreUpdate, isModalOpen, onClose }) => {
sx={{ pl: 2, mt: 1, listStyle: 'disc' }}
>
<li>
<strong>Priority:</strong>For highest priority any of the
following keyword <em>P1</em>, <em>Urgent</em>,{' '}
<strong>Priority:</strong>For highest priority any of
the following keyword <em>P1</em>, <em>Urgent</em>,{' '}
<em>Important</em>, or <em>ASAP</em>. For lower
priorities, use <em>P2</em>, <em>P3</em>, or <em>P4</em>.
priorities, use <em>P2</em>, <em>P3</em>, or{' '}
<em>P4</em>.
</li>
<li>
<strong>Due date:</strong> Specify dates with phrases
@@ -802,15 +810,23 @@ const TaskInput = ({ onChoreUpdate, isModalOpen, onClose }) => {
autoFocus
value={taskText}
isNativeScanner={isNativeScanner}
onScanClick={llmAvailable ? () => {
onScanClick={
llmAvailable
? () => {
setScanAutoCapture(true)
setShowScan(true)
} : undefined}
onPhotoSelected={llmAvailable ? dataUrl => {
}
: undefined
}
onPhotoSelected={
llmAvailable
? dataUrl => {
setScanAutoCapture(false)
setPendingPhotoUrl(dataUrl)
setShowScan(true)
} : undefined}
}
: undefined
}
placeholder='Type your task...'
onChange={text => {
setTaskText(text)
@@ -945,7 +961,9 @@ const TaskInput = ({ onChoreUpdate, isModalOpen, onClose }) => {
size='md'
onClick={() => setHasDescription(true)}
endDecorator={
showKeyboardShortcuts && <KeyboardShortcutHint shortcut='E' />
showKeyboardShortcuts && (
<KeyboardShortcutHint shortcut='E' />
)
}
>
Description
@@ -959,7 +977,9 @@ const TaskInput = ({ onChoreUpdate, isModalOpen, onClose }) => {
size='md'
onClick={() => setHasSubTasks(true)}
endDecorator={
showKeyboardShortcuts && <KeyboardShortcutHint shortcut='J' />
showKeyboardShortcuts && (
<KeyboardShortcutHint shortcut='J' />
)
}
>
Subtasks