(AI) add emojify action to ai transform

The emojify action add emojis to the important
parts of the text.
This commit is contained in:
Anthony LC
2025-03-13 11:29:03 +01:00
committed by Anthony LC
parent e0af6d36e1
commit 87960d3773
4 changed files with 20 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ and this project adheres to
- ✨(frontend) synchronize language-choice #401
- ✨(frontend) add Beautify action to AI transform #478
- ✨(frontend) add Emojify action to AI transform #478
## Changed

View File

@@ -33,7 +33,12 @@ AI_ACTIONS = {
),
"beautify": (
"Add formatting to the text to make it more readable. "
"Do not provide any other information."
"Do not provide any other information. "
"Preserve the language."
),
"emojify": (
"Add emojis to the important parts of the text. "
"Do not provide any other information. "
"Preserve the language."
),
}

View File

@@ -7,7 +7,8 @@ export type AITransformActions =
| 'prompt'
| 'rephrase'
| 'summarize'
| 'beautify';
| 'beautify'
| 'emojify';
export type DocAITransform = {
docId: string;

View File

@@ -176,6 +176,17 @@ export function AIGroupButton() {
>
{t('Beautify')}
</AIMenuItemTransform>
<AIMenuItemTransform
action="emojify"
docId={currentDoc.id}
icon={
<Text $isMaterialIcon $size="s">
emoji_emotions
</Text>
}
>
{t('Emojify')}
</AIMenuItemTransform>
</>
)}
{canAITranslate && (