Commit Graph

213 Commits

Author SHA1 Message Date
肖应宇 a721091476 refactor(frontend): 用通用 Select 替换旧下拉选择器 2026-03-29 01:04:46 +08:00
肖应宇 4afba86bcb refactor(frontend): 在输入框内嵌 iframe skill 通信逻辑 2026-03-29 01:02:01 +08:00
肖应宇 49ff9411e9 refactor(frontend): 在工件与技能 hook 内嵌 iframe 消息常量 2026-03-29 00:58:31 +08:00
肖应宇 4bd2591a03 chore(frontend): 删除未使用开发对话框与测试面板 2026-03-29 00:53:16 +08:00
肖应宇 e8b145bff3 feat(frontend): 对齐工件文件列表 UI 渲染 2026-03-29 00:48:46 +08:00
肖应宇 9eae3e6104 feat(frontend): 同步欢迎面板展示 2026-03-29 00:34:42 +08:00
肖应宇 115afb5f57 style(frontend): 对齐消息组容器样式 2026-03-29 00:28:11 +08:00
肖应宇 43355677f9 feat(frontend): 对齐聊天页与消息流类型接口 2026-03-29 00:24:34 +08:00
肖应宇 f2c68a4ec5 chore(frontend): 同步工作区小组件格式 2026-03-29 00:14:36 +08:00
肖应宇 63e4869101 chore(frontend): 同步 about 文档格式 2026-03-29 00:13:15 +08:00
肖应宇 51f38226ac chore(frontend): 同步工作区剪贴板处理 2026-03-29 00:12:45 +08:00
肖应宇 a0ce3d8b08 fix(frontend): 恢复自定义 artifact-file-detail 实现 2026-03-29 00:06:55 +08:00
肖应宇 a34622c45c feat(frontend): 合并线程流与工件详情并兼容聊天页 2026-03-29 00:04:46 +08:00
肖应宇 a8f6e934ad feat(frontend): 对齐消息工具并保留 YAML 操作 2026-03-28 23:53:08 +08:00
肖应宇 d0be23b8fb feat(frontend): 合并消息列表栈并保留 YAML 物化 2026-03-28 23:40:39 +08:00
肖应宇 2501dee2ba feat(frontend): 合并 message-list-item 并保留本地兼容 2026-03-28 23:35:19 +08:00
肖应宇 09c3dce083 feat(frontend): 同步 ai-elements 与 ui 层 2026-03-28 23:19:47 +08:00
肖应宇 87bdb58a9e chore(frontend): 稳定增量集成的 lint 与 typecheck 2026-03-28 23:08:45 +08:00
肖应宇 e6183e84fc feat(frontend): 对共享文件应用自动三方合并 2026-03-28 22:43:54 +08:00
肖应宇 0d255e9ac4 feat(frontend): 合并与 github/main 的安全无冲突更新 2026-03-28 22:41:44 +08:00
肖应宇 63a5cc22c2 feat(frontend): 从快照新增 workspace 与 core 文件 2026-03-28 22:38:00 +08:00
肖应宇 4b41b7510c feat(frontend): 从 github/main 快照补充 agent 模块 2026-03-28 22:35:24 +08:00
肖应宇 09c6a74ea3 revert(frontend): 回滚错误的 frontend 同步提交 2026-03-28 22:26:27 +08:00
肖应宇 42ad3f8336 merge(frontend): sync frontend files from github/main into feat/originui-frontend-integration 2026-03-28 22:23:00 +08:00
肖应宇 579d13ed01 feat: 修改标题名为轻办公.XClaw 2026-03-26 18:53:47 +08:00
肖应宇 e800d80152 feat(localStorage): 隐藏模型选择器并调整输入框样式
- 注释掉 InputBox 中的 ModelSelector 组件
- 临时将 localStorage 设置置空
2026-03-25 17:43:55 +08:00
肖应宇 5b3157f83e feat(ui): 单文件时文件标题居中 2026-03-24 10:41:16 +08:00
肖应宇 ff0c25db54 feat(ui): 新增文件名截断工具及下拉菜单文本溢出优化
- 新增 truncateMiddle 工具函数,支持中英文混合字符串按视觉宽度截断
- artifact-file-list 和 dropdown-selector 应用截断处理,避免长文本溢出
- dropdown-menu 和 ArtifactTitle 添加文本溢出省略样式
2026-03-24 10:28:50 +08:00
肖应宇 da2023b42b feat(artifacts): 新增 Markdown 导出 DOCX/PDF 功能
- 新增 document-converter.ts 工具模块,支持 Markdown 转换为 DOCX(docx 库)和 PDF(html2pdf.js)
- 在 artifact-file-detail 添加下载菜单选项(downloadAsDocx、downloadAsPdf)
- .gitignore 添加 docs 目录忽略
2026-03-23 17:09:39 +08:00
肖应宇 04df7e25b1 fix: svg属性名写成小驼峰形式,复制按钮紧贴所属信息。 2026-03-23 15:40:29 +08:00
肖应宇 8dac856258 fix: 修复复制功能,向主页面发送信息;修复user的信息离复制按钮太远的问题; 2026-03-23 13:34:49 +08:00
肖应宇 fc1f38a545 feat: 发送消息后,对话框自动收起 2026-03-23 11:31:31 +08:00
肖应宇 03e95aee91 feat(ui): 调整聊天页布局比例及 artifacts 滚动条遮挡处理
- 修改 artifactsOpen 时容器宽度从 70% 改为 50%
- 文件阅读区添加圆角样式
- 文件阅读区添加滚动条顶部遮挡层,优化视觉体验
- 代码编辑器增加 py-[20px] 内边距
- InputBox 已提交状态强制显示阴影效果
2026-03-20 16:31:28 +08:00
肖应宇 0e3da716ed style: 格式化代码
Prettier 格式化 CSS 类名顺序

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 10:19:06 +08:00
肖应宇 fb226f85a8 feat(ui): 重构聊天页布局并规范化 iframe 通信
- 移除 ResizablePanel 组件,改用自定义 flex 布局实现聊天区与 artifacts 面板
- 调整 artifacts 面板样式,支持全屏模式下的布局切换
- 新增 iframe-messages.ts 统一 postMessage 通信协议,定义 FULLSCREEN、SELECT_SKILL 等消息类型
- 优化 artifacts 工具栏图标为 SVG 内联实现,调整 zoom 默认值为 80%
- 重构 dropdown-selector 组件,支持展开/收起状态指示器
- 修改 layout.tsx 中 geist variable 的 className 拼接方式
- 新增 package.json prettier 格式化命令
2026-03-20 10:09:42 +08:00
肖应宇 4df604d491 style: prettier 2026-03-19 17:33:47 +08:00
肖应宇 cb0ebf41bb feat(ui): 重构聊天页布局并规范化iframe 通信 2026-03-19 17:32:19 +08:00
肖应宇 3a7940654c debug: 修复时序问题导致 的获取历史记录为[] 2026-03-19 11:39:50 +08:00
肖应宇 0ad91e1bab build:lint 2026-03-18 23:52:40 +08:00
肖应宇 1c4a4525b3 feat: 旧版系统第一版 2026-03-18 23:29:50 +08:00
肖应宇 aee59b978b prettier 2026-03-18 16:44:03 +08:00
Titan ef9a071aa1 对接skill平台接口,获取skill.yaml并创建文件、目录结构 2026-03-13 11:11:02 +08:00
Titan e2fdfa75d7 保持new路由下的空白引导页 2026-03-12 11:54:43 +08:00
CHANGXUBO 9f74589d09
fix: HTML artifact preview renders blank in preview mode (#876)
The condition guarding ArtifactFilePreview only allowed markdown files
through, which prevented HTML files from reaching the preview component.
Added `language === "html"` to the condition so HTML artifacts render
correctly in preview mode.

Fixes #873

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-18 10:06:21 +08:00
Henry Li 8f44ca595b docs: update README.md 2026-02-13 09:38:35 +08:00
LofiSu f87d5678f3 feat: 改进设置页面UI和国际化支持 / Improve settings pages UI and i18n support
- 添加 rehype-raw 依赖以支持在 markdown 中渲染 HTML
  Add rehype-raw dependency to support HTML rendering in markdown

- 重构 memory-settings-page,提取 formatMemorySection 函数减少重复代码
  Refactor memory-settings-page by extracting formatMemorySection function to reduce code duplication

- 改进空状态显示,使用 HTML span 标签替代 markdown 斜体,提供更好的样式控制
  Improve empty state display by using HTML span tags instead of markdown italics for better style control

- 为 skill-settings-page 添加完整的国际化支持,替换硬编码的英文文本
  Add complete i18n support for skill-settings-page, replacing hardcoded English text

- 更新国际化文件,添加技能设置页面的空状态文本(中英文)
  Update i18n files with empty state text for skill settings page (both Chinese and English)

- 在 streamdown 插件配置中添加 rehypeRaw 以支持 HTML 渲染
  Add rehypeRaw to streamdown plugins configuration to support HTML rendering

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-10 12:15:37 +08:00
LofiSu f8e4fe05b2 Strip citation prefix in citation badges 2026-02-09 22:57:54 +08:00
LofiSu 8a2cac7b5a Merge upstream/experimental: resolve conflicts (keep feat/citations)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 21:56:02 +08:00
LofiSu 2f50e5d969 feat(citations): inline citation links with [citation:Title](URL)
- Backend: add citation format to lead_agent and general_purpose prompts
- Add CitationLink component (Badge + HoverCard) for citation cards
- MarkdownContent: detect citation: prefix in link text, render CitationLink
- Message/artifact/subtask: use MarkdownContent or Streamdown with CitationLink
- message-list-item: pass img via components prop (remove isHuman/img)
- message-group, subtask-card: drop unused imports; fix import order (lint)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 21:40:20 +08:00
Henry Li 554ec7a91e feat: basic implmenetation 2026-02-09 19:02:21 +08:00