clay-server 5.0.0-beta.1 → 5.0.0-beta.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/lib/daemon.js +9 -0
- package/lib/new-session-default.js +45 -0
- package/lib/project-connection.js +4 -2
- package/lib/project-session-creation.js +107 -0
- package/lib/project-session-delete.js +21 -3
- package/lib/project-session-document.js +9 -3
- package/lib/project-session-folder-delete.js +169 -0
- package/lib/project-session-folders.js +272 -0
- package/lib/project-sessions.js +46 -26
- package/lib/project.js +2 -0
- package/lib/public/app.js +10 -0
- package/lib/public/css/filebrowser.css +3 -3
- package/lib/public/css/mates.css +1 -1
- package/lib/public/css/mobile-nav.css +0 -128
- package/lib/public/css/session-folders.css +383 -0
- package/lib/public/css/sidebar.css +28 -545
- package/lib/public/index.html +3 -21
- package/lib/public/modules/app-favicon.js +5 -4
- package/lib/public/modules/app-messages.js +13 -0
- package/lib/public/modules/input.js +3 -0
- package/lib/public/modules/project-switcher.js +4 -4
- package/lib/public/modules/session-create-form.js +428 -0
- package/lib/public/modules/session-create.js +338 -0
- package/lib/public/modules/session-folder-collapse.js +192 -0
- package/lib/public/modules/session-folder-context.js +215 -0
- package/lib/public/modules/session-folder-delete.js +313 -0
- package/lib/public/modules/session-folder-dialogs.js +173 -0
- package/lib/public/modules/session-folder-dnd.js +214 -0
- package/lib/public/modules/session-folder-draft.js +184 -0
- package/lib/public/modules/session-folder-layout.js +133 -0
- package/lib/public/modules/session-folder-toolbar.js +185 -0
- package/lib/public/modules/session-folder-view-menu.js +187 -0
- package/lib/public/modules/session-folders.js +95 -0
- package/lib/public/modules/session-list-search.js +108 -0
- package/lib/public/modules/session-presence-ui.js +44 -0
- package/lib/public/modules/sidebar-mobile.js +38 -182
- package/lib/public/modules/sidebar-session-folders-ui.js +382 -0
- package/lib/public/modules/sidebar-sessions.js +141 -718
- package/lib/public/modules/sidebar.js +10 -2
- package/lib/public/modules/terminal.js +2 -2
- package/lib/public/modules/tool-palette.js +37 -219
- package/lib/public/style.css +1 -0
- package/lib/sdk-bridge.js +21 -14
- package/lib/server.js +4 -0
- package/lib/session-folders.js +414 -0
- package/lib/sessions.js +7 -5
- package/lib/users-session-folder-preferences.js +69 -0
- package/lib/users.js +6 -0
- package/lib/ws-schema.js +11 -0
- package/lib/yoke/adapters/codex.js +2 -2
- package/package.json +1 -1
- package/lib/public/modules/session-creation-cta.js +0 -46
- package/lib/public/modules/tool-palette-overlays.js +0 -159
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/* Session folders: sections, toolbar, dialogs. Reuses the sidebar tokens and
|
|
2
|
+
the compact type scale of .session-group-header so folders read as part of
|
|
3
|
+
the existing list rather than a new surface. */
|
|
4
|
+
|
|
5
|
+
.session-folder { margin: 0 0 2px; border-radius: 10px; transition: background 0.15s ease, box-shadow 0.15s ease; }
|
|
6
|
+
|
|
7
|
+
.session-folder-header { -webkit-touch-callout: none; position: relative; display: flex; align-items: center; min-height: 26px; margin: 6px 0 1px; }
|
|
8
|
+
|
|
9
|
+
.session-folder-toggle {
|
|
10
|
+
flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
|
|
11
|
+
padding: 3px 6px 3px 2px; border: 0; border-radius: 8px; background: transparent;
|
|
12
|
+
color: var(--text-muted); font: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px;
|
|
13
|
+
text-align: left; cursor: pointer; transition: color 0.15s ease, background 0.15s ease;
|
|
14
|
+
}
|
|
15
|
+
.session-folder-toggle:hover { color: var(--text); background: rgba(var(--overlay-rgb), 0.04); }
|
|
16
|
+
.session-folder-toggle:focus-visible,
|
|
17
|
+
.session-folder-tool:focus-visible,
|
|
18
|
+
.session-folder-choice:focus-visible, .session-folder-radio:focus-visible {
|
|
19
|
+
outline: 2px solid var(--accent); outline-offset: 1px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.session-folder-chevron, .session-folder-icon { display: inline-flex; flex: none; }
|
|
23
|
+
.session-folder-chevron svg, .session-folder-icon svg { width: 12px; height: 12px; display: block; }
|
|
24
|
+
.session-folder-chevron { transition: transform 0.15s ease; }
|
|
25
|
+
.session-folder-toggle[aria-expanded="true"] .session-folder-chevron { transform: rotate(90deg); }
|
|
26
|
+
.session-folder-favorites .session-folder-icon { color: var(--accent); }
|
|
27
|
+
.session-folder-label { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
28
|
+
.session-folder-count {
|
|
29
|
+
flex: none; min-width: 16px; padding: 0 5px; height: 15px; line-height: 15px; border-radius: 999px;
|
|
30
|
+
background: rgba(var(--overlay-rgb), 0.05); color: var(--text-dimmer); font-size: 9.5px; font-weight: 600;
|
|
31
|
+
text-align: center; font-variant-numeric: tabular-nums;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.session-folder-body[hidden] { display: none; }
|
|
35
|
+
.session-folder-body { padding-left: 4px; border-left: 1px solid var(--border-subtle, var(--border)); margin-left: 7px; }
|
|
36
|
+
.session-folder-body.folder-collapse-animating { overflow: hidden; will-change: height; }
|
|
37
|
+
.session-folder-flat { margin-top: 4px; }
|
|
38
|
+
.session-folder-flat .session-folder-body { border: 0; }
|
|
39
|
+
.session-folder-empty { padding: 5px 4px 6px; font-size: 10.5px; line-height: 1.4; color: var(--text-muted); opacity: 0.78; }
|
|
40
|
+
|
|
41
|
+
.session-folder-unit { position: relative; border-radius: 8px; }
|
|
42
|
+
.session-folder-unit.dragging, .session-folder-header.dragging { opacity: 0.45; }
|
|
43
|
+
.session-folder-unit.drag-over-above::before, .session-folder-unit.drag-over-below::after,
|
|
44
|
+
.session-folder-header.drag-over-above::before, .session-folder-header.drag-over-below::after {
|
|
45
|
+
content: ""; position: absolute; left: 4px; right: 4px; height: 2px; border-radius: 2px; background: var(--accent); z-index: 2;
|
|
46
|
+
}
|
|
47
|
+
.session-folder-unit.drag-over-above::before, .session-folder-header.drag-over-above::before { top: -1px; }
|
|
48
|
+
.session-folder-unit.drag-over-below::after, .session-folder-header.drag-over-below::after { bottom: -1px; }
|
|
49
|
+
.session-folder.session-folder-drop, .session-folder-flat.session-folder-drop {
|
|
50
|
+
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
|
51
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.session-folder-toolbar { display: flex; gap: 4px; margin: 6px 4px 0; }
|
|
55
|
+
.session-list-sticky-top .session-folder-toolbar { margin-top: 0; }
|
|
56
|
+
.session-folder-tool[aria-expanded="true"] { color: var(--text); background: rgba(var(--overlay-rgb), 0.1); }
|
|
57
|
+
|
|
58
|
+
/* Toolbar: fixed height so search replaces the controls in exactly the same footprint. */
|
|
59
|
+
.session-folder-toolbar { height: 28px; align-items: center; }
|
|
60
|
+
.session-folder-toolbar.is-mobile { height: 36px; }
|
|
61
|
+
.session-folder-tool-icon { margin-left: auto; width: 28px; padding: 0; justify-content: center; }
|
|
62
|
+
.session-folder-toolbar.is-mobile .session-folder-tool-icon { width: 40px; }
|
|
63
|
+
.session-folder-toolbar.is-searching { gap: 4px; }
|
|
64
|
+
.session-search-close { flex: none; width: 28px; padding: 0; justify-content: center; }
|
|
65
|
+
.session-folder-toolbar.is-mobile .session-search-close { width: 40px; }
|
|
66
|
+
.session-search-field {
|
|
67
|
+
position: relative; flex: 1 1 auto; min-width: 0; height: 100%; display: flex; align-items: center;
|
|
68
|
+
}
|
|
69
|
+
.session-search-input {
|
|
70
|
+
width: 100%; height: 100%; box-sizing: border-box; padding: 0 56px 0 10px; border-radius: 999px;
|
|
71
|
+
border: 1px solid var(--border); background: var(--input-bg, var(--bg, transparent)); color: var(--text);
|
|
72
|
+
font: inherit; font-size: 12px; outline: none; transition: border-color 0.15s;
|
|
73
|
+
}
|
|
74
|
+
.session-folder-toolbar.is-mobile .session-search-input { font-size: 16px; padding-right: 64px; }
|
|
75
|
+
.session-search-input:focus { border-color: var(--accent); }
|
|
76
|
+
.session-search-input::placeholder { color: var(--text-dimmer); }
|
|
77
|
+
.session-search-count {
|
|
78
|
+
position: absolute; right: 30px; top: 50%; transform: translateY(-50%); min-width: 16px; padding: 0 5px; height: 15px; line-height: 15px;
|
|
79
|
+
border-radius: 999px; background: rgba(var(--overlay-rgb), 0.08); color: var(--text-dimmer); font-size: 9.5px; font-weight: 600; text-align: center;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
}
|
|
82
|
+
.session-search-count:empty { display: none; }
|
|
83
|
+
.session-search-clear {
|
|
84
|
+
position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
|
|
85
|
+
border: 0; border-radius: 999px; background: transparent; color: var(--text-dimmer); cursor: pointer; padding: 0;
|
|
86
|
+
}
|
|
87
|
+
.session-search-clear[hidden] { display: none; }
|
|
88
|
+
.session-search-clear svg { width: 13px; height: 13px; display: block; }
|
|
89
|
+
.session-search-clear:hover { color: var(--text); background: rgba(var(--overlay-rgb), 0.1); }
|
|
90
|
+
.session-search-clear:focus-visible, .session-search-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
91
|
+
.session-folder-toolbar.is-mobile .session-search-clear { width: 32px; height: 32px; }
|
|
92
|
+
.session-folder-toolbar.is-mobile .session-search-count { right: 40px; }
|
|
93
|
+
|
|
94
|
+
/* New folder draft: a temporary folder header in the list, styled like the real ones. */
|
|
95
|
+
.session-folder-draft .session-folder-header { margin-top: 6px; }
|
|
96
|
+
.session-folder-draft-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 1px 6px 1px 2px; color: var(--text-muted); }
|
|
97
|
+
.session-folder-draft-spacer { visibility: hidden; width: 12px; }
|
|
98
|
+
.session-folder-draft.is-mobile .session-folder-draft-spacer { width: 15px; }
|
|
99
|
+
.session-folder-draft .session-folder-icon { color: var(--accent); }
|
|
100
|
+
.session-folder-create-input {
|
|
101
|
+
flex: 1; min-width: 0; height: 22px; box-sizing: border-box; padding: 0 2px; border: 0; border-bottom: 1px solid var(--accent);
|
|
102
|
+
border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px; outline: none;
|
|
103
|
+
}
|
|
104
|
+
.session-folder-create-input::placeholder { color: var(--text-dimmer); font-weight: 500; opacity: 0.7; }
|
|
105
|
+
.session-folder-create-input:focus { border-bottom-width: 2px; }
|
|
106
|
+
.session-folder-create-input[aria-invalid="true"] { border-bottom-color: var(--error, #dc2626); }
|
|
107
|
+
.session-folder-create-input[readonly] { opacity: 0.7; }
|
|
108
|
+
.session-folder-create-actions { display: flex; gap: 2px; flex: none; margin-right: 2px; }
|
|
109
|
+
.session-folder-draft.is-mobile .session-folder-create-actions { margin-right: 4px; }
|
|
110
|
+
.session-folder-create-btn {
|
|
111
|
+
width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px;
|
|
112
|
+
background: transparent; color: var(--text-dimmer); cursor: pointer;
|
|
113
|
+
}
|
|
114
|
+
.session-folder-create-btn svg { width: 14px; height: 14px; display: block; }
|
|
115
|
+
.session-folder-create-btn:hover:not(:disabled) { color: var(--text); background: rgba(var(--overlay-rgb), 0.1); }
|
|
116
|
+
.session-folder-create-btn.primary { color: var(--accent); }
|
|
117
|
+
.session-folder-create-btn:disabled { opacity: 0.5; cursor: default; }
|
|
118
|
+
.session-folder-create-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
119
|
+
.session-folder-create-error { margin: 0 0 2px 40px; font-size: 11px; line-height: 1.3; color: var(--error, #dc2626); }
|
|
120
|
+
.session-folder-create-error:empty { display: none; }
|
|
121
|
+
.session-folder-draft.is-mobile .session-folder-header { min-height: 40px; margin-top: 8px; }
|
|
122
|
+
.session-folder-draft.is-mobile .session-folder-draft-main { font-size: 12px; padding: 0 8px; }
|
|
123
|
+
.session-folder-draft.is-mobile .session-folder-create-input { height: 36px; font-size: 16px; }
|
|
124
|
+
.session-folder-draft.is-mobile .session-folder-create-btn { width: 36px; height: 36px; }
|
|
125
|
+
.session-folder-draft.is-mobile .session-folder-create-btn svg { width: 17px; height: 17px; }
|
|
126
|
+
.session-folder-draft.is-mobile .session-folder-create-error { font-size: 12px; margin-left: 44px; }
|
|
127
|
+
|
|
128
|
+
/* View: compact non-modal dropdown anchored under its button. */
|
|
129
|
+
.session-folder-viewmenu {
|
|
130
|
+
position: fixed; z-index: 10000; box-sizing: border-box; overflow-y: auto; padding: 4px;
|
|
131
|
+
background: var(--sidebar-bg); border: 1px solid var(--border); border-radius: 10px;
|
|
132
|
+
box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.4); display: flex; flex-direction: column; gap: 4px;
|
|
133
|
+
}
|
|
134
|
+
.session-folder-viewmenu .session-folder-radio { min-height: 26px; padding: 0 6px; gap: 8px; font-size: 12.5px; border-radius: 6px; }
|
|
135
|
+
.session-folder-viewmenu .session-folder-radio-dot { width: 12px; height: 12px; }
|
|
136
|
+
.session-folder-viewmenu .session-folder-radio-legend { margin: 2px 0 1px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; }
|
|
137
|
+
.session-folder-viewmenu .session-folder-view-note { padding: 2px 6px 4px; font-size: 11px; line-height: 1.35; }
|
|
138
|
+
.session-folder-viewmenu .session-folder-radio-group.segmented {
|
|
139
|
+
display: flex; gap: 2px; padding: 2px; margin-top: 2px; border-radius: 8px; background: rgba(var(--overlay-rgb), 0.05);
|
|
140
|
+
}
|
|
141
|
+
.session-folder-viewmenu .segmented .session-folder-radio { flex: 1; justify-content: center; min-width: 0; padding: 0 4px; text-align: center; font-size: 12px; }
|
|
142
|
+
.session-folder-viewmenu .segmented .session-folder-radio.selected { background: var(--sidebar-bg); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.25); }
|
|
143
|
+
/* Touch: keep full-size targets on phones and coarse pointers. */
|
|
144
|
+
.session-folder-viewmenu.is-mobile { padding: 6px; }
|
|
145
|
+
.session-folder-viewmenu.is-mobile .session-folder-radio { min-height: 40px; font-size: 14px; }
|
|
146
|
+
.session-folder-viewmenu.is-mobile .session-folder-radio-dot { width: 14px; height: 14px; }
|
|
147
|
+
@media (pointer: coarse) {
|
|
148
|
+
.session-folder-viewmenu .session-folder-radio { min-height: 40px; font-size: 14px; }
|
|
149
|
+
}
|
|
150
|
+
.session-folder-tool {
|
|
151
|
+
display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 0; border-radius: 999px;
|
|
152
|
+
background: rgba(var(--overlay-rgb), 0.04); color: var(--text-dimmer); font: inherit; font-size: 10.5px; font-weight: 600;
|
|
153
|
+
cursor: pointer; transition: color 0.15s ease, background 0.15s ease;
|
|
154
|
+
}
|
|
155
|
+
.session-folder-tool svg { width: 12px; height: 12px; display: block; }
|
|
156
|
+
.session-folder-tool:hover { color: var(--text); background: rgba(var(--overlay-rgb), 0.08); }
|
|
157
|
+
|
|
158
|
+
/* The Favorites star: unfilled and revealed on hover or focus, filled and
|
|
159
|
+
always visible once the session is a favorite. */
|
|
160
|
+
.session-folder-star-btn {
|
|
161
|
+
position: absolute; right: 52px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; z-index: 1;
|
|
162
|
+
display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent;
|
|
163
|
+
color: var(--text-dimmer); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
|
|
164
|
+
}
|
|
165
|
+
.session-folder-star-btn svg, .mobile-session-star svg { width: 12px; height: 12px; display: block; }
|
|
166
|
+
.session-item:hover .session-folder-star-btn, .session-item:focus-within .session-folder-star-btn { opacity: 0.82; pointer-events: auto; }
|
|
167
|
+
.session-folder-star-btn:hover { opacity: 1; color: var(--text); background: rgba(var(--overlay-rgb), 0.08); }
|
|
168
|
+
.session-folder-star-btn.is-favorite, .mobile-session-star.is-favorite { color: var(--accent); opacity: 1; pointer-events: auto; }
|
|
169
|
+
.session-folder-star-btn.is-favorite svg, .mobile-session-star.is-favorite svg { fill: currentColor; }
|
|
170
|
+
.session-folder-star-btn:focus-visible, .mobile-session-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
171
|
+
|
|
172
|
+
/* Desktop row actions are a real flex column in the row, not three unrelated
|
|
173
|
+
offsets over the age and linked-work metadata. Keeping the full cluster's
|
|
174
|
+
footprint at rest also prevents the title from jumping when actions appear. */
|
|
175
|
+
.session-item .session-row-actions {
|
|
176
|
+
flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 4px;
|
|
177
|
+
}
|
|
178
|
+
.session-item .session-row-actions > .session-folder-star-btn,
|
|
179
|
+
.session-item .session-row-actions > .session-close-btn {
|
|
180
|
+
position: static; flex: 0 0 18px; transform: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Mobile: touch-sized targets, always-visible actions, no drag affordances. */
|
|
184
|
+
.session-folder.is-mobile .session-folder-header { min-height: 40px; margin-top: 8px; }
|
|
185
|
+
.session-folder.is-mobile .session-folder-toggle { min-height: 40px; padding: 6px 8px; font-size: 12px; }
|
|
186
|
+
.session-folder.is-mobile .session-folder-chevron svg, .session-folder.is-mobile .session-folder-icon svg { width: 15px; height: 15px; }
|
|
187
|
+
.session-folder.is-mobile .session-folder-count { font-size: 11px; height: 18px; line-height: 18px; }
|
|
188
|
+
.session-folder.is-mobile .session-folder-body { margin-left: 10px; padding-left: 6px; }
|
|
189
|
+
.session-folder.is-mobile .session-folder-empty { font-size: 12px; padding: 8px 6px; }
|
|
190
|
+
.session-folder-toolbar.is-mobile { margin: 6px 4px 0; }
|
|
191
|
+
.session-folder-toolbar.is-mobile .session-folder-tool { height: 36px; padding: 0 14px; font-size: 13px; }
|
|
192
|
+
.session-folder-toolbar.is-mobile .session-folder-tool svg { width: 15px; height: 15px; }
|
|
193
|
+
.mobile-session-star {
|
|
194
|
+
flex: none; width: 40px; height: 40px; margin: -8px 0 -8px 0; display: flex; align-items: center; justify-content: center;
|
|
195
|
+
border: 0; border-radius: 10px; background: transparent; color: var(--text-dimmer); -webkit-tap-highlight-color: transparent;
|
|
196
|
+
}
|
|
197
|
+
.mobile-session-star svg { width: 17px; height: 17px; }
|
|
198
|
+
.mobile-session-star:active { background: rgba(var(--overlay-rgb), 0.08); }
|
|
199
|
+
|
|
200
|
+
/* Dialogs */
|
|
201
|
+
.session-folder-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
|
|
202
|
+
.session-folder-modal .confirm-backdrop { position: absolute; inset: 0; }
|
|
203
|
+
.session-folder-dialog { position: relative; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
|
|
204
|
+
.session-folder-dialog-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
|
|
205
|
+
.session-folder-input {
|
|
206
|
+
width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border);
|
|
207
|
+
background: var(--bg, transparent); color: var(--text); font: inherit; font-size: 14px;
|
|
208
|
+
}
|
|
209
|
+
.session-folder-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
|
|
210
|
+
.session-folder-input-hint { min-height: 16px; margin-top: 6px; font-size: 11.5px; color: var(--error, #dc2626); }
|
|
211
|
+
.session-folder-picker { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; max-height: 50vh; overflow-y: auto; }
|
|
212
|
+
.session-folder-choice {
|
|
213
|
+
display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px;
|
|
214
|
+
background: transparent; color: var(--text-secondary, var(--text)); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
|
|
215
|
+
}
|
|
216
|
+
.session-folder-choice svg { width: 16px; height: 16px; flex: none; display: block; }
|
|
217
|
+
.session-folder-choice-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
218
|
+
.session-folder-choice:hover { background: rgba(var(--overlay-rgb), 0.06); }
|
|
219
|
+
.session-folder-choice.current { color: var(--text); font-weight: 600; }
|
|
220
|
+
.session-folder-view { display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; }
|
|
221
|
+
.session-folder-radio-legend { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px; color: var(--text-muted); margin-bottom: 4px; }
|
|
222
|
+
.session-folder-radio {
|
|
223
|
+
display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 8px; border: 0; border-radius: 8px;
|
|
224
|
+
background: transparent; color: var(--text-secondary, var(--text)); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
|
|
225
|
+
}
|
|
226
|
+
.session-folder-radio:hover { background: rgba(var(--overlay-rgb), 0.06); }
|
|
227
|
+
.session-folder-radio.selected { color: var(--text); font-weight: 600; }
|
|
228
|
+
.session-folder-radio-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-dimmer); box-sizing: border-box; flex: none; }
|
|
229
|
+
.session-folder-radio.selected .session-folder-radio-dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 38%, transparent 42%); }
|
|
230
|
+
.session-folder-view-note { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
|
|
231
|
+
|
|
232
|
+
@media (prefers-reduced-motion: reduce) {
|
|
233
|
+
.session-folder, .session-folder-chevron, .session-folder-toggle, .session-folder-tool { transition: none; }
|
|
234
|
+
.session-folder-body.folder-collapse-animating { will-change: auto; }
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* The age label sits under the hover actions; it must never swallow their clicks. */
|
|
238
|
+
.session-item .session-item-age { pointer-events: none; }
|
|
239
|
+
|
|
240
|
+
/* Folder drag preview: neighbours slide aside, the dragged block is a dashed placeholder. */
|
|
241
|
+
.session-folder-folder.folder-dnd {
|
|
242
|
+
position: relative;
|
|
243
|
+
transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
244
|
+
will-change: transform;
|
|
245
|
+
}
|
|
246
|
+
.session-folder-folder.folder-dnd-source {
|
|
247
|
+
z-index: 3;
|
|
248
|
+
opacity: 0.78;
|
|
249
|
+
border-radius: 10px;
|
|
250
|
+
outline: 1.5px dashed var(--accent);
|
|
251
|
+
outline-offset: 1px;
|
|
252
|
+
background: color-mix(in srgb, var(--accent) 7%, var(--sidebar-bg));
|
|
253
|
+
box-shadow: 0 6px 18px rgba(var(--shadow-rgb), 0.28);
|
|
254
|
+
}
|
|
255
|
+
.session-folder-drag-ghost {
|
|
256
|
+
position: fixed; left: -300px; top: -300px; max-width: 220px; padding: 7px 12px; border-radius: 10px;
|
|
257
|
+
background: var(--sidebar-active, var(--sidebar-hover)); color: var(--text); font-size: 12.5px; font-weight: 600;
|
|
258
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: -1;
|
|
259
|
+
}
|
|
260
|
+
@media (prefers-reduced-motion: reduce) {
|
|
261
|
+
.session-folder-folder.folder-dnd { transition: none; }
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Delete folder dialog: radio choices, optional destination, explicit destructive confirmation. */
|
|
265
|
+
.session-folder-delete { display: flex; flex-direction: column; gap: 10px; }
|
|
266
|
+
.session-folder-delete-intro, .session-folder-delete-status { font-size: 13px; line-height: 1.45; color: var(--text-secondary, var(--text)); }
|
|
267
|
+
.session-folder-delete-choices { display: flex; flex-direction: column; gap: 2px; }
|
|
268
|
+
.session-folder-delete-option { align-items: flex-start; padding-top: 7px; padding-bottom: 7px; min-height: 40px; }
|
|
269
|
+
.session-folder-delete-option .session-folder-radio-dot { margin-top: 2px; }
|
|
270
|
+
.session-folder-delete-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
271
|
+
.session-folder-delete-hint { font-size: 11.5px; font-weight: 400; color: var(--text-muted); line-height: 1.35; }
|
|
272
|
+
.session-folder-delete-option.danger.selected { color: var(--error, #dc2626); }
|
|
273
|
+
.session-folder-delete-option.danger.selected .session-folder-radio-dot { border-color: var(--error, #dc2626); background: radial-gradient(circle, var(--error, #dc2626) 0 38%, transparent 42%); }
|
|
274
|
+
.session-folder-delete-option:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
275
|
+
.session-folder-delete-destination { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
|
|
276
|
+
.session-folder-delete-select { width: 100%; min-height: 36px; font-size: 14px; }
|
|
277
|
+
.session-folder-delete-confirm { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--text); }
|
|
278
|
+
.session-folder-delete-confirm input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
|
|
279
|
+
.session-folder-delete-error { min-height: 16px; margin-top: 0; }
|
|
280
|
+
.session-folder-dialog .confirm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
281
|
+
@media (pointer: coarse) {
|
|
282
|
+
.session-folder-delete-option { min-height: 48px; }
|
|
283
|
+
.session-folder-delete-confirm input { width: 22px; height: 22px; }
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* Per-folder "+ New session": a quiet compact pill on the right of every folder
|
|
287
|
+
header, and the one-line draft row directly beneath it. */
|
|
288
|
+
.session-folder-new-btn {
|
|
289
|
+
flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 0; width: 24px; height: 22px; margin: 0 2px 0 auto; padding: 0; box-sizing: border-box;
|
|
290
|
+
border: 1px solid transparent; border-radius: 999px; background: rgba(var(--overlay-rgb), 0.05); color: var(--text-dimmer);
|
|
291
|
+
font: inherit; font-size: 10px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
|
|
292
|
+
overflow: hidden; transition: gap 180ms cubic-bezier(0.2, 0.7, 0.2, 1), padding 180ms cubic-bezier(0.2, 0.7, 0.2, 1), color 180ms ease, background 180ms ease, border-color 180ms ease;
|
|
293
|
+
}
|
|
294
|
+
.session-folder-new-icon { display: grid; place-items: center; width: 11px; height: 11px; flex: none; }
|
|
295
|
+
.session-folder-new-btn svg { width: 11px; height: 11px; display: block; }
|
|
296
|
+
.session-folder-new-label { display: grid; grid-template-columns: minmax(0, 0fr); flex: none; opacity: 0; transition: grid-template-columns 180ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 120ms ease; }
|
|
297
|
+
.session-folder-new-label-clip { position: relative; min-width: 0; overflow: hidden; }
|
|
298
|
+
.session-folder-new-label-text, .session-folder-new-label-previous { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
|
|
299
|
+
.session-folder-new-label-previous { opacity: 0; pointer-events: none; }
|
|
300
|
+
.session-folder-new-label-sizer { display: block; opacity: 0; pointer-events: none; white-space: nowrap; }
|
|
301
|
+
.session-folder-new-btn:hover:not(:disabled), .session-folder-new-btn:focus-visible, .session-folder-new-btn.is-create { width: auto; gap: 4px; padding: 0 8px 0 7px; color: var(--text); background: rgba(var(--overlay-rgb), 0.1); }
|
|
302
|
+
.session-folder-new-btn:hover:not(:disabled) .session-folder-new-label, .session-folder-new-btn:focus-visible .session-folder-new-label, .session-folder-new-btn.is-create .session-folder-new-label { grid-template-columns: minmax(0, 1fr); opacity: 1; }
|
|
303
|
+
.session-folder-new-btn.is-label-changing .session-folder-new-label-text { animation: session-folder-label-in 180ms ease both; }
|
|
304
|
+
.session-folder-new-btn.is-label-changing .session-folder-new-label-previous { animation: session-folder-label-out 180ms ease both; }
|
|
305
|
+
@keyframes session-folder-label-in { from { opacity: 0; } to { opacity: 1; } }
|
|
306
|
+
@keyframes session-folder-label-out { from { opacity: 1; } to { opacity: 0; } }
|
|
307
|
+
.session-folder-new-btn.is-create { color: var(--accent); border-color: var(--accent-25); background: var(--accent-12); }
|
|
308
|
+
.session-folder-new-btn.is-create:hover:not(:disabled) { color: var(--accent-hover); border-color: var(--accent); background: var(--accent-20); }
|
|
309
|
+
.session-folder-new-btn.is-create:disabled { color: var(--accent); border-color: var(--accent-15); background: var(--accent-8); opacity: 0.65; }
|
|
310
|
+
.session-folder-new-btn:disabled { opacity: 0.5; cursor: default; }
|
|
311
|
+
.session-folder-new-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
312
|
+
.session-folder.is-mobile .session-folder-new-btn { width: auto; height: 40px; min-width: 44px; margin-right: 4px; padding: 0 12px 0 10px; gap: 4px; font-size: 12px; }
|
|
313
|
+
.session-folder.is-mobile .session-folder-new-icon { width: 14px; height: 14px; }
|
|
314
|
+
.session-folder.is-mobile .session-folder-new-btn svg { width: 14px; height: 14px; }
|
|
315
|
+
.session-folder.is-mobile .session-folder-new-label { grid-template-columns: minmax(0, 1fr); opacity: 1; }
|
|
316
|
+
|
|
317
|
+
/* Aligned with the folder body (its 7px margin, 1px rule and 4px padding), and
|
|
318
|
+
sized and tinted like a session row. */
|
|
319
|
+
.session-create-row { margin: 1px 0 2px 12px; }
|
|
320
|
+
.session-create-line {
|
|
321
|
+
display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 2px 0 6px; box-sizing: border-box;
|
|
322
|
+
border-radius: 9px; background: rgba(var(--overlay-rgb), 0.035); color: var(--text-secondary);
|
|
323
|
+
}
|
|
324
|
+
.session-create-icon { width: 12px; height: 12px; flex: none; border-radius: 3px; object-fit: cover; }
|
|
325
|
+
.session-create-picker {
|
|
326
|
+
flex: 1 1 auto; min-width: 0; height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 3px 0 2px; border: 0;
|
|
327
|
+
border-bottom: 1px solid var(--accent); border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 400; line-height: 1; text-align: left; cursor: pointer;
|
|
328
|
+
}
|
|
329
|
+
.session-create-picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
330
|
+
.session-create-picker svg { width: 13px; height: 13px; flex: none; color: var(--text-muted); }
|
|
331
|
+
.session-create-picker:focus-visible, .session-create-icon-btn:focus-visible, .session-create-menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
332
|
+
.session-create-picker:disabled { opacity: 0.6; cursor: default; }
|
|
333
|
+
.session-create-icon-btn {
|
|
334
|
+
flex: none; width: 22px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
|
|
335
|
+
border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer;
|
|
336
|
+
}
|
|
337
|
+
.session-create-icon-btn svg { width: 13px; height: 13px; }
|
|
338
|
+
.session-create-icon-btn:hover:not(:disabled) { color: var(--text); background: rgba(var(--overlay-rgb), 0.1); }
|
|
339
|
+
.session-create-icon-btn:disabled { opacity: 0.5; cursor: default; }
|
|
340
|
+
.session-create-menu {
|
|
341
|
+
position: fixed; z-index: 10000; box-sizing: border-box; max-height: 70vh; overflow-y: auto; padding: 3px;
|
|
342
|
+
background: var(--sidebar-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 3px 12px rgba(var(--shadow-rgb), 0.32);
|
|
343
|
+
}
|
|
344
|
+
.session-create-menu-item {
|
|
345
|
+
display: flex; align-items: center; gap: 5px; width: 100%; min-height: 24px; padding: 0 6px; border: 0; border-radius: 5px;
|
|
346
|
+
background: transparent; color: var(--text-secondary); font: inherit; font-size: 12px; text-align: left; cursor: pointer;
|
|
347
|
+
}
|
|
348
|
+
.session-create-menu-provider { display: flex; align-items: center; gap: 2px; min-width: 0; }
|
|
349
|
+
.session-create-menu-provider > .session-create-menu-item:first-child { flex: 1 1 auto; width: auto; min-width: 0; }
|
|
350
|
+
.session-create-default-btn { flex: none; width: auto; padding-inline: 5px; color: var(--text-dimmer); font-size: 10px; }
|
|
351
|
+
.session-create-default-btn:disabled { opacity: 0.55; cursor: wait; }
|
|
352
|
+
.session-create-menu-item:hover { background: rgba(var(--overlay-rgb), 0.06); color: var(--text); }
|
|
353
|
+
.session-create-menu-item.selected { color: var(--text); font-weight: 600; }
|
|
354
|
+
.session-create-menu-item.unavailable { opacity: 0.55; cursor: default; }
|
|
355
|
+
.session-create-menu-item.unavailable:hover { opacity: 0.55; background: transparent; color: var(--text-secondary); }
|
|
356
|
+
.session-create-menu-item .session-create-icon { width: 14px; height: 14px; }
|
|
357
|
+
.session-create-menu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
358
|
+
.session-create-menu-note { flex: none; font-size: 10px; color: var(--text-dimmer); white-space: nowrap; }
|
|
359
|
+
.session-create-menu-item svg { width: 12px; height: 12px; flex: none; }
|
|
360
|
+
.session-create-status { margin: 0 0 0 9px; font-size: 11px; line-height: 1.3; color: var(--text-muted); }
|
|
361
|
+
.session-create-status:empty { display: none; }
|
|
362
|
+
.session-create-status.is-error { color: var(--error, #dc2626); }
|
|
363
|
+
.session-create-retry { border: 0; padding: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
|
|
364
|
+
.session-create-row.is-mobile .session-create-line { height: 44px; gap: 6px; padding-right: 4px; }
|
|
365
|
+
.session-create-row.is-mobile .session-create-icon { width: 16px; height: 16px; }
|
|
366
|
+
.session-create-row.is-mobile .session-create-picker { height: 40px; font-size: 12px; font-weight: 400; }
|
|
367
|
+
.session-create-row.is-mobile .session-create-icon-btn { width: 40px; height: 40px; }
|
|
368
|
+
.session-create-row.is-mobile .session-create-menu { padding: 4px; border-radius: 10px; }
|
|
369
|
+
.session-create-row.is-mobile .session-create-menu-item { min-height: 44px; padding-inline: 8px; gap: 6px; border-radius: 7px; font-size: 15px; }
|
|
370
|
+
.session-create-row.is-mobile .session-create-menu-item .session-create-icon { width: 16px; height: 16px; }
|
|
371
|
+
.session-create-row.is-mobile .session-create-menu-provider { gap: 4px; }
|
|
372
|
+
.session-create-row.is-mobile .session-create-default-btn { min-width: 88px; padding-inline: 7px; font-size: 12px; }
|
|
373
|
+
.session-create-row.is-mobile .session-create-menu-note { font-size: 11px; }
|
|
374
|
+
.session-create-row.is-mobile .session-create-status { font-size: 12px; }
|
|
375
|
+
@media (pointer: coarse) {
|
|
376
|
+
.session-folder-new-btn { height: 34px; min-width: 44px; }
|
|
377
|
+
.session-create-row.is-mobile .session-create-picker, .session-create-row.is-mobile .session-create-icon-btn, .session-create-row.is-mobile .session-create-menu-item { min-height: 40px; }
|
|
378
|
+
}
|
|
379
|
+
@media (prefers-reduced-motion: reduce) {
|
|
380
|
+
.session-folder-new-btn, .session-folder-new-label { transition: none; }
|
|
381
|
+
.session-folder-new-btn.is-label-changing .session-folder-new-label-text,
|
|
382
|
+
.session-folder-new-btn.is-label-changing .session-folder-new-label-previous { animation: none; }
|
|
383
|
+
}
|