dsh-workspace-status 0.3.1 → 0.3.2

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 (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.js +26 -129
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.3.2] - 2026-10-28
10
+
11
+ ### Changed
12
+
13
+ - Replaced the timed, one-time "star the suite" overlay prompt with a quiet,
14
+ user-initiated star link in the plugin's own UI. It never interrupts or
15
+ auto-opens; it links to the Stijnus DSH plugin suite on GitHub.
16
+
9
17
  ## [0.3.1] - 2026-10-28
10
18
 
11
19
  ### Added
package/client.js CHANGED
@@ -36,6 +36,9 @@ window.__ModuleLoader__.load({
36
36
  const ReactDOM = require('react-dom')
37
37
  const h = React.createElement
38
38
 
39
+ /** Quiet, user-initiated suite star link. */
40
+ const STAR_SUITE_URL = 'https://github.com/Stijnus?tab=repositories&q=dsh'
41
+
39
42
  /** Additive seat beside Settings at the sidebar foot. */
40
43
  const SLOT = 'sidebar.footer.action'
41
44
  /** Stable list id; reusing it would shadow this entry rather than add one. */
@@ -131,6 +134,7 @@ window.__ModuleLoader__.load({
131
134
  'notify.finished.title': '{title} finished',
132
135
  'notify.finished.body': 'Finished and not opened yet · {workspace}',
133
136
  'notify.dismiss': 'Dismiss',
137
+ 'star.suite': 'Star the suite',
134
138
  },
135
139
  zh: {
136
140
  'activity.summary': '工作区状态:{clauses} — {names}',
@@ -168,6 +172,7 @@ window.__ModuleLoader__.load({
168
172
  'notify.finished.title': '{title} 已完成',
169
173
  'notify.finished.body': '已完成且尚未打开 · {workspace}',
170
174
  'notify.dismiss': '关闭',
175
+ 'star.suite': '为插件套件点星',
171
176
  },
172
177
  }
173
178
 
@@ -1503,132 +1508,6 @@ window.__ModuleLoader__.load({
1503
1508
  }
1504
1509
 
1505
1510
 
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
-
1632
1511
  return {
1633
1512
  name: 'workspace-status',
1634
1513
  inject: ['slots'],
@@ -1665,9 +1544,27 @@ window.__ModuleLoader__.load({
1665
1544
  },
1666
1545
  WorkspaceStatus,
1667
1546
  ))
1668
- ctx.slots.inject('shell.overlay', () => ctx.slots.register(
1669
- { name: 'shell.overlay', id: 'workspace-status-star-cta' },
1670
- () => h(StarSuiteCta),
1547
+ /** Quiet, user-initiated suite star link: Settings → General only. */
1548
+ function StarSuiteSetting() {
1549
+ return h(
1550
+ 'div',
1551
+ { style: { padding: '16px 0', borderBottom: '0.5px solid var(--dsw-alias-border-l2)' } },
1552
+ h(
1553
+ 'a',
1554
+ {
1555
+ href: STAR_SUITE_URL,
1556
+ target: '_blank',
1557
+ rel: 'noopener noreferrer',
1558
+ style: { fontSize: '14px', lineHeight: '20px', color: 'var(--dsw-alias-link)', textDecoration: 'none' },
1559
+ },
1560
+ '\u2605 ' + message('star.suite'),
1561
+ ),
1562
+ )
1563
+ }
1564
+
1565
+ ctx.slots.inject('settings.general.item', () => ctx.slots.register(
1566
+ { name: 'settings.general.item', id: 'workspace-status-star', order: 60, label: () => message('star.suite') },
1567
+ StarSuiteSetting,
1671
1568
  ))
1672
1569
  },
1673
1570
  /** Exposed for the package's own tests; the Loader ignores it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-workspace-status",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
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",