Skip to content

feat(reminder): wire alert presenter and app bootstrap - #222

Closed
gac0812 wants to merge 17 commits into
1024XEngineer:mainfrom
gac0812:feat/reminder-presentation-bootstrap
Closed

feat(reminder): wire alert presenter and app bootstrap#222
gac0812 wants to merge 17 commits into
1024XEngineer:mainfrom
gac0812:feat/reminder-presentation-bootstrap

Conversation

@gac0812

@gac0812 gac0812 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 新增 AlertReminderPresenter:用系统 Alert 展示确认/延后,实现 ReminderPresenterPort
  • createAppServicespresenterMockReminderPresenter 切换为 AlertReminderPresenter
  • AppProviders 创建组合根、挂上 useReminderPermissionsOnLaunch,并在挂载时 runtime.start() / 卸载时 stop()
  • 从 presentation / reminder barrel 导出 AlertReminderPresenter
  • 补充 presenter 单测:文案、确认/延后动作与 hide 后不再回调

Merge Order

Scope

  • frontend/src/features/reminder/presentation/AlertReminderPresenter.ts
  • frontend/src/features/reminder/presentation/index.ts
  • frontend/src/features/reminder/index.ts
  • frontend/src/app/composition/createAppServices.ts(仅 presenter 接线)
  • frontend/src/app/AppProviders.tsx
  • frontend/tests/unit/features/reminder/alertReminderPresenter.test.ts

Out of scope

Verification

  • npm run check
  • npm ci

Closes #219

mac added 6 commits August 12, 2026 15:30
Introduce TimeflowAlarmBridge and NativeAlarmScheduler, and wire the
composition root alarms port to the native Android scheduler.
Introduce NativeDeviceCapability over TimeflowAlarmBridge and a launch
permission prompt hook, and wire the composition root device port.
Wire IntervalTimeListener, ExpoAudioPlayback, and ReactNativeVibration
into the composition root, and add the expo-audio dependency.
Return AlarmScheduleReceipt.scheduled, map native schedule rejections to
unscheduled, and propagate the native cancel boolean instead of always
reporting success.
Switch the presenter port to AlertReminderPresenter and start the
reminder runtime from AppProviders.
@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
timeflow Ready Ready Preview Aug 13, 2026 8:03am

…e-alarm

Keep NativeAlarmScheduler wiring while adopting the auth runtime composition from 1024XEngineer#218.
…evice-permissions

Keep NativeDeviceCapability wiring while adopting the auth runtime from 1024XEngineer#218.
…nder-playback-adapters

Keep playback adapters while adopting the auth runtime from 1024XEngineer#218.
…sentation-bootstrap

Keep alert presenter and permission bootstrap while adopting the auth runtime from 1024XEngineer#218.
@gac0812

gac0812 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

已由独立草稿 #230 取代(从 upstream/main 重开,合并原 #222/#223/#224 净增量,不再堆叠)。

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.

feat(reminder): 接入 Alert presenter 并启动提醒运行时

1 participant