feat: improve assistant confirmations

This commit is contained in:
ajnart committed 2026-07-30 22:01:21 +02:00
1 parent 2aefa23c36
commit 82b146bdf6
13 files changed
+512 -18

No files matched your search

+3
View File
@@ -6,6 +6,7 @@ import { extractToolsFromProcedures } from "trpc-to-mcp";
import { assistantRouter } from "../router/assistant";
import { appRouter } from "../router/app";
import { boardRouter } from "../router/board";
import { iconsRouter } from "../router/icons";
import { infoRouter } from "../router/info";
import { inviteRouter } from "../router/invite";
import { serverSettingsRouter } from "../router/serverSettings";
@@ -29,6 +30,7 @@ const mcpTestRouter = createTRPCRouter({
assistant: assistantRouter,
app: appRouter,
board: boardRouter,
icon: iconsRouter,
info: infoRouter,
invite: inviteRouter,
serverSettings: serverSettingsRouter,
@@ -53,6 +55,7 @@ test("MCP tools should contain expected procedures", () => {
expect(toolNames).toContain("app_create");
expect(toolNames).toContain("board_savePartialBoardSettings");
expect(toolNames).toContain("board_duplicateBoard");
expect(toolNames).toContain("icon_findIcons");
expect(toolNames).toContain("info_getInfo");
expect(toolNames).toContain("invite_getAll");
expect(toolNames).toContain("serverSettings_getBoardSettings");
@@ -111,6 +111,9 @@ const SpotlightWithActiveMode = ({ modeState, queryState, activeMode }: Spotligh
shortcut={hotkeys.openSpotlight}
yOffset={8}
overlayProps={{ blur: 2, backgroundOpacity: 0.2 }}
onSpotlightOpen={() => {
requestAnimationFrame(() => inputRef.current?.focus());
}}
onSpotlightClose={() => {
setMode(defaultMode);
clearChildrenStack();
+17 -2
View File
@@ -1648,13 +1648,28 @@
"dismiss": "Dismiss assistant activity"
},
"scrollToLatest": "Scroll to latest",
"askUser": {
"preparing": "Preparing question",
"answered": "Your answer",
"other": "Other",
"otherLabel": "Your answer",
"otherPlaceholder": "Type another answer…",
"submit": "Send answer",
"cancelOther": "Cancel other answer"
},
"configureApp": {
"title": "Review app details",
"description": "Choose a local icon and adjust anything before the assistant requests creation approval.",
"continue": "Use these details",
"ready": "App details ready"
},
"approvalRequired": "Approval required",
"complete": "Complete",
"denied": "Denied",
"failed": "Failed",
"working": "Working",
"approvalDescription": "This action changes Homarr. Review the input before allowing it.",
"allowOnce": "Allow once",
"approvalDescription": "Review this change before it runs.",
"approveAndRun": "Approve and run",
"deny": "Deny"
},
"dangerZone": "Danger zone",