dsh-workspace-status 0.3.3 → 0.3.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/CHANGELOG.md +10 -0
- package/client.js +33 -12
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.4] - 2026-12-05
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- When the shell no longer exposes the sidebar region the pinned section is
|
|
14
|
+
portaled into, the section now renders inline in the sidebar footer and logs
|
|
15
|
+
one console warning naming the fallback. A future layout change therefore
|
|
16
|
+
looks wrong and stays reachable instead of looking like the feature was never
|
|
17
|
+
installed.
|
|
18
|
+
|
|
9
19
|
## [0.3.3] - 2026-12-05
|
|
10
20
|
|
|
11
21
|
### Fixed
|
package/client.js
CHANGED
|
@@ -746,6 +746,8 @@ window.__ModuleLoader__.load({
|
|
|
746
746
|
'--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);',
|
|
747
747
|
'--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2)}',
|
|
748
748
|
'.dsws-pinned[data-rail="true"],.dsws-pinned:empty{display:none}',
|
|
749
|
+
'.dsws-pinned-fallback{max-height:min(30vh,220px);margin:0 0 4px;padding-top:4px;',
|
|
750
|
+
'border-top:0.5px solid var(--dsw-alias-border-l2)}',
|
|
749
751
|
'.dsws-pinned-headerrow{display:flex;align-items:center;gap:2px;margin:0;padding:0 2px 0 0}',
|
|
750
752
|
'.dsws-pinned-header{display:flex;align-items:center;gap:6px;box-sizing:border-box;flex:1;min-width:0;height:30px;',
|
|
751
753
|
'margin:0;padding:0 8px;border:0;border-radius:var(--dsw-radius-md);background:none;',
|
|
@@ -1492,8 +1494,19 @@ window.__ModuleLoader__.load({
|
|
|
1492
1494
|
let raf = 0
|
|
1493
1495
|
const retry = () => {
|
|
1494
1496
|
attached = attachPinnedHost(markerRef.current)
|
|
1495
|
-
if (attached
|
|
1496
|
-
|
|
1497
|
+
if (attached !== null) {
|
|
1498
|
+
setPortalHost(attached.host)
|
|
1499
|
+
return
|
|
1500
|
+
}
|
|
1501
|
+
if (++frame < 120) {
|
|
1502
|
+
raf = window.requestAnimationFrame(retry)
|
|
1503
|
+
return
|
|
1504
|
+
}
|
|
1505
|
+
// Give the fallback a voice: without a host the section still renders
|
|
1506
|
+
// inline, and this line is what a bug report can be searched for.
|
|
1507
|
+
if (typeof console !== 'undefined' && typeof console.warn === 'function') {
|
|
1508
|
+
console.warn('dsh-workspace-status: sidebar region not found; the pinned section falls back to the footer slot')
|
|
1509
|
+
}
|
|
1497
1510
|
}
|
|
1498
1511
|
if (attached !== null) setPortalHost(attached.host)
|
|
1499
1512
|
else if (typeof window !== 'undefined' && typeof window.requestAnimationFrame === 'function') raf = window.requestAnimationFrame(retry)
|
|
@@ -1518,16 +1531,24 @@ window.__ModuleLoader__.load({
|
|
|
1518
1531
|
key: 'anchor', ref: markerRef, className: 'dsws-anchor', 'aria-hidden': 'true',
|
|
1519
1532
|
}))
|
|
1520
1533
|
|
|
1521
|
-
if (
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
portalHost,
|
|
1529
|
-
|
|
1530
|
-
|
|
1534
|
+
if (pinnedModel.total > 0) {
|
|
1535
|
+
const section = h(PinnedSection, {
|
|
1536
|
+
model: pinnedModel,
|
|
1537
|
+
openSession: typeof externalOpenSession === 'function' ? externalOpenSession : noop,
|
|
1538
|
+
unpinSession: typeof externalUnpinSession === 'function' ? externalUnpinSession : noopAsync,
|
|
1539
|
+
})
|
|
1540
|
+
if (portalHost !== undefined) {
|
|
1541
|
+
children.push(ReactDOM.createPortal(section, portalHost, ENTRY_ID))
|
|
1542
|
+
} else {
|
|
1543
|
+
// The sidebar region is absent or never appeared. Keep the section
|
|
1544
|
+
// reachable in the footer slot instead of dropping it silently: a
|
|
1545
|
+
// future shell layout change must look odd, not disappear.
|
|
1546
|
+
children.push(h('div', {
|
|
1547
|
+
key: 'pinned-fallback',
|
|
1548
|
+
className: 'dsws-pinned dsws-pinned-fallback',
|
|
1549
|
+
'data-fallback': 'true',
|
|
1550
|
+
}, section))
|
|
1551
|
+
}
|
|
1531
1552
|
}
|
|
1532
1553
|
|
|
1533
1554
|
return h(React.Fragment, null, children)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-workspace-status",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Workspace status marks, a pinned-conversation section and pinned-only notifications for the DeepSeek Harness sidebar.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"catalog": {
|
|
65
65
|
"summary": {
|
|
66
66
|
"en": "Workspace status marks, a pinned-conversation section above the sidebar list and pinned-only notifications: waiting for you, running, recently finished, grouped per workspace and persisted.",
|
|
67
|
-
"zh": "
|
|
67
|
+
"zh": "\u4fa7\u8fb9\u680f\u5de5\u4f5c\u533a\u72b6\u6001\u6807\u8bb0\u3001\u5217\u8868\u4e0a\u65b9\u7684\u5df2\u7f6e\u9876\u4f1a\u8bdd\u533a\uff0c\u4ee5\u53ca\u4ec5\u9488\u5bf9\u7f6e\u9876\u4f1a\u8bdd\u7684\u901a\u77e5\uff1a\u7b49\u5f85\u4f60\u5904\u7406\u3001\u8fd0\u884c\u4e2d\u3001\u521a\u521a\u5b8c\u6210\uff1b\u7f6e\u9876\u6309\u5de5\u4f5c\u533a\u5206\u7ec4\u5e76\u6301\u4e45\u4fdd\u5b58\u3002"
|
|
68
68
|
},
|
|
69
69
|
"category": "ui"
|
|
70
70
|
}
|