dsh-workspace-status 0.3.2 → 0.3.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 +11 -0
- package/client.js +30 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,17 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.3] - 2026-12-05
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- The pinned section is visible again on DeepSeek Harness 0.2.2. The sidebar
|
|
14
|
+
scroll area became a four-row CSS grid whose panel list and workspaces region
|
|
15
|
+
claim explicit cells (2/2 and 4/2), so the injected section was auto-placed
|
|
16
|
+
into the 4px gutter and rendered as an invisible sliver — pins looked like
|
|
17
|
+
they did nothing and no notification could ever be raised. The host now
|
|
18
|
+
claims the spacer row and widens it to its own height.
|
|
19
|
+
|
|
9
20
|
## [0.3.2] - 2026-10-28
|
|
10
21
|
|
|
11
22
|
### Changed
|
package/client.js
CHANGED
|
@@ -1018,6 +1018,20 @@ window.__ModuleLoader__.load({
|
|
|
1018
1018
|
if (host.parentElement !== current.parentElement || host.nextElementSibling !== current) {
|
|
1019
1019
|
current.parentElement.insertBefore(host, current)
|
|
1020
1020
|
}
|
|
1021
|
+
// DSH 0.2.2 lays the sidebar scroll area out as a grid with fixed rows,
|
|
1022
|
+
// and the panel list (2/2) plus the workspaces region (4/2) claim their
|
|
1023
|
+
// cells explicitly. A bare sibling is auto-placed into the 4px gutter
|
|
1024
|
+
// and disappears, so claim the spacer row and let it size to content.
|
|
1025
|
+
const area = current.parentElement
|
|
1026
|
+
const laid = typeof window === 'undefined' ? undefined : window.getComputedStyle(area)
|
|
1027
|
+
if (laid !== undefined && laid.display === 'grid') {
|
|
1028
|
+
host.style.gridColumn = '2'
|
|
1029
|
+
host.style.gridRow = '3'
|
|
1030
|
+
const tracks = (laid.gridTemplateRows ?? '').split(' ').filter(Boolean)
|
|
1031
|
+
if (tracks.length === 4 && parseFloat(tracks[2]) < 6) {
|
|
1032
|
+
area.style.gridTemplateRows = `${tracks[0]} max-content max-content max-content`
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1021
1035
|
const collapsed = Array.from(current.parentElement.classList ?? [])
|
|
1022
1036
|
.some((token) => token.endsWith('_collapsed'))
|
|
1023
1037
|
if (host.getAttribute('data-rail') !== String(collapsed)) {
|
|
@@ -1471,10 +1485,22 @@ window.__ModuleLoader__.load({
|
|
|
1471
1485
|
const markerRef = React.useRef(null)
|
|
1472
1486
|
const [portalHost, setPortalHost] = React.useState(undefined)
|
|
1473
1487
|
React.useEffect(() => {
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1488
|
+
// The shell may commit the sidebar region after this slot's subtree, so
|
|
1489
|
+
// keep looking for a few frames instead of giving up on the first pass.
|
|
1490
|
+
let attached = attachPinnedHost(markerRef.current)
|
|
1491
|
+
let frame = 0
|
|
1492
|
+
let raf = 0
|
|
1493
|
+
const retry = () => {
|
|
1494
|
+
attached = attachPinnedHost(markerRef.current)
|
|
1495
|
+
if (attached === null && ++frame < 120) raf = window.requestAnimationFrame(retry)
|
|
1496
|
+
else if (attached !== null) setPortalHost(attached.host)
|
|
1497
|
+
}
|
|
1498
|
+
if (attached !== null) setPortalHost(attached.host)
|
|
1499
|
+
else if (typeof window !== 'undefined' && typeof window.requestAnimationFrame === 'function') raf = window.requestAnimationFrame(retry)
|
|
1500
|
+
return () => {
|
|
1501
|
+
if (raf !== 0) window.cancelAnimationFrame(raf)
|
|
1502
|
+
if (attached !== null) attached.dispose()
|
|
1503
|
+
}
|
|
1478
1504
|
}, [])
|
|
1479
1505
|
|
|
1480
1506
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-workspace-status",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
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": "侧边栏工作区状态标记、列表上方的已置顶会话区,以及仅针对置顶会话的通知:等待你处理、运行中、刚刚完成;置顶按工作区分组并持久保存。"
|
|
68
68
|
},
|
|
69
69
|
"category": "ui"
|
|
70
70
|
}
|