fix(card-editor): confirming an empty new card creates nothing

PLAN 5.4 says an unchanged confirmation writes nothing, but the shortcut
applied only to existing cards, so OK on a blank new-card editor added an
empty card. A new card with no title, content or tags is now not created.
This commit is contained in:
doyaGu committed 2026-10-03 09:12:36 -04:00
1 parent 4a88033695
commit ce6d9d2f83
4 files changed
+52 -8

No files matched your search

+1
View File
@@ -64,6 +64,7 @@
- [ ] 新建列、编辑列(标题 + 描述);空标题、重名(含仅大小写不同,如 `Done` / `done`)→ 模态内提示错误,模态不关、输入保留
- [ ] 删除列:确认框提示将删除 N 张卡片;确认后列与卡片一并删除
- [ ] 新建卡片、点击卡片编辑:标题可空;内容多行;`#id` / 创建时间 / 修改时间只读显示(新建时不显示)
- [ ] 新建卡片什么都不填(标题、内容、标签均空)直接确认:不产生卡片;只加一个标签再确认:产生无标题卡片
- [ ] 编辑确认但内容未变 → 修改时间不变;改动后确认 → 修改时间刷新
- [ ] 有未保存改动时取消或点标题栏关闭 → 丢弃确认(开关开启时)
- [ ] 卡片菜单"移动到列":卡片移动,修改时间**不**变