dsh-todo-pro 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -340,6 +340,7 @@ AI 只能把任务推进到「待验收」,**不能直接标记完成**。
340
340
 
341
341
  | 版本 | 主要变化 |
342
342
  |---|---|
343
+ | **0.1.3** | 修复插件详情页无法打开(`meta.detail` 指向不存在的文件);发布前自动校验 `npm run verify:package` |
343
344
  | **0.1.2** | 市场索引随包分发(`docs/index.json`);发布脚本 `scripts/sync-index.mjs` 自动校准版本与时间 |
344
345
  | **0.1.1** | 命令改名 `/todos`;移除「仅创建待办」;新增未排期状态与报表;执行摘要独立字段;共享会话;智能工作区匹配;合并含归档项;复制功能;一键清空回收站 |
345
346
  | 0.1.0 | 首个版本:CRUD、八视图、报表、派发、提醒、回收站、导入导出 |
package/client.js CHANGED
@@ -269,7 +269,7 @@ window.__ModuleLoader__.load({
269
269
  * Build tag of the client bundle. It is rendered in the panel so a stale
270
270
  * browser module is visible at a glance instead of being guessed at.
271
271
  */
272
- const BUILD = 'b68'
272
+ const BUILD = 'b70'
273
273
  const STATUS_TONE = {
274
274
  todo: 'idle',
275
275
  doing: 'warn',
@@ -2666,7 +2666,7 @@ window.__ModuleLoader__.load({
2666
2666
  todo.summary ?? '',
2667
2667
  ...(todo.tags ?? []),
2668
2668
  maps.projects.get(todo.projectId)?.name ?? '',
2669
- maps.assignees.get(todo.assigneeId)?.name ?? '',
2669
+ entityName(maps.assignees.get(todo.assigneeId)),
2670
2670
  ].join(' ').toLowerCase()
2671
2671
  if (!haystack.includes(query)) return false
2672
2672
  }
@@ -3065,7 +3065,7 @@ window.__ModuleLoader__.load({
3065
3065
  const todos = allTodos.filter(todo => todo.deletedAt == null)
3066
3066
  const open = todos.filter(todo => todo.status !== 'done' && todo.status !== 'closed')
3067
3067
  const byProject = groupBy(todos, todo => maps.projects.get(todo.projectId)?.name ?? '', '无项目')
3068
- const byAssignee = groupBy(todos, todo => maps.assignees.get(todo.assigneeId)?.name ?? '', '未指派')
3068
+ const byAssignee = groupBy(todos, todo => entityName(maps.assignees.get(todo.assigneeId)), '未指派')
3069
3069
  const byPriority = ['P0', 'P1', 'P2', 'P3'].map(priority => ({
3070
3070
  label: priority,
3071
3071
  value: open.filter(todo => todo.priority === priority).length,
@@ -3398,7 +3398,7 @@ window.__ModuleLoader__.load({
3398
3398
  }),
3399
3399
 
3400
3400
  view === 'person' && h(GroupView, {
3401
- groups: groupBy(visible, todo => maps.assignees.get(todo.assigneeId)?.name ?? '', '未指派'),
3401
+ groups: groupBy(visible, todo => entityName(maps.assignees.get(todo.assigneeId)), '未指派'),
3402
3402
  nameHeader: T('负责人'),
3403
3403
  emptyText: '没有可统计的负责人',
3404
3404
  }),
@@ -3502,13 +3502,17 @@ window.__ModuleLoader__.load({
3502
3502
  h('div', { style: { fontSize: 10.5, color: 'var(--dsw-alias-label-secondary)' } },
3503
3503
  T('按时完成率({n} 条)', { n: report.onTime.total })))))),
3504
3504
 
3505
+ // Every view says "nothing here" exactly once: list, by-person, by-project
3506
+ // and gantt carry their own notice, so the shared one covers only the
3507
+ // views that would otherwise render an empty frame.
3505
3508
  view === 'list' && visible.length === 0 && data !== null && h(ViewEmpty, {
3506
3509
  text: '没有符合条件的待办事项,点右上「+ 新增待办事项」开始。',
3507
3510
  }),
3508
3511
 
3509
- visible.length === 0 && data !== null && h('div', {
3510
- style: { padding: '28px 0', textAlign: 'center', color: 'var(--dsw-alias-label-secondary)' },
3511
- }, T('没有符合条件的待办事项,点右上「+ 新增待办事项」开始。')),
3512
+ (view === 'board' || view === 'week' || view === 'month')
3513
+ && visible.length === 0 && data !== null && h(ViewEmpty, {
3514
+ text: '没有符合条件的待办事项,点右上「+ 新增待办事项」开始。',
3515
+ }),
3512
3516
 
3513
3517
  editor !== null && h(Modal, {
3514
3518
  title: editor.mode === 'create' ? T('新增待办事项') : T('编辑待办事项'),
@@ -3549,7 +3553,7 @@ window.__ModuleLoader__.load({
3549
3553
  style: css.input,
3550
3554
  list: 'todo-requesters',
3551
3555
  placeholder: T('选择或输入新需求人'),
3552
- value: editor.draft.requesterName !== '' ? editor.draft.requesterName : (maps.requesters.get(editor.draft.requesterId)?.name ?? ''),
3556
+ value: editor.draft.requesterName !== '' ? editor.draft.requesterName : entityName(maps.requesters.get(editor.draft.requesterId)),
3553
3557
  onChange: event => setEditor({
3554
3558
  ...editor,
3555
3559
  draft: { ...editor.draft, requesterName: event.target.value, requesterId: '' },
package/docs/index.json CHANGED
@@ -66,8 +66,8 @@
66
66
  },
67
67
  "versions": [
68
68
  {
69
- "version": "0.1.2",
70
- "publishTimestamp": 1796349252,
69
+ "version": "0.1.4",
70
+ "publishTimestamp": 1796350519,
71
71
  "source": {
72
72
  "type": "npm"
73
73
  },
package/locale/en.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "Todo items",
4
- "description": "Requirement and task management: project, requester, owner, dates, kind, estimate, recurrence, dependencies and acceptance; eight views and ten charts; dispatch any task to an AI session, with JSON backup and import.",
5
- "detail": "docs/DETAIL.md"
4
+ "description": "Requirement and task management: project, requester, owner, dates, acceptance and reminders; unscheduled tracking; eight views and eleven charts; dispatch any task to an AI session, with JSON backup and import."
6
5
  }
7
6
  }
package/locale/zh.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "待办事项",
4
- "description": "需求与任务管理:项目、需求人、负责人、起止时间、类型、预估、循环、依赖与验收;八种视图与十张报表;一键派发给 AI 会话执行,支持导出备份与导入。",
5
- "detail": "docs/DETAIL.md"
4
+ "description": "需求与任务管理:项目、需求人、负责人、起止时间、验收、自动化提醒;未排期识别与统计;八种视图与十一张报表;一键派发给 AI 会话执行,支持导出备份与导入。"
6
5
  }
7
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-todo-pro",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "待办与需求管理:项目·需求人·负责人·起止时间·依赖·验收;未排期识别、自动化提醒、一键派发给 AI 执行",
5
5
  "author": "zyx134",
6
6
  "license": "MIT",
@@ -55,6 +55,9 @@
55
55
  "scripts": {
56
56
  "sync-index": "node scripts/sync-index.mjs",
57
57
  "verify:index": "node scripts/sync-index.mjs --check",
58
- "postpublish": "node scripts/sync-index.mjs"
58
+ "verify:package": "node scripts/verify-package.mjs",
59
+ "prepublishOnly": "node scripts/verify-package.mjs",
60
+ "postpublish": "node scripts/sync-index.mjs",
61
+ "release": "node scripts/release.mjs"
59
62
  }
60
63
  }