Feat(config): Align settings menu to match android/ios (#906)

* feat: aligned settings menu to match android/ios

* updated sidebar text size.

* Update packages/web/public/i18n/locales/en/config.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/web/public/i18n/locales/en/config.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/web/src/components/PageComponents/Settings/User.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/web/src/components/PageComponents/ModuleConfig/Telemetry.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* linting/formatting fixes

* fixed formatting issue

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dan Ditomaso
2025-10-24 13:31:22 -04:00
committed by GitHub
co-authored by Copilot
parent ff02b1455d
commit 0cf677c8d5
45 changed files with 1116 additions and 777 deletions
+28 -4
View File
@@ -1,10 +1,10 @@
import { DialogManager } from "@components/Dialog/DialogManager.tsx";
import type { useAppStore, useMessageStore } from "@core/stores";
import ConfigPage from "@pages/Config/index.tsx";
import { Dashboard } from "@pages/Dashboard/index.tsx";
import MapPage from "@pages/Map/index.tsx";
import MessagesPage from "@pages/Messages.tsx";
import NodesPage from "@pages/Nodes/index.tsx";
import ConfigPage from "@pages/Settings/index.tsx";
import {
createRootRouteWithContext,
createRoute,
@@ -109,9 +109,33 @@ export const mapWithParamsRoute = createRoute({
// }),
});
const configRoute = createRoute({
export const settingsRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/config",
path: "/settings",
component: ConfigPage,
// beforeLoad: () => {
// throw redirect({
// to: "/settings/radio",
// replace: true,
// });
// },
});
export const radioRoute = createRoute({
getParentRoute: () => settingsRoute,
path: "radio",
component: ConfigPage,
});
export const deviceRoute = createRoute({
getParentRoute: () => settingsRoute,
path: "device",
component: ConfigPage,
});
export const moduleRoute = createRoute({
getParentRoute: () => settingsRoute,
path: "module",
component: ConfigPage,
});
@@ -133,7 +157,7 @@ const routeTree = rootRoute.addChildren([
messagesWithParamsRoute,
mapRoute,
mapWithParamsRoute,
configRoute,
settingsRoute.addChildren([radioRoute, deviceRoute, moduleRoute]),
nodesRoute,
dialogWithParamsRoute,
]);