✨(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) synchronize language-choice #401
|
||||||
- ✨(frontend) add Beautify action to AI transform #478
|
- ✨(frontend) add Beautify action to AI transform #478
|
||||||
|
- ✨(frontend) add Emojify action to AI transform #478
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,12 @@ AI_ACTIONS = {
|
|||||||
),
|
),
|
||||||
"beautify": (
|
"beautify": (
|
||||||
"Add formatting to the text to make it more readable. "
|
"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."
|
"Preserve the language."
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ export type AITransformActions =
|
|||||||
| 'prompt'
|
| 'prompt'
|
||||||
| 'rephrase'
|
| 'rephrase'
|
||||||
| 'summarize'
|
| 'summarize'
|
||||||
| 'beautify';
|
| 'beautify'
|
||||||
|
| 'emojify';
|
||||||
|
|
||||||
export type DocAITransform = {
|
export type DocAITransform = {
|
||||||
docId: string;
|
docId: string;
|
||||||
|
|||||||
@@ -176,6 +176,17 @@ export function AIGroupButton() {
|
|||||||
>
|
>
|
||||||
{t('Beautify')}
|
{t('Beautify')}
|
||||||
</AIMenuItemTransform>
|
</AIMenuItemTransform>
|
||||||
|
<AIMenuItemTransform
|
||||||
|
action="emojify"
|
||||||
|
docId={currentDoc.id}
|
||||||
|
icon={
|
||||||
|
<Text $isMaterialIcon $size="s">
|
||||||
|
emoji_emotions
|
||||||
|
</Text>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{t('Emojify')}
|
||||||
|
</AIMenuItemTransform>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{canAITranslate && (
|
{canAITranslate && (
|
||||||
|
|||||||
Reference in New Issue
Block a user