refactor: isolate input method switching and recovery - #45
Merged
Merged
Conversation
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
输入法切换、目录恢复和前台重试的状态与取消规则原本分散在根
AppFeature的多个事件分支中,修改交错事件处理时需要同时理解菜单、规则编辑和切换时序。本次将这些运行状态及结果收敛逻辑集中到
SwitchingFeature,根AppFeature保留菜单、规则编辑和开机启动职责。两者复用现有Shared存储,忽略及退出应用仍在同一次事件处理中同步取消切换;菜单通过只读投影读取状态。应用记录更新集中到AppRulesStore,并新增CONTEXT.md记录领域词汇。保留现有行为与存储格式,将 20 项核心行为测试迁移到
SwitchingFeatureTests,其余根级集成测试继续覆盖菜单和规则交接。Testing
AppFeature行为测试全部保留,迁移仅调整动作及状态路径。git diff --check通过。Changelog
Select exactly one:
UnreleasedinCHANGELOG.md.Privacy