dsh-plan-steps 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/client.js +3 -5
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -301,10 +301,9 @@ window.__ModuleLoader__.load({
301
301
  if (position.done === true) {
302
302
  return h('div', { style: { padding: '6px 2px', fontSize: '13px', fontWeight: 600 } }, '计划 · 全部完成')
303
303
  }
304
- const done = position.total - position.open
305
- const items = Array.from({ length: position.total }, (_, i) => ({
306
- status: i < done ? 'completed' : i === done ? 'in_progress' : 'pending',
307
- }))
304
+ // No bar here: one linear bar cannot show a two-level list truthfully — a
305
+ // phase can be current while completed sub-steps sit after it — so the row
306
+ // states the position and the panel, which knows every status, draws it.
308
307
  return h(
309
308
  'div',
310
309
  { style: { padding: '6px 2px', fontSize: '13px', display: 'flex', alignItems: 'center', gap: '10px' } },
@@ -314,7 +313,6 @@ window.__ModuleLoader__.load({
314
313
  { style: { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } },
315
314
  position.current,
316
315
  ),
317
- h(Bar, { items, index: done + 1 }),
318
316
  )
319
317
  } catch (error) {
320
318
  return h('div', { style: { padding: '6px 2px', fontSize: '12px', opacity: 0.7 } }, '完成一步')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plan-steps",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Host-owned plan steps: two-level task lists with stable step ids, one sign-off path, and a plan panel.",
6
6
  "exports": {