@sparkelf/dsh-patch-session-log-trajectory-toolbar 0.1.0-rc.22 → 0.1.0-rc.26
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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/package.json +3 -3
- package/patches/session-log-trajectory-toolbar.patch +29 -56
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write patches/npm/session-log-trajectory-toolbar/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: e165609e181a157365db75268cc40a3e84ec2812
|
|
6
|
+
README.zh.md: f0236fdb80dec3b58b223a8d30ce7e5d021fda63
|
package/README.md
CHANGED
|
@@ -6,6 +6,6 @@ This data-only package places the official Session-log download action immediate
|
|
|
6
6
|
|
|
7
7
|
The payload adds one typed Trajectory toolbar utility slot and registers a second presentation of the existing Session-log action into it. Both presentations use the same download controller, request, state, and dialog; the package does not add another export path or archive implementation.
|
|
8
8
|
|
|
9
|
-
The target is exact official source revision `
|
|
9
|
+
The target is exact official source revision `fb2c4b9e698e30edb738bca4cf0618587db7d203`. The payload is applied before that source tree is built. The package has no JavaScript entry, lifecycle script, Cordis plugin, compatibility adapter, or alternate variant.
|
|
10
10
|
|
|
11
11
|
Retire this package when official DSH exposes an equivalent Trajectory toolbar utility slot and places Session export before search on desktop while retaining the Header action on phones.
|
package/README.zh.md
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
payload增加一个typed Trajectory toolbar utility slot,并把既有会话日志操作的第二个presentation注册进该slot。两个presentation共用同一个download controller、request、state与dialog;本package不增加第二条export path或archive implementation。
|
|
8
8
|
|
|
9
|
-
target是exact official source revision `
|
|
9
|
+
target是exact official source revision `fb2c4b9e698e30edb738bca4cf0618587db7d203`,payload在该source tree build前应用。本package没有JavaScript entry、lifecycle script、Cordis plugin、compatibility adapter或alternate variant。
|
|
10
10
|
|
|
11
11
|
official DSH暴露等价Trajectory toolbar utility slot,并在桌面端把Session export放到搜索框前、同时在手机上保留Header操作后,retire本package。
|
package/package.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"formatVersion": 1,
|
|
5
5
|
"variants": [
|
|
6
6
|
{
|
|
7
|
-
"dsh": ">=0.1.
|
|
7
|
+
"dsh": ">=0.1.5-rc.2",
|
|
8
8
|
"file": "./patches/session-log-trajectory-toolbar.patch",
|
|
9
9
|
"id": "session-log-desktop-trajectory-toolbar",
|
|
10
10
|
"target": {
|
|
11
|
-
"baseRevision": "
|
|
11
|
+
"baseRevision": "fb2c4b9e698e30edb738bca4cf0618587db7d203",
|
|
12
12
|
"kind": "dsh-source",
|
|
13
13
|
"paths": [
|
|
14
14
|
"packages/client/ui-trajectory/",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"url": "git+https://github.com/SparkElf/deepseek-harness-plus.git"
|
|
33
33
|
},
|
|
34
34
|
"type": "module",
|
|
35
|
-
"version": "0.1.0-rc.
|
|
35
|
+
"version": "0.1.0-rc.26"
|
|
36
36
|
}
|
|
@@ -62,7 +62,7 @@ index 92d7ce9ab0..dfbc88f1e3 100644
|
|
|
62
62
|
<input
|
|
63
63
|
type="search"
|
|
64
64
|
diff --git a/packages/client/ui-trajectory/src/client/TrajectoryView.tsx b/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
|
|
65
|
-
index
|
|
65
|
+
index 4f8bc63d9c..cedf2511ea 100644
|
|
66
66
|
--- a/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
|
|
67
67
|
+++ b/packages/client/ui-trajectory/src/client/TrajectoryView.tsx
|
|
68
68
|
@@ -130,7 +130,9 @@ export function TrajectoryView({
|
|
@@ -76,7 +76,7 @@ index a9f1df1b36..b7fbd52a80 100644
|
|
|
76
76
|
& InjectFace<TrajectoryViewInjected>
|
|
77
77
|
& PropsLocale<'trajectory'>) {
|
|
78
78
|
const [collapsedTurns, setCollapsedTurns] = useState<ReadonlySet<number>>(EMPTY_TURN_IDS)
|
|
79
|
-
@@ -
|
|
79
|
+
@@ -523,6 +525,7 @@ export function TrajectoryView({
|
|
80
80
|
onToggleAllAssistants={toggleAllAssistants}
|
|
81
81
|
searchQuery={searchQuery}
|
|
82
82
|
onSearchQueryChange={setSearchQuery}
|
|
@@ -111,7 +111,7 @@ index 118f3b2c28..a8c71cf9ee 100644
|
|
|
111
111
|
inject: (sessionId: SessionId): TrajectoryViewInjected => {
|
|
112
112
|
const session = ctx.sessions.binding(sessionId)?.session
|
|
113
113
|
diff --git a/packages/session-query/session-log-export/package.json b/packages/session-query/session-log-export/package.json
|
|
114
|
-
index
|
|
114
|
+
index 8992ab79e9..7d9f7763f9 100644
|
|
115
115
|
--- a/packages/session-query/session-log-export/package.json
|
|
116
116
|
+++ b/packages/session-query/session-log-export/package.json
|
|
117
117
|
@@ -59,6 +59,7 @@
|
|
@@ -133,12 +133,12 @@ index ce12787db0..2497520511 100644
|
|
|
133
133
|
"platform": "web"
|
|
134
134
|
}
|
|
135
135
|
diff --git a/packages/session-query/session-log-export/src/client/HeaderAction.module.css b/packages/session-query/session-log-export/src/client/HeaderAction.module.css
|
|
136
|
-
index
|
|
136
|
+
index cc13d3f49d..1d22e64cfd 100644
|
|
137
137
|
--- a/packages/session-query/session-log-export/src/client/HeaderAction.module.css
|
|
138
138
|
+++ b/packages/session-query/session-log-export/src/client/HeaderAction.module.css
|
|
139
|
-
@@ -
|
|
140
|
-
.
|
|
141
|
-
|
|
139
|
+
@@ -23,3 +23,44 @@
|
|
140
|
+
.moreButton:hover {
|
|
141
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
142
142
|
}
|
|
143
143
|
+
|
|
144
144
|
+.trajectoryButton {
|
|
@@ -172,54 +172,27 @@ index ef6f6cfdf3..fb4ebe7221 100644
|
|
|
172
172
|
+}
|
|
173
173
|
+
|
|
174
174
|
+.trajectoryButton span,
|
|
175
|
-
+.trajectoryButton svg {
|
|
176
|
-
|
|
177
|
-
+}
|
|
178
|
-
+
|
|
179
|
-
+.trajectoryButton span {
|
|
180
|
-
+ white-space: nowrap;
|
|
181
|
-
+}
|
|
182
|
-
+
|
|
183
|
-
+@media (max-width: 800px) {
|
|
184
|
-
+ .sessionLogButton {
|
|
185
|
-
+ width: 28px;
|
|
186
|
-
+ min-width: 28px;
|
|
187
|
-
+ height: 28px;
|
|
188
|
-
+ padding: 0;
|
|
189
|
-
+ border: none;
|
|
190
|
-
+ border-radius: 50%;
|
|
191
|
-
+ }
|
|
192
|
-
+
|
|
193
|
-
+ .sessionLogButton span {
|
|
194
|
-
+ display: none;
|
|
195
|
-
+ }
|
|
196
|
-
+
|
|
197
|
-
+ .sessionLogButton svg {
|
|
198
|
-
+ width: 16px;
|
|
199
|
-
+ height: 16px;
|
|
200
|
-
+ }
|
|
201
|
-
+}
|
|
175
|
+
+.trajectoryButton svg { flex: none; }
|
|
176
|
+
+.trajectoryButton span { white-space: nowrap; }
|
|
202
177
|
+
|
|
178
|
+
+/* Wider layouts replace the Header action with the compact Trajectory one. */
|
|
203
179
|
+@media (min-width: 768px) {
|
|
204
|
-
+ .
|
|
205
|
-
+ display: none;
|
|
206
|
-
+ }
|
|
180
|
+
+ .moreButton { display: none; }
|
|
207
181
|
+
|
|
208
|
-
+ .trajectoryButton {
|
|
209
|
-
+ display: inline-flex;
|
|
210
|
-
+ }
|
|
182
|
+
+ .trajectoryButton { display: inline-flex; }
|
|
211
183
|
+}
|
|
212
184
|
diff --git a/packages/session-query/session-log-export/src/client/HeaderAction.tsx b/packages/session-query/session-log-export/src/client/HeaderAction.tsx
|
|
213
|
-
index
|
|
185
|
+
index cb20cb9f9d..6f5eefab95 100644
|
|
214
186
|
--- a/packages/session-query/session-log-export/src/client/HeaderAction.tsx
|
|
215
187
|
+++ b/packages/session-query/session-log-export/src/client/HeaderAction.tsx
|
|
216
|
-
@@ -1,
|
|
188
|
+
@@ -1,9 +1,16 @@
|
|
189
|
+
import { useState } from 'react'
|
|
217
190
|
import type { ReactNode } from 'react'
|
|
218
|
-
import { IconDownloadOutline16 } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
191
|
+
import { IconDownloadOutline16, IconEllipsisOutline16, Menu } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
192
|
+
-import { SessionLogDownloadDialog, type SessionLogDownloadDialogProps } from './Dialog.tsx'
|
|
219
193
|
+import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
|
|
220
|
-
import { SessionLogDownloadDialog, type SessionLogDownloadDialogProps } from './Dialog.tsx'
|
|
221
|
-
+import type { SessionLogDownloadDialogInjected } from './Dialog.tsx'
|
|
222
194
|
+import { NS } from './locales.ts'
|
|
195
|
+
+import { SessionLogDownloadDialog, type SessionLogDownloadDialogInjected, type SessionLogDownloadDialogProps } from './Dialog.tsx'
|
|
223
196
|
import css from './HeaderAction.module.css'
|
|
224
197
|
|
|
225
198
|
+type SessionLogDownloadToolbarActionProps =
|
|
@@ -228,17 +201,17 @@ index 7adc40aa5c..f0ebd2a71e 100644
|
|
|
228
201
|
+ & InjectFace<SessionLogDownloadDialogInjected>
|
|
229
202
|
+
|
|
230
203
|
/**
|
|
231
|
-
* Render the Session Header
|
|
232
|
-
* @param props - Session runtime, download controller, and localized
|
|
233
|
-
@@ -
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
+
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
@@ -
|
|
204
|
+
* Render the Session Header more-actions icon button, its download menu, and the shared result dialog.
|
|
205
|
+
* @param props - Session runtime, download controller, and localized copy.
|
|
206
|
+
@@ -31,6 +38,7 @@ export function SessionLogDownloadHeaderAction(props: SessionLogDownloadDialogPr
|
|
207
|
+
<button
|
|
208
|
+
type="button"
|
|
209
|
+
className={css.moreButton}
|
|
210
|
+
+ data-session-log-header
|
|
211
|
+
aria-label={t('header.more')}
|
|
212
|
+
aria-haspopup="menu"
|
|
213
|
+
aria-expanded={open}
|
|
214
|
+
@@ -45,3 +53,31 @@ export function SessionLogDownloadHeaderAction(props: SessionLogDownloadDialogPr
|
|
242
215
|
</>
|
|
243
216
|
)
|
|
244
217
|
}
|