Commit Graph

35 Commits

Author SHA1 Message Date
ruitanglin
5e000f1a99 feat(frontend): add mode hover guide and adjust mode i18n
## 中文

### 代码改动
- **新增** `frontend/src/components/workspace/mode-hover-guide.tsx`
  - 新增 ModeHoverGuide 组件:接收 mode (flash/thinking/pro/ultra) 与 children,用 Tooltip 包裹
  - hover 时展示该模式名称与简介,支持 showTitle 控制是否显示模式名
  - 文案通过 useI18n 从 inputBox 的 *Mode / *ModeDescription 读取,中英文已支持
- **修改** `frontend/src/components/workspace/input-box.tsx`
  - 在模式选择器触发按钮外包一层 ModeHoverGuide,悬停当前模式时显示说明
- **修改** `frontend/src/core/i18n/locales/zh-CN.ts`
  - ultraModeDescription:改为完整描述「思考、计划并执行,可调用子代理分工协作,适合复杂多步骤任务,能力最强」(不再仅写「专业模式加子代理」)
  - proMode / ultraMode:中文环境下保留英文原文 "Pro"、"Ultra",不再翻译为「专业」「超级」
- **修改** `frontend/src/core/i18n/locales/en-US.ts`
  - ultraModeDescription:改为 "Reasoning, planning and execution with subagents to divide work; best for complex multi-step tasks"

### 说明
为 Flash / 思考 / Pro / Ultra 四种模式增加 hover 说明,并统一超级模式文案与 Pro/Ultra 在中文下的展示。

Co-authored-by: Cursor <cursoragent@cursor.com>

---

## English

### Code changes
- **Add** `frontend/src/components/workspace/mode-hover-guide.tsx`
  - New ModeHoverGuide component: takes mode (flash/thinking/pro/ultra) and children, wraps in Tooltip
  - On hover shows mode name and short description; showTitle toggles mode name in tooltip
  - Copy from useI18n (inputBox *Mode / *ModeDescription), i18n in zh-CN and en-US
- **Update** `frontend/src/components/workspace/input-box.tsx`
  - Wrap mode selector trigger with ModeHoverGuide so hovering shows current mode description
- **Update** `frontend/src/core/i18n/locales/zh-CN.ts`
  - ultraModeDescription: full description (reasoning, planning, execution, subagents, complex tasks); no longer "Pro + subagents" only
  - proMode / ultraMode: keep English "Pro" and "Ultra" in zh locale instead of "专业" / "超级"
- **Update** `frontend/src/core/i18n/locales/en-US.ts`
  - ultraModeDescription: "Reasoning, planning and execution with subagents to divide work; best for complex multi-step tasks"

### Summary
Hover guide for all four modes (Flash / Reasoning / Pro / Ultra); clearer Ultra copy and Pro/Ultra labels in Chinese.
2026-02-09 12:33:16 +08:00
Henry Li
d9b60778a9 feat: set golden color for ultra 2026-02-09 00:30:20 +08:00
Henry Li
4dc3cdac48 feat: adjust position 2026-02-07 18:00:24 +08:00
Henry Li
17b2630b73 fix: adjust suggestion positioning and height for improved UI layout 2026-02-07 17:56:06 +08:00
Henry Li
46798c0931 feat: support subtasks 2026-02-07 16:14:48 +08:00
hetao
96baab12a2 feat: add ultra mode 2026-02-06 17:48:14 +08:00
Henry Li
bbb1a731a5 feat: update surprise-me functionality with localization support 2026-02-06 14:21:03 +08:00
Henry Li
697ea8e845 feat: add surprise-me 2026-02-06 14:04:15 +08:00
Henry Li
26acd6f3ad feat: enhance welcome component and input box with skill mode handling and localization updates 2026-02-02 14:44:23 +08:00
Henry Li
e673405c00 feat: add suggestions 2026-02-02 11:21:30 +08:00
Henry Li
ac16a73a47 docs: add comments 2026-02-02 09:11:05 +08:00
Henry Li
67ec1162cb feat: implement create skill 2026-01-31 22:31:25 +08:00
Henry Li
939745d027 feat: re-arrange icons 2026-01-29 16:17:41 +08:00
Henry Li
79955d2e6c feat: display mode 2026-01-29 15:57:08 +08:00
Henry Li
98e08a85c9 feat: use "mode" instead of "thinking_enabled" and "is_plan_mode" 2026-01-29 15:48:50 +08:00
Henry Li
3ce4968e95 feat: auto select the first model as default model 2026-01-26 17:13:34 +08:00
Henry Li
cd63f41b4c feat: support static website 2026-01-24 18:01:27 +08:00
Henry Li
e9ab427326 feat: adjust styles 2026-01-22 14:28:10 +08:00
Henry Li
7d4d706738 feat: put all options into '+' 2026-01-22 13:43:45 +08:00
Henry Li
e8e522c2fe feat: add animations 2026-01-22 09:41:01 +08:00
Henry Li
37e2c3d3c9 feat: update skill settings 2026-01-22 00:38:20 +08:00
Henry Li
1e4e51a80c feat: add Todos 2026-01-22 00:26:11 +08:00
Henry Li
26587ee970 feat: bring back the deer 2026-01-21 10:31:54 +08:00
Henry Li
32a45eb043 feat: implement i18n 2026-01-20 14:06:47 +08:00
Henry Li
541586dc66 feat: support dynamic loading models 2026-01-19 18:54:04 +08:00
Henry Li
6bf187c1c2 fix: fix message grouping issues 2026-01-18 13:07:56 +08:00
Henry Li
92fc19a3aa feat: remove model icon 2026-01-18 09:55:17 +08:00
Henry Li
5cda2b90fc feat: refine theme 2026-01-17 21:24:49 +08:00
Henry Li
df65010e5f fix: remove unused imports 2026-01-17 19:47:51 +08:00
Henry Li
2bc5f30c4d feat: welcome, again 2026-01-17 19:46:02 +08:00
Henry Li
faf80bb429 feat: rename 'model' to 'model_name' 2026-01-16 14:03:34 +08:00
Henry Li
028f402ff5 feat: store the local settings 2026-01-16 09:55:02 +08:00
Henry Li
3f2bfded41 feat: enable edit context options 2026-01-16 09:37:04 +08:00
Henry Li
e9846c1dda refactor: refine folder structure and rename 2026-01-16 09:13:02 +08:00
Henry Li
9f2b94ed52 feat: implement basic web app 2026-01-15 23:40:21 +08:00