Skip to content

Dev to main#2

Merged
Color2333 merged 18 commits intomainfrom
dev
Mar 19, 2026
Merged

Dev to main#2
Color2333 merged 18 commits intomainfrom
dev

Conversation

@Color2333
Copy link
Copy Markdown
Owner

更新了简报、视图、和按分类主题

Color2333 and others added 18 commits March 17, 2026 15:33
- 新增「今日焦点」区域,整合 AI 洞察和精读精选
- 增强卡片视觉层次:焦点卡 > 精读卡 > 推荐卡 > 普通论文卡
- 优化暗色模式适配,所有卡片支持深色主题
- 添加 hover 动画效果和渐变样式
- 增强统计卡片、徽章和标签的视觉表现
- 支持摘要折叠/展开交互

影响范围:
- packages/ai/brief_service.py: HTML 模板重构
- frontend/src/pages/DailyBrief.tsx: CSS 样式覆盖增强
核心改造:
- 将 DAILY_CRON 和 NOTIFY_DEFAULT_TO 从.env 迁移到数据库
- 所有配置统一在「系统设置」→「邮箱与报告」页面管理
- .env 只保留默认值,不再作为运行时配置来源

影响范围:
- packages/storage/models.py: DailyReportConfig 新增 cron_expression 字段
- packages/ai/auto_read_service.py: get_config/update_config 返回 cron_expression
- packages/ai/brief_service.py: publish() 从数据库读取收件人
- packages/ai/daily_runner.py: run_daily_brief() 从数据库读取收件人
- apps/worker/main.py: 从数据库读取 cron 表达式
- apps/api/routers/settings.py: DailyReportConfigUpdate 支持 cron_expression
- apps/api/routers/content.py: daily_brief() 从数据库读取收件人
- frontend/src/types/index.ts: DailyReportConfig 类型新增 cron_expression
- frontend/src/components/SettingsDialog.tsx: 新增 cron 表达式输入框
- .env: 移除 DAILY_CRON 和 NOTIFY_DEFAULT_TO,保留默认值
- infra/migrations/versions/: 添加数据库迁移脚本

配置优先级:
数据库配置 > .env 默认值

用户现在只需在设置页面配置一次,所有地方自动生效。
- Add topic_stats() and paper_distribution_stats() methods
- Add /topics/stats and /topics/distribution API endpoints
- Create Statistics page with year and source distribution
- Add Statistics route and sidebar entry
- Add roadmap.md for feature planning
…, action source

- Add monthly paper intake trend (12 months)
- Add venue/conference distribution (Top 15)
- Add action source stats (manual/subscription/agent/reference)
- Add read status overview (unread/skimmed/deep_read)
- Update PaperDistributionResponse type and API
SQLAlchemy 2.0 compatibility fix for metadata_json field access
- Fix SQLAlchemy 2.0 compatibility for citation_count in topic_stats
- Redesign UI to match Dashboard style with Hero section and StatCard
- Add grid layouts and proper spacing
- Improve color gradients and hover effects
- 后端: CSCategory/CSFeedSubscription 模型, CSFeedRepository, cs_feeds API
- 前端: CSFeeds 页面, Collect 页面 Tab 集成, Papers 分类筛选
- 统计页: SectionCard 风格重构, 月度趋势优化
- 任务管理: GlobalTaskBar 进度展示
- 删除孤立 Topics.tsx 文件
- 新增 pr-review-gate.yml workflow
- PR 创建/更新时自动触发 OpenCode review
- 设置 dev 分支保护,要求 opencode/review status check 通过
- 移除复杂的 OpenCode CI 集成
- 改为自动 post review 提醒 comment
- 手动触发: 在 PR 评论 /oc review <url>
@github-actions
Copy link
Copy Markdown

🔍 OpenCode PR Review Required

这是一个受保护的分支,merge 前需要进行 code review。

请运行以下命令进行 OpenCode review:

/oc review https://github.com/Color2333/PaperMind/pull/$PR_NUM

或者在 PR 页面评论 /oc 来触发 OpenCode review。


This is an automated reminder from PR Review Gate.

@Color2333
Copy link
Copy Markdown
Owner Author

@Color2333
Copy link
Copy Markdown
Owner Author

/oc

1 similar comment
@Color2333
Copy link
Copy Markdown
Owner Author

/oc

@Color2333 Color2333 merged commit 31fb11c into main Mar 19, 2026
3 checks passed
@Color2333
Copy link
Copy Markdown
Owner Author

/oc

@opencode-agent
Copy link
Copy Markdown
Contributor

ProviderModelNotFoundError

opencode session  |  github run

@Color2333
Copy link
Copy Markdown
Owner Author

/oc

@opencode-agent
Copy link
Copy Markdown
Contributor

This is a merged PR ("Dev to main") with 18 commits, 89 files changed, +8993/-10739 lines. Key changes:

New Features:

  • CS Feeds module (computer science category feeds) - new router, orchestrator, frontend page
  • Statistics page (new)
  • Topics page deleted (refactored into new structure)
  • Workflow automation (opencode.yml, pr-review-gate.yml)

Major Updates:

  • Brief/DailyBrief, View, and Category/Topic reorganization (as per PR title in Chinese)
  • Significant frontend refactoring across Agent, Collect, PaperDetail, Papers pages
  • Database migrations for CS categories and daily report cron expression
  • AI/LLM service improvements (agent, brief, graph, recommendation services)

Thread Summary:

  • PR created by Color2333, automatically flagged for review due to protected branch
  • User attempted to trigger opencode review 4 times with /oc commands
  • Final opencode-agent response: ProviderModelNotFoundError (session linked)
  • PR has since been MERGED

New%20session%20-%202026-03-19T09%3A47%3A36.280Z
opencode session  |  github run

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.

1 participant