Skip to content

Commit 750f56c

Browse files
committed
fix(extension): use Globe icon for page group and simplify imageTranslate prompts
1 parent 3241cb0 commit 750f56c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/extension/src/sidepanel/components/Placeholders.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import type { LucideIcon } from "lucide-react";
99
import {
1010
AlertTriangle,
1111
BookOpen,
12+
Globe,
1213
Image as ImageIcon,
1314
Loader2,
1415
Sparkles,
15-
Command,
1616
} from "lucide-react";
1717

1818
import type { SlashPrompt } from "../types";
@@ -180,7 +180,7 @@ function buildWelcomeGroups(
180180
{
181181
id: "page",
182182
title: t("sidepanel.welcome.group.page"),
183-
icon: Command,
183+
icon: Globe,
184184
emptyState: t("sidepanel.welcome.empty.page"),
185185
actions: [...pageActions, ...selectionActions].slice(0, MAX_STATIC_ACTIONS),
186186
},

app/extension/src/uiMessages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export const UI_MESSAGES = {
285285
"sidepanel.welcome.action.selectionRewrite.label": "Improve wording",
286286
"sidepanel.welcome.action.selectionRewrite.prompt": "Use the get_page_selection tool to fetch my highlighted text, then rewrite it to be clearer and more concise while preserving the meaning.",
287287
"sidepanel.welcome.action.imageTranslate.label": "Translate attached image",
288-
"sidepanel.welcome.action.imageTranslate.prompt": "Translate the text in this image and keep the layout when possible.",
288+
"sidepanel.welcome.action.imageTranslate.prompt": "Translate the text in this image.",
289289
"sidepanel.welcome.action.imageDescribe.label": "Describe image",
290290
"sidepanel.welcome.action.imageDescribe.prompt": "Describe this image and point out the details worth noticing.",
291291
"sidepanel.welcome.action.imageOcr.label": "Extract text from image",
@@ -651,7 +651,7 @@ export const UI_MESSAGES = {
651651
"sidepanel.welcome.action.selectionRewrite.label": "润色选中文字",
652652
"sidepanel.welcome.action.selectionRewrite.prompt": "请使用 get_page_selection 工具获取我选中的文字,然后在保留原意的前提下改写得更清晰、更凝练。",
653653
"sidepanel.welcome.action.imageTranslate.label": "翻译提交的图片",
654-
"sidepanel.welcome.action.imageTranslate.prompt": "翻译这张图里的文字,尽量保留原有排版。",
654+
"sidepanel.welcome.action.imageTranslate.prompt": "翻译这张图里的文字。",
655655
"sidepanel.welcome.action.imageDescribe.label": "描述图片",
656656
"sidepanel.welcome.action.imageDescribe.prompt": "先描述这张图,再指出值得注意的细节。",
657657
"sidepanel.welcome.action.imageOcr.label": "识别图片文字",

0 commit comments

Comments
 (0)