@linxin666/dsh-client-ui-task-board-ssh 0.0.0-stage → 0.4.20
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/LICENSE +202 -0
- package/README.i18n.yaml +6 -0
- package/README.md +85 -2
- package/README.zh.md +86 -0
- package/cordis.patch.yml +15 -0
- package/icon.svg +5 -0
- package/lib/client.js +4429 -0
- package/lib/index.js +6100 -0
- package/lib/types/client/PluginSettingsCard.d.ts +255 -0
- package/lib/types/client/RangeBubble.d.ts +46 -0
- package/lib/types/client/SegmentGroup.d.ts +28 -0
- package/lib/types/client/index.d.ts +100 -0
- package/lib/types/client/locales.d.ts +125 -0
- package/lib/types/client/seat-props.d.ts +53 -0
- package/lib/types/client/settings-entry-form.d.ts +49 -0
- package/lib/types/client/settings-form.d.ts +237 -0
- package/lib/types/client/ssh/card-decoration.d.ts +23 -0
- package/lib/types/client/ssh/compose-section.d.ts +7 -0
- package/lib/types/client/ssh/detail-section.d.ts +7 -0
- package/lib/types/client/ssh/extension.d.ts +54 -0
- package/lib/types/client/ssh/log-buffer.d.ts +128 -0
- package/lib/types/client/ssh/log-view.d.ts +37 -0
- package/lib/types/client/ssh/model.d.ts +130 -0
- package/lib/types/client/ssh/settings-section.d.ts +134 -0
- package/lib/types/client/ssh/summary.d.ts +160 -0
- package/lib/types/client/ssh/target-form.d.ts +60 -0
- package/lib/types/core/action.d.ts +89 -0
- package/lib/types/core/adapters/claude.d.ts +15 -0
- package/lib/types/core/adapters/codex.d.ts +15 -0
- package/lib/types/core/adapters/custom.d.ts +29 -0
- package/lib/types/core/adapters/dsh.d.ts +21 -0
- package/lib/types/core/adapters/index.d.ts +25 -0
- package/lib/types/core/adapters/types.d.ts +76 -0
- package/lib/types/core/contract.d.ts +445 -0
- package/lib/types/core/launcher-script.d.ts +13 -0
- package/lib/types/core/launcher.d.ts +153 -0
- package/lib/types/core/ledger.d.ts +123 -0
- package/lib/types/core/shell.d.ts +61 -0
- package/lib/types/core/target.d.ts +143 -0
- package/lib/types/core/task-record.d.ts +63 -0
- package/lib/types/core/workspace.d.ts +74 -0
- package/lib/types/host/board.d.ts +71 -0
- package/lib/types/host/engine.d.ts +418 -0
- package/lib/types/host/extension.d.ts +59 -0
- package/lib/types/host/logs.d.ts +135 -0
- package/lib/types/host/payload.d.ts +75 -0
- package/lib/types/host/prompt.d.ts +44 -0
- package/lib/types/host/queue.d.ts +53 -0
- package/lib/types/host/remote.d.ts +120 -0
- package/lib/types/host/settings.d.ts +149 -0
- package/lib/types/host/timers.d.ts +20 -0
- package/lib/types/host/tools.d.ts +15 -0
- package/lib/types/host/workspace/errors.d.ts +29 -0
- package/lib/types/host/workspace/git.d.ts +108 -0
- package/lib/types/host/workspace/in-place.d.ts +36 -0
- package/lib/types/host/workspace/index.d.ts +28 -0
- package/lib/types/host/workspace/layout.d.ts +62 -0
- package/lib/types/host/workspace/local-git.d.ts +72 -0
- package/lib/types/host/workspace/remote-git.d.ts +111 -0
- package/lib/types/host/workspace/remote.d.ts +85 -0
- package/lib/types/host/workspace/types.d.ts +28 -0
- package/lib/types/host/workspace-seam.d.ts +100 -0
- package/lib/types/index.d.ts +97 -0
- package/lib/types/mount-once.d.ts +55 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +89 -3
- package/src/client/PluginSettingsCard.tsx +838 -0
- package/src/client/RangeBubble.tsx +164 -0
- package/src/client/SegmentGroup.tsx +93 -0
- package/src/client/css-modules.d.ts +5 -0
- package/src/client/index.ts +195 -0
- package/src/client/locales.ts +257 -0
- package/src/client/seat-props.ts +58 -0
- package/src/client/settings-card.module.css +821 -0
- package/src/client/settings-entry-form.ts +141 -0
- package/src/client/settings-form.ts +529 -0
- package/src/client/ssh/card-decoration.tsx +55 -0
- package/src/client/ssh/compose-section.tsx +147 -0
- package/src/client/ssh/detail-section.tsx +345 -0
- package/src/client/ssh/extension.ts +271 -0
- package/src/client/ssh/log-buffer.ts +224 -0
- package/src/client/ssh/log-view.tsx +149 -0
- package/src/client/ssh/model.ts +299 -0
- package/src/client/ssh/settings-section.tsx +401 -0
- package/src/client/ssh/summary.ts +388 -0
- package/src/client/ssh/target-form.tsx +380 -0
- package/src/client/ssh.module.css +617 -0
- package/src/core/action.ts +270 -0
- package/src/core/adapters/claude.ts +64 -0
- package/src/core/adapters/codex.ts +83 -0
- package/src/core/adapters/custom.ts +88 -0
- package/src/core/adapters/dsh.ts +87 -0
- package/src/core/adapters/index.ts +74 -0
- package/src/core/adapters/types.ts +95 -0
- package/src/core/contract.ts +510 -0
- package/src/core/launcher-script.ts +313 -0
- package/src/core/launcher.ts +283 -0
- package/src/core/ledger.ts +372 -0
- package/src/core/shell.ts +77 -0
- package/src/core/target.ts +413 -0
- package/src/core/task-record.ts +65 -0
- package/src/core/workspace.ts +78 -0
- package/src/host/board.ts +103 -0
- package/src/host/engine.ts +1602 -0
- package/src/host/extension.ts +304 -0
- package/src/host/logs.ts +297 -0
- package/src/host/payload.ts +134 -0
- package/src/host/prompt.ts +89 -0
- package/src/host/queue.ts +73 -0
- package/src/host/remote.ts +328 -0
- package/src/host/settings.ts +294 -0
- package/src/host/timers.ts +33 -0
- package/src/host/tools.ts +259 -0
- package/src/host/workspace/errors.ts +43 -0
- package/src/host/workspace/git.ts +305 -0
- package/src/host/workspace/in-place.ts +58 -0
- package/src/host/workspace/index.ts +37 -0
- package/src/host/workspace/layout.ts +122 -0
- package/src/host/workspace/local-git.ts +164 -0
- package/src/host/workspace/remote-git.ts +244 -0
- package/src/host/workspace/remote.ts +181 -0
- package/src/host/workspace/types.ts +34 -0
- package/src/host/workspace-seam.ts +132 -0
- package/src/index.ts +243 -0
- package/src/mount-once.ts +142 -0
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The SSH provider's browser surfaces: the task-detail section, the card chip
|
|
3
|
+
* and the board-settings topic card.
|
|
4
|
+
*
|
|
5
|
+
* Everything here is themed by the family's `--dsw-alias-*` tokens, so a skin,
|
|
6
|
+
* the light theme and the dark theme all resolve without a page-local colour.
|
|
7
|
+
* The chrome deliberately mirrors the board's own panel scale (12px meta, 13px
|
|
8
|
+
* body, one 30px control height, 8px radius, one 120ms easing): a provider's
|
|
9
|
+
* section sits inside that panel and must not read as a second design system.
|
|
10
|
+
*
|
|
11
|
+
* Tokens fall back locally where the board declares its scale on its own root,
|
|
12
|
+
* because a seat may be rendered outside that subtree.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/* Shared geometry/motion custom properties declared on every root surface
|
|
16
|
+
this package mounts independently (detail section, compose dialog, card badge). */
|
|
17
|
+
.section,
|
|
18
|
+
.compose,
|
|
19
|
+
.badge {
|
|
20
|
+
--ssh-control-h: var(--dsh-tb-control-h, 30px);
|
|
21
|
+
--ssh-radius: var(--dsh-tb-control-radius, 8px);
|
|
22
|
+
--ssh-ease: var(--dsh-tb-ease, cubic-bezier(0.2, 0, 0, 1));
|
|
23
|
+
--ssh-row: 18px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.section {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 8px;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sectionTitle {
|
|
34
|
+
margin: 0;
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
line-height: 1.4;
|
|
38
|
+
color: var(--dsw-alias-label-secondary);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.head {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* The section's primary fact: where this card runs and on which agent. */
|
|
49
|
+
.targetLine {
|
|
50
|
+
margin: 0;
|
|
51
|
+
font-size: 13px;
|
|
52
|
+
line-height: 1.55;
|
|
53
|
+
color: var(--dsw-alias-label-primary);
|
|
54
|
+
overflow-wrap: anywhere;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.meta {
|
|
58
|
+
margin: 0;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
line-height: 1.5;
|
|
61
|
+
color: var(--dsw-alias-label-secondary);
|
|
62
|
+
overflow-wrap: anywhere;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* The previous run's own conclusion, on its own recessed surface: the box says
|
|
66
|
+
what the text is, so it needs no label. */
|
|
67
|
+
.summary {
|
|
68
|
+
margin: 0;
|
|
69
|
+
padding: 6px 10px;
|
|
70
|
+
font-size: 12px;
|
|
71
|
+
line-height: 1.5;
|
|
72
|
+
color: var(--dsw-alias-label-secondary);
|
|
73
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
74
|
+
border-left: 2px solid var(--dsw-alias-border-l2);
|
|
75
|
+
border-radius: 0 var(--ssh-radius) var(--ssh-radius) 0;
|
|
76
|
+
overflow-wrap: anywhere;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.formError {
|
|
80
|
+
margin: 0;
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
line-height: 1.5;
|
|
83
|
+
color: var(--dsw-alias-state-error-primary);
|
|
84
|
+
overflow-wrap: anywhere;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* --- run-phase chips ------------------------------------------------------- */
|
|
88
|
+
|
|
89
|
+
.statePill,
|
|
90
|
+
.badge {
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: 6px;
|
|
94
|
+
flex: none;
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
height: var(--ssh-row);
|
|
97
|
+
padding: 0 8px;
|
|
98
|
+
font-size: 12px;
|
|
99
|
+
line-height: 1;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
border-radius: 999px;
|
|
102
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
103
|
+
color: var(--dsw-alias-label-secondary);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.badge {
|
|
107
|
+
border: 1px solid transparent;
|
|
108
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.badgeDot {
|
|
112
|
+
width: 6px;
|
|
113
|
+
height: 6px;
|
|
114
|
+
flex: none;
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
border: 1.5px solid var(--ssh-run-tone, currentColor);
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* The alias names where the card runs, so it is read first and gives way to the
|
|
121
|
+
state when space runs out: the chip truncates the host, never the phase. */
|
|
122
|
+
.badgeHost {
|
|
123
|
+
display: inline-block;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
text-overflow: ellipsis;
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
max-width: 9ch;
|
|
128
|
+
min-width: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.badgeSeparator {
|
|
132
|
+
white-space: pre;
|
|
133
|
+
color: var(--dsw-alias-label-secondary);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.badgeState {
|
|
137
|
+
flex: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* One slot per phase, painted on the dot and the pill's edge. The words carry
|
|
141
|
+
the state in the primary label slot, so the reading never depends on hue —
|
|
142
|
+
and the hue stays where the 3:1 non-text threshold applies. Hollow = waiting,
|
|
143
|
+
filled = settled or live. */
|
|
144
|
+
.statePill {
|
|
145
|
+
border-color: var(--ssh-run-tone, var(--dsw-alias-border-l2));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-run='idle'] { --ssh-run-tone: var(--dsw-alias-label-tertiary); }
|
|
149
|
+
[data-run='queued'] { --ssh-run-tone: var(--dsw-alias-state-business-primary); }
|
|
150
|
+
[data-run='running'] { --ssh-run-tone: var(--dsw-alias-state-business-primary); }
|
|
151
|
+
[data-run='succeeded'] { --ssh-run-tone: var(--dsw-alias-state-success-primary); }
|
|
152
|
+
[data-run='failed'] { --ssh-run-tone: var(--dsw-alias-state-error-primary); }
|
|
153
|
+
[data-run='cancelled'] { --ssh-run-tone: var(--dsw-alias-state-idle-primary); }
|
|
154
|
+
[data-run='lost'] { --ssh-run-tone: var(--dsw-alias-state-warn-primary); }
|
|
155
|
+
|
|
156
|
+
[data-run='running'] .badgeDot,
|
|
157
|
+
[data-run='succeeded'] .badgeDot,
|
|
158
|
+
[data-run='failed'] .badgeDot,
|
|
159
|
+
[data-run='cancelled'] .badgeDot,
|
|
160
|
+
[data-run='lost'] .badgeDot {
|
|
161
|
+
background: var(--ssh-run-tone, currentColor);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* A live run breathes once a second; the outline stands in for travel when the
|
|
165
|
+
reader asked for less motion. */
|
|
166
|
+
[data-run='running'] .badgeDot {
|
|
167
|
+
animation: ssh-live 2s var(--ssh-ease, ease-in-out) infinite;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@keyframes ssh-live {
|
|
171
|
+
0%, 100% { opacity: 1; }
|
|
172
|
+
50% { opacity: 0.35; }
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@media (prefers-reduced-motion: reduce) {
|
|
176
|
+
[data-run='running'] .badgeDot {
|
|
177
|
+
animation: none;
|
|
178
|
+
outline: 1.5px solid var(--ssh-run-tone, currentColor);
|
|
179
|
+
outline-offset: 1px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.primaryButton,
|
|
183
|
+
.ghostButton,
|
|
184
|
+
.linkButton,
|
|
185
|
+
.input,
|
|
186
|
+
.select,
|
|
187
|
+
.followUp,
|
|
188
|
+
.segment span {
|
|
189
|
+
transition: none;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* --- the log surface ------------------------------------------------------- */
|
|
194
|
+
|
|
195
|
+
.log {
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-direction: column;
|
|
198
|
+
gap: 6px;
|
|
199
|
+
min-width: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* `box-sizing: content-box` with zero vertical padding ensures `clientHeight`
|
|
203
|
+
matches `LOG_VIEWPORT_HEIGHT` (216px) exactly so virtual scroll `maxScroll`
|
|
204
|
+
never clips the final row. */
|
|
205
|
+
.logScroller {
|
|
206
|
+
box-sizing: content-box;
|
|
207
|
+
overflow: auto;
|
|
208
|
+
padding: 0;
|
|
209
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
210
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
211
|
+
border-radius: var(--ssh-radius);
|
|
212
|
+
font-family: var(--dsw-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
|
213
|
+
font-size: 12px;
|
|
214
|
+
line-height: 18px;
|
|
215
|
+
color: var(--dsw-alias-label-primary);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.logScroller:focus-visible {
|
|
219
|
+
outline: 2px solid var(--dsw-alias-state-business-primary);
|
|
220
|
+
outline-offset: 2px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.logSurface {
|
|
224
|
+
position: relative;
|
|
225
|
+
min-width: 100%;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.logBlock {
|
|
229
|
+
position: absolute;
|
|
230
|
+
top: 0;
|
|
231
|
+
left: 0;
|
|
232
|
+
right: 0;
|
|
233
|
+
will-change: transform;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.logRow {
|
|
237
|
+
padding: 0 10px;
|
|
238
|
+
white-space: pre;
|
|
239
|
+
overflow: visible;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.logEmpty {
|
|
243
|
+
margin: 0;
|
|
244
|
+
font-size: 12px;
|
|
245
|
+
line-height: 1.5;
|
|
246
|
+
color: var(--dsw-alias-label-secondary);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.logNotices {
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: 8px;
|
|
253
|
+
flex-wrap: wrap;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.logNotice {
|
|
257
|
+
margin: 0;
|
|
258
|
+
font-size: 12px;
|
|
259
|
+
color: var(--dsw-alias-label-secondary);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* --- controls -------------------------------------------------------------- */
|
|
263
|
+
|
|
264
|
+
.primaryButton,
|
|
265
|
+
.ghostButton,
|
|
266
|
+
.linkButton {
|
|
267
|
+
display: inline-flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
justify-content: center;
|
|
270
|
+
gap: 6px;
|
|
271
|
+
box-sizing: border-box;
|
|
272
|
+
font-family: inherit;
|
|
273
|
+
cursor: pointer;
|
|
274
|
+
white-space: nowrap;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.primaryButton,
|
|
278
|
+
.ghostButton {
|
|
279
|
+
height: var(--ssh-control-h);
|
|
280
|
+
padding: 0 12px;
|
|
281
|
+
font-size: 13px;
|
|
282
|
+
border-radius: var(--ssh-radius);
|
|
283
|
+
transition: background-color 120ms var(--ssh-ease), border-color 120ms var(--ssh-ease);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.primaryButton {
|
|
287
|
+
color: var(--dsw-alias-label-primary-foreground);
|
|
288
|
+
background: var(--dsw-alias-button-primary-fill);
|
|
289
|
+
border: 1px solid transparent;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.ghostButton {
|
|
293
|
+
color: var(--dsw-alias-label-primary);
|
|
294
|
+
background: transparent;
|
|
295
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.primaryButton:hover:not(:disabled) {
|
|
299
|
+
background: var(--dsw-alias-button-primary-hover);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.ghostButton:hover:not(:disabled) {
|
|
303
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* A text action inside a heading row or a notice line: it keeps its words and
|
|
307
|
+
takes a hit area around them rather than a box. */
|
|
308
|
+
.linkButton {
|
|
309
|
+
margin-left: auto;
|
|
310
|
+
padding: 4px 6px;
|
|
311
|
+
font-size: 12px;
|
|
312
|
+
color: var(--dsw-alias-label-secondary);
|
|
313
|
+
background: transparent;
|
|
314
|
+
border: 0;
|
|
315
|
+
border-radius: 6px;
|
|
316
|
+
transition: background-color 120ms var(--ssh-ease);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.logNotices .linkButton {
|
|
320
|
+
margin-left: 0;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.linkButton:hover:not(:disabled) {
|
|
324
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.primaryButton:disabled,
|
|
328
|
+
.ghostButton:disabled,
|
|
329
|
+
.linkButton:disabled {
|
|
330
|
+
opacity: 0.5;
|
|
331
|
+
cursor: not-allowed;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.primaryButton:focus-visible,
|
|
335
|
+
.ghostButton:focus-visible,
|
|
336
|
+
.linkButton:focus-visible,
|
|
337
|
+
.queuedChip:focus-visible,
|
|
338
|
+
.input:focus-visible,
|
|
339
|
+
.select:focus-visible,
|
|
340
|
+
.followUp:focus-visible,
|
|
341
|
+
.segment input:focus-visible + span {
|
|
342
|
+
outline: 2px solid var(--dsw-alias-state-business-primary);
|
|
343
|
+
outline-offset: 2px;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* --- the target form ------------------------------------------------------- */
|
|
347
|
+
|
|
348
|
+
.form {
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
gap: 8px;
|
|
352
|
+
min-width: 0;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* The field set itself: the detail seat's form and the create dialog's picker
|
|
356
|
+
render these same fields, so the rhythm belongs here rather than to either
|
|
357
|
+
frame. */
|
|
358
|
+
.fields {
|
|
359
|
+
display: flex;
|
|
360
|
+
flex-direction: column;
|
|
361
|
+
gap: 8px;
|
|
362
|
+
min-width: 0;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.field {
|
|
366
|
+
display: flex;
|
|
367
|
+
flex-direction: column;
|
|
368
|
+
gap: 4px;
|
|
369
|
+
margin: 0;
|
|
370
|
+
padding: 0;
|
|
371
|
+
border: 0;
|
|
372
|
+
min-width: 0;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.fieldLabel {
|
|
376
|
+
padding: 0;
|
|
377
|
+
font-size: 12px;
|
|
378
|
+
font-weight: 500;
|
|
379
|
+
line-height: 1.4;
|
|
380
|
+
color: var(--dsw-alias-label-secondary);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.fieldHint {
|
|
384
|
+
margin: 0;
|
|
385
|
+
font-size: 12px;
|
|
386
|
+
line-height: 1.45;
|
|
387
|
+
color: var(--dsw-alias-label-secondary);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.fieldError {
|
|
391
|
+
margin: 0;
|
|
392
|
+
font-size: 12px;
|
|
393
|
+
line-height: 1.45;
|
|
394
|
+
color: var(--dsw-alias-state-error-primary);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.input,
|
|
398
|
+
.select,
|
|
399
|
+
.followUp {
|
|
400
|
+
box-sizing: border-box;
|
|
401
|
+
width: 100%;
|
|
402
|
+
min-width: 0;
|
|
403
|
+
padding: 6px 10px;
|
|
404
|
+
font-size: 13px;
|
|
405
|
+
font-family: inherit;
|
|
406
|
+
color: var(--dsw-alias-label-primary);
|
|
407
|
+
background: var(--dsw-specific-input-major);
|
|
408
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
409
|
+
border-radius: var(--ssh-radius);
|
|
410
|
+
outline: none;
|
|
411
|
+
transition: border-color 120ms var(--ssh-ease);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.select {
|
|
415
|
+
height: var(--ssh-control-h);
|
|
416
|
+
padding: 0 10px;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.followUp {
|
|
420
|
+
min-height: calc(var(--ssh-control-h) + 8px);
|
|
421
|
+
resize: vertical;
|
|
422
|
+
line-height: 1.5;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.input[aria-invalid='true'],
|
|
426
|
+
.select[aria-invalid='true'],
|
|
427
|
+
.followUp[aria-invalid='true'] {
|
|
428
|
+
border-color: var(--dsw-alias-state-error-primary);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.input:disabled,
|
|
432
|
+
.select:disabled,
|
|
433
|
+
.followUp:disabled {
|
|
434
|
+
opacity: 0.6;
|
|
435
|
+
cursor: not-allowed;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.input::placeholder,
|
|
439
|
+
.followUp::placeholder {
|
|
440
|
+
color: var(--dsw-alias-label-tertiary);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* Two or three exclusive options, one radio each: the native control keeps the
|
|
444
|
+
arrow-key walk and the form semantics, and the label box is the target. */
|
|
445
|
+
.segments {
|
|
446
|
+
display: flex;
|
|
447
|
+
gap: 6px;
|
|
448
|
+
flex-wrap: wrap;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.segment {
|
|
452
|
+
display: inline-flex;
|
|
453
|
+
align-items: center;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.segment input {
|
|
457
|
+
position: absolute;
|
|
458
|
+
width: 1px;
|
|
459
|
+
height: 1px;
|
|
460
|
+
margin: -1px;
|
|
461
|
+
padding: 0;
|
|
462
|
+
border: 0;
|
|
463
|
+
overflow: hidden;
|
|
464
|
+
clip-path: inset(50%);
|
|
465
|
+
white-space: nowrap;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.segment span {
|
|
469
|
+
display: inline-flex;
|
|
470
|
+
align-items: center;
|
|
471
|
+
box-sizing: border-box;
|
|
472
|
+
height: var(--ssh-control-h);
|
|
473
|
+
padding: 0 12px;
|
|
474
|
+
font-size: 13px;
|
|
475
|
+
color: var(--dsw-alias-label-primary);
|
|
476
|
+
background: transparent;
|
|
477
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
478
|
+
border-radius: var(--ssh-radius);
|
|
479
|
+
cursor: pointer;
|
|
480
|
+
transition: background-color 120ms var(--ssh-ease), border-color 120ms var(--ssh-ease);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.segment:not([data-disabled]):hover span {
|
|
484
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.segment input:checked + span {
|
|
488
|
+
color: var(--dsw-alias-label-primary);
|
|
489
|
+
font-weight: 600;
|
|
490
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
491
|
+
border-color: var(--dsw-alias-label-secondary);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.segment input:disabled + span {
|
|
495
|
+
opacity: 0.6;
|
|
496
|
+
cursor: not-allowed;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.field[data-invalid] .fieldLabel {
|
|
500
|
+
color: var(--dsw-alias-state-error-primary);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.actions {
|
|
504
|
+
display: flex;
|
|
505
|
+
flex-direction: column;
|
|
506
|
+
align-items: stretch;
|
|
507
|
+
gap: 8px;
|
|
508
|
+
min-width: 0;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.actionRow {
|
|
512
|
+
display: flex;
|
|
513
|
+
align-items: center;
|
|
514
|
+
gap: 8px;
|
|
515
|
+
flex-wrap: wrap;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/* A follow-up accepted while the turn is still running: the chip says when it
|
|
519
|
+
will be delivered, which the send button alone cannot. */
|
|
520
|
+
.queuedChip {
|
|
521
|
+
display: inline-flex;
|
|
522
|
+
align-items: center;
|
|
523
|
+
box-sizing: border-box;
|
|
524
|
+
height: var(--ssh-row);
|
|
525
|
+
padding: 0 8px;
|
|
526
|
+
font-size: 12px;
|
|
527
|
+
line-height: 1;
|
|
528
|
+
color: var(--dsw-alias-state-business-primary);
|
|
529
|
+
border: 1px dashed var(--dsw-alias-state-business-primary);
|
|
530
|
+
border-radius: 999px;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.actionRow .primaryButton {
|
|
534
|
+
margin-left: auto;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/* --- the create dialog's picker -------------------------------------------- */
|
|
538
|
+
|
|
539
|
+
/* One row at rest and the shared field set when expanded: the dialog's default
|
|
540
|
+
is a card with no remote target, so the collapsed state is what most cards
|
|
541
|
+
cost. */
|
|
542
|
+
.compose {
|
|
543
|
+
display: flex;
|
|
544
|
+
flex-direction: column;
|
|
545
|
+
gap: 8px;
|
|
546
|
+
min-width: 0;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* The switch owns the rows under it, so its label box is the hit area and it
|
|
550
|
+
carries the same rhythm as the board's own switches in this region. */
|
|
551
|
+
.composeToggle {
|
|
552
|
+
display: flex;
|
|
553
|
+
align-items: center;
|
|
554
|
+
gap: 8px;
|
|
555
|
+
font-size: 13px;
|
|
556
|
+
line-height: 1.5;
|
|
557
|
+
color: var(--dsw-alias-label-primary);
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
user-select: none;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.composeToggle input {
|
|
563
|
+
flex: none;
|
|
564
|
+
margin: 0;
|
|
565
|
+
accent-color: var(--dsw-alias-state-business-primary);
|
|
566
|
+
cursor: pointer;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.composeToggle input:focus-visible {
|
|
570
|
+
outline: 2px solid var(--dsw-alias-state-business-primary);
|
|
571
|
+
outline-offset: 2px;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
@media (max-width: 768px) {
|
|
575
|
+
.section,
|
|
576
|
+
.compose {
|
|
577
|
+
--ssh-control-h: 44px;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.composeToggle,
|
|
581
|
+
.linkButton {
|
|
582
|
+
min-height: 44px;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.input,
|
|
586
|
+
.select,
|
|
587
|
+
.followUp {
|
|
588
|
+
font-size: 16px;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.composeFields {
|
|
593
|
+
display: flex;
|
|
594
|
+
flex-direction: column;
|
|
595
|
+
gap: 8px;
|
|
596
|
+
min-width: 0;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/* --- the settings topic ---------------------------------------------------- */
|
|
600
|
+
|
|
601
|
+
/* A field whose label and control already carry the meaning: the card's field
|
|
602
|
+
row still renders its (now empty) hint paragraph, and this keeps it out of
|
|
603
|
+
the layout instead of leaving a gap under the control. */
|
|
604
|
+
.quietField {
|
|
605
|
+
display: contents;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.quietField p:empty {
|
|
609
|
+
display: none;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.sectionHint {
|
|
613
|
+
margin: 0;
|
|
614
|
+
font-size: 12px;
|
|
615
|
+
line-height: 1.5;
|
|
616
|
+
color: var(--dsw-alias-label-secondary);
|
|
617
|
+
}
|