@yankeguo/dsh-client-ui-devlead 0.4.2-rc.3 → 0.4.2-rc.6
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 +32 -8
- package/lib/client.js +1355 -571
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,11 +45,25 @@ Browser half of the DevLead suite, loaded on the DSH **Web** platform.
|
|
|
45
45
|
poll, and resume triggers share one in-flight read. A watch ready/change received during that read schedules
|
|
46
46
|
at most one trailing refresh; poll/focus triggers only coalesce, so later changes are neither duplicated nor dropped. Manual refresh can still force a fresh read
|
|
47
47
|
and reconnect the watch; an ended watch never reconnects silently, but polling continues. The
|
|
48
|
-
|
|
49
|
-
health. Blocked projects lead with a strong warning;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
compact header keeps active/blocked/paused/done KPIs in a single-line pill strip, with
|
|
49
|
+
revision/updated time and Live refresh health. Blocked projects lead with a strong warning; compact
|
|
50
|
+
active cards use responsive two/three-column layouts (one column when narrow), avoid redundant
|
|
51
|
+
visible field labels without dropping information, and give non-obvious icons accessible tooltips.
|
|
52
|
+
Paused/done and unlisted projects are secondary disclosures. Light/dark styling, aria labelling,
|
|
53
|
+
keyboard-native disclosures, narrow-pane focus order, and read-only operation are part of the
|
|
54
|
+
browser acceptance checklist.
|
|
55
|
+
|
|
56
|
+
The client derives `dirname(boardPath)/notes/index.json` from the already-resolved board config;
|
|
57
|
+
it never accepts a user path and performs all index/body I/O through the same read-only Workspace
|
|
58
|
+
Files state machine (`stat`, `readBytes`, `changes`, watch + poll). Cards show note count and
|
|
59
|
+
latest-title chips from index metadata; bodies are not embedded in the index. Opening a note loads
|
|
60
|
+
only that validated `<project.directory>/<note.id>.md` body into a full-pane, read-only reader.
|
|
61
|
+
Both the index and current note refresh automatically after external changes. Empty/missing,
|
|
62
|
+
loading, read, malformed, oversized, and watch-ended states remain distinct; a bad index or note
|
|
63
|
+
degrades only its notes surface, not the board. The dependency-free Markdown subset renders
|
|
64
|
+
headings, paragraphs, lists, quotes, fenced/inline code, emphasis, strikethrough, and explicit
|
|
65
|
+
HTTP(S) links as React elements/text. Raw HTML and dangerous link schemes stay inert text; there is
|
|
66
|
+
no `dangerouslySetInnerHTML` or browser write path.
|
|
53
67
|
|
|
54
68
|
The browser bundle only registers into DSH client slots and sends `/devlead` commands from the
|
|
55
69
|
toolbar toggle. It has no custom Remote API, no optimistic state flips, and no direct Host access;
|
|
@@ -106,9 +120,19 @@ visibility/focus 恢复立即 coalesced read,blur/hidden/unmount/path change
|
|
|
106
120
|
恢复触发共享 in-flight 读取;在途期间新到的 watch ready/change 合并为一次 trailing refresh(poll/focus
|
|
107
121
|
只共享当前读取),避免叠发或丢失后续 change。
|
|
108
122
|
手动刷新仍可强制重读并重连 watch;watch ended 不静默重连,但轮询
|
|
109
|
-
|
|
110
|
-
强警示置顶,active 主区响应式 2 列(窄栏 1
|
|
111
|
-
|
|
123
|
+
继续。紧凑顶部以单行 pill strip 显示 active/blocked/paused/done KPI,并保留 revision/updated 与
|
|
124
|
+
Live 自动状态;blocked 强警示置顶,active 主区响应式 2/3 列(窄栏 1 列)。卡片不重复显示可见
|
|
125
|
+
field label,但保留 focus/next/blocker 与任务进度,非自明图标有可访问 tooltip;paused/done/unlisted
|
|
126
|
+
为次级折叠。light/dark、aria、窄栏焦点顺序、键盘 disclosure 与只读行为均纳入浏览器人工验收。
|
|
127
|
+
|
|
128
|
+
client 从已解析的 board config 派生 `dirname(boardPath)/notes/index.json`,不接受用户路径,index
|
|
129
|
+
与正文 I/O 都只经既有 Workspace Files `stat/readBytes/changes` 和 watch+poll 状态机。卡片从 metadata
|
|
130
|
+
显示 note 数与最近标题 chip,index 不含正文;打开 note 时才读取经过校验的
|
|
131
|
+
`<project.directory>/<note.id>.md`,并用全栏只读 reader 展示。index 与当前 note 都会在外部修改后
|
|
132
|
+
自动刷新;缺失/空、加载、读取/解析错误、超限与 watch ended 分开呈现,坏 index/note 只降级对应
|
|
133
|
+
notes 区域,不影响 board。无依赖 Markdown 子集以 React 元素/文本渲染标题、段落、列表、引用、
|
|
134
|
+
fenced/inline code、强调、删除线与显式 HTTP(S) 链接;raw HTML 和危险 scheme 保持惰性文本,不使用
|
|
135
|
+
`dangerouslySetInnerHTML`,浏览器没有写路径。
|
|
112
136
|
0.2.0 起样式注入用跨模块实例引用计数(HMR 新旧实例交替不误删标签),组件与准入 hook 用
|
|
113
137
|
`react-test-renderer` 做渲染测试。已知 mark 回填与 blank 行限制见根 README。完整中文文档见
|
|
114
138
|
[根 README.zh.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md)与[设计说明](https://github.com/yankeguo/dsh-devlead/blob/main/docs/DESIGN.md)。
|