wip: user preferences in command palette

This commit is contained in:
Thomas Camlong committed 2026-05-29 15:37:00 +02:00
1 parent 4a67bf0ef3
commit 19d86daa87
24 files changed
+921 -116

No files matched your search

@@ -0,0 +1,25 @@
import { Group, Text } from "@mantine/core";
import { IconSettings } from "@tabler/icons-react";
import { useScopedI18n } from "@homarr/translation/client";
import { createGroup } from "../../lib/group";
import { interaction } from "../../lib/interaction";
import { settingsChildrenOptions } from "../command/children/preferences/settings-children";
export const preferencesGroup = createGroup({
keyPath: "key",
title: (t) => t("search.mode.command.group.preferences.title"),
options: [{ key: "settings" }],
Component: () => {
const t = useScopedI18n("search.mode.command.group.preferences");
return (
<Group px="md" py="sm" wrap="nowrap" gap="sm">
<IconSettings stroke={1.5} />
<Text>{t("title")}</Text>
</Group>
);
},
filter: (_query, _option) => true,
useInteraction: interaction.children(settingsChildrenOptions),
});