diff --git a/apps/planner/app/components/ProfileSelector.tsx b/apps/planner/app/components/ProfileSelector.tsx index 91d6ac5..1c6c5b2 100644 --- a/apps/planner/app/components/ProfileSelector.tsx +++ b/apps/planner/app/components/ProfileSelector.tsx @@ -2,7 +2,7 @@ import { useEffect, useState, useCallback } from "react"; import { useTranslation } from "react-i18next"; import type { YjsState } from "~/lib/use-yjs"; -const PROFILE_IDS = ["trekking", "fastbike", "safety", "shortest", "car"] as const; +const PROFILE_IDS = ["fastbike", "safety", "shortest", "car", "trekking"] as const; interface ProfileSelectorProps { yjs: YjsState; @@ -10,7 +10,7 @@ interface ProfileSelectorProps { export function ProfileSelector({ yjs }: ProfileSelectorProps) { const { t } = useTranslation("planner"); - const [profile, setProfile] = useState("trekking"); + const [profile, setProfile] = useState("fastbike"); useEffect(() => { const update = () => { diff --git a/apps/planner/app/lib/use-routing.ts b/apps/planner/app/lib/use-routing.ts index 3283da5..bac87e1 100644 --- a/apps/planner/app/lib/use-routing.ts +++ b/apps/planner/app/lib/use-routing.ts @@ -91,7 +91,7 @@ export function useRouting(yjs: YjsState | null) { headers: { "Content-Type": "application/json" }, body: JSON.stringify({ waypoints, - profile: (yjs.routeData.get("profile") as string) ?? "trekking", + profile: (yjs.routeData.get("profile") as string) ?? "fastbike", noGoAreas: noGoAreas.length > 0 ? noGoAreas : undefined, }), }); diff --git a/e2e/planner.test.ts b/e2e/planner.test.ts index 4e57d1b..529678d 100644 --- a/e2e/planner.test.ts +++ b/e2e/planner.test.ts @@ -43,7 +43,7 @@ test.describe("Planner", () => { const profileSelect = page.getByLabel("Profile:"); await expect(profileSelect).toBeVisible(); - await expect(profileSelect).toHaveValue("trekking"); + await expect(profileSelect).toHaveValue("fastbike"); }); test("session has export GPX button", async ({ page, request }) => {