From dd0364d1a9e521a0669f014c6ff51570181aafdd Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Wed, 9 Oct 2024 15:37:56 +0800 Subject: [PATCH] feat: silence action (#823) --- apps/renderer/src/models/types.ts | 1 + .../src/modules/settings/action-card.tsx | 14 ++++++++++++++ locales/settings/en.json | 1 + packages/shared/src/hono.ts | 17 +++++++++++++++++ 4 files changed, 33 insertions(+) diff --git a/apps/renderer/src/models/types.ts b/apps/renderer/src/models/types.ts index 6d694a7792..77c0f55c02 100644 --- a/apps/renderer/src/models/types.ts +++ b/apps/renderer/src/models/types.ts @@ -100,6 +100,7 @@ export type ActionsInput = { translation?: string summary?: boolean readability?: boolean + silence?: boolean rewriteRules?: { from: string to: string diff --git a/apps/renderer/src/modules/settings/action-card.tsx b/apps/renderer/src/modules/settings/action-card.tsx index 9700a9bc5c..7c8b526ec1 100644 --- a/apps/renderer/src/modules/settings/action-card.tsx +++ b/apps/renderer/src/modules/settings/action-card.tsx @@ -436,6 +436,20 @@ export function ActionCard({ +
+ + {t("actions.action_card.silence")} + + { + data.result.silence = checked + onChange(data) + }} + /> +
+ + ; summary?: boolean; readability?: boolean; + silence?: boolean; rewriteRules?: { from: string; to: string; @@ -259,6 +260,7 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{ translation: z.ZodOptional>; summary: z.ZodOptional; readability: z.ZodOptional; + silence: z.ZodOptional; rewriteRules: z.ZodOptional>; summary: z.ZodOptional; readability: z.ZodOptional; + silence: z.ZodOptional; rewriteRules: z.ZodOptional