dsh-todo-pro 0.1.1 → 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 +2 -0
- package/client.js +12 -8
- package/docs/icons/dsh-todo-pro.svg +13 -0
- package/docs/index.json +84 -0
- package/locale/en.json +1 -2
- package/locale/zh.json +1 -2
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -340,6 +340,8 @@ AI 只能把任务推进到「待验收」,**不能直接标记完成**。
|
|
|
340
340
|
|
|
341
341
|
| 版本 | 主要变化 |
|
|
342
342
|
|---|---|
|
|
343
|
+
| **0.1.3** | 修复插件详情页无法打开(`meta.detail` 指向不存在的文件);发布前自动校验 `npm run verify:package` |
|
|
344
|
+
| **0.1.2** | 市场索引随包分发(`docs/index.json`);发布脚本 `scripts/sync-index.mjs` 自动校准版本与时间 |
|
|
343
345
|
| **0.1.1** | 命令改名 `/todos`;移除「仅创建待办」;新增未排期状态与报表;执行摘要独立字段;共享会话;智能工作区匹配;合并含归档项;复制功能;一键清空回收站 |
|
|
344
346
|
| 0.1.0 | 首个版本:CRUD、八视图、报表、派发、提醒、回收站、导入导出 |
|
|
345
347
|
|
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 = '
|
|
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)
|
|
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)
|
|
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)
|
|
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
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
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)
|
|
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: '' },
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="Todo">
|
|
2
|
+
<rect x="4" y="4" width="56" height="56" rx="14" fill="#2563eb"/>
|
|
3
|
+
<rect x="13" y="14" width="38" height="36" rx="6" fill="#ffffff"/>
|
|
4
|
+
<rect x="19" y="21" width="9" height="9" rx="2" fill="#dbeafe"/>
|
|
5
|
+
<path d="M21.2 25.5 L23.4 27.7 L26.8 23.6" fill="none" stroke="#2563eb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<rect x="32" y="23" width="14" height="2.6" rx="1.3" fill="#93c5fd"/>
|
|
7
|
+
<rect x="19" y="33" width="9" height="9" rx="2" fill="#bfdbfe"/>
|
|
8
|
+
<rect x="32" y="35" width="14" height="2.6" rx="1.3" fill="#93c5fd"/>
|
|
9
|
+
<rect x="19" y="45" width="9" height="2.6" rx="1.3" fill="#e2e8f0"/>
|
|
10
|
+
<rect x="32" y="45" width="10" height="2.6" rx="1.3" fill="#e2e8f0"/>
|
|
11
|
+
<circle cx="50" cy="46" r="8" fill="#22c55e"/>
|
|
12
|
+
<path d="M46.5 46.2 L49 48.7 L53.6 43.6" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13
|
+
</svg>
|
package/docs/index.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"title": {
|
|
4
|
+
"en": "My DSH plugins",
|
|
5
|
+
"zh": "我的 DSH 插件"
|
|
6
|
+
},
|
|
7
|
+
"description": {
|
|
8
|
+
"en": "Plugins published by me.",
|
|
9
|
+
"zh": "我发布的 DSH 插件。"
|
|
10
|
+
},
|
|
11
|
+
"metadata": {
|
|
12
|
+
"categories": {
|
|
13
|
+
"productivity": {
|
|
14
|
+
"title": {
|
|
15
|
+
"en": "Productivity",
|
|
16
|
+
"zh": "效率工具"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"labels": {
|
|
21
|
+
"task-management": {
|
|
22
|
+
"title": {
|
|
23
|
+
"en": "Task management",
|
|
24
|
+
"zh": "任务管理"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"ai-dispatch": {
|
|
28
|
+
"title": {
|
|
29
|
+
"en": "AI dispatch",
|
|
30
|
+
"zh": "AI 派发"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"sortKeys": {
|
|
35
|
+
"npm_weekly_downloads": {
|
|
36
|
+
"title": {
|
|
37
|
+
"en": "Weekly downloads",
|
|
38
|
+
"zh": "周下载量"
|
|
39
|
+
},
|
|
40
|
+
"order": "desc"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"plugins": [
|
|
45
|
+
{
|
|
46
|
+
"name": "dsh-todo-pro",
|
|
47
|
+
"title": {
|
|
48
|
+
"en": "Todo items",
|
|
49
|
+
"zh": "待办事项"
|
|
50
|
+
},
|
|
51
|
+
"description": {
|
|
52
|
+
"en": "Requirement and task management: project, requester, owner, dates, acceptance, reminders; unscheduled tracking; dispatch to an AI session.",
|
|
53
|
+
"zh": "需求与任务管理:项目、需求人、负责人、起止时间、验收、自动化提醒;未排期识别;一键派发给 AI 会话执行。"
|
|
54
|
+
},
|
|
55
|
+
"icon": "icons/dsh-todo-pro.svg",
|
|
56
|
+
"author": "yixing",
|
|
57
|
+
"metadata": {
|
|
58
|
+
"category": "productivity",
|
|
59
|
+
"labels": [
|
|
60
|
+
"task-management",
|
|
61
|
+
"ai-dispatch"
|
|
62
|
+
],
|
|
63
|
+
"sortKeys": {
|
|
64
|
+
"npm_weekly_downloads": null
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"versions": [
|
|
68
|
+
{
|
|
69
|
+
"version": "0.1.4",
|
|
70
|
+
"publishTimestamp": 1796350519,
|
|
71
|
+
"source": {
|
|
72
|
+
"type": "npm"
|
|
73
|
+
},
|
|
74
|
+
"engines": {
|
|
75
|
+
"dsh": ">=0.2.0-rc.5"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"repository": {
|
|
80
|
+
"url": "https://github.com/zyx134/dsh-todo-pro"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
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,
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-todo-pro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "待办与需求管理:项目·需求人·负责人·起止时间·依赖·验收;未排期识别、自动化提醒、一键派发给 AI 执行",
|
|
5
5
|
"author": "zyx134",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,5 +51,13 @@
|
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
"manifestVersion": 1
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"sync-index": "node scripts/sync-index.mjs",
|
|
57
|
+
"verify:index": "node scripts/sync-index.mjs --check",
|
|
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"
|
|
54
62
|
}
|
|
55
63
|
}
|