Skip to content

Replace schedule aggregation with native calendar actions - #346

Merged
whbzju merged 1 commit into
mainfrom
codex/remove-schedule-aggregation
Jul 29, 2026
Merged

whbzju merged 1 commit into
mainfrom
codex/remove-schedule-aggregation

Conversation

@whbzju

@whbzju whbzju commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • Removed the custom schedule aggregation pipeline end to end: Schedule worker/skill, state projection and services, Schedule tab, synthetic Timeline briefing card, and related routes/events.
  • Added a shared Timeline visibility policy so legacy schedule briefing cards cannot reappear through initial load, pagination, restore, or delayed card events.
  • Simplified Insights back to a single stream of all insights and removed the activity-statistics subtab/cards.
  • Added an explicit-intent manage_calendar_and_reminders SuperAgent skill that prepares pending native calendar/reminder actions without creating Timeline records.
  • Added inline confirmation cards in Agent chat. The OS permission request and native write happen only after the user presses Add; success and rejection state persist locally.
  • Reused native platform stores: EventKit on iOS and CalendarContract on Android (Android reminders are short calendar events with an alarm).
  • Kept Quick Query read-only, retained legacy schedule artifact rendering without a dead link, and updated permission copy/localizations.

Why

Memex should not maintain a second schedule system when the device Calendar and Reminders capabilities already own this data. This also removes the pinned synthetic schedule experience from Timeline and restores Insights to one coherent surface.

Data / compatibility impact

  • No migration deletes existing workspace files.
  • Existing synthetic schedule briefing cards are hidden from Timeline.
  • Legacy schedule chat artifacts remain readable but no longer navigate to a removed screen.
  • New native actions require explicit user intent, an in-app confirmation, and OS permission.

Test plan

  • ✅ Feature-focused suites: 62 tests passed.
  • ✅ Final Insight/System Action widget rerun: 5 tests passed.
  • ✅ flutter analyze --no-pub: 0 errors, 0 warnings; 158 pre-existing info-level findings across the repository and no diagnostics in changed Dart files.
  • ✅ flutter build ios --release --no-codesign: succeeded.
  • ✅ plutil -lint ios/Runner/Info.plist: succeeded.
  • ⚠️ Full flutter test --no-pub: 820 passed, 5 skipped, 3 unrelated existing settings-widget failures. Two are in location_context_settings_page_test.dart and one in early_update_settings_card_test.dart; all are finder failures around FilledButton.icon and are outside this diff.
  • ⚠️ Android APK build was not run because this machine has no Android SDK configured.

@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

PR AI Review / PR AI 语义预检

中文

  • 风险等级:高风险
  • 需要人工审核:是
  • 黄金链路影响:可能
  • 置信度:high
  • Workflow run:30439376523

AI 语义预检未得到可解析结果,需要 maintainer 人工审核。

影响范围

  • unknown

黄金链路

  • none
  • 说明:Claude Code Action 未产出结构化 JSON,AI 语义预检结果不可用。

风险项

  • high AI review 结果不可用。证据:Claude Code Action structured_output was empty or invalid.。
    建议:检查 Claude Action 日志和模型网关配置后重新运行 workflow。

测试缺口

  • 未发现新的测试缺口。

English

  • Risk level: HIGH
  • Human review required: YES
  • Golden path impact: POSSIBLE
  • Confidence: high
  • Workflow run: 30439376523

AI semantic review did not return a parseable result; maintainer review is required.

Affected Areas

  • unknown

Golden Path

  • none
  • Rationale: Claude Code Action did not produce structured JSON, so the AI review result is unavailable.

Findings

  • high AI review result unavailable. Evidence: Claude Code Action structured_output was empty or invalid..
    Recommendation: Check Claude Action logs and model gateway configuration, then rerun the workflow.

Test Gaps

  • No new test gap was reported.

AI review is advisory. Maintainers should verify the result before merging.

@github-actions github-actions Bot added ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review labels Jul 27, 2026
@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

PR Preflight Summary / PR 预检汇总

中文

  • 统一结论:低风险:两个预检均已完成,质量预检通过,可走普通手动合并流程。
  • Policy preflight:低风险。未命中打回或高风险规则。
  • Flutter quality:通过。Analyzer 和 test baseline 均未发现新增问题。
  • PR head:58cfda9a0bead7f65e625d4a2bf56dc3d89b2fe0
  • Policy run:30439376396
  • Flutter run:30439376315

English

  • Combined result: Low risk: both preflights completed and quality passed; use the normal manual merge flow.
  • Policy preflight: LOW RISK. No blocking or high-risk policy signal was found.
  • Flutter quality: PASS. Analyzer and test baselines found no newly introduced issue.
  • PR head: 58cfda9a0bead7f65e625d4a2bf56dc3d89b2fe0
  • Policy run: 30439376396
  • Flutter run: 30439376315
PR Policy Preflight / PR 规则预检

PR Policy Preflight / PR 规则预检

中文

  • 判定:低风险
  • 变更文件数:0
  • 变更行数:0
  • Diff 是否截断:false

未发现确定性规则问题。

English

  • Decision: LOW RISK
  • Changed files: 0
  • Changed lines: 0
  • Diff truncated: false

No deterministic policy findings.

PR Flutter Quality / Flutter 质量预检

PR Flutter Quality / Flutter 质量预检

中文

  • 总体:通过
  • Analyzer baseline:通过
  • Test baseline:通过

English

  • Overall: PASS
  • Analyzer baseline: PASS
  • Test baseline: PASS

Flutter Analyzer Baseline

  • Base issues: 174
  • PR issues: 158
  • New issues: 0

No new analyzer issues introduced by this PR.

Flutter Test Baseline

  • Base failures: 0
  • PR failures: 0
  • New failures: 0

No new Flutter test failures introduced by this PR.

@whbzju
whbzju marked this pull request as ready for review July 29, 2026 09:22
@whbzju
whbzju merged commit 1f4f62d into main Jul 29, 2026
3 checks passed
@github-actions github-actions Bot added ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review and removed ai: high risk AI review classified the PR as high risk needs human review AI review or policy signals require maintainer review golden path impact AI review found possible impact to a core user flow labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant