From e81b812ac230889d7204714663f6f79302632273 Mon Sep 17 00:00:00 2001 From: aakashb95 Date: Fri, 12 Dec 2025 16:34:52 +0530 Subject: [PATCH] ui changes --- .../commands/useConversationHotKeys.js | 16 ++++++++-------- .../dashboard/i18n/locale/en/integrations.json | 6 +++++- app/javascript/shared/constants/openai.js | 4 ++++ 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/app/javascript/dashboard/composables/commands/useConversationHotKeys.js b/app/javascript/dashboard/composables/commands/useConversationHotKeys.js index 30e138165..6ec1c37aa 100644 --- a/app/javascript/dashboard/composables/commands/useConversationHotKeys.js +++ b/app/javascript/dashboard/composables/commands/useConversationHotKeys.js @@ -102,8 +102,8 @@ const createNonDraftMessageAIAssistActions = (t, replyMode) => { const createDraftMessageAIAssistActions = t => { return [ { - label: t('INTEGRATION_SETTINGS.OPEN_AI.OPTIONS.REPHRASE'), - key: 'rephrase', + label: t('INTEGRATION_SETTINGS.OPEN_AI.OPTIONS.CONFIDENT'), + key: 'confident', icon: ICON_AI_ASSIST, }, { @@ -112,13 +112,13 @@ const createDraftMessageAIAssistActions = t => { icon: ICON_AI_GRAMMAR, }, { - label: t('INTEGRATION_SETTINGS.OPEN_AI.OPTIONS.EXPAND'), - key: 'expand', + label: t('INTEGRATION_SETTINGS.OPEN_AI.OPTIONS.PROFESSIONAL'), + key: 'professional', icon: ICON_AI_EXPAND, }, { - label: t('INTEGRATION_SETTINGS.OPEN_AI.OPTIONS.SHORTEN'), - key: 'shorten', + label: t('INTEGRATION_SETTINGS.OPEN_AI.OPTIONS.CASUAL'), + key: 'casual', icon: ICON_AI_SHORTEN, }, { @@ -132,8 +132,8 @@ const createDraftMessageAIAssistActions = t => { icon: ICON_AI_ASSIST, }, { - label: t('INTEGRATION_SETTINGS.OPEN_AI.OPTIONS.SIMPLIFY'), - key: 'simplify', + label: t('INTEGRATION_SETTINGS.OPEN_AI.OPTIONS.STRAIGHTFORWARD'), + key: 'straightforward', icon: ICON_AI_ASSIST, }, ]; diff --git a/app/javascript/dashboard/i18n/locale/en/integrations.json b/app/javascript/dashboard/i18n/locale/en/integrations.json index c08cde4d3..c985daed4 100644 --- a/app/javascript/dashboard/i18n/locale/en/integrations.json +++ b/app/javascript/dashboard/i18n/locale/en/integrations.json @@ -145,7 +145,11 @@ "EXPAND": "Expand", "MAKE_FRIENDLY": "Change message tone to friendly", "MAKE_FORMAL": "Use formal tone", - "SIMPLIFY": "Simplify" + "SIMPLIFY": "Simplify", + "CONFIDENT": "Use confident tone", + "PROFESSIONAL": "Use professional tone", + "CASUAL": "Use casual tone", + "STRAIGHTFORWARD": "Use straightforward tone" }, "ASSISTANCE_MODAL": { "DRAFT_TITLE": "Draft content", diff --git a/app/javascript/shared/constants/openai.js b/app/javascript/shared/constants/openai.js index 8c5adb875..c7fa7db0c 100644 --- a/app/javascript/shared/constants/openai.js +++ b/app/javascript/shared/constants/openai.js @@ -8,4 +8,8 @@ export const OPEN_AI_OPTIONS = { SIMPLIFY: 'simplify', REPLY_SUGGESTION: 'reply_suggestion', SUMMARIZE: 'summarize', + CASUAL: 'casual', + PROFESSIONAL: 'professional', + STRAIGHTFORWARD: 'straightforward', + CONFIDENT: 'confident', };