Skip to content

Commit 5f22719

Browse files
author
Tomas Pflanzer
committed
fix: TS build fixes for v0.28 (mock types, unused import)
1 parent 8f418e4 commit 5f22719

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

dashboard/src/api/mock.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6361,6 +6361,11 @@ const routes: MockRoute[] = [
63616361
enabled: b?.enabled ?? true,
63626362
last_run_id: null,
63636363
created_at: new Date().toISOString(),
6364+
last_run_at: null as string | null,
6365+
last_run_status: null as string | null,
6366+
next_run_at: null as string | null,
6367+
success_rate: 0,
6368+
status: "active" as string,
63646369
};
63656370
MOCK_SCHEDULES.push(newSched);
63666371
return newSched;

dashboard/src/pages/SettingsPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { api } from "@/api/client";
3535
import { LoadingSpinner } from "@/components/shared/LoadingSpinner";
3636
import { SectionCard, FieldLabel, HelperText } from "@/components/ui/SectionCard";
3737
import { Link } from "react-router-dom";
38-
import { cn, inputClass, isSafeUrl } from "@/lib/utils";
38+
import { cn, inputClass } from "@/lib/utils";
3939
import { useRuntimeInfo } from "@/hooks/useRuntimeInfo";
4040
import { useUpdateCheck } from "@/hooks/useUpdateCheck";
4141
import { useNotifications } from "@/hooks/useNotifications";
@@ -763,7 +763,7 @@ export default function SettingsPage() {
763763

764764
{/* Update channel selector */}
765765
<div className="mt-4 pt-4 border-t border-border space-y-3">
766-
<FieldLabel>Update Channel</FieldLabel>
766+
<FieldLabel htmlFor="update_channel">Update Channel</FieldLabel>
767767
<div className="flex items-center gap-3 flex-wrap">
768768
<select
769769
value={updateChannel}

0 commit comments

Comments
 (0)