-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathroadmap.css
More file actions
550 lines (540 loc) · 13.1 KB
/
Copy pathroadmap.css
File metadata and controls
550 lines (540 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
/* Keep the dropdown's stacking context above the scrolling list. */
.roadmap-list-header {
position: relative;
z-index: 30;
overflow: visible;
}
/* Search and facet filters share one compact header control. */
.roadmap-filter {
position: relative;
z-index: 30;
display: flex;
flex: 1;
min-width: 120px;
max-width: 320px;
gap: 4px;
}
.roadmap-search-input {
flex: 1;
min-width: 80px;
}
.roadmap-filter-toggle {
flex: none;
border-radius: var(--radius);
color: var(--text-secondary);
}
.roadmap-filter-toggle[aria-expanded='true'] {
color: var(--text-primary);
background: var(--bg-hover);
}
.roadmap-filter-menu {
position: absolute;
z-index: 20;
top: calc(100% + 4px);
left: 0;
min-width: 190px;
max-height: min(420px, 70vh);
overflow-y: auto;
padding: var(--spacing-sm);
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg-elevated);
box-shadow: var(--shadow-md);
}
.roadmap-filter-heading {
margin: var(--spacing-xs) 0 2px;
color: var(--text-muted);
font-size: 10px;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.roadmap-filter-heading:first-child {
margin-top: 0;
}
.roadmap-filter-option {
display: flex;
flex-direction: row;
align-items: center;
gap: var(--spacing-xs);
margin: 0;
padding: 2px 0;
color: var(--text-secondary);
font-size: var(--font-size-sm);
cursor: pointer;
}
.roadmap-filter-option input {
width: auto;
height: auto;
margin: 0;
padding: 0;
accent-color: var(--accent);
}
/* Every category group is an accordion, one row or many, so a collapsed group
keeps its control as filtering changes how many rows it holds. */
.roadmap-category-group {
display: flex;
flex-direction: column;
}
.roadmap-category-header {
display: flex;
align-items: center;
gap: 4px;
width: 100%;
/* Same block padding as .git-changes-section-title so the PR and roadmap
group headers sit on one rhythm. */
padding: var(--spacing-xs) var(--spacing-sm);
border: 0;
border-radius: 0;
background: transparent;
color: var(--text-muted);
font-size: 10px;
font-weight: 600;
letter-spacing: 0.04em;
text-align: left;
text-transform: uppercase;
cursor: pointer;
}
.roadmap-category-header:hover {
background: var(--bg-hover);
color: var(--text-secondary);
}
.roadmap-category-chevron {
width: 10px;
height: 10px;
flex: none;
}
.roadmap-category-count {
margin-left: auto;
font-variant-numeric: tabular-nums;
}
.roadmap-category-items {
display: flex;
flex-direction: column;
}
/* Right-align the action buttons group. */
.roadmap-action-buttons {
display: flex;
gap: var(--spacing-xs);
flex-shrink: 0;
}
/* Roadmap pane (issue #556; #645 Phase 3). The pane reuses the memories pane's
layout primitives (memories.css) and the git-changes list classes; these rules
only add what is roadmap-specific — quiet single-line rows and the status
select. See docs/ui-taste.md "Roadmap list rows". */
/* Title leads; trailing indicators hug the right on one line. */
.roadmap-row {
align-items: center;
}
.roadmap-row .memories-row-main {
flex-direction: row;
align-items: center;
gap: var(--spacing-xs);
}
.roadmap-row-title {
flex: 1 1 auto;
min-width: 0;
}
.roadmap-row-meta {
display: flex;
flex-wrap: nowrap;
gap: var(--spacing-xs);
align-items: center;
flex-shrink: 0;
margin-left: auto;
}
/* Exceptional statuses only (`blocked` / `conflicts` / `archived`). Default
`ready` is silent; `done` is strikethrough on the title. */
.roadmap-status-badge {
font-size: 10px;
line-height: 1.4;
padding: 0 6px;
border-radius: var(--radius);
background: var(--bg-hover);
color: var(--text-muted);
text-transform: lowercase;
letter-spacing: 0.02em;
}
.roadmap-status-badge.is-blocked {
background: color-mix(in srgb, var(--warning, #d29922) 18%, transparent);
color: var(--warning, #d29922);
}
.roadmap-status-badge.is-conflicts {
background: color-mix(in srgb, var(--danger, #f14c4c) 16%, transparent);
color: var(--danger, #f14c4c);
}
.roadmap-row.is-done .roadmap-row-title {
color: var(--text-muted);
text-decoration: line-through;
}
.roadmap-row.is-archived .roadmap-row-title {
color: var(--text-muted);
}
/* Mark-done / reopen — icon only, hidden until row hover or focus (same idea
as `.chat-delete`). Rows are <button>s so this is a span with role=button. */
.roadmap-done-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 2px;
color: var(--text-muted);
cursor: pointer;
opacity: 0;
}
.roadmap-row:hover .roadmap-done-toggle,
.roadmap-row:focus-within .roadmap-done-toggle,
.roadmap-done-toggle:focus {
opacity: 1;
}
.roadmap-done-toggle:hover {
color: var(--success, #3fb950);
}
.roadmap-done-toggle-icon {
width: 12px;
height: 12px;
}
.roadmap-status-select {
width: auto;
align-self: flex-start;
}
/* Roadmap forms can show up to six actions (Save/Start/Reopen/Fit/Delete/Cancel).
Keep them compact and content-sized — they wrap instead of stretching. */
.roadmap-form .memories-actions {
display: flex;
flex-wrap: wrap;
gap: var(--spacing-xs);
justify-content: flex-start;
}
.roadmap-form .memories-actions .memories-btn {
width: auto;
flex: 0 0 auto;
min-width: 0;
padding-inline: var(--spacing-sm);
}
.roadmap-form .memories-actions .memories-btn-danger {
margin-left: 0;
}
.roadmap-issue-chip {
font-size: 10px;
line-height: 1.4;
padding: 0 6px;
border-radius: var(--radius);
background: var(--bg-hover);
color: var(--accent);
cursor: pointer;
}
.roadmap-issue-chip:hover {
text-decoration: underline;
}
/* Linked thread — muted messages icon; tooltip carries the thread title. */
.roadmap-thread-chip {
display: inline-flex;
align-items: center;
color: var(--text-muted);
cursor: pointer;
}
.roadmap-thread-chip:hover {
color: var(--accent);
}
.roadmap-thread-chip-icon {
width: 12px;
height: 12px;
}
/* Category is independent from complexity: what kind of work this is. */
.roadmap-category-badge {
font-size: 10px;
line-height: 1.4;
padding: 0 6px;
border-radius: var(--radius);
background: var(--bg-hover);
color: var(--text-muted);
}
.roadmap-category-badge.is-bug {
color: var(--danger, #f14c4c);
}
.roadmap-category-badge.is-feature {
color: var(--accent);
}
.roadmap-category-badge.is-project {
color: var(--warning, #d29922);
}
/* Complexity badge — stamped on save by the small-tasks model (or heuristic). */
.roadmap-complexity-badge {
font-size: 10px;
line-height: 1.4;
padding: 0 6px;
border-radius: var(--radius);
background: var(--bg-hover);
color: var(--text-muted);
}
.roadmap-complexity-badge.is-medium {
color: var(--warning, #d29922);
}
.roadmap-complexity-badge.is-high {
color: var(--danger, #f14c4c);
}
/* Fit verdict — on-demand model judgement against the pinned issue. */
.roadmap-fit-badge {
font-size: 10px;
line-height: 1.4;
padding: 0 6px;
border-radius: var(--radius);
background: var(--bg-hover);
color: var(--text-muted);
}
.roadmap-fit-badge.is-likely {
color: var(--success, #3fb950);
}
.roadmap-fit-badge.is-partial {
color: var(--warning, #d29922);
}
.roadmap-fit-badge.is-unlikely {
color: var(--danger, #f14c4c);
}
.roadmap-fit-result {
font-size: var(--font-size-sm);
color: var(--text-secondary);
white-space: pre-wrap;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: var(--spacing-xs) var(--spacing-sm);
}
/* Attachments (files/images pasted, dropped, or picked into the editor). */
.roadmap-attachments {
display: flex;
flex-wrap: wrap;
gap: var(--spacing-xs);
align-items: center;
}
.roadmap-attachment-chip {
display: inline-flex;
align-items: center;
gap: 4px;
max-width: 100%;
font-size: var(--font-size-sm);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 2px 4px 2px 6px;
background: var(--bg-hover);
color: var(--text-secondary);
}
.roadmap-attachment-thumb {
width: 28px;
height: 28px;
object-fit: cover;
border-radius: calc(var(--radius) / 2);
flex: none;
}
.roadmap-attachment-name {
max-width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The global input/button rules give buttons a filled look; this stays an
inline icon, like the composer's attachment-chip remove. */
.roadmap-attachment-remove {
display: inline-flex;
align-items: center;
border: none;
background: none;
color: var(--text-muted);
cursor: pointer;
padding: 0 2px;
flex: none;
}
.roadmap-attachment-remove:hover {
color: var(--danger, #f14c4c);
}
.roadmap-attach-btn {
display: inline-flex;
align-items: center;
gap: 4px;
border: 1px dashed var(--border);
border-radius: var(--radius);
background: none;
color: var(--text-muted);
font-size: var(--font-size-sm);
padding: 2px 8px;
cursor: pointer;
}
.roadmap-attach-btn:hover {
color: var(--text-primary);
border-color: var(--accent);
}
/* Whole-form drop target while dragging files over the editor. */
.roadmap-form.is-drop-target {
outline: 1px dashed var(--accent);
outline-offset: -4px;
}
/* Paperclip + count in the list row — muted icon, no pill wash. */
.roadmap-attachment-badge {
display: inline-flex;
align-items: center;
gap: 3px;
font-size: 10px;
line-height: 1.4;
color: var(--text-muted);
}
.roadmap-attachment-badge-icon {
width: 10px;
height: 10px;
}
/* Review verdict — on-demand resolution judgement across the backlog. */
.roadmap-review-badge {
font-size: 10px;
line-height: 1.4;
padding: 0 6px;
border-radius: var(--radius);
background: var(--bg-hover);
color: var(--text-muted);
}
.roadmap-review-badge.is-resolved {
color: var(--success, #3fb950);
}
.roadmap-review-badge.is-likely {
color: color-mix(in srgb, var(--success, #3fb950) 70%, var(--warning, #d29922));
}
.roadmap-review-badge.is-partial {
color: var(--warning, #d29922);
}
.roadmap-review-badge.is-open {
color: var(--text-muted);
}
.roadmap-review-result {
font-size: var(--font-size-sm);
color: var(--text-secondary);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: var(--spacing-xs) var(--spacing-sm);
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
}
.roadmap-review-result-meta {
color: var(--text-muted);
font-size: var(--font-size-xs, 11px);
text-transform: lowercase;
}
/* A check that failed carries no verdict — mark the label so the box does not
read as a judgement, and leave the explanation below it in body casing. */
.roadmap-review-result.is-error .roadmap-review-result-meta {
color: var(--danger, #f14c4c);
}
.roadmap-review-result.is-error .roadmap-review-result-body {
white-space: pre-wrap;
}
.roadmap-review-row-detail {
color: var(--text-secondary);
}
.roadmap-review-row-detail ul {
margin: 0;
padding-left: 1.2em;
}
.roadmap-review-list {
flex: 1;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: var(--spacing-sm);
}
.roadmap-review-row {
display: flex;
flex-direction: column;
gap: 4px;
font-size: var(--font-size-sm);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: var(--spacing-xs) var(--spacing-sm);
}
.roadmap-review-row.is-applied {
opacity: 0.82;
border-style: dashed;
}
.roadmap-review-row-header {
display: flex;
flex-wrap: wrap;
gap: 4px;
align-items: center;
}
.roadmap-review-applied-badge {
font-size: 10px;
line-height: 1.4;
padding: 0 6px;
border-radius: var(--radius);
background: color-mix(in srgb, var(--success, #3fb950) 18%, transparent);
color: var(--success, #3fb950);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.roadmap-review-row-actions {
flex-wrap: wrap;
gap: var(--spacing-xs);
padding-top: 2px;
}
.roadmap-review-actions {
flex-wrap: wrap;
}
.roadmap-review-row-title {
font-weight: 600;
color: var(--text-primary);
}
/* Import-from-issues picker (viewer column). */
.roadmap-import-list {
flex: 1;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
}
/* Must set flex-direction: row — the global `label` rule in forms.css uses
column, which stacks the checkbox under the title and (with align-items:
center) centers both. */
.roadmap-import-row {
display: flex;
flex-direction: row;
align-items: center;
gap: var(--spacing-sm);
margin-bottom: 0;
min-width: 0;
font-size: var(--font-size-sm);
color: var(--text-primary);
cursor: pointer;
}
/* The global input rule gives checkboxes a text-field border and padding —
undo it so the box sits inline beside its title. */
.roadmap-import-check {
width: auto;
height: auto;
padding: 0;
margin: 0;
flex: none;
align-self: center;
accent-color: var(--accent);
background: transparent;
border: none;
border-radius: 0;
}
.roadmap-import-row.is-pinned,
.roadmap-import-row.is-covered {
color: var(--text-muted);
cursor: default;
}
.roadmap-import-title {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.roadmap-import-coverage {
flex: none;
max-width: 40%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: var(--text-muted);
}