Skip to content

Commit adfacc6

Browse files
fix(mobile): repair scheduled task and thread screen references
Use the existing Dialog presenter for the missing-task alert and resolve AppText at its current UI path. Format the scheduled-task project field.
1 parent acf5a3b commit adfacc6

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ function TaskForm({
681681
// and save) — fail loudly instead of silently discarding the edit.
682682
setSaving(false);
683683
submissionPending.current = false;
684-
Alert.alert(
684+
Dialog.alert(
685685
"Task unavailable",
686686
"The task could not be loaded. Reopen it once the list has loaded and try again.",
687687
);

‎apps/mobile/src/features/threads/ThreadDetailScreen.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ import { useNativeColumnLayoutMetrics } from "../../native/native-layout-metrics
9999
import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
100100
import { collectProviderUsageLimits } from "@t3tools/shared/usageLimits";
101101
import type { ComposerEditorHandle } from "../../components/ComposerEditor";
102-
import { AppText as Text } from "../../components/AppText";
102+
import { AppText as Text } from "../../components/ui/AppText";
103103
import { refreshArchivedThreadsForEnvironment } from "../archive/useArchivedThreadSnapshots";
104104
import type { StatusTone } from "../../components/StatusPill";
105105
import type { DraftComposerAttachment } from "../../lib/composerImages";

‎apps/web/src/components/settings/ScheduledTasksSettings.tsx‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,11 +1251,19 @@ function ScheduledTaskEditorForm({
12511251
</Field>
12521252

12531253
<div className="grid gap-3 sm:grid-cols-2">
1254-
<Field label="Project" htmlFor="scheduled-task-project" hint={
1255-
moveDetachesThreadBinding(draft, baselineDraft,
1256-
tasksQuery.data?.tasks.find((entry) => entry.id === draft.editingId)
1257-
) ? "detaches the thread binding" : undefined
1258-
}>
1254+
<Field
1255+
label="Project"
1256+
htmlFor="scheduled-task-project"
1257+
hint={
1258+
moveDetachesThreadBinding(
1259+
draft,
1260+
baselineDraft,
1261+
tasksQuery.data?.tasks.find((entry) => entry.id === draft.editingId),
1262+
)
1263+
? "detaches the thread binding"
1264+
: undefined
1265+
}
1266+
>
12591267
<Select
12601268
value={selectedProjectId}
12611269
onValueChange={(projectId) =>

0 commit comments

Comments
 (0)