Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3e8a2cf

Browse files
committedMar 13, 2025·
✨(AI) add emojify action to ai transform
The emojify action add emojis to the important parts of the text.
1 parent 5ffa18b commit 3e8a2cf

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed
 

‎CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to
2525

2626
- ✨(frontend) synchronize language-choice #401
2727
- ✨(frontend) add Beautify action to AI transform #478
28+
- ✨(frontend) add Emojify action to AI transform #478
2829

2930
## Changed
3031

‎src/backend/core/services/ai_services.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@
3333
),
3434
"beautify": (
3535
"Add formatting to the text to make it more readable. "
36-
"Do not provide any other information."
36+
"Do not provide any other information. "
37+
"Preserve the language."
38+
),
39+
"emojify": (
40+
"Add emojis to the important parts of the text. "
41+
"Do not provide any other information. "
3742
"Preserve the language."
3843
),
3944
}

‎src/frontend/apps/impress/src/features/docs/doc-editor/api/useDocAITransform.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export type AITransformActions =
77
| 'prompt'
88
| 'rephrase'
99
| 'summarize'
10-
| 'beautify';
10+
| 'beautify'
11+
| 'emojify';
1112

1213
export type DocAITransform = {
1314
docId: string;

‎src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/AIButton.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,17 @@ export function AIGroupButton() {
176176
>
177177
{t('Beautify')}
178178
</AIMenuItemTransform>
179+
<AIMenuItemTransform
180+
action="beautify"
181+
docId={currentDoc.id}
182+
icon={
183+
<Text $isMaterialIcon $size="s">
184+
emoji_emotions
185+
</Text>
186+
}
187+
>
188+
{t('Emojify')}
189+
</AIMenuItemTransform>
179190
</>
180191
)}
181192
{canAITranslate && (

0 commit comments

Comments
 (0)
Please sign in to comment.