From be36a5f650f581c0a8cf585777ba6eb629bab800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sat, 11 Apr 2026 02:17:46 +0200 Subject: [PATCH] Change default routing profile to fastbike, move hiking to end The app is primarily for cycling. Default profile is now "Cycling (fast)" instead of "Hiking". Profile order: fastbike, safety, shortest, car, trekking. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/planner/app/components/ProfileSelector.tsx | 4 ++-- apps/planner/app/lib/use-routing.ts | 2 +- e2e/planner.test.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 }) => {