dsh-workspace-status 0.3.0 → 0.3.1
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 +9 -0
- package/client.js +131 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.1] - 2026-10-28
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- A one-time, dismissible "star the suite" prompt in the app overlay links to
|
|
14
|
+
the five Stijnus plugin repositories. It shows at most once per browser and
|
|
15
|
+
the whole suite shares the marker, so installing all five cannot stack five
|
|
16
|
+
prompts.
|
|
17
|
+
|
|
9
18
|
## [0.3.0] - 2026-10-26
|
|
10
19
|
|
|
11
20
|
### Added
|
package/client.js
CHANGED
|
@@ -1502,6 +1502,133 @@ window.__ModuleLoader__.load({
|
|
|
1502
1502
|
return h(React.Fragment, null, children)
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
1505
|
+
|
|
1506
|
+
// One-time "star the suite" prompt shared by every Stijnus plugin.
|
|
1507
|
+
// Whichever plugin mounts first shows it; all of them consult the same
|
|
1508
|
+
// localStorage marker so five installed plugins cannot stack five cards.
|
|
1509
|
+
const STAR_CTA_KEY = 'dsh-stijnus-star-cta/v1'
|
|
1510
|
+
const STAR_LINKS = [
|
|
1511
|
+
['Composer Predictions', 'https://github.com/Stijnus/dsh-composer-predictions'],
|
|
1512
|
+
['Moodboard', 'https://github.com/Stijnus/dsh-moodboard'],
|
|
1513
|
+
['Prompt Optimizer', 'https://github.com/Stijnus/dsh-prompt-optimizer'],
|
|
1514
|
+
['Move to Workspace', 'https://github.com/Stijnus/dsh-move-to-workspace'],
|
|
1515
|
+
['Workspace Status', 'https://github.com/Stijnus/dsh-workspace-status'],
|
|
1516
|
+
]
|
|
1517
|
+
|
|
1518
|
+
function starCtaShown() {
|
|
1519
|
+
try {
|
|
1520
|
+
return window.localStorage.getItem(STAR_CTA_KEY) !== null
|
|
1521
|
+
} catch {
|
|
1522
|
+
return true
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
function markStarCtaShown() {
|
|
1527
|
+
try {
|
|
1528
|
+
window.localStorage.setItem(STAR_CTA_KEY, String(Date.now()))
|
|
1529
|
+
} catch {
|
|
1530
|
+
// A blocked localStorage only means the prompt may reappear next launch.
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
function StarSuiteCta() {
|
|
1535
|
+
const [open, setOpen] = React.useState(false)
|
|
1536
|
+
React.useEffect(() => {
|
|
1537
|
+
if (starCtaShown()) return undefined
|
|
1538
|
+
const timer = window.setTimeout(() => {
|
|
1539
|
+
if (starCtaShown()) return
|
|
1540
|
+
markStarCtaShown()
|
|
1541
|
+
setOpen(true)
|
|
1542
|
+
}, 25000)
|
|
1543
|
+
return () => window.clearTimeout(timer)
|
|
1544
|
+
}, [])
|
|
1545
|
+
if (!open) return null
|
|
1546
|
+
const close = () => setOpen(false)
|
|
1547
|
+
return h(
|
|
1548
|
+
'div',
|
|
1549
|
+
{
|
|
1550
|
+
role: 'status',
|
|
1551
|
+
'aria-live': 'polite',
|
|
1552
|
+
style: {
|
|
1553
|
+
position: 'fixed',
|
|
1554
|
+
left: '16px',
|
|
1555
|
+
bottom: '72px',
|
|
1556
|
+
zIndex: 2147483000,
|
|
1557
|
+
width: '300px',
|
|
1558
|
+
maxWidth: 'calc(100vw - 32px)',
|
|
1559
|
+
boxSizing: 'border-box',
|
|
1560
|
+
padding: '14px 14px 12px',
|
|
1561
|
+
borderRadius: '12px',
|
|
1562
|
+
border: '1px solid var(--dsw-alias-border-l2, rgba(255, 255, 255, 0.14))',
|
|
1563
|
+
background: 'var(--dsw-alias-bg-layer-2, #1c1c1e)',
|
|
1564
|
+
color: 'var(--dsw-alias-label-primary, #f2f2f2)',
|
|
1565
|
+
boxShadow: '0 8px 28px rgba(0, 0, 0, 0.28)',
|
|
1566
|
+
fontSize: '13px',
|
|
1567
|
+
lineHeight: '18px',
|
|
1568
|
+
},
|
|
1569
|
+
},
|
|
1570
|
+
h(
|
|
1571
|
+
'button',
|
|
1572
|
+
{
|
|
1573
|
+
type: 'button',
|
|
1574
|
+
onClick: close,
|
|
1575
|
+
'aria-label': 'Dismiss',
|
|
1576
|
+
style: {
|
|
1577
|
+
position: 'absolute',
|
|
1578
|
+
top: '8px',
|
|
1579
|
+
right: '8px',
|
|
1580
|
+
width: '24px',
|
|
1581
|
+
height: '24px',
|
|
1582
|
+
padding: '0',
|
|
1583
|
+
border: '0',
|
|
1584
|
+
borderRadius: '6px',
|
|
1585
|
+
background: 'transparent',
|
|
1586
|
+
cursor: 'pointer',
|
|
1587
|
+
color: 'var(--dsw-alias-label-tertiary, #9a9a9a)',
|
|
1588
|
+
fontSize: '16px',
|
|
1589
|
+
lineHeight: '24px',
|
|
1590
|
+
},
|
|
1591
|
+
},
|
|
1592
|
+
'\\u00d7',
|
|
1593
|
+
),
|
|
1594
|
+
h('div', { style: { fontWeight: 600, paddingRight: '24px' } }, 'Enjoying these plugins?'),
|
|
1595
|
+
h(
|
|
1596
|
+
'div',
|
|
1597
|
+
{
|
|
1598
|
+
style: {
|
|
1599
|
+
marginTop: '4px',
|
|
1600
|
+
color: 'var(--dsw-alias-label-secondary, #b8b8b8)',
|
|
1601
|
+
fontSize: '12px',
|
|
1602
|
+
lineHeight: '17px',
|
|
1603
|
+
},
|
|
1604
|
+
},
|
|
1605
|
+
'A star on GitHub helps them reach the DeepSeek Harness plugin market.',
|
|
1606
|
+
),
|
|
1607
|
+
h(
|
|
1608
|
+
'div',
|
|
1609
|
+
{ style: { display: 'flex', flexDirection: 'column', gap: '5px', marginTop: '10px' } },
|
|
1610
|
+
STAR_LINKS.map(([name, url]) =>
|
|
1611
|
+
h(
|
|
1612
|
+
'a',
|
|
1613
|
+
{
|
|
1614
|
+
key: url,
|
|
1615
|
+
href: url,
|
|
1616
|
+
target: '_blank',
|
|
1617
|
+
rel: 'noopener noreferrer',
|
|
1618
|
+
onClick: close,
|
|
1619
|
+
style: {
|
|
1620
|
+
color: 'var(--dsw-alias-link, #6cb8ff)',
|
|
1621
|
+
fontSize: '12px',
|
|
1622
|
+
textDecoration: 'none',
|
|
1623
|
+
},
|
|
1624
|
+
},
|
|
1625
|
+
'\\u2b50 ' + name,
|
|
1626
|
+
),
|
|
1627
|
+
),
|
|
1628
|
+
),
|
|
1629
|
+
)
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1505
1632
|
return {
|
|
1506
1633
|
name: 'workspace-status',
|
|
1507
1634
|
inject: ['slots'],
|
|
@@ -1538,6 +1665,10 @@ window.__ModuleLoader__.load({
|
|
|
1538
1665
|
},
|
|
1539
1666
|
WorkspaceStatus,
|
|
1540
1667
|
))
|
|
1668
|
+
ctx.slots.inject('shell.overlay', () => ctx.slots.register(
|
|
1669
|
+
{ name: 'shell.overlay', id: 'workspace-status-star-cta' },
|
|
1670
|
+
() => h(StarSuiteCta),
|
|
1671
|
+
))
|
|
1541
1672
|
},
|
|
1542
1673
|
/** Exposed for the package's own tests; the Loader ignores it. */
|
|
1543
1674
|
__test: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-workspace-status",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
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
|
}
|