fixxed big ui cavia
Build APK / build (push) Canceled after 0s

This commit is contained in:
2026-08-07 01:06:03 +02:00
parent 3d594670b0
commit ecb7fbefb1
71 changed files with 3989 additions and 1204 deletions
+9 -5
View File
@@ -35,6 +35,7 @@ const taskSchema = z.object({
repeatInterval: z.number().int().min(1).max(30).optional(),
repeatDays: z.array(z.number().int().min(0).max(6)).optional(),
reminder: z.enum(['none', 'at_time', '15', '30', '60', '120', '1440']),
reminders: z.string().optional(),
assigneeId: z.string().nullable().optional(),
subtasks: z.array(z.object({ title: z.string(), _key: z.string().optional() })).optional(),
});
@@ -69,6 +70,7 @@ export default function AddTaskScreen() {
repeatInterval: 1,
repeatDays: [],
reminder: 'none',
reminders: '',
assigneeId: null,
subtasks: [],
},
@@ -88,6 +90,7 @@ export default function AddTaskScreen() {
const repeatInterval = watch('repeatInterval') ?? 1;
const repeatDays = watch('repeatDays') ?? [];
const reminder = watch('reminder');
const reminders = watch('reminders');
const dueDate = watch('dueDate');
const assigneeId = watch('assigneeId');
@@ -124,6 +127,7 @@ export default function AddTaskScreen() {
t.repeatDays = (data.repeatDays || []).join(',');
t.seriesId = seriesId;
t.reminder = data.reminder || 'none';
t.reminders = data.reminders || '';
t.assigneeId = data.assigneeId ?? null;
t.createdAt = now;
t.updatedAt = now;
@@ -213,9 +217,9 @@ export default function AddTaskScreen() {
}}
/>
<ReminderSelector
value={reminder}
value={reminders}
hasDueDate={!!dueDate}
onChange={(value) => setValue('reminder', value)}
onChange={(value) => setValue('reminders', value)}
/>
<AssigneeSelector
value={assigneeId}
@@ -255,8 +259,8 @@ const styles = StyleSheet.create({
},
scrollContent: {
paddingHorizontal: 16,
paddingTop: 8,
paddingBottom: 100,
gap: 24,
paddingTop: 12,
paddingBottom: 120,
gap: 20,
},
});