✨(AI) add emojify action to ai transform
The emojify action add emojis to the important parts of the text.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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."
|
||||
),
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@ export type AITransformActions =
|
||||
| 'prompt'
|
||||
| 'rephrase'
|
||||
| 'summarize'
|
||||
| 'beautify';
|
||||
| 'beautify'
|
||||
| 'emojify';
|
||||
|
||||
export type DocAITransform = {
|
||||
docId: string;
|
||||
|
||||
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user