saibo-kanban 0.5.2 → 0.5.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.3
4
+
5
+ - 表格新增「内容」列(标题与类型之间):正文首行直接可见,点击打开详情。
6
+ - 看板卡片悬停显示详情浮层:标题 / 正文 / 状态 / 类型 / 范围。
7
+
3
8
  ## 0.5.2
4
9
 
5
10
  - 移除归档功能:页面、接口、CLI 都不再有归档/恢复;done 条目直接可见。
package/client.js CHANGED
@@ -66,7 +66,8 @@ window.__ModuleLoader__.load({
66
66
  .sk-row:first-child { border-top:0; }
67
67
  .sk-row:hover { background:var(--dsw-alias-bg-layer-2,#fbfbfc); }
68
68
  .sk-id { font-family:ui-monospace,Consolas,monospace; font-size:11.5px; color:var(--dsw-alias-label-secondary,#6b7280); width:86px; flex:none; }
69
- .sk-name { flex:1; min-width:140px; cursor:text; border-radius:5px; padding:2px 4px; margin:-2px -4px; }
69
+ .sk-name { flex:1 1 34%; min-width:140px; cursor:text; border-radius:5px; padding:2px 4px; margin:-2px -4px; }
70
+ .sk-content { flex:1 1 40%; min-width:150px; font-size:12.5px; color:var(--dsw-alias-label-secondary,#6b7280); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; padding:2px 4px; }
70
71
  .sk-name:hover { background:var(--dsw-alias-bg-layer-2,#f3f4f6); }
71
72
  .sk-name input { width:100%; border:1px solid var(--dsw-alias-brand-primary,#2563eb); border-radius:5px; padding:2px 4px; background:var(--dsw-alias-bg-layer-1,#fff); color:inherit; font:inherit; outline:none; }
72
73
  .sk-sel { border:1px solid transparent; background:transparent; color:inherit; font:inherit; font-size:12px; border-radius:6px; padding:3px 4px; cursor:pointer; max-width:110px; }
@@ -85,7 +86,12 @@ window.__ModuleLoader__.load({
85
86
  .sk-col-head { display:flex; align-items:center; gap:6px; padding:9px 11px; font-weight:600; font-size:12.5px; color:var(--dsw-alias-label-secondary,#6b7280); border-bottom:1px solid var(--dsw-alias-border-l1,#e6e7eb); }
86
87
  .sk-col-body { padding:7px; display:flex; flex-direction:column; gap:7px; min-height:70px; }
87
88
  .sk-col.over { outline:2px dashed var(--dsw-alias-brand-primary,#2563eb); outline-offset:-3px; }
88
- .sk-card { background:var(--dsw-alias-bg-layer-1,#fff); border:1px solid var(--dsw-alias-border-l1,#e6e7eb); border-radius:9px; padding:8px 10px; cursor:grab; }
89
+ .sk-card { background:var(--dsw-alias-bg-layer-1,#fff); border:1px solid var(--dsw-alias-border-l1,#e6e7eb); border-radius:9px; padding:8px 10px; cursor:grab; position:relative; }
90
+ .sk-tip { display:none; position:absolute; left:0; top:calc(100% + 4px); width:300px; max-width:70vw; background:var(--dsw-alias-bg-overlay,#fff); border:1px solid var(--dsw-alias-border-l1,#e6e7eb); border-radius:8px; box-shadow:0 8px 24px rgba(16,24,40,.18); padding:8px 10px; z-index:20; cursor:default; }
91
+ .sk-card:hover .sk-tip { display:block; }
92
+ .sk-tip-title { font-weight:600; font-size:12.5px; }
93
+ .sk-tip-body { margin-top:4px; font-size:12px; color:var(--dsw-alias-label-secondary,#6b7280); white-space:pre-wrap; max-height:160px; overflow:hidden; }
94
+ .sk-tip-meta { margin-top:6px; font-size:11px; color:var(--dsw-alias-label-secondary,#6b7280); }
89
95
  .sk-card .t { font-weight:550; line-height:1.4; font-size:13px; }
90
96
  .sk-card .m { margin-top:5px; display:flex; gap:6px; color:var(--dsw-alias-label-secondary,#6b7280); font-size:11.5px; }
91
97
  .sk-drawer { position:absolute; top:0; right:0; bottom:0; width:min(460px,92%); background:var(--dsw-alias-bg-layer-1,#fff); border-left:1px solid var(--dsw-alias-border-l1,#e6e7eb); box-shadow:-8px 0 24px rgba(16,24,40,.08); display:flex; flex-direction:column; z-index:5; }
@@ -274,6 +280,7 @@ window.__ModuleLoader__.load({
274
280
  h('div', { className: 'sk-row sk-th' },
275
281
  h('span', { className: 'sk-num' }, '#'),
276
282
  h('span', { className: 'sk-name', style: { cursor: 'default' } }, '标题'),
283
+ h('span', { className: 'sk-content', style: { cursor: 'default' } }, '内容'),
277
284
  h('select', {
278
285
  className: 'sk-sel sk-col-k', value: fKind,
279
286
  onChange: e => setFKind(e.target.value)
@@ -304,6 +311,11 @@ window.__ModuleLoader__.load({
304
311
  if (e.key === 'Escape') setEditing(null);
305
312
  }
306
313
  }) : item.title),
314
+ h('div', {
315
+ className: 'sk-content',
316
+ title: item.body || '',
317
+ onClick: () => openDetail(item.id)
318
+ }, item.body ? item.body.split('\n')[0] : '—'),
307
319
  h('select', {
308
320
  className: 'sk-sel sk-col-k', value: item.kind,
309
321
  onChange: e => update(item.id, item.rev, { kind: e.target.value })
@@ -356,6 +368,12 @@ window.__ModuleLoader__.load({
356
368
  h('span', null, kindLabel(item.kind)),
357
369
  h('span', null, item.scope || '未定范围'),
358
370
  h('span', { style: { marginLeft: 'auto' } }, 'r' + item.rev)
371
+ ),
372
+ h('div', { className: 'sk-tip' },
373
+ h('div', { className: 'sk-tip-title' }, item.title),
374
+ h('div', { className: 'sk-tip-body' }, item.body || '(无内容)'),
375
+ h('div', { className: 'sk-tip-meta' },
376
+ statusLabel(item.status) + ' · ' + kindLabel(item.kind) + (item.scope ? ' · ' + item.scope : ''))
359
377
  )))
360
378
  ));
361
379
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saibo-kanban",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "AI 与人共用的活看板:草稿进收件箱、人做分拣、字段级修订可回滚,零 token 纠错。",
5
5
  "keywords": [
6
6
  "dsh",