feat(reminder): add LocalReminderApplication and memory state store - #199
Draft
gac0812 wants to merge 2 commits into
Draft
feat(reminder): add LocalReminderApplication and memory state store#199gac0812 wants to merge 2 commits into
gac0812 wants to merge 2 commits into
Conversation
added 2 commits
August 11, 2026 16:35
Introduce the local reminder coordinator and in-memory runtime state store, and align mock alarm/schedule adapters with the scheduled receipt and subscribe/notify contracts.
Use ReminderConfirmedDisposition for submitConfirmed and default snooze minutes for presenter snooze actions.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LocalReminderApplication:基于已注入端口完成注册、时间/地点触发、送达、确认与延后MemoryReminderStateStore:进程内运行时状态,供接入本地 DB 前使用AlarmScheduleReceipt增加scheduled;同步调整MockAlarmScheduler/MockLocalScheduleReader.subscribe(不重放,提供notify)LocalReminderApplication与MemoryReminderStateStoreDepends on
main为草稿增量,不叠在前述 PR head 上)#198的domain/geofence与domain/timeWindow;在#198合并前,本草稿的 frontend typecheck 会因缺模块报红,属预期Merge Order
Scope
frontend/src/features/reminder/application/LocalReminderApplication.tsfrontend/src/features/reminder/application/ReminderApplication.tsfrontend/src/features/reminder/application/index.tsfrontend/src/features/reminder/application/interfaces/AlarmSchedulerPort.tsfrontend/src/features/reminder/data/local/MemoryReminderStateStore.tsfrontend/src/features/reminder/data/local/MockLocalScheduleReader.tsfrontend/src/features/reminder/data/local/index.tsfrontend/src/features/reminder/index.tsfrontend/src/infrastructure/notifications/MockAlarmScheduler.tsOut of scope
createAppServices切换到LocalReminderApplication(见 feat(reminder): wire createAppServices and AppRuntime #181 之后的接线增量)strengthDelivery等后续 domain/application 切片Verification
npm run checknpm ci