Skip to content

Conversation

@mxyhi
Copy link
Owner

@mxyhi mxyhi commented Feb 10, 2026

问题

  • 上游新增后,未完成字段会导致保存按钮不可用,用户感知为无法保存。
  • /config/* 子路由切换会重建 ConfigScreen,未保存编辑在切页后丢失。

修复

  • createEmptyUpstream() 默认改为禁用草稿(enabled: false),避免新增即阻塞保存。
  • sections.ts 增加 getSectionIdFromPathname()
  • /config 父路由改为常驻 ConfigScreen,通过 pathname 切换分区,保留同一份编辑状态。
  • 增加回归测试覆盖新增草稿默认行为与路径分区解析。

验证

  • pnpm vitest run
  • npx tsc --noEmit
  • pnpm build

… longer tracked by Git.

- Updated ` .gitignore:35` to include `.magi`.
- Existing ignore entries remain unchanged.
- Minor formatting note: `.gitignore` now has no trailing newline at EOF (not functionally harmful, but you may want to add one for consistency).
@mxyhi mxyhi merged commit ede3ebf into main Feb 10, 2026
1 check passed
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