Skip to content

Fix/copilot chat scroll#52

Merged
Yurken merged 2 commits into
masterfrom
fix/copilot-chat-scroll
Jul 23, 2026
Merged

Fix/copilot chat scroll#52
Yurken merged 2 commits into
masterfrom
fix/copilot-chat-scroll

Conversation

@Yurken

@Yurken Yurken commented Jul 23, 2026

Copy link
Copy Markdown
Owner

这个 Pull Request 为论文发现工具实现了持久化搜索历史功能,改进了论文搜索结果卡片的 UI,并完善了相关测试和数据库初始化。它引入了新的后端命令和数据库表结构,用于保存、获取和删除搜索历史,更新了前端以支持这些功能,并提升了 Arxiv 搜索结果的展示体验。

论文搜索历史持久化

  • 在数据库中新增了 paper_search_history 表及相关索引,并在 db.rs 中实现了相应的迁移和初始化逻辑,包括 ensure_paper_search_history_table 函数和对应的 SQL 语句。
  • 实现了三个新的 Tauri 命令:paper_search_save_historypaper_search_get_historypaper_search_delete_history,包含对应的请求/响应类型及数据库交互逻辑。

后端集成

  • 在应用入口处注册了新的 Tauri 命令,并将其暴露给前端调用。

前端与测试

  • 更新了前端的 mock 和测试用例,覆盖新的搜索历史 API,包括从历史记录中恢复草稿/搜索结果的测试,以及验证结果不会在页面刷新后自动持久化(除非从历史记录中恢复)。

UI/UX 改进

  • 重构了 Arxiv 搜索结果界面,引入 PaperResultCard 组件,以更清晰、更详细的方式展示论文信息,优化了论文信息的结构和呈现。
  • 改进了聊天区域的自动滚到底部行为,通过跟踪会话 ID,确保聊天消息变化时导航更加流畅和直观。

样式调整

  • 简化了知识图谱画布背景,提升了视觉清晰度,并移除了网格覆盖层,呈现更现代的极简风格。

Yurken added 2 commits July 23, 2026 10:55
- 新增 paper_search_history 表及 Rust 命令,client.ts 新增历史接口
- PaperDiscoveryPanel 增加最近检索入口,结果改为内存状态,应用历史时恢复
- 重构论文结果卡片,添加推荐理由/摘要标签,收紧面板标题样式
- CopilotChatArea 首次加载/切换会话时直接跳转底部,后续消息保持平滑滚动
Copilot AI review requested due to automatic review settings July 23, 2026 03:06
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Yurken
Yurken merged commit c9c36f9 into master Jul 23, 2026
6 checks passed
@Yurken
Yurken deleted the fix/copilot-chat-scroll branch July 23, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants