@in-the-loop-labs/pair-review 4.1.0 → 5.0.0
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.md +81 -13
- package/package.json +6 -2
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
- package/plugin-pair-loop/.claude-plugin/plugin.json +1 -1
- package/plugin-pair-loop/skills/loop/SKILL.md +17 -8
- package/public/css/ai-summary-modal.css +1 -1
- package/public/css/analysis-config.css +33 -49
- package/public/css/council-card.css +118 -0
- package/public/css/council-dropdown.css +164 -0
- package/public/css/pr.css +666 -394
- package/public/css/repo-settings.css +15 -305
- package/public/css/settings.css +1141 -0
- package/public/css/snippet-manager.css +233 -0
- package/public/index.html +40 -59
- package/public/js/components/AIPanel.js +82 -16
- package/public/js/components/ChatPanel.js +401 -5
- package/public/js/components/CouncilCard.js +202 -0
- package/public/js/components/CouncilDropdown.js +292 -0
- package/public/js/components/DiffOptionsDropdown.js +177 -4
- package/public/js/components/SnippetManager.js +463 -0
- package/public/js/index.js +7 -30
- package/public/js/local.js +20 -2
- package/public/js/modules/comment-manager.js +8 -1
- package/public/js/modules/comment-minimizer.js +249 -190
- package/public/js/modules/external-comment-manager.js +414 -48
- package/public/js/modules/file-comment-manager.js +28 -21
- package/public/js/modules/hunk-summary-renderer.js +155 -29
- package/public/js/modules/pierre-bridge.js +2513 -0
- package/public/js/modules/pierre-context.js +345 -0
- package/public/js/modules/suggestion-manager.js +176 -20
- package/public/js/modules/tour-renderer.js +400 -184
- package/public/js/pr.js +1434 -150
- package/public/js/repo-settings.js +60 -284
- package/public/js/settings.js +1086 -0
- package/public/js/theme-bootstrap.js +40 -0
- package/public/js/theme.js +247 -0
- package/public/js/utils/provider-model.js +3 -3
- package/public/js/utils/suggestion-ui.js +157 -8
- package/public/local.html +20 -31
- package/public/pr.html +14 -23
- package/public/repo-settings.html +24 -14
- package/public/settings.html +138 -0
- package/public/setup.html +8 -13
- package/src/ai/codex-provider.js +59 -11
- package/src/chat/api-reference.js +9 -5
- package/src/chat/prompt-builder.js +8 -1
- package/src/config.js +15 -6
- package/src/database.js +307 -14
- package/src/external/github-adapter.js +39 -5
- package/src/headless/delegate.js +682 -0
- package/src/local-review.js +10 -10
- package/src/local-scope.js +9 -0
- package/src/main.js +276 -157
- package/src/mcp-stdio.js +24 -1
- package/src/review-config.js +93 -25
- package/src/routes/chat.js +2 -2
- package/src/routes/config.js +12 -10
- package/src/routes/external-comments.js +5 -1
- package/src/routes/local.js +2 -4
- package/src/routes/mcp.js +18 -13
- package/src/routes/reviews.js +223 -4
- package/src/routes/settings.js +252 -0
- package/src/routes/setup.js +80 -1
- package/src/routes/shared.js +31 -29
- package/src/routes/snippets.js +154 -0
- package/src/routes/stack-analysis.js +17 -14
- package/src/server.js +86 -18
- package/src/settings/global-settings-service.js +472 -0
- package/src/settings/registry.js +624 -0
- package/src/utils/db-identity.js +44 -0
package/public/css/pr.css
CHANGED
|
@@ -110,8 +110,7 @@
|
|
|
110
110
|
font-weight: 700;
|
|
111
111
|
letter-spacing: 0.5px;
|
|
112
112
|
color: #fff;
|
|
113
|
-
background:
|
|
114
|
-
box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
|
|
113
|
+
background: #b45309;
|
|
115
114
|
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
116
115
|
white-space: nowrap;
|
|
117
116
|
margin-left: 8px;
|
|
@@ -119,28 +118,23 @@
|
|
|
119
118
|
|
|
120
119
|
|
|
121
120
|
.stale-badge.pr-closed {
|
|
122
|
-
background:
|
|
123
|
-
box-shadow: 0 2px 6px rgba(207, 34, 46, 0.35);
|
|
121
|
+
background: #a40e26;
|
|
124
122
|
}
|
|
125
123
|
|
|
126
124
|
.stale-badge.pr-merged {
|
|
127
|
-
background:
|
|
128
|
-
box-shadow: 0 2px 6px rgba(130, 80, 223, 0.35);
|
|
125
|
+
background: #6639ba;
|
|
129
126
|
}
|
|
130
127
|
|
|
131
128
|
[data-theme="dark"] .stale-badge {
|
|
132
|
-
background:
|
|
133
|
-
box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
|
|
129
|
+
background: #d97706;
|
|
134
130
|
}
|
|
135
131
|
|
|
136
132
|
[data-theme="dark"] .stale-badge.pr-closed {
|
|
137
|
-
background:
|
|
138
|
-
box-shadow: 0 2px 8px rgba(248, 81, 73, 0.4);
|
|
133
|
+
background: #cf222e;
|
|
139
134
|
}
|
|
140
135
|
|
|
141
136
|
[data-theme="dark"] .stale-badge.pr-merged {
|
|
142
|
-
background:
|
|
143
|
-
box-shadow: 0 2px 8px rgba(163, 113, 247, 0.4);
|
|
137
|
+
background: #8250df;
|
|
144
138
|
}
|
|
145
139
|
|
|
146
140
|
.pr-title .github-link {
|
|
@@ -308,7 +302,7 @@
|
|
|
308
302
|
color: #656d76;
|
|
309
303
|
cursor: pointer;
|
|
310
304
|
border-bottom: 2px solid transparent;
|
|
311
|
-
transition:
|
|
305
|
+
transition: var(--transition-ui);
|
|
312
306
|
}
|
|
313
307
|
|
|
314
308
|
.tab-btn:hover {
|
|
@@ -450,7 +444,7 @@
|
|
|
450
444
|
border-radius: 6px;
|
|
451
445
|
appearance: none;
|
|
452
446
|
text-decoration: none;
|
|
453
|
-
transition:
|
|
447
|
+
transition: var(--transition-ui);
|
|
454
448
|
}
|
|
455
449
|
|
|
456
450
|
.btn-primary {
|
|
@@ -473,31 +467,28 @@
|
|
|
473
467
|
background-color: var(--ai-primary);
|
|
474
468
|
border-color: var(--ai-primary);
|
|
475
469
|
cursor: pointer;
|
|
476
|
-
transition:
|
|
477
|
-
box-shadow: 0 0 12px var(--ai-glow);
|
|
470
|
+
transition: var(--transition-ui-slow);
|
|
478
471
|
}
|
|
479
472
|
|
|
480
473
|
.btn-primary.btn-analyzing:hover {
|
|
481
474
|
background-color: var(--ai-secondary);
|
|
482
475
|
border-color: var(--ai-secondary);
|
|
483
|
-
box-shadow: 0 0 16px var(--ai-glow);
|
|
484
476
|
}
|
|
485
477
|
|
|
486
|
-
/*
|
|
487
|
-
|
|
478
|
+
/* Inline spinner shown in the analyze button while analysis runs.
|
|
479
|
+
Track/arc derive from currentColor so it stays legible on the amber
|
|
480
|
+
analyzing background in both themes (white text light, near-black dark). */
|
|
481
|
+
.btn-spinner {
|
|
488
482
|
display: inline-block;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
filter: brightness(1.5) drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
|
|
499
|
-
transform: scale(1.15);
|
|
500
|
-
}
|
|
483
|
+
width: 12px;
|
|
484
|
+
height: 12px;
|
|
485
|
+
flex-shrink: 0;
|
|
486
|
+
border: 2px solid color-mix(in srgb, currentColor 20%, transparent);
|
|
487
|
+
border-top-color: currentColor;
|
|
488
|
+
border-right-color: currentColor;
|
|
489
|
+
border-radius: 50%;
|
|
490
|
+
animation: spin 0.8s linear infinite;
|
|
491
|
+
vertical-align: -1px;
|
|
501
492
|
}
|
|
502
493
|
|
|
503
494
|
/* Refresh button spinner animation */
|
|
@@ -648,7 +639,12 @@
|
|
|
648
639
|
--color-accent-lighter: rgba(9, 105, 218, 0.05);
|
|
649
640
|
--color-accent-ai: #fbbf24;
|
|
650
641
|
--color-accent-ai-dark: #f59e0b;
|
|
651
|
-
|
|
642
|
+
|
|
643
|
+
/* Unified flat amber for settings-surface accents (header icons, save
|
|
644
|
+
buttons) across analysis-config.css, settings.css, repo-settings.css.
|
|
645
|
+
Those files all load pr.css, so this is their single source. */
|
|
646
|
+
--ai-accent-flat: #d97706;
|
|
647
|
+
|
|
652
648
|
--color-danger: #d1242f;
|
|
653
649
|
--color-danger-hover: #b91c1c;
|
|
654
650
|
|
|
@@ -673,7 +669,6 @@
|
|
|
673
669
|
--ai-primary: #d97706;
|
|
674
670
|
--ai-secondary: #f59e0b;
|
|
675
671
|
--ai-subtle: rgba(217, 119, 6, 0.08);
|
|
676
|
-
--ai-glow: rgba(217, 119, 6, 0.15);
|
|
677
672
|
--ai-border: rgba(217, 119, 6, 0.3);
|
|
678
673
|
--ai-text: #92400e;
|
|
679
674
|
|
|
@@ -723,6 +718,14 @@
|
|
|
723
718
|
--color-reasoning-hover: #7c3aed;
|
|
724
719
|
--color-reasoning-hover-bg: rgba(124, 58, 237, 0.1);
|
|
725
720
|
--color-reasoning-hover-border: rgba(124, 58, 237, 0.35);
|
|
721
|
+
|
|
722
|
+
/* CSS variables for @pierre/diffs annotations (injected via unsafeCSS) */
|
|
723
|
+
--color-canvas-default: #ffffff;
|
|
724
|
+
--color-canvas-subtle: #f6f8fa;
|
|
725
|
+
--color-fg-default: #1f2328;
|
|
726
|
+
--color-fg-muted: #656d76;
|
|
727
|
+
--color-accent: #0969da;
|
|
728
|
+
--color-neutral-muted: rgba(175,184,193,0.2);
|
|
726
729
|
}
|
|
727
730
|
|
|
728
731
|
[data-theme="dark"] {
|
|
@@ -754,7 +757,9 @@
|
|
|
754
757
|
--color-accent-lighter: rgba(88, 166, 255, 0.08);
|
|
755
758
|
--color-accent-ai: #fbbf24;
|
|
756
759
|
--color-accent-ai-dark: #f59e0b;
|
|
757
|
-
|
|
760
|
+
|
|
761
|
+
--ai-accent-flat: #f59e0b;
|
|
762
|
+
|
|
758
763
|
--color-danger: #f85149;
|
|
759
764
|
--color-danger-hover: #da3633;
|
|
760
765
|
|
|
@@ -779,7 +784,6 @@
|
|
|
779
784
|
--ai-primary: #f59e0b;
|
|
780
785
|
--ai-secondary: #fbbf24;
|
|
781
786
|
--ai-subtle: rgba(245, 158, 11, 0.1);
|
|
782
|
-
--ai-glow: rgba(245, 158, 11, 0.2);
|
|
783
787
|
--ai-border: rgba(245, 158, 11, 0.3);
|
|
784
788
|
--ai-text: #fcd34d;
|
|
785
789
|
|
|
@@ -827,6 +831,14 @@
|
|
|
827
831
|
--color-reasoning-hover: #9333ea;
|
|
828
832
|
--color-reasoning-hover-bg: rgba(147, 51, 234, 0.12);
|
|
829
833
|
--color-reasoning-hover-border: rgba(147, 51, 234, 0.4);
|
|
834
|
+
|
|
835
|
+
/* CSS variables for @pierre/diffs annotations (injected via unsafeCSS) */
|
|
836
|
+
--color-canvas-default: #0d1117;
|
|
837
|
+
--color-canvas-subtle: #161b22;
|
|
838
|
+
--color-fg-default: #e6edf3;
|
|
839
|
+
--color-fg-muted: #8b949e;
|
|
840
|
+
--color-accent: #58a6ff;
|
|
841
|
+
--color-neutral-muted: rgba(110,118,129,0.4);
|
|
830
842
|
}
|
|
831
843
|
|
|
832
844
|
/* Update PR container styles */
|
|
@@ -910,7 +922,7 @@
|
|
|
910
922
|
background: var(--color-bg-primary);
|
|
911
923
|
color: var(--color-text-secondary);
|
|
912
924
|
cursor: pointer;
|
|
913
|
-
transition:
|
|
925
|
+
transition: var(--transition-ui);
|
|
914
926
|
}
|
|
915
927
|
|
|
916
928
|
.sidebar-toggle-collapsed.visible {
|
|
@@ -1006,7 +1018,7 @@
|
|
|
1006
1018
|
color: var(--color-text-secondary);
|
|
1007
1019
|
text-decoration: none;
|
|
1008
1020
|
border-radius: 4px;
|
|
1009
|
-
transition:
|
|
1021
|
+
transition: var(--transition-ui-fast);
|
|
1010
1022
|
cursor: pointer;
|
|
1011
1023
|
position: relative;
|
|
1012
1024
|
}
|
|
@@ -1032,7 +1044,7 @@
|
|
|
1032
1044
|
}
|
|
1033
1045
|
|
|
1034
1046
|
.file-item .file-name {
|
|
1035
|
-
font-family: var(--font-mono,
|
|
1047
|
+
font-family: var(--font-mono, monospace);
|
|
1036
1048
|
font-size: 12px;
|
|
1037
1049
|
overflow: hidden;
|
|
1038
1050
|
text-overflow: ellipsis;
|
|
@@ -1042,7 +1054,7 @@
|
|
|
1042
1054
|
}
|
|
1043
1055
|
|
|
1044
1056
|
.file-item .file-changes {
|
|
1045
|
-
font-family: var(--font-mono,
|
|
1057
|
+
font-family: var(--font-mono, monospace);
|
|
1046
1058
|
font-size: 11px;
|
|
1047
1059
|
color: var(--color-text-muted);
|
|
1048
1060
|
flex-shrink: 0;
|
|
@@ -1312,7 +1324,7 @@
|
|
|
1312
1324
|
background: var(--color-bg-elevated, #1e2329);
|
|
1313
1325
|
border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.06));
|
|
1314
1326
|
border-radius: 4px;
|
|
1315
|
-
transition:
|
|
1327
|
+
transition: var(--transition-ui-fast);
|
|
1316
1328
|
line-height: 1;
|
|
1317
1329
|
}
|
|
1318
1330
|
|
|
@@ -1674,12 +1686,17 @@ body:not(.tour-active) .d2h-file-wrapper tr,
|
|
|
1674
1686
|
body:not(.tour-active) .ai-suggestion,
|
|
1675
1687
|
body:not(.tour-active) .file-comment-card,
|
|
1676
1688
|
body:not(.tour-active) .user-comment-row,
|
|
1677
|
-
body:not(.tour-active) .external-comment-row
|
|
1689
|
+
body:not(.tour-active) .external-comment-row,
|
|
1690
|
+
/* Minimize mode: navigation scrolls to the vendor annotation wrapper
|
|
1691
|
+
(CommentMinimizer.findDiffRowFor returns it), which is not one of the card
|
|
1692
|
+
elements above — give it the same offset so it clears the sticky toolbar. */
|
|
1693
|
+
body:not(.tour-active) #diff-container [data-annotation-slot] {
|
|
1678
1694
|
scroll-margin-top: var(--diff-scroll-offset);
|
|
1679
1695
|
}
|
|
1680
1696
|
|
|
1681
1697
|
/* Hide diff content when collapsed */
|
|
1682
1698
|
.d2h-file-wrapper.collapsed .d2h-file-body,
|
|
1699
|
+
.d2h-file-wrapper.collapsed .pierre-diff-body,
|
|
1683
1700
|
.d2h-file-wrapper.collapsed .d2h-diff-table {
|
|
1684
1701
|
display: none;
|
|
1685
1702
|
}
|
|
@@ -1895,9 +1912,10 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
1895
1912
|
margin: 12px auto; /* Center horizontally with auto margins */
|
|
1896
1913
|
border-radius: 6px;
|
|
1897
1914
|
position: relative;
|
|
1898
|
-
box-shadow: 0 0 20px var(--ai-glow, rgba(245, 158, 11, 0.2)); /* Amber glow shadow */
|
|
1899
1915
|
/* Explicitly list transitions to exclude max-width - prevents flicker on sidebar toggle */
|
|
1900
1916
|
transition: box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
|
|
1917
|
+
/* Account for sticky toolbar + file header when scrolling to this element */
|
|
1918
|
+
scroll-margin-top: calc(var(--toolbar-height, 53px) + 48px);
|
|
1901
1919
|
animation: slideUp 0.3s ease;
|
|
1902
1920
|
overflow: visible;
|
|
1903
1921
|
word-break: break-word;
|
|
@@ -1924,7 +1942,11 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
1924
1942
|
}
|
|
1925
1943
|
|
|
1926
1944
|
.ai-suggestion:hover {
|
|
1927
|
-
box-shadow: 0
|
|
1945
|
+
box-shadow: 0 3px 8px rgba(245, 158, 11, 0.18);
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
[data-theme="dark"] .ai-suggestion:hover {
|
|
1949
|
+
box-shadow: 0 3px 8px rgba(245, 158, 11, 0.28);
|
|
1928
1950
|
}
|
|
1929
1951
|
|
|
1930
1952
|
.ai-suggestion.adopted {
|
|
@@ -1943,7 +1965,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
1943
1965
|
justify-content: space-between;
|
|
1944
1966
|
gap: 8px;
|
|
1945
1967
|
padding: 12px 16px;
|
|
1946
|
-
background:
|
|
1968
|
+
background: var(--ai-subtle, rgba(245, 158, 11, 0.1));
|
|
1947
1969
|
border-bottom: 1px solid var(--color-border-primary, rgba(0, 0, 0, 0.1));
|
|
1948
1970
|
}
|
|
1949
1971
|
|
|
@@ -2055,7 +2077,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2055
2077
|
}
|
|
2056
2078
|
|
|
2057
2079
|
.ai-suggestion.ai-type-praise .ai-suggestion-header {
|
|
2058
|
-
background:
|
|
2080
|
+
background: var(--ai-subtle, rgba(245, 158, 11, 0.1));
|
|
2059
2081
|
}
|
|
2060
2082
|
|
|
2061
2083
|
.ai-suggestion.ai-type-praise .praise-badge {
|
|
@@ -2184,6 +2206,18 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2184
2206
|
overflow-wrap: break-word;
|
|
2185
2207
|
}
|
|
2186
2208
|
|
|
2209
|
+
/* Readable measure on wide displays: cards span the full diff width (both
|
|
2210
|
+
unified and split full-width layouts), but flowing prose becomes hard to
|
|
2211
|
+
read past ~80 characters per line. Cap the TEXT blocks, not the card —
|
|
2212
|
+
the card's background/border keeps spanning the row so it still reads as
|
|
2213
|
+
anchored to the diff. ch resolves against each element's own font, so the
|
|
2214
|
+
cap self-adjusts. Override via --annotation-prose-max if needed. */
|
|
2215
|
+
.user-comment-body,
|
|
2216
|
+
.ai-suggestion-body,
|
|
2217
|
+
.external-comment-body {
|
|
2218
|
+
max-width: min(100%, var(--annotation-prose-max, 80ch));
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2187
2221
|
/* Markdown content styles for AI suggestions and user comments */
|
|
2188
2222
|
.ai-suggestion-body p,
|
|
2189
2223
|
.user-comment-body p {
|
|
@@ -2210,7 +2244,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2210
2244
|
background: var(--color-bg-elevated, rgba(30, 35, 41, 1));
|
|
2211
2245
|
padding: 2px 6px;
|
|
2212
2246
|
border-radius: 4px;
|
|
2213
|
-
font-family:
|
|
2247
|
+
font-family: var(--font-mono);
|
|
2214
2248
|
font-size: 0.8125rem;
|
|
2215
2249
|
color: var(--ai-secondary, #fbbf24);
|
|
2216
2250
|
/* Allow long inline code (file paths, etc.) to break when needed */
|
|
@@ -2282,7 +2316,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2282
2316
|
background: transparent;
|
|
2283
2317
|
color: var(--color-text-tertiary, #6e7681);
|
|
2284
2318
|
cursor: pointer;
|
|
2285
|
-
transition:
|
|
2319
|
+
transition: var(--transition-ui-snappy);
|
|
2286
2320
|
}
|
|
2287
2321
|
|
|
2288
2322
|
.btn-reasoning-toggle:hover {
|
|
@@ -2352,7 +2386,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2352
2386
|
background: transparent;
|
|
2353
2387
|
color: var(--color-text-tertiary, #6e7681);
|
|
2354
2388
|
cursor: pointer;
|
|
2355
|
-
transition:
|
|
2389
|
+
transition: var(--transition-ui-snappy);
|
|
2356
2390
|
}
|
|
2357
2391
|
|
|
2358
2392
|
.reasoning-popover-close:hover {
|
|
@@ -2405,6 +2439,32 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2405
2439
|
background: none;
|
|
2406
2440
|
}
|
|
2407
2441
|
|
|
2442
|
+
/* Dismissal reason section appended below the reasoning bullets in the popover.
|
|
2443
|
+
Uses the same themeable variables as the rest of the popover, so it adapts to
|
|
2444
|
+
both light and dark. Rendered on its own when a suggestion has a dismissal
|
|
2445
|
+
reason but no reasoning steps. */
|
|
2446
|
+
.reasoning-popover-dismissal {
|
|
2447
|
+
margin-top: 10px;
|
|
2448
|
+
padding-top: 10px;
|
|
2449
|
+
border-top: 1px solid var(--color-border-secondary, rgba(255, 255, 255, 0.06));
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
.reasoning-popover-content > .reasoning-popover-dismissal:first-child {
|
|
2453
|
+
margin-top: 0;
|
|
2454
|
+
padding-top: 0;
|
|
2455
|
+
border-top: none;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
.reasoning-popover-dismissal-heading {
|
|
2459
|
+
display: block;
|
|
2460
|
+
margin-bottom: 4px;
|
|
2461
|
+
font-size: 0.6875rem;
|
|
2462
|
+
font-weight: 600;
|
|
2463
|
+
text-transform: uppercase;
|
|
2464
|
+
letter-spacing: 0.05em;
|
|
2465
|
+
color: var(--color-text-tertiary, #6e7681);
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2408
2468
|
/* Compact reasoning button in collapsed suggestion rows */
|
|
2409
2469
|
.ai-suggestion.collapsed .ai-suggestion-header-right {
|
|
2410
2470
|
margin-left: auto;
|
|
@@ -2437,7 +2497,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2437
2497
|
border: none;
|
|
2438
2498
|
border-radius: 4px;
|
|
2439
2499
|
cursor: pointer;
|
|
2440
|
-
transition:
|
|
2500
|
+
transition: var(--transition-ui-fast);
|
|
2441
2501
|
}
|
|
2442
2502
|
|
|
2443
2503
|
/* Adopt button: green background, white text, checkmark icon */
|
|
@@ -2506,7 +2566,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2506
2566
|
border-radius: 4px;
|
|
2507
2567
|
border: none;
|
|
2508
2568
|
cursor: pointer;
|
|
2509
|
-
transition:
|
|
2569
|
+
transition: var(--transition-ui-fast);
|
|
2510
2570
|
}
|
|
2511
2571
|
|
|
2512
2572
|
.ai-suggestion-actions .btn-primary {
|
|
@@ -2589,14 +2649,8 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2589
2649
|
position: relative;
|
|
2590
2650
|
}
|
|
2591
2651
|
|
|
2592
|
-
.collapsed-text {
|
|
2593
|
-
color: var(--color-text-tertiary);
|
|
2594
|
-
font-style: italic;
|
|
2595
|
-
font-size: 12px;
|
|
2596
|
-
}
|
|
2597
|
-
|
|
2598
2652
|
.collapsed-title {
|
|
2599
|
-
flex: 1;
|
|
2653
|
+
flex: 0 1 auto;
|
|
2600
2654
|
overflow: hidden;
|
|
2601
2655
|
text-overflow: ellipsis;
|
|
2602
2656
|
white-space: nowrap;
|
|
@@ -2605,6 +2659,50 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2605
2659
|
font-size: 13px;
|
|
2606
2660
|
}
|
|
2607
2661
|
|
|
2662
|
+
/* Expanded reply-styled dismissal note. Mirrors the external-comment
|
|
2663
|
+
`is-reply` treatment: indented, muted, with a small label. Sits under the
|
|
2664
|
+
suggestion body of a dismissed suggestion. Hidden while the card is
|
|
2665
|
+
collapsed (the body is hidden then too). */
|
|
2666
|
+
.ai-dismissal-note {
|
|
2667
|
+
margin: 4px 16px 12px 32px;
|
|
2668
|
+
padding: 8px 12px;
|
|
2669
|
+
border-left: 3px solid var(--color-border-secondary, #d0d7de);
|
|
2670
|
+
border-radius: 4px;
|
|
2671
|
+
background: var(--color-bg-secondary, #f6f8fa);
|
|
2672
|
+
font-size: 12px;
|
|
2673
|
+
line-height: 1.5;
|
|
2674
|
+
color: var(--color-text-secondary, #57606a);
|
|
2675
|
+
max-width: min(100%, var(--annotation-prose-max, 80ch));
|
|
2676
|
+
box-sizing: border-box;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
.ai-dismissal-note-label {
|
|
2680
|
+
display: block;
|
|
2681
|
+
font-weight: 600;
|
|
2682
|
+
font-size: 11px;
|
|
2683
|
+
text-transform: uppercase;
|
|
2684
|
+
letter-spacing: 0.04em;
|
|
2685
|
+
color: var(--color-text-tertiary, #6e7681);
|
|
2686
|
+
margin-bottom: 2px;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
.ai-dismissal-note-body {
|
|
2690
|
+
display: block;
|
|
2691
|
+
white-space: pre-wrap;
|
|
2692
|
+
word-wrap: break-word;
|
|
2693
|
+
overflow-wrap: break-word;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
.ai-suggestion.collapsed .ai-dismissal-note {
|
|
2697
|
+
display: none;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
[data-theme="dark"] .ai-dismissal-note {
|
|
2701
|
+
background: var(--color-bg-tertiary, #161b22);
|
|
2702
|
+
border-left-color: var(--color-border-secondary, #30363d);
|
|
2703
|
+
color: var(--color-text-secondary, #8b949e);
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2608
2706
|
.ai-suggestion.collapsed .ai-suggestion-header {
|
|
2609
2707
|
display: none;
|
|
2610
2708
|
}
|
|
@@ -2617,7 +2715,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2617
2715
|
font-size: 12px;
|
|
2618
2716
|
min-width: auto;
|
|
2619
2717
|
border-radius: 4px;
|
|
2620
|
-
transition:
|
|
2718
|
+
transition: var(--transition-ui);
|
|
2621
2719
|
display: inline-flex;
|
|
2622
2720
|
align-items: center;
|
|
2623
2721
|
justify-content: center;
|
|
@@ -2682,7 +2780,6 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2682
2780
|
border-left: 3px solid var(--ai-primary, #f59e0b);
|
|
2683
2781
|
border-radius: 6px;
|
|
2684
2782
|
overflow: visible;
|
|
2685
|
-
box-shadow: 0 0 20px var(--ai-glow, rgba(245, 158, 11, 0.2));
|
|
2686
2783
|
}
|
|
2687
2784
|
|
|
2688
2785
|
[data-theme="dark"] .ai-suggestion.collapsed {
|
|
@@ -2717,7 +2814,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
2717
2814
|
color: var(--color-text-primary, #24292f);
|
|
2718
2815
|
gap: 8px;
|
|
2719
2816
|
cursor: pointer;
|
|
2720
|
-
transition:
|
|
2817
|
+
transition: var(--transition-ui);
|
|
2721
2818
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
2722
2819
|
min-height: 32px;
|
|
2723
2820
|
}
|
|
@@ -3230,7 +3327,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
3230
3327
|
display: flex;
|
|
3231
3328
|
align-items: center;
|
|
3232
3329
|
justify-content: center;
|
|
3233
|
-
transition:
|
|
3330
|
+
transition: var(--transition-ui);
|
|
3234
3331
|
}
|
|
3235
3332
|
|
|
3236
3333
|
.nav-btn:hover:not(:disabled) {
|
|
@@ -3565,7 +3662,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
3565
3662
|
font-weight: 500;
|
|
3566
3663
|
border-radius: 12px;
|
|
3567
3664
|
min-height: 16px;
|
|
3568
|
-
transition:
|
|
3665
|
+
transition: var(--transition-ui);
|
|
3569
3666
|
}
|
|
3570
3667
|
|
|
3571
3668
|
.btn-secondary-outline:hover {
|
|
@@ -3636,7 +3733,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
3636
3733
|
width: 22px;
|
|
3637
3734
|
height: 22px;
|
|
3638
3735
|
/* GitHub blue with subtle depth */
|
|
3639
|
-
background:
|
|
3736
|
+
background: #0969da;
|
|
3640
3737
|
color: white;
|
|
3641
3738
|
border: none;
|
|
3642
3739
|
border-radius: 6px;
|
|
@@ -3660,7 +3757,7 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
3660
3757
|
}
|
|
3661
3758
|
|
|
3662
3759
|
.add-comment-btn:hover {
|
|
3663
|
-
background:
|
|
3760
|
+
background: #0860ca;
|
|
3664
3761
|
transform: translateY(-50%) scale(1.08);
|
|
3665
3762
|
box-shadow: 0 2px 6px rgba(9, 105, 218, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
3666
3763
|
}
|
|
@@ -3672,12 +3769,12 @@ tr.newly-expanded .d2h-code-line-ctn {
|
|
|
3672
3769
|
|
|
3673
3770
|
/* Expanded context comment button - slightly different style to indicate limitation */
|
|
3674
3771
|
.add-comment-btn.expanded-context-comment {
|
|
3675
|
-
background:
|
|
3772
|
+
background: #6e7781;
|
|
3676
3773
|
opacity: 0;
|
|
3677
3774
|
}
|
|
3678
3775
|
|
|
3679
3776
|
.add-comment-btn.expanded-context-comment:hover {
|
|
3680
|
-
background:
|
|
3777
|
+
background: #57606a;
|
|
3681
3778
|
}
|
|
3682
3779
|
|
|
3683
3780
|
/* Show comment button on hover - use opacity for smoother transition */
|
|
@@ -3693,7 +3790,7 @@ tr:hover .add-comment-btn {
|
|
|
3693
3790
|
transform: translateY(-50%);
|
|
3694
3791
|
width: 22px;
|
|
3695
3792
|
height: 22px;
|
|
3696
|
-
background:
|
|
3793
|
+
background: #0969da;
|
|
3697
3794
|
color: #fff;
|
|
3698
3795
|
border: none;
|
|
3699
3796
|
border-radius: 6px;
|
|
@@ -3715,7 +3812,7 @@ tr:hover .add-comment-btn {
|
|
|
3715
3812
|
}
|
|
3716
3813
|
|
|
3717
3814
|
.chat-line-btn:hover {
|
|
3718
|
-
background:
|
|
3815
|
+
background: #0860ca;
|
|
3719
3816
|
transform: translateY(-50%) scale(1.08);
|
|
3720
3817
|
box-shadow: 0 2px 6px rgba(9, 105, 218, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
3721
3818
|
}
|
|
@@ -3868,7 +3965,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
3868
3965
|
border-radius: 6px;
|
|
3869
3966
|
color: #0969da;
|
|
3870
3967
|
cursor: pointer;
|
|
3871
|
-
transition:
|
|
3968
|
+
transition: var(--transition-ui-snappy);
|
|
3872
3969
|
}
|
|
3873
3970
|
|
|
3874
3971
|
.suggestion-btn:hover:not(:disabled) {
|
|
@@ -3972,15 +4069,19 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
3972
4069
|
/* User Comments Display */
|
|
3973
4070
|
.user-comment-row {
|
|
3974
4071
|
border: none;
|
|
4072
|
+
/* Account for sticky toolbar + file header when scrolling to this element */
|
|
4073
|
+
scroll-margin-top: calc(var(--toolbar-height, 53px) + 48px);
|
|
3975
4074
|
}
|
|
3976
4075
|
|
|
3977
4076
|
.user-comment-cell {
|
|
3978
4077
|
padding: 4px 0;
|
|
4078
|
+
/* Account for sticky toolbar + file header when scrolling to this element */
|
|
4079
|
+
scroll-margin-top: calc(var(--toolbar-height, 53px) + 48px);
|
|
3979
4080
|
background: transparent;
|
|
3980
4081
|
}
|
|
3981
4082
|
|
|
3982
4083
|
.user-comment {
|
|
3983
|
-
background:
|
|
4084
|
+
background: #f5f0ff;
|
|
3984
4085
|
border: 1px solid #8b5cf6;
|
|
3985
4086
|
border-left: 4px solid #8b5cf6;
|
|
3986
4087
|
border-radius: 6px;
|
|
@@ -4176,7 +4277,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
4176
4277
|
border-radius: 4px;
|
|
4177
4278
|
cursor: pointer;
|
|
4178
4279
|
color: var(--color-text-secondary, #57606a);
|
|
4179
|
-
transition:
|
|
4280
|
+
transition: var(--transition-ui);
|
|
4180
4281
|
display: inline-flex;
|
|
4181
4282
|
align-items: center;
|
|
4182
4283
|
}
|
|
@@ -4485,7 +4586,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
4485
4586
|
}
|
|
4486
4587
|
|
|
4487
4588
|
[data-theme="dark"] .user-comment {
|
|
4488
|
-
background:
|
|
4589
|
+
background: rgba(139, 92, 246, 0.08);
|
|
4489
4590
|
border-color: #a78bfa;
|
|
4490
4591
|
border-left-color: #a78bfa;
|
|
4491
4592
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
@@ -4559,6 +4660,13 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
4559
4660
|
background: transparent;
|
|
4560
4661
|
}
|
|
4561
4662
|
|
|
4663
|
+
/* Pierre (@pierre/diffs) path: the thread card is slotted as a light-DOM
|
|
4664
|
+
`<div class="external-comment-row">` (no `<td class="external-comment-cell">`
|
|
4665
|
+
wrapper), so apply the same vertical padding directly to the div variant. */
|
|
4666
|
+
div.external-comment-row {
|
|
4667
|
+
padding: 4px 0;
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4562
4670
|
/* Source-agnostic defaults. .source-<name> rules below override these
|
|
4563
4671
|
indirection variables, and every internal rule references --ec-* so
|
|
4564
4672
|
adding a new source is just a new variable block + .source-<name>. */
|
|
@@ -4568,7 +4676,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
4568
4676
|
--ec-subtle: var(--comment-subtle);
|
|
4569
4677
|
--ec-border: var(--comment-border);
|
|
4570
4678
|
|
|
4571
|
-
background:
|
|
4679
|
+
background: var(--ec-subtle);
|
|
4572
4680
|
border: 1px solid var(--ec-border);
|
|
4573
4681
|
border-left: 4px solid var(--ec-primary);
|
|
4574
4682
|
border-radius: 6px;
|
|
@@ -4760,7 +4868,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
4760
4868
|
flat-with-replies; no deeper nesting needed. */
|
|
4761
4869
|
.external-comment.is-reply {
|
|
4762
4870
|
margin-left: 24px;
|
|
4763
|
-
background:
|
|
4871
|
+
background: var(--ec-subtle);
|
|
4764
4872
|
}
|
|
4765
4873
|
|
|
4766
4874
|
/* Outdated: comment's anchor no longer maps to current diff. Faded with
|
|
@@ -4784,12 +4892,12 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
4784
4892
|
}
|
|
4785
4893
|
|
|
4786
4894
|
[data-theme="dark"] .external-comment {
|
|
4787
|
-
background:
|
|
4895
|
+
background: var(--ec-subtle);
|
|
4788
4896
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
4789
4897
|
}
|
|
4790
4898
|
|
|
4791
4899
|
[data-theme="dark"] .external-comment.is-reply {
|
|
4792
|
-
background:
|
|
4900
|
+
background: var(--ec-subtle);
|
|
4793
4901
|
}
|
|
4794
4902
|
|
|
4795
4903
|
[data-theme="dark"] .external-comment-body {
|
|
@@ -5159,7 +5267,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
5159
5267
|
padding: 10px 12px;
|
|
5160
5268
|
border: 1px solid var(--color-border-primary, #d1d9e0);
|
|
5161
5269
|
border-radius: 10px;
|
|
5162
|
-
transition:
|
|
5270
|
+
transition: var(--transition-ui-snappy);
|
|
5163
5271
|
background: var(--color-bg-primary, #ffffff);
|
|
5164
5272
|
}
|
|
5165
5273
|
|
|
@@ -5357,7 +5465,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
5357
5465
|
font-weight: 500;
|
|
5358
5466
|
opacity: 0;
|
|
5359
5467
|
transform: translateY(-20px);
|
|
5360
|
-
transition:
|
|
5468
|
+
transition: var(--transition-ui-slow);
|
|
5361
5469
|
pointer-events: auto;
|
|
5362
5470
|
max-width: 500px;
|
|
5363
5471
|
}
|
|
@@ -5370,7 +5478,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
5370
5478
|
.toast-fade-out {
|
|
5371
5479
|
opacity: 0;
|
|
5372
5480
|
transform: translateY(-10px);
|
|
5373
|
-
transition:
|
|
5481
|
+
transition: var(--transition-ui-slow);
|
|
5374
5482
|
}
|
|
5375
5483
|
|
|
5376
5484
|
.toast-success {
|
|
@@ -6005,8 +6113,7 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
6005
6113
|
Typography & Font Variables
|
|
6006
6114
|
-------------------------------------------------------------------------- */
|
|
6007
6115
|
:root {
|
|
6008
|
-
--font-
|
|
6009
|
-
--font-mono: 'JetBrains Mono', 'SF Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
6116
|
+
--font-mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
6010
6117
|
|
|
6011
6118
|
/* Layout dimensions */
|
|
6012
6119
|
--header-height: 64px;
|
|
@@ -6019,6 +6126,14 @@ tr.line-range-start .d2h-code-line-ctn {
|
|
|
6019
6126
|
--transition-default: 0.2s ease;
|
|
6020
6127
|
--transition-slow: 0.3s ease;
|
|
6021
6128
|
|
|
6129
|
+
/* Full UI transition property lists — the 6-property set (background-color,
|
|
6130
|
+
border-color, color, box-shadow, transform, opacity) repeated across
|
|
6131
|
+
interactive elements. One variant per duration actually used. */
|
|
6132
|
+
--transition-ui-fast: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, transform 0.1s ease, opacity 0.1s ease;
|
|
6133
|
+
--transition-ui-snappy: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
|
|
6134
|
+
--transition-ui: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
|
|
6135
|
+
--transition-ui-slow: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
|
|
6136
|
+
|
|
6022
6137
|
/* Radii */
|
|
6023
6138
|
--radius-sm: 4px;
|
|
6024
6139
|
--radius-md: 6px;
|
|
@@ -6040,7 +6155,7 @@ html, body {
|
|
|
6040
6155
|
}
|
|
6041
6156
|
|
|
6042
6157
|
body {
|
|
6043
|
-
font-family: var(--font-
|
|
6158
|
+
font-family: var(--font-github);
|
|
6044
6159
|
-webkit-font-smoothing: antialiased;
|
|
6045
6160
|
-moz-osx-font-smoothing: grayscale;
|
|
6046
6161
|
}
|
|
@@ -6238,7 +6353,7 @@ body::before {
|
|
|
6238
6353
|
background: transparent;
|
|
6239
6354
|
color: var(--color-text-tertiary, #6e7681);
|
|
6240
6355
|
cursor: pointer;
|
|
6241
|
-
transition:
|
|
6356
|
+
transition: var(--transition-ui-snappy);
|
|
6242
6357
|
}
|
|
6243
6358
|
|
|
6244
6359
|
.pr-description-popover-close:hover {
|
|
@@ -6335,7 +6450,7 @@ body::before {
|
|
|
6335
6450
|
border-radius: var(--radius-md);
|
|
6336
6451
|
border: none;
|
|
6337
6452
|
cursor: pointer;
|
|
6338
|
-
transition:
|
|
6453
|
+
transition: var(--transition-ui-fast);
|
|
6339
6454
|
white-space: nowrap;
|
|
6340
6455
|
text-decoration: none;
|
|
6341
6456
|
}
|
|
@@ -6387,7 +6502,6 @@ body::before {
|
|
|
6387
6502
|
|
|
6388
6503
|
.header .btn-primary:hover {
|
|
6389
6504
|
background: var(--ai-secondary);
|
|
6390
|
-
box-shadow: 0 0 12px var(--ai-glow);
|
|
6391
6505
|
}
|
|
6392
6506
|
|
|
6393
6507
|
/* Theme toggle in header — border is transparent at rest, visible on hover.
|
|
@@ -6633,7 +6747,7 @@ body:not([data-theme="dark"]) .theme-icon-light {
|
|
|
6633
6747
|
padding: 2px 6px;
|
|
6634
6748
|
background-color: var(--color-bg-tertiary);
|
|
6635
6749
|
border-radius: var(--radius-sm);
|
|
6636
|
-
transition:
|
|
6750
|
+
transition: var(--transition-ui-fast);
|
|
6637
6751
|
}
|
|
6638
6752
|
|
|
6639
6753
|
.toolbar-branch:hover {
|
|
@@ -6753,7 +6867,7 @@ body:not([data-theme="dark"]) .theme-icon-light {
|
|
|
6753
6867
|
cursor: pointer;
|
|
6754
6868
|
color: var(--color-text-tertiary);
|
|
6755
6869
|
border-radius: var(--radius-xs);
|
|
6756
|
-
transition:
|
|
6870
|
+
transition: var(--transition-ui-fast);
|
|
6757
6871
|
opacity: 0;
|
|
6758
6872
|
}
|
|
6759
6873
|
|
|
@@ -6810,7 +6924,7 @@ body:not([data-theme="dark"]) .theme-icon-light {
|
|
|
6810
6924
|
padding: 2px 6px;
|
|
6811
6925
|
background-color: var(--color-bg-tertiary);
|
|
6812
6926
|
border-radius: var(--radius-sm);
|
|
6813
|
-
transition:
|
|
6927
|
+
transition: var(--transition-ui-fast);
|
|
6814
6928
|
}
|
|
6815
6929
|
|
|
6816
6930
|
.toolbar-commit:hover {
|
|
@@ -6836,7 +6950,7 @@ body:not([data-theme="dark"]) .theme-icon-light {
|
|
|
6836
6950
|
border: 1px solid #fcd34d;
|
|
6837
6951
|
border-radius: var(--radius-md);
|
|
6838
6952
|
text-decoration: none;
|
|
6839
|
-
transition:
|
|
6953
|
+
transition: var(--transition-ui-fast);
|
|
6840
6954
|
cursor: pointer;
|
|
6841
6955
|
margin-left: 8px;
|
|
6842
6956
|
}
|
|
@@ -6906,7 +7020,7 @@ body:not([data-theme="dark"]) .theme-icon-light {
|
|
|
6906
7020
|
color: var(--color-text-secondary);
|
|
6907
7021
|
border-radius: var(--radius-sm);
|
|
6908
7022
|
cursor: pointer;
|
|
6909
|
-
transition:
|
|
7023
|
+
transition: var(--transition-ui-fast);
|
|
6910
7024
|
}
|
|
6911
7025
|
|
|
6912
7026
|
.toolbar-actions .btn-icon:hover {
|
|
@@ -6930,7 +7044,7 @@ body:not([data-theme="dark"]) .theme-icon-light {
|
|
|
6930
7044
|
color: var(--color-text-secondary);
|
|
6931
7045
|
border-radius: var(--radius-sm);
|
|
6932
7046
|
cursor: pointer;
|
|
6933
|
-
transition:
|
|
7047
|
+
transition: var(--transition-ui-fast);
|
|
6934
7048
|
}
|
|
6935
7049
|
|
|
6936
7050
|
.toolbar-meta .btn-icon:hover {
|
|
@@ -6939,102 +7053,49 @@ body:not([data-theme="dark"]) .theme-icon-light {
|
|
|
6939
7053
|
border-color: var(--color-border-secondary);
|
|
6940
7054
|
}
|
|
6941
7055
|
|
|
6942
|
-
/*
|
|
7056
|
+
/* Analyze Button - Amber AI CTA */
|
|
6943
7057
|
#analyze-btn {
|
|
6944
|
-
background:
|
|
7058
|
+
background: #fde68a;
|
|
6945
7059
|
border: 1px solid #fcd34d;
|
|
6946
7060
|
color: #b45309;
|
|
6947
7061
|
font-weight: 600;
|
|
6948
7062
|
position: relative;
|
|
6949
7063
|
overflow: hidden;
|
|
6950
|
-
transition:
|
|
7064
|
+
transition: var(--transition-ui-slow);
|
|
6951
7065
|
display: inline-flex;
|
|
6952
7066
|
align-items: center;
|
|
6953
7067
|
gap: 6px;
|
|
6954
7068
|
}
|
|
6955
7069
|
|
|
6956
|
-
#analyze-btn::before {
|
|
6957
|
-
content: '';
|
|
6958
|
-
position: absolute;
|
|
6959
|
-
top: 0;
|
|
6960
|
-
left: -100%;
|
|
6961
|
-
width: 100%;
|
|
6962
|
-
height: 100%;
|
|
6963
|
-
background: linear-gradient(
|
|
6964
|
-
90deg,
|
|
6965
|
-
transparent 0%,
|
|
6966
|
-
rgba(255, 255, 255, 0.4) 50%,
|
|
6967
|
-
transparent 100%
|
|
6968
|
-
);
|
|
6969
|
-
transition: left 0.5s ease;
|
|
6970
|
-
}
|
|
6971
|
-
|
|
6972
7070
|
#analyze-btn:hover {
|
|
6973
|
-
background:
|
|
7071
|
+
background: #fcd34d;
|
|
6974
7072
|
border-color: var(--color-accent-ai-dark);
|
|
6975
|
-
box-shadow: 0 0 16px rgba(245, 158, 11, 0.4), 0 0 32px rgba(245, 158, 11, 0.2);
|
|
6976
7073
|
transform: translateY(-1px);
|
|
6977
7074
|
}
|
|
6978
7075
|
|
|
6979
|
-
#analyze-btn:hover::before {
|
|
6980
|
-
left: 100%;
|
|
6981
|
-
}
|
|
6982
|
-
|
|
6983
|
-
#analyze-btn .analyze-icon {
|
|
6984
|
-
color: #d97706;
|
|
6985
|
-
filter: drop-shadow(0 0 2px rgba(217, 119, 6, 0.5));
|
|
6986
|
-
}
|
|
6987
|
-
|
|
6988
|
-
#analyze-btn:hover .analyze-icon {
|
|
6989
|
-
animation: sparkle-float 0.6s ease-in-out infinite;
|
|
6990
|
-
}
|
|
6991
|
-
|
|
6992
|
-
@keyframes sparkle-float {
|
|
6993
|
-
0%, 100% { transform: translateY(0) rotate(0deg); }
|
|
6994
|
-
50% { transform: translateY(-2px) rotate(5deg); }
|
|
6995
|
-
}
|
|
6996
|
-
|
|
6997
7076
|
/* Dark theme adjustments */
|
|
6998
7077
|
[data-theme="dark"] #analyze-btn {
|
|
6999
|
-
background:
|
|
7078
|
+
background: rgba(251, 191, 36, 0.15);
|
|
7000
7079
|
border-color: rgba(251, 191, 36, 0.4);
|
|
7001
7080
|
color: var(--color-accent-ai);
|
|
7002
7081
|
}
|
|
7003
7082
|
|
|
7004
7083
|
[data-theme="dark"] #analyze-btn:hover {
|
|
7005
|
-
background:
|
|
7084
|
+
background: rgba(251, 191, 36, 0.25);
|
|
7006
7085
|
border-color: var(--color-accent-ai-dark);
|
|
7007
|
-
box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(245, 158, 11, 0.15);
|
|
7008
7086
|
}
|
|
7009
7087
|
|
|
7010
|
-
|
|
7011
|
-
color: var(--color-accent-ai);
|
|
7012
|
-
filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.6));
|
|
7013
|
-
}
|
|
7014
|
-
|
|
7015
|
-
/* Analyzing state - more intense glow */
|
|
7088
|
+
/* Analyzing state */
|
|
7016
7089
|
#analyze-btn.btn-analyzing {
|
|
7017
|
-
background:
|
|
7090
|
+
background: #d97706;
|
|
7018
7091
|
border-color: #b45309;
|
|
7019
7092
|
color: #ffffff;
|
|
7020
|
-
box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(217, 119, 6, 0.3);
|
|
7021
|
-
}
|
|
7022
|
-
|
|
7023
|
-
#analyze-btn.btn-analyzing .analyze-icon {
|
|
7024
|
-
color: #ffffff;
|
|
7025
|
-
filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
|
|
7026
|
-
animation: pulse-sparkle 1.2s ease-in-out infinite;
|
|
7027
7093
|
}
|
|
7028
7094
|
|
|
7029
7095
|
[data-theme="dark"] #analyze-btn.btn-analyzing {
|
|
7030
|
-
background:
|
|
7096
|
+
background: var(--color-accent-ai);
|
|
7031
7097
|
border-color: var(--color-accent-ai-dark);
|
|
7032
7098
|
color: #1c1917;
|
|
7033
|
-
box-shadow: 0 0 24px rgba(251, 191, 36, 0.6), 0 0 48px rgba(245, 158, 11, 0.3);
|
|
7034
|
-
}
|
|
7035
|
-
|
|
7036
|
-
[data-theme="dark"] #analyze-btn.btn-analyzing .analyze-icon {
|
|
7037
|
-
color: #1c1917;
|
|
7038
7099
|
}
|
|
7039
7100
|
|
|
7040
7101
|
/* Review panel toggle button - orange/amber AI identity */
|
|
@@ -7592,19 +7653,32 @@ body.resizing * {
|
|
|
7592
7653
|
Comment Minimize Mode
|
|
7593
7654
|
-------------------------------------------------------------------------- */
|
|
7594
7655
|
|
|
7595
|
-
/* When minimize mode is active, hide
|
|
7596
|
-
external-comment
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7656
|
+
/* When minimize mode is active, hide the inline comment, suggestion and
|
|
7657
|
+
external-comment cards anchored to diff lines. Under @pierre/diffs each card
|
|
7658
|
+
is slotted inside a vendor `[data-annotation-slot]` wrapper below its line;
|
|
7659
|
+
scoping the hide to those wrappers leaves file-comments-zone cards and
|
|
7660
|
+
AI-panel cards (which are NOT inside a slot wrapper) untouched. */
|
|
7661
|
+
#diff-container.comments-minimized [data-annotation-slot] > .user-comment-row,
|
|
7662
|
+
#diff-container.comments-minimized [data-annotation-slot] > .ai-suggestion,
|
|
7663
|
+
#diff-container.comments-minimized [data-annotation-slot] > .external-comment-row {
|
|
7600
7664
|
display: none;
|
|
7601
7665
|
}
|
|
7602
7666
|
|
|
7603
|
-
/* Per-line expansion override — clicking an indicator reveals that line's
|
|
7604
|
-
.comments-minimized .user-comment-row.comment-expanded,
|
|
7605
|
-
.comments-minimized .ai-suggestion
|
|
7606
|
-
.comments-minimized .external-comment-row.comment-expanded {
|
|
7607
|
-
display:
|
|
7667
|
+
/* Per-line expansion override — clicking an indicator reveals that line's cards */
|
|
7668
|
+
#diff-container.comments-minimized [data-annotation-slot] > .user-comment-row.comment-expanded,
|
|
7669
|
+
#diff-container.comments-minimized [data-annotation-slot] > .ai-suggestion.comment-expanded,
|
|
7670
|
+
#diff-container.comments-minimized [data-annotation-slot] > .external-comment-row.comment-expanded {
|
|
7671
|
+
display: block;
|
|
7672
|
+
}
|
|
7673
|
+
|
|
7674
|
+
/* A collapsed annotation row must add ZERO vertical space so it doesn't read
|
|
7675
|
+
as a "collapsed comment" breaking up the diff. The hidden card already gives
|
|
7676
|
+
the wrapper 0 height; we only make it a positioning context so the indicator
|
|
7677
|
+
pill can float OVER the anchor code line above (annotations render below
|
|
7678
|
+
their anchor line). The vendor annotation cell defaults to min-height:0 with
|
|
7679
|
+
no padding/row-gap, so the row genuinely collapses. */
|
|
7680
|
+
#diff-container.comments-minimized [data-annotation-slot]:has(> .comment-indicator) {
|
|
7681
|
+
position: relative;
|
|
7608
7682
|
}
|
|
7609
7683
|
|
|
7610
7684
|
/* When minimize mode is active, hide file-level comment cards */
|
|
@@ -7691,12 +7765,17 @@ body.resizing * {
|
|
|
7691
7765
|
border-width: 2px;
|
|
7692
7766
|
}
|
|
7693
7767
|
|
|
7694
|
-
/*
|
|
7768
|
+
/* Line-level indicator — a small pill floated over the right edge of the
|
|
7769
|
+
anchor code line. It lives in the light-DOM `[data-annotation-slot]` wrapper
|
|
7770
|
+
(a zero-height positioning context, see above) and is absolutely positioned
|
|
7771
|
+
so it contributes no layout height: `bottom: 100%` lifts it out of the
|
|
7772
|
+
zero-height row up onto the anchor line directly above. */
|
|
7695
7773
|
.comment-indicator {
|
|
7696
7774
|
position: absolute;
|
|
7697
|
-
right:
|
|
7698
|
-
|
|
7699
|
-
transform: translateY(
|
|
7775
|
+
right: 8px;
|
|
7776
|
+
bottom: 100%;
|
|
7777
|
+
transform: translateY(50%); /* straddle the line's lower edge, matching legacy */
|
|
7778
|
+
z-index: 3; /* above line content (annotation cell is z-index:2); below sticky headers (4) */
|
|
7700
7779
|
display: inline-flex;
|
|
7701
7780
|
align-items: center;
|
|
7702
7781
|
gap: 3px;
|
|
@@ -7705,12 +7784,12 @@ body.resizing * {
|
|
|
7705
7784
|
border-radius: 12px;
|
|
7706
7785
|
background: var(--color-bg-secondary);
|
|
7707
7786
|
cursor: pointer;
|
|
7787
|
+
pointer-events: auto;
|
|
7708
7788
|
font-size: 11px;
|
|
7709
7789
|
line-height: 1;
|
|
7710
7790
|
color: var(--color-text-secondary);
|
|
7711
|
-
|
|
7791
|
+
flex-shrink: 0;
|
|
7712
7792
|
transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
|
|
7713
|
-
z-index: 2; /* must be below sticky file headers (z-index: 4) */
|
|
7714
7793
|
}
|
|
7715
7794
|
|
|
7716
7795
|
.comment-indicator:hover {
|
|
@@ -7857,7 +7936,7 @@ body.resizing * {
|
|
|
7857
7936
|
justify-content: space-between;
|
|
7858
7937
|
padding: 16px;
|
|
7859
7938
|
border-bottom: 1px solid var(--ai-border);
|
|
7860
|
-
background:
|
|
7939
|
+
background: var(--ai-subtle);
|
|
7861
7940
|
flex-shrink: 0;
|
|
7862
7941
|
}
|
|
7863
7942
|
|
|
@@ -7897,7 +7976,7 @@ body.resizing * {
|
|
|
7897
7976
|
color: var(--color-text-tertiary);
|
|
7898
7977
|
border-radius: var(--radius-sm);
|
|
7899
7978
|
cursor: pointer;
|
|
7900
|
-
transition:
|
|
7979
|
+
transition: var(--transition-ui-fast);
|
|
7901
7980
|
}
|
|
7902
7981
|
|
|
7903
7982
|
.ai-panel-close:hover {
|
|
@@ -7951,7 +8030,7 @@ body.resizing * {
|
|
|
7951
8030
|
cursor: pointer;
|
|
7952
8031
|
flex: 1;
|
|
7953
8032
|
min-width: 0;
|
|
7954
|
-
transition:
|
|
8033
|
+
transition: var(--transition-ui-fast);
|
|
7955
8034
|
}
|
|
7956
8035
|
|
|
7957
8036
|
.analysis-context-btn:hover {
|
|
@@ -7967,29 +8046,28 @@ body.resizing * {
|
|
|
7967
8046
|
background: var(--color-bg-tertiary);
|
|
7968
8047
|
}
|
|
7969
8048
|
|
|
7970
|
-
/*
|
|
7971
|
-
|
|
7972
|
-
0%, 100% {
|
|
7973
|
-
box-shadow: 0 0 4px 1px rgba(245, 158, 11, 0.4),
|
|
7974
|
-
0 0 8px 2px rgba(245, 158, 11, 0.2);
|
|
7975
|
-
border-color: rgba(245, 158, 11, 0.6);
|
|
7976
|
-
}
|
|
7977
|
-
50% {
|
|
7978
|
-
box-shadow: 0 0 8px 2px rgba(245, 158, 11, 0.6),
|
|
7979
|
-
0 0 16px 4px rgba(245, 158, 11, 0.3);
|
|
7980
|
-
border-color: rgba(245, 158, 11, 0.8);
|
|
7981
|
-
}
|
|
7982
|
-
}
|
|
7983
|
-
|
|
8049
|
+
/* Solid amber fill marks a context button with a newer analysis run available
|
|
8050
|
+
— a strong interrupt cue. Matches the analyzing-button treatment. */
|
|
7984
8051
|
.analysis-context-btn.has-new-run {
|
|
7985
|
-
|
|
7986
|
-
border-color:
|
|
8052
|
+
background: #d97706;
|
|
8053
|
+
border-color: #b45309;
|
|
8054
|
+
color: #ffffff;
|
|
7987
8055
|
}
|
|
7988
8056
|
|
|
7989
8057
|
.analysis-context-btn.has-new-run:hover {
|
|
7990
|
-
|
|
7991
|
-
border-color:
|
|
7992
|
-
|
|
8058
|
+
background: #b45309;
|
|
8059
|
+
border-color: #92400e;
|
|
8060
|
+
}
|
|
8061
|
+
|
|
8062
|
+
[data-theme="dark"] .analysis-context-btn.has-new-run {
|
|
8063
|
+
background: var(--color-accent-ai);
|
|
8064
|
+
border-color: var(--color-accent-ai-dark);
|
|
8065
|
+
color: #1c1917;
|
|
8066
|
+
}
|
|
8067
|
+
|
|
8068
|
+
[data-theme="dark"] .analysis-context-btn.has-new-run:hover {
|
|
8069
|
+
background: var(--color-accent-ai-dark);
|
|
8070
|
+
border-color: var(--color-accent-ai-dark);
|
|
7993
8071
|
}
|
|
7994
8072
|
|
|
7995
8073
|
.analysis-context-label {
|
|
@@ -8058,7 +8136,7 @@ body.resizing * {
|
|
|
8058
8136
|
width: 100%;
|
|
8059
8137
|
text-align: left;
|
|
8060
8138
|
color: var(--color-text-primary);
|
|
8061
|
-
transition:
|
|
8139
|
+
transition: var(--transition-ui-fast);
|
|
8062
8140
|
}
|
|
8063
8141
|
|
|
8064
8142
|
.analysis-run-list .analysis-history-item:hover {
|
|
@@ -8518,30 +8596,6 @@ body.resizing * {
|
|
|
8518
8596
|
background: var(--color-bg-tertiary);
|
|
8519
8597
|
}
|
|
8520
8598
|
|
|
8521
|
-
/* Dark theme: amber glow for new run indicator */
|
|
8522
|
-
[data-theme="dark"] .analysis-context-btn.has-new-run {
|
|
8523
|
-
animation: amber-pulse-dark 2s ease-in-out infinite;
|
|
8524
|
-
}
|
|
8525
|
-
|
|
8526
|
-
@keyframes amber-pulse-dark {
|
|
8527
|
-
0%, 100% {
|
|
8528
|
-
box-shadow: 0 0 6px 1px rgba(251, 191, 36, 0.5),
|
|
8529
|
-
0 0 12px 3px rgba(251, 191, 36, 0.25);
|
|
8530
|
-
border-color: rgba(251, 191, 36, 0.7);
|
|
8531
|
-
}
|
|
8532
|
-
50% {
|
|
8533
|
-
box-shadow: 0 0 10px 3px rgba(251, 191, 36, 0.7),
|
|
8534
|
-
0 0 20px 6px rgba(251, 191, 36, 0.35);
|
|
8535
|
-
border-color: rgba(251, 191, 36, 0.9);
|
|
8536
|
-
}
|
|
8537
|
-
}
|
|
8538
|
-
|
|
8539
|
-
[data-theme="dark"] .analysis-context-btn.has-new-run:hover {
|
|
8540
|
-
animation: none;
|
|
8541
|
-
border-color: rgba(251, 191, 36, 0.9);
|
|
8542
|
-
box-shadow: 0 0 10px 3px rgba(251, 191, 36, 0.6);
|
|
8543
|
-
}
|
|
8544
|
-
|
|
8545
8599
|
/* Dark theme: config type badges */
|
|
8546
8600
|
[data-theme="dark"] .analysis-history-config-council {
|
|
8547
8601
|
color: #a78bfa;
|
|
@@ -8612,7 +8666,7 @@ body.resizing * {
|
|
|
8612
8666
|
color: var(--color-text-muted);
|
|
8613
8667
|
cursor: pointer;
|
|
8614
8668
|
opacity: 0.8;
|
|
8615
|
-
transition:
|
|
8669
|
+
transition: var(--transition-ui-fast);
|
|
8616
8670
|
display: flex;
|
|
8617
8671
|
align-items: center;
|
|
8618
8672
|
gap: 4px;
|
|
@@ -8722,7 +8776,7 @@ body.resizing * {
|
|
|
8722
8776
|
border: none;
|
|
8723
8777
|
border-radius: var(--radius-sm);
|
|
8724
8778
|
cursor: pointer;
|
|
8725
|
-
transition:
|
|
8779
|
+
transition: var(--transition-ui-fast);
|
|
8726
8780
|
white-space: nowrap;
|
|
8727
8781
|
text-align: center;
|
|
8728
8782
|
}
|
|
@@ -8801,7 +8855,7 @@ body.resizing * {
|
|
|
8801
8855
|
border-radius: var(--radius-sm);
|
|
8802
8856
|
color: var(--color-text-tertiary);
|
|
8803
8857
|
cursor: pointer;
|
|
8804
|
-
transition:
|
|
8858
|
+
transition: var(--transition-ui-fast);
|
|
8805
8859
|
flex-shrink: 0;
|
|
8806
8860
|
}
|
|
8807
8861
|
|
|
@@ -8846,7 +8900,7 @@ body.resizing * {
|
|
|
8846
8900
|
border: 1px solid var(--color-border-primary);
|
|
8847
8901
|
border-radius: var(--radius-sm);
|
|
8848
8902
|
cursor: pointer;
|
|
8849
|
-
transition:
|
|
8903
|
+
transition: var(--transition-ui-fast);
|
|
8850
8904
|
white-space: nowrap;
|
|
8851
8905
|
}
|
|
8852
8906
|
|
|
@@ -8914,7 +8968,7 @@ body.resizing * {
|
|
|
8914
8968
|
border-radius: var(--radius-sm);
|
|
8915
8969
|
color: var(--color-text-secondary);
|
|
8916
8970
|
cursor: pointer;
|
|
8917
|
-
transition:
|
|
8971
|
+
transition: var(--transition-ui-fast);
|
|
8918
8972
|
}
|
|
8919
8973
|
|
|
8920
8974
|
.findings-nav-btn:hover:not(:disabled) {
|
|
@@ -9171,7 +9225,7 @@ body.resizing * {
|
|
|
9171
9225
|
border: 1px solid var(--color-border-primary);
|
|
9172
9226
|
border-radius: var(--radius-sm);
|
|
9173
9227
|
cursor: pointer;
|
|
9174
|
-
transition:
|
|
9228
|
+
transition: var(--transition-ui-fast);
|
|
9175
9229
|
text-align: left;
|
|
9176
9230
|
width: 100%;
|
|
9177
9231
|
font-family: inherit;
|
|
@@ -9234,6 +9288,20 @@ body.resizing * {
|
|
|
9234
9288
|
opacity: 0.5;
|
|
9235
9289
|
}
|
|
9236
9290
|
|
|
9291
|
+
/* Muted second line under a dismissed finding's title carrying the reason it
|
|
9292
|
+
was dismissed. Truncation is done in JS; ellipsis guards long single words.
|
|
9293
|
+
Not struck through (the reason is meta about the dismissal, not the title). */
|
|
9294
|
+
.finding-dismissal-reason {
|
|
9295
|
+
font-size: 11px;
|
|
9296
|
+
font-style: italic;
|
|
9297
|
+
color: var(--color-text-tertiary);
|
|
9298
|
+
overflow: hidden;
|
|
9299
|
+
text-overflow: ellipsis;
|
|
9300
|
+
white-space: nowrap;
|
|
9301
|
+
max-width: 100%;
|
|
9302
|
+
text-decoration: none;
|
|
9303
|
+
}
|
|
9304
|
+
|
|
9237
9305
|
/* Status indicator icon in lower right corner for dismissed - no-entry symbol (circle with diagonal line) */
|
|
9238
9306
|
/* Hide when restore button is present (wrapper has restore button) */
|
|
9239
9307
|
.finding-item-wrapper:has(.quick-action-restore) .finding-item.finding-dismissed::after {
|
|
@@ -9493,7 +9561,7 @@ body.resizing * {
|
|
|
9493
9561
|
}
|
|
9494
9562
|
|
|
9495
9563
|
.file-level-indicator {
|
|
9496
|
-
font-family: var(--font-
|
|
9564
|
+
font-family: var(--font-github);
|
|
9497
9565
|
font-size: 0.6rem;
|
|
9498
9566
|
font-style: italic;
|
|
9499
9567
|
color: var(--color-text-muted);
|
|
@@ -9716,7 +9784,7 @@ body.resizing * {
|
|
|
9716
9784
|
:root {
|
|
9717
9785
|
--file-comment-bg: #f6f8fa;
|
|
9718
9786
|
--file-comment-border: #d0d7de;
|
|
9719
|
-
--file-comment-accent:
|
|
9787
|
+
--file-comment-accent: #8250df;
|
|
9720
9788
|
--file-comment-header-bg: #eaeef2;
|
|
9721
9789
|
}
|
|
9722
9790
|
|
|
@@ -9731,7 +9799,8 @@ body.resizing * {
|
|
|
9731
9799
|
|
|
9732
9800
|
/* Conditional styling - only show background/border when zone has actual content */
|
|
9733
9801
|
.file-comments-zone:has(.file-comment-card),
|
|
9734
|
-
.file-comments-zone:has(.file-comment-form)
|
|
9802
|
+
.file-comments-zone:has(.file-comment-form),
|
|
9803
|
+
.file-comments-zone:has(.external-comment-row) {
|
|
9735
9804
|
background: var(--file-comment-bg);
|
|
9736
9805
|
border-bottom: 1px solid var(--file-comment-border);
|
|
9737
9806
|
}
|
|
@@ -9745,7 +9814,8 @@ body.resizing * {
|
|
|
9745
9814
|
|
|
9746
9815
|
/* Only add padding when container has visible content */
|
|
9747
9816
|
.file-comments-container:has(.file-comment-card),
|
|
9748
|
-
.file-comments-container:has(.file-comment-form)
|
|
9817
|
+
.file-comments-container:has(.file-comment-form),
|
|
9818
|
+
.file-comments-container:has(.external-comment-row) {
|
|
9749
9819
|
padding: 12px 16px;
|
|
9750
9820
|
}
|
|
9751
9821
|
|
|
@@ -9820,7 +9890,7 @@ body.resizing * {
|
|
|
9820
9890
|
}
|
|
9821
9891
|
|
|
9822
9892
|
.comment-source-badge.ai {
|
|
9823
|
-
background:
|
|
9893
|
+
background: var(--ai-primary);
|
|
9824
9894
|
color: white;
|
|
9825
9895
|
}
|
|
9826
9896
|
|
|
@@ -9972,7 +10042,7 @@ body.resizing * {
|
|
|
9972
10042
|
border-radius: 4px;
|
|
9973
10043
|
color: var(--color-text-muted);
|
|
9974
10044
|
cursor: pointer;
|
|
9975
|
-
transition:
|
|
10045
|
+
transition: var(--transition-ui-fast);
|
|
9976
10046
|
}
|
|
9977
10047
|
|
|
9978
10048
|
.file-comment-user-btn:hover {
|
|
@@ -10025,7 +10095,7 @@ body.resizing * {
|
|
|
10025
10095
|
.file-comment-card.user-comment {
|
|
10026
10096
|
/* Override file-comment-card defaults to use user-comment styling */
|
|
10027
10097
|
margin: 0; /* Remove margin since container handles spacing */
|
|
10028
|
-
background:
|
|
10098
|
+
background: #f5f0ff;
|
|
10029
10099
|
border: 1px solid #8b5cf6;
|
|
10030
10100
|
border-left: 4px solid #8b5cf6;
|
|
10031
10101
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
@@ -10037,7 +10107,7 @@ body.resizing * {
|
|
|
10037
10107
|
}
|
|
10038
10108
|
|
|
10039
10109
|
[data-theme="dark"] .file-comment-card.user-comment {
|
|
10040
|
-
background:
|
|
10110
|
+
background: rgba(139, 92, 246, 0.08);
|
|
10041
10111
|
border-color: #a78bfa;
|
|
10042
10112
|
border-left-color: #a78bfa;
|
|
10043
10113
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
@@ -10125,11 +10195,11 @@ body.resizing * {
|
|
|
10125
10195
|
.file-comment-form-btn {
|
|
10126
10196
|
padding: 6px 16px;
|
|
10127
10197
|
border-radius: 6px;
|
|
10128
|
-
font-family: var(--font-
|
|
10198
|
+
font-family: var(--font-github);
|
|
10129
10199
|
font-size: 13px;
|
|
10130
10200
|
font-weight: 500;
|
|
10131
10201
|
cursor: pointer;
|
|
10132
|
-
transition:
|
|
10202
|
+
transition: var(--transition-ui-fast);
|
|
10133
10203
|
}
|
|
10134
10204
|
|
|
10135
10205
|
.file-comment-form-btn.cancel {
|
|
@@ -10355,7 +10425,7 @@ body.resizing * {
|
|
|
10355
10425
|
justify-content: space-between;
|
|
10356
10426
|
padding: 12px 16px;
|
|
10357
10427
|
border-bottom: 1px solid var(--chat-border);
|
|
10358
|
-
background:
|
|
10428
|
+
background: var(--chat-subtle);
|
|
10359
10429
|
flex-shrink: 0;
|
|
10360
10430
|
}
|
|
10361
10431
|
|
|
@@ -11080,7 +11150,7 @@ body.resizing * {
|
|
|
11080
11150
|
}
|
|
11081
11151
|
|
|
11082
11152
|
.chat-panel__message--assistant .chat-panel__bubble code {
|
|
11083
|
-
font-family:
|
|
11153
|
+
font-family: var(--font-mono);
|
|
11084
11154
|
font-size: 12px;
|
|
11085
11155
|
background: var(--color-bg-tertiary);
|
|
11086
11156
|
padding: 1px 4px;
|
|
@@ -11128,7 +11198,7 @@ body.resizing * {
|
|
|
11128
11198
|
/* Chat file links (auto-linked file:line references in assistant messages) */
|
|
11129
11199
|
.chat-file-link {
|
|
11130
11200
|
display: inline;
|
|
11131
|
-
font-family:
|
|
11201
|
+
font-family: var(--font-mono);
|
|
11132
11202
|
font-size: 12px;
|
|
11133
11203
|
color: var(--color-accent, #0969da);
|
|
11134
11204
|
text-decoration: none;
|
|
@@ -11700,6 +11770,7 @@ body.resizing * {
|
|
|
11700
11770
|
|
|
11701
11771
|
/* Chat Input Area */
|
|
11702
11772
|
.chat-panel__input-area {
|
|
11773
|
+
position: relative; /* anchor for .chat-panel__snippet-dropdown */
|
|
11703
11774
|
display: flex;
|
|
11704
11775
|
flex-direction: column;
|
|
11705
11776
|
margin: 0 12px 12px;
|
|
@@ -11778,6 +11849,192 @@ body.resizing * {
|
|
|
11778
11849
|
cursor: not-allowed;
|
|
11779
11850
|
}
|
|
11780
11851
|
|
|
11852
|
+
/* ── Prompt-snippet picker (chat input) ─────────────────────────────────── */
|
|
11853
|
+
.chat-panel__snippet-picker {
|
|
11854
|
+
/* NOT position:relative — the dropdown anchors to .chat-panel__input-area
|
|
11855
|
+
so it spans the input box instead of growing leftward out of the panel. */
|
|
11856
|
+
display: flex;
|
|
11857
|
+
align-items: center;
|
|
11858
|
+
flex-shrink: 0;
|
|
11859
|
+
}
|
|
11860
|
+
|
|
11861
|
+
.chat-panel__snippet-picker-btn {
|
|
11862
|
+
display: flex;
|
|
11863
|
+
align-items: center;
|
|
11864
|
+
justify-content: center;
|
|
11865
|
+
width: 28px;
|
|
11866
|
+
height: 28px;
|
|
11867
|
+
border: 1px solid var(--color-border-default, rgba(0, 0, 0, 0.1));
|
|
11868
|
+
background: transparent;
|
|
11869
|
+
color: var(--color-text-secondary, #656d76);
|
|
11870
|
+
border-radius: 6px;
|
|
11871
|
+
cursor: pointer;
|
|
11872
|
+
flex-shrink: 0;
|
|
11873
|
+
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
|
|
11874
|
+
}
|
|
11875
|
+
|
|
11876
|
+
.chat-panel__snippet-picker-btn:hover,
|
|
11877
|
+
.chat-panel__snippet-picker-btn--open {
|
|
11878
|
+
background: var(--color-bg-tertiary, rgba(128, 128, 128, 0.1));
|
|
11879
|
+
color: var(--color-text-primary, #1f2328);
|
|
11880
|
+
}
|
|
11881
|
+
|
|
11882
|
+
/* Dropdown opens UPWARD — the input sits at the panel bottom. Anchored to
|
|
11883
|
+
.chat-panel__input-area (position:relative) so it spans the input box and
|
|
11884
|
+
stays inside the chat panel at any panel width; previews ellipsize. */
|
|
11885
|
+
.chat-panel__snippet-dropdown {
|
|
11886
|
+
position: absolute;
|
|
11887
|
+
bottom: calc(100% + 6px);
|
|
11888
|
+
left: 0;
|
|
11889
|
+
right: 0;
|
|
11890
|
+
max-height: 320px;
|
|
11891
|
+
overflow-y: auto;
|
|
11892
|
+
background: var(--color-bg-primary, #fff);
|
|
11893
|
+
border: 1px solid var(--color-border-primary, #d0d7de);
|
|
11894
|
+
border-radius: 8px;
|
|
11895
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
11896
|
+
z-index: 100;
|
|
11897
|
+
padding: 4px;
|
|
11898
|
+
}
|
|
11899
|
+
|
|
11900
|
+
.chat-panel__snippet-header {
|
|
11901
|
+
display: flex;
|
|
11902
|
+
align-items: center;
|
|
11903
|
+
justify-content: space-between;
|
|
11904
|
+
padding: 4px 8px;
|
|
11905
|
+
border-bottom: 1px solid var(--color-border-muted, rgba(128, 128, 128, 0.15));
|
|
11906
|
+
margin-bottom: 4px;
|
|
11907
|
+
}
|
|
11908
|
+
|
|
11909
|
+
.chat-panel__snippet-header-title {
|
|
11910
|
+
font-size: 11px;
|
|
11911
|
+
font-weight: 600;
|
|
11912
|
+
text-transform: uppercase;
|
|
11913
|
+
letter-spacing: 0.04em;
|
|
11914
|
+
color: var(--color-text-tertiary, #8b949e);
|
|
11915
|
+
}
|
|
11916
|
+
|
|
11917
|
+
.chat-panel__snippet-manage-btn {
|
|
11918
|
+
display: flex;
|
|
11919
|
+
align-items: center;
|
|
11920
|
+
justify-content: center;
|
|
11921
|
+
width: 22px;
|
|
11922
|
+
height: 22px;
|
|
11923
|
+
border: none;
|
|
11924
|
+
background: transparent;
|
|
11925
|
+
color: var(--color-text-tertiary, #8b949e);
|
|
11926
|
+
border-radius: 5px;
|
|
11927
|
+
cursor: pointer;
|
|
11928
|
+
transition: background 0.15s ease, color 0.15s ease;
|
|
11929
|
+
}
|
|
11930
|
+
|
|
11931
|
+
.chat-panel__snippet-manage-btn:hover {
|
|
11932
|
+
background: var(--color-bg-tertiary, rgba(128, 128, 128, 0.1));
|
|
11933
|
+
color: var(--color-text-primary, #1f2328);
|
|
11934
|
+
}
|
|
11935
|
+
|
|
11936
|
+
.chat-panel__snippet-empty {
|
|
11937
|
+
display: flex;
|
|
11938
|
+
flex-direction: column;
|
|
11939
|
+
align-items: center;
|
|
11940
|
+
gap: 8px;
|
|
11941
|
+
padding: 16px 12px;
|
|
11942
|
+
text-align: center;
|
|
11943
|
+
color: var(--color-text-tertiary, #8b949e);
|
|
11944
|
+
font-size: 12px;
|
|
11945
|
+
}
|
|
11946
|
+
|
|
11947
|
+
.chat-panel__snippet-manage-empty-btn {
|
|
11948
|
+
border: 1px solid var(--color-border-primary, #d0d7de);
|
|
11949
|
+
background: transparent;
|
|
11950
|
+
color: var(--color-text-primary, #1f2328);
|
|
11951
|
+
border-radius: 6px;
|
|
11952
|
+
padding: 4px 10px;
|
|
11953
|
+
font-size: 12px;
|
|
11954
|
+
cursor: pointer;
|
|
11955
|
+
transition: background 0.15s ease;
|
|
11956
|
+
}
|
|
11957
|
+
|
|
11958
|
+
.chat-panel__snippet-manage-empty-btn:hover {
|
|
11959
|
+
background: var(--color-bg-tertiary, rgba(128, 128, 128, 0.1));
|
|
11960
|
+
}
|
|
11961
|
+
|
|
11962
|
+
.chat-panel__snippet-list {
|
|
11963
|
+
display: flex;
|
|
11964
|
+
flex-direction: column;
|
|
11965
|
+
}
|
|
11966
|
+
|
|
11967
|
+
.chat-panel__snippet-item {
|
|
11968
|
+
display: flex;
|
|
11969
|
+
align-items: center;
|
|
11970
|
+
width: 100%;
|
|
11971
|
+
padding: 8px 12px;
|
|
11972
|
+
border: none;
|
|
11973
|
+
background: transparent;
|
|
11974
|
+
text-align: left;
|
|
11975
|
+
border-radius: 6px;
|
|
11976
|
+
cursor: pointer;
|
|
11977
|
+
transition: background 0.15s ease;
|
|
11978
|
+
font-size: 13px;
|
|
11979
|
+
color: var(--color-text-primary, #1f2328);
|
|
11980
|
+
}
|
|
11981
|
+
|
|
11982
|
+
.chat-panel__snippet-item:hover {
|
|
11983
|
+
background: var(--color-bg-tertiary, rgba(128, 128, 128, 0.08));
|
|
11984
|
+
}
|
|
11985
|
+
|
|
11986
|
+
.chat-panel__snippet-item-preview {
|
|
11987
|
+
overflow: hidden;
|
|
11988
|
+
text-overflow: ellipsis;
|
|
11989
|
+
white-space: nowrap;
|
|
11990
|
+
min-width: 0;
|
|
11991
|
+
flex: 1;
|
|
11992
|
+
}
|
|
11993
|
+
|
|
11994
|
+
[data-theme="dark"] .chat-panel__snippet-dropdown {
|
|
11995
|
+
background: var(--color-bg-primary, #0d1117);
|
|
11996
|
+
border-color: var(--color-border-primary, #30363d);
|
|
11997
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
11998
|
+
}
|
|
11999
|
+
|
|
12000
|
+
[data-theme="dark"] .chat-panel__snippet-item {
|
|
12001
|
+
color: var(--color-text-primary, #e6edf3);
|
|
12002
|
+
}
|
|
12003
|
+
|
|
12004
|
+
[data-theme="dark"] .chat-panel__snippet-manage-empty-btn {
|
|
12005
|
+
color: var(--color-text-primary, #e6edf3);
|
|
12006
|
+
border-color: var(--color-border-primary, #30363d);
|
|
12007
|
+
}
|
|
12008
|
+
|
|
12009
|
+
/* Save-as-snippet pill (alt-click a submitted user message) */
|
|
12010
|
+
.chat-panel__save-snippet-pill {
|
|
12011
|
+
position: fixed;
|
|
12012
|
+
display: inline-flex;
|
|
12013
|
+
align-items: center;
|
|
12014
|
+
gap: 6px;
|
|
12015
|
+
padding: 5px 12px;
|
|
12016
|
+
font-size: 12px;
|
|
12017
|
+
font-weight: 600;
|
|
12018
|
+
line-height: 1;
|
|
12019
|
+
color: #ffffff;
|
|
12020
|
+
background: var(--color-accent-primary);
|
|
12021
|
+
border: none;
|
|
12022
|
+
border-radius: 999px;
|
|
12023
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
|
|
12024
|
+
cursor: pointer;
|
|
12025
|
+
white-space: nowrap;
|
|
12026
|
+
transition: background 0.15s ease, opacity 0.15s ease;
|
|
12027
|
+
}
|
|
12028
|
+
|
|
12029
|
+
.chat-panel__save-snippet-pill:hover:not(:disabled) {
|
|
12030
|
+
background: var(--color-accent-hover);
|
|
12031
|
+
}
|
|
12032
|
+
|
|
12033
|
+
.chat-panel__save-snippet-pill:disabled {
|
|
12034
|
+
opacity: 0.7;
|
|
12035
|
+
cursor: default;
|
|
12036
|
+
}
|
|
12037
|
+
|
|
11781
12038
|
.chat-panel__stop-btn {
|
|
11782
12039
|
display: flex;
|
|
11783
12040
|
align-items: center;
|
|
@@ -11897,7 +12154,7 @@ body.resizing * {
|
|
|
11897
12154
|
color: var(--color-accent-primary, #0969da);
|
|
11898
12155
|
background: var(--color-accent-lighter, rgba(9, 105, 218, 0.08));
|
|
11899
12156
|
border-radius: 12px;
|
|
11900
|
-
font-family: var(--font-mono,
|
|
12157
|
+
font-family: var(--font-mono, monospace);
|
|
11901
12158
|
white-space: nowrap;
|
|
11902
12159
|
}
|
|
11903
12160
|
|
|
@@ -11924,39 +12181,6 @@ body.resizing * {
|
|
|
11924
12181
|
color: var(--color-danger, #cf222e);
|
|
11925
12182
|
}
|
|
11926
12183
|
|
|
11927
|
-
/* Context chunk header (range label + per-chunk dismiss) */
|
|
11928
|
-
.context-chunk-header td {
|
|
11929
|
-
padding: 4px 12px;
|
|
11930
|
-
font-size: 11px;
|
|
11931
|
-
color: var(--color-text-secondary);
|
|
11932
|
-
border-top: 1px dashed var(--color-border-secondary, #d0d7de);
|
|
11933
|
-
}
|
|
11934
|
-
|
|
11935
|
-
.context-range-label {
|
|
11936
|
-
font-family: var(--font-mono, 'JetBrains Mono', monospace);
|
|
11937
|
-
}
|
|
11938
|
-
|
|
11939
|
-
.context-chunk-dismiss {
|
|
11940
|
-
display: inline-flex;
|
|
11941
|
-
align-items: center;
|
|
11942
|
-
justify-content: center;
|
|
11943
|
-
width: 18px;
|
|
11944
|
-
height: 18px;
|
|
11945
|
-
border: none;
|
|
11946
|
-
background: transparent;
|
|
11947
|
-
color: var(--color-text-tertiary);
|
|
11948
|
-
cursor: pointer;
|
|
11949
|
-
font-size: 14px;
|
|
11950
|
-
margin-left: 8px;
|
|
11951
|
-
border-radius: 3px;
|
|
11952
|
-
vertical-align: middle;
|
|
11953
|
-
}
|
|
11954
|
-
|
|
11955
|
-
.context-chunk-dismiss:hover {
|
|
11956
|
-
background: var(--color-bg-tertiary);
|
|
11957
|
-
color: var(--color-danger, #cf222e);
|
|
11958
|
-
}
|
|
11959
|
-
|
|
11960
12184
|
/* Separator between non-contiguous context chunks */
|
|
11961
12185
|
.context-chunk-separator-row {
|
|
11962
12186
|
height: 8px;
|
|
@@ -11987,10 +12211,6 @@ body.resizing * {
|
|
|
11987
12211
|
color: var(--color-danger, #f85149);
|
|
11988
12212
|
}
|
|
11989
12213
|
|
|
11990
|
-
[data-theme="dark"] .context-chunk-dismiss:hover {
|
|
11991
|
-
color: var(--color-danger, #f85149);
|
|
11992
|
-
}
|
|
11993
|
-
|
|
11994
12214
|
[data-theme="dark"] .context-chunk-separator-cell {
|
|
11995
12215
|
background: var(--color-bg-subtle, #161b22);
|
|
11996
12216
|
}
|
|
@@ -12019,7 +12239,8 @@ body.resizing * {
|
|
|
12019
12239
|
[data-chat="disabled"] .external-comment-chat-btn,
|
|
12020
12240
|
[data-chat="disabled"] .analysis-history-chat-btn,
|
|
12021
12241
|
[data-chat="disabled"] .chat-line-btn,
|
|
12022
|
-
[data-chat="disabled"] .btn-chat-from-comment
|
|
12242
|
+
[data-chat="disabled"] .btn-chat-from-comment,
|
|
12243
|
+
[data-chat="disabled"] .pierre-chat-btn {
|
|
12023
12244
|
display: none !important;
|
|
12024
12245
|
}
|
|
12025
12246
|
|
|
@@ -12034,7 +12255,8 @@ body.resizing * {
|
|
|
12034
12255
|
[data-chat="unavailable"] .external-comment-chat-btn,
|
|
12035
12256
|
[data-chat="unavailable"] .analysis-history-chat-btn,
|
|
12036
12257
|
[data-chat="unavailable"] .chat-line-btn,
|
|
12037
|
-
[data-chat="unavailable"] .btn-chat-from-comment
|
|
12258
|
+
[data-chat="unavailable"] .btn-chat-from-comment,
|
|
12259
|
+
[data-chat="unavailable"] .pierre-chat-btn {
|
|
12038
12260
|
display: none !important;
|
|
12039
12261
|
}
|
|
12040
12262
|
|
|
@@ -12115,7 +12337,6 @@ body.resizing * {
|
|
|
12115
12337
|
|
|
12116
12338
|
.analyze-split-container:hover {
|
|
12117
12339
|
transform: translateY(-1px);
|
|
12118
|
-
box-shadow: 0 0 16px rgba(245, 158, 11, 0.4), 0 0 32px rgba(245, 158, 11, 0.2);
|
|
12119
12340
|
}
|
|
12120
12341
|
|
|
12121
12342
|
.analyze-split-container #analyze-btn {
|
|
@@ -12135,45 +12356,25 @@ body.resizing * {
|
|
|
12135
12356
|
align-items: center;
|
|
12136
12357
|
justify-content: center;
|
|
12137
12358
|
padding: 0 8px;
|
|
12138
|
-
background:
|
|
12359
|
+
background: #fde68a;
|
|
12139
12360
|
border: 1px solid #fcd34d;
|
|
12140
12361
|
border-left: 1px solid rgba(180, 83, 9, 0.2);
|
|
12141
12362
|
border-top-right-radius: var(--radius-sm, 6px);
|
|
12142
12363
|
border-bottom-right-radius: var(--radius-sm, 6px);
|
|
12143
12364
|
color: #b45309;
|
|
12144
12365
|
cursor: pointer;
|
|
12145
|
-
transition:
|
|
12366
|
+
transition: var(--transition-ui-slow);
|
|
12146
12367
|
font-size: 0;
|
|
12147
12368
|
position: relative;
|
|
12148
12369
|
overflow: hidden;
|
|
12149
12370
|
font-weight: 600;
|
|
12150
12371
|
}
|
|
12151
12372
|
|
|
12152
|
-
.analyze-dropdown-toggle::before {
|
|
12153
|
-
content: '';
|
|
12154
|
-
position: absolute;
|
|
12155
|
-
top: 0;
|
|
12156
|
-
left: -100%;
|
|
12157
|
-
width: 100%;
|
|
12158
|
-
height: 100%;
|
|
12159
|
-
background: linear-gradient(
|
|
12160
|
-
90deg,
|
|
12161
|
-
transparent 0%,
|
|
12162
|
-
rgba(255, 255, 255, 0.4) 50%,
|
|
12163
|
-
transparent 100%
|
|
12164
|
-
);
|
|
12165
|
-
transition: left 0.5s ease;
|
|
12166
|
-
}
|
|
12167
|
-
|
|
12168
12373
|
.analyze-split-container:hover .analyze-dropdown-toggle {
|
|
12169
|
-
background:
|
|
12374
|
+
background: #fcd34d;
|
|
12170
12375
|
border-color: var(--color-accent-ai-dark);
|
|
12171
12376
|
}
|
|
12172
12377
|
|
|
12173
|
-
.analyze-split-container:hover .analyze-dropdown-toggle::before {
|
|
12174
|
-
left: 100%;
|
|
12175
|
-
}
|
|
12176
|
-
|
|
12177
12378
|
.analyze-dropdown-toggle svg {
|
|
12178
12379
|
width: 12px;
|
|
12179
12380
|
height: 12px;
|
|
@@ -12192,10 +12393,10 @@ body.resizing * {
|
|
|
12192
12393
|
right: 0;
|
|
12193
12394
|
margin-top: 4px;
|
|
12194
12395
|
min-width: 200px;
|
|
12195
|
-
background:
|
|
12396
|
+
background: #fffbeb;
|
|
12196
12397
|
border: 1px solid #fcd34d;
|
|
12197
12398
|
border-radius: var(--radius-sm, 6px);
|
|
12198
|
-
box-shadow: 0 4px 16px rgba(
|
|
12399
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
12199
12400
|
z-index: 100;
|
|
12200
12401
|
padding: 0;
|
|
12201
12402
|
overflow: hidden;
|
|
@@ -12225,28 +12426,23 @@ body.resizing * {
|
|
|
12225
12426
|
color: #b45309;
|
|
12226
12427
|
}
|
|
12227
12428
|
|
|
12228
|
-
/* Dark theme —
|
|
12229
|
-
[data-theme="dark"] .analyze-split-container:hover {
|
|
12230
|
-
box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(245, 158, 11, 0.15);
|
|
12231
|
-
}
|
|
12232
|
-
|
|
12429
|
+
/* Dark theme — toggle */
|
|
12233
12430
|
[data-theme="dark"] .analyze-dropdown-toggle {
|
|
12234
|
-
background:
|
|
12431
|
+
background: rgba(251, 191, 36, 0.15);
|
|
12235
12432
|
border-color: rgba(251, 191, 36, 0.4);
|
|
12236
12433
|
border-left-color: rgba(251, 191, 36, 0.2);
|
|
12237
12434
|
color: var(--color-accent-ai, #fbbf24);
|
|
12238
12435
|
}
|
|
12239
12436
|
|
|
12240
12437
|
[data-theme="dark"] .analyze-split-container:hover .analyze-dropdown-toggle {
|
|
12241
|
-
background:
|
|
12438
|
+
background: rgba(251, 191, 36, 0.25);
|
|
12242
12439
|
border-color: var(--color-accent-ai-dark);
|
|
12243
12440
|
}
|
|
12244
12441
|
|
|
12245
12442
|
[data-theme="dark"] .analyze-dropdown-menu {
|
|
12246
|
-
background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(245, 158, 11, 0.12) 100%);
|
|
12247
12443
|
background-color: var(--color-bg-elevated, #1e2329);
|
|
12248
12444
|
border-color: rgba(251, 191, 36, 0.4);
|
|
12249
|
-
box-shadow: 0
|
|
12445
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
12250
12446
|
}
|
|
12251
12447
|
|
|
12252
12448
|
[data-theme="dark"] .analyze-dropdown-item {
|
|
@@ -12260,17 +12456,15 @@ body.resizing * {
|
|
|
12260
12456
|
|
|
12261
12457
|
/* Analyzing state — toggle matches the main button */
|
|
12262
12458
|
.analyze-split-container .analyze-dropdown-toggle.btn-analyzing {
|
|
12263
|
-
background:
|
|
12459
|
+
background: #d97706;
|
|
12264
12460
|
border-color: #b45309;
|
|
12265
12461
|
color: #ffffff;
|
|
12266
|
-
box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(217, 119, 6, 0.3);
|
|
12267
12462
|
}
|
|
12268
12463
|
|
|
12269
12464
|
[data-theme="dark"] .analyze-split-container .analyze-dropdown-toggle.btn-analyzing {
|
|
12270
|
-
background:
|
|
12465
|
+
background: var(--color-accent-ai, #fbbf24);
|
|
12271
12466
|
border-color: var(--color-accent-ai-dark, #d97706);
|
|
12272
12467
|
color: #1c1917;
|
|
12273
|
-
box-shadow: 0 0 24px rgba(251, 191, 36, 0.6), 0 0 48px rgba(245, 158, 11, 0.3);
|
|
12274
12468
|
}
|
|
12275
12469
|
|
|
12276
12470
|
/* ============================================
|
|
@@ -13008,7 +13202,9 @@ body.resizing * {
|
|
|
13008
13202
|
border: 1px solid rgba(9, 105, 218, 0.18);
|
|
13009
13203
|
border-left: 3px solid #0969da;
|
|
13010
13204
|
border-radius: var(--radius-md, 6px);
|
|
13011
|
-
|
|
13205
|
+
/* Viewport overflow guard + readable prose measure on wide displays
|
|
13206
|
+
(centered banner, so the cap keeps it near the code it describes). */
|
|
13207
|
+
max-width: min(calc(100vw - var(--sidebar-width, 0px) - var(--right-panel-group-width, 0px) - 64px), var(--annotation-prose-max, 80ch));
|
|
13012
13208
|
box-sizing: border-box;
|
|
13013
13209
|
word-break: break-word;
|
|
13014
13210
|
}
|
|
@@ -13155,10 +13351,13 @@ body.summaries-hidden .hunk-summary-row,
|
|
|
13155
13351
|
color: #7d5700;
|
|
13156
13352
|
/* Brighter amber matching the .tour-bar gradient so stops read as part
|
|
13157
13353
|
of the same tour surface, not a muted variant of it. */
|
|
13158
|
-
background:
|
|
13354
|
+
background: #fef3c7;
|
|
13159
13355
|
border: 1px solid rgba(212, 167, 44, 0.55);
|
|
13160
13356
|
border-left: 3px solid #d4a72c;
|
|
13161
13357
|
border-radius: var(--radius-md, 6px);
|
|
13358
|
+
/* Span the available diff width, matching full-width comments/suggestions;
|
|
13359
|
+
only the description prose below is capped to a readable measure. The
|
|
13360
|
+
viewport guard keeps the card from overrunning the sidebar/right panel. */
|
|
13162
13361
|
max-width: calc(100vw - var(--sidebar-width, 0px) - var(--right-panel-group-width, 0px) - 64px);
|
|
13163
13362
|
box-sizing: border-box;
|
|
13164
13363
|
word-break: break-word;
|
|
@@ -13170,8 +13369,7 @@ body.summaries-hidden .hunk-summary-row,
|
|
|
13170
13369
|
color: #e3b341;
|
|
13171
13370
|
/* Mirror the bar's dark-mode amber wash so light- and dark-mode tours
|
|
13172
13371
|
share one visual language. */
|
|
13173
|
-
background:
|
|
13174
|
-
var(--color-bg-primary, #0d1117);
|
|
13372
|
+
background: rgba(187, 128, 9, 0.22);
|
|
13175
13373
|
border-color: rgba(187, 128, 9, 0.55);
|
|
13176
13374
|
border-left-color: #bb8009;
|
|
13177
13375
|
}
|
|
@@ -13206,86 +13404,19 @@ body.summaries-hidden .hunk-summary-row,
|
|
|
13206
13404
|
line-height: 1.3;
|
|
13207
13405
|
}
|
|
13208
13406
|
|
|
13407
|
+
/* The description is always shown in full — stops are short by design, so
|
|
13408
|
+
there is no line-clamp or "Show more" toggle. The card spans the diff
|
|
13409
|
+
width; capping the prose here (not the card) keeps it at a readable
|
|
13410
|
+
measure, matching full-width comment/suggestion bodies. */
|
|
13209
13411
|
.tour-annotation-description {
|
|
13210
13412
|
margin: 0;
|
|
13413
|
+
max-width: min(100%, var(--annotation-prose-max, 80ch));
|
|
13211
13414
|
font-size: 13px;
|
|
13212
13415
|
font-weight: 400;
|
|
13213
13416
|
line-height: 1.45;
|
|
13214
13417
|
opacity: 0.95;
|
|
13215
13418
|
}
|
|
13216
13419
|
|
|
13217
|
-
/* Wrap around the description <p>. Collapsed state uses the WebKit
|
|
13218
|
-
line-clamp triplet to cap visible content at ~3 lines; expanded state
|
|
13219
|
-
removes the clamp so the full description shows. The wrapper (not the
|
|
13220
|
-
inner <p>) carries the clamp so the JS overflow check has a stable
|
|
13221
|
-
element to measure (`scrollHeight > clientHeight`). */
|
|
13222
|
-
.tour-annotation-description-wrap {
|
|
13223
|
-
display: -webkit-box;
|
|
13224
|
-
-webkit-box-orient: vertical;
|
|
13225
|
-
-webkit-line-clamp: 3;
|
|
13226
|
-
line-clamp: 3;
|
|
13227
|
-
overflow: hidden;
|
|
13228
|
-
}
|
|
13229
|
-
|
|
13230
|
-
.tour-annotation-description-wrap.expanded {
|
|
13231
|
-
display: block;
|
|
13232
|
-
-webkit-line-clamp: unset;
|
|
13233
|
-
line-clamp: unset;
|
|
13234
|
-
overflow: visible;
|
|
13235
|
-
}
|
|
13236
|
-
|
|
13237
|
-
/* Footer holds only the "Show more"/"Show less" toggle when the
|
|
13238
|
-
description overflows the line-clamp; otherwise it's an empty stub.
|
|
13239
|
-
Chat about lives in the header now. */
|
|
13240
|
-
.tour-annotation-footer {
|
|
13241
|
-
display: flex;
|
|
13242
|
-
align-items: center;
|
|
13243
|
-
gap: 6px;
|
|
13244
|
-
margin-top: 4px;
|
|
13245
|
-
}
|
|
13246
|
-
|
|
13247
|
-
.tour-annotation-footer:empty {
|
|
13248
|
-
display: none;
|
|
13249
|
-
}
|
|
13250
|
-
|
|
13251
|
-
/* "Show more" / "Show less" toggle. Styled as a borderless amber link
|
|
13252
|
-
button so it reads as part of the tour annotation but doesn't compete
|
|
13253
|
-
with the primary Chat about action. */
|
|
13254
|
-
.tour-annotation-show-more-btn {
|
|
13255
|
-
appearance: none;
|
|
13256
|
-
background: none;
|
|
13257
|
-
border: 0;
|
|
13258
|
-
padding: 2px 4px;
|
|
13259
|
-
margin: 0;
|
|
13260
|
-
font: inherit;
|
|
13261
|
-
font-size: 12px;
|
|
13262
|
-
font-weight: 600;
|
|
13263
|
-
color: #7d5700;
|
|
13264
|
-
cursor: pointer;
|
|
13265
|
-
text-decoration: underline;
|
|
13266
|
-
text-underline-offset: 2px;
|
|
13267
|
-
border-radius: var(--radius-sm, 3px);
|
|
13268
|
-
}
|
|
13269
|
-
|
|
13270
|
-
.tour-annotation-show-more-btn:hover {
|
|
13271
|
-
color: #5b3f00;
|
|
13272
|
-
background: rgba(255, 255, 255, 0.45);
|
|
13273
|
-
}
|
|
13274
|
-
|
|
13275
|
-
.tour-annotation-show-more-btn:focus-visible {
|
|
13276
|
-
outline: 2px solid #d4a72c;
|
|
13277
|
-
outline-offset: 1px;
|
|
13278
|
-
}
|
|
13279
|
-
|
|
13280
|
-
[data-theme="dark"] .tour-annotation-show-more-btn {
|
|
13281
|
-
color: #e3b341;
|
|
13282
|
-
}
|
|
13283
|
-
|
|
13284
|
-
[data-theme="dark"] .tour-annotation-show-more-btn:hover {
|
|
13285
|
-
color: #f3c861;
|
|
13286
|
-
background: rgba(187, 128, 9, 0.18);
|
|
13287
|
-
}
|
|
13288
|
-
|
|
13289
13420
|
/* The chat button on a tour-stop annotation reuses .ai-action / .ai-action-chat
|
|
13290
13421
|
so its idle and hover treatments stay in sync with the rest of the app. We
|
|
13291
13422
|
override surface colors (so it reads on the amber background) AND collapse
|
|
@@ -13389,16 +13520,15 @@ body.tour-active .d2h-file-header {
|
|
|
13389
13520
|
/* Distinctive amber theme so the bar reads as a tour-mode chrome and
|
|
13390
13521
|
not just another toolbar. Soft tinted background + a thicker amber
|
|
13391
13522
|
bottom rule echo the per-stop annotation accent (#d4a72c). */
|
|
13392
|
-
background:
|
|
13523
|
+
background: #fef3c7;
|
|
13393
13524
|
border-bottom: 2px solid #d4a72c;
|
|
13394
|
-
box-shadow: 0 2px
|
|
13525
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
13395
13526
|
font-size: 13px;
|
|
13396
13527
|
color: #7d5700;
|
|
13397
13528
|
}
|
|
13398
13529
|
|
|
13399
13530
|
[data-theme="dark"] .tour-bar {
|
|
13400
|
-
background:
|
|
13401
|
-
var(--color-bg-primary, #0d1117);
|
|
13531
|
+
background: rgba(187, 128, 9, 0.22);
|
|
13402
13532
|
border-bottom-color: #bb8009;
|
|
13403
13533
|
color: #e3b341;
|
|
13404
13534
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.40);
|
|
@@ -13549,3 +13679,145 @@ body.tour-active .d2h-file-header {
|
|
|
13549
13679
|
box-shadow: 0 0 0 4px rgba(187, 128, 9, 0.40);
|
|
13550
13680
|
}
|
|
13551
13681
|
}
|
|
13682
|
+
|
|
13683
|
+
/* ============================================================
|
|
13684
|
+
@pierre/diffs integration
|
|
13685
|
+
============================================================ */
|
|
13686
|
+
|
|
13687
|
+
/* @pierre/diffs container */
|
|
13688
|
+
.pierre-diff-body {
|
|
13689
|
+
overflow-x: auto;
|
|
13690
|
+
border: 1px solid var(--color-border-default);
|
|
13691
|
+
border-top: none;
|
|
13692
|
+
border-radius: 0 0 6px 6px;
|
|
13693
|
+
}
|
|
13694
|
+
|
|
13695
|
+
/* Custom elements default to display:inline — force block layout.
|
|
13696
|
+
text-align: start guards against inherited centering (text-align crosses
|
|
13697
|
+
the shadow boundary; the vendor styles never set it on code lines). */
|
|
13698
|
+
diffs-container {
|
|
13699
|
+
display: block;
|
|
13700
|
+
text-align: start;
|
|
13701
|
+
--diffs-font-size: 12px;
|
|
13702
|
+
--diffs-line-height: 1.45;
|
|
13703
|
+
}
|
|
13704
|
+
|
|
13705
|
+
/* Dark-theme highlight: reduced opacity to match legacy chat-line-highlight-dark */
|
|
13706
|
+
[data-theme="dark"] diffs-container {
|
|
13707
|
+
--pierre-highlight-start: 0.15;
|
|
13708
|
+
--pierre-highlight-mid: 0.06;
|
|
13709
|
+
}
|
|
13710
|
+
|
|
13711
|
+
/* Binary file placeholder inside @pierre/diffs */
|
|
13712
|
+
.pierre-binary-file {
|
|
13713
|
+
padding: 16px;
|
|
13714
|
+
text-align: center;
|
|
13715
|
+
color: var(--color-fg-muted);
|
|
13716
|
+
font-style: italic;
|
|
13717
|
+
}
|
|
13718
|
+
|
|
13719
|
+
/* @pierre/diffs annotation styles (light DOM — slotted into shadow DOM)
|
|
13720
|
+
Suggestions, comments, and comment forms all reuse the legacy classes
|
|
13721
|
+
(.ai-suggestion, .user-comment, .user-comment-form, .comment-textarea, etc.)
|
|
13722
|
+
so all existing CSS applies. No custom form styles needed.
|
|
13723
|
+
|
|
13724
|
+
Split (side-by-side) layout: the two code columns live in the shadow DOM's
|
|
13725
|
+
<pre data-diff-type="split"> grid; .pierre-diff-body keeps overflow-x:auto so
|
|
13726
|
+
a wide split view scrolls instead of breaking the grid. @pierre/diffs slots
|
|
13727
|
+
each annotation into a SINGLE column (deletions=left, additions=right).
|
|
13728
|
+
PierreBridge then stretches a LONE annotation across both columns by marking
|
|
13729
|
+
it .pr-annotation-fullwidth (injected shadow CSS repositions the subgrid
|
|
13730
|
+
cell); rows with annotations on BOTH sides stay side-by-side at ~half width.
|
|
13731
|
+
See PierreBridge.ANNOTATION_CSS and _syncSplitAnnotationLayout. */
|
|
13732
|
+
|
|
13733
|
+
/* Dual gutter buttons (chat + comment) inside @pierre/diffs */
|
|
13734
|
+
.pierre-gutter-buttons {
|
|
13735
|
+
display: flex;
|
|
13736
|
+
align-items: center;
|
|
13737
|
+
gap: 2px;
|
|
13738
|
+
position: absolute;
|
|
13739
|
+
right: -12px;
|
|
13740
|
+
top: 50%;
|
|
13741
|
+
transform: translateY(-50%);
|
|
13742
|
+
z-index: 20;
|
|
13743
|
+
pointer-events: auto;
|
|
13744
|
+
}
|
|
13745
|
+
|
|
13746
|
+
.pierre-gutter-btn {
|
|
13747
|
+
width: 22px;
|
|
13748
|
+
height: 22px;
|
|
13749
|
+
background: #0969da;
|
|
13750
|
+
color: #fff;
|
|
13751
|
+
border: none;
|
|
13752
|
+
border-radius: 6px;
|
|
13753
|
+
cursor: pointer;
|
|
13754
|
+
transition: opacity 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
|
|
13755
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
13756
|
+
display: flex;
|
|
13757
|
+
align-items: center;
|
|
13758
|
+
justify-content: center;
|
|
13759
|
+
padding: 0;
|
|
13760
|
+
pointer-events: auto;
|
|
13761
|
+
}
|
|
13762
|
+
|
|
13763
|
+
.pierre-gutter-btn:hover {
|
|
13764
|
+
background: #0860ca;
|
|
13765
|
+
transform: scale(1.08);
|
|
13766
|
+
box-shadow: 0 2px 6px rgba(9, 105, 218, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
13767
|
+
}
|
|
13768
|
+
|
|
13769
|
+
.pierre-gutter-btn:active {
|
|
13770
|
+
transform: scale(0.96);
|
|
13771
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
13772
|
+
}
|
|
13773
|
+
|
|
13774
|
+
.pierre-comment-btn {
|
|
13775
|
+
font-size: 16px;
|
|
13776
|
+
font-weight: 400;
|
|
13777
|
+
line-height: 1;
|
|
13778
|
+
}
|
|
13779
|
+
|
|
13780
|
+
.pierre-chat-btn svg {
|
|
13781
|
+
width: 12px;
|
|
13782
|
+
height: 12px;
|
|
13783
|
+
}
|
|
13784
|
+
|
|
13785
|
+
/* --------------------------------------------------------------------------
|
|
13786
|
+
Reduced motion: honor the user's OS-level preference by neutralizing
|
|
13787
|
+
animations and transitions across the app.
|
|
13788
|
+
-------------------------------------------------------------------------- */
|
|
13789
|
+
@media (prefers-reduced-motion: reduce) {
|
|
13790
|
+
*, *::before, *::after {
|
|
13791
|
+
animation-duration: 0.01ms !important;
|
|
13792
|
+
animation-iteration-count: 1 !important;
|
|
13793
|
+
transition-duration: 0.01ms !important;
|
|
13794
|
+
scroll-behavior: auto !important;
|
|
13795
|
+
}
|
|
13796
|
+
|
|
13797
|
+
/* Busy indicators are exempt — a frozen spinner reads as a hung UI. Re-assert
|
|
13798
|
+
each spinner's own animation (higher selector specificity than the `*`
|
|
13799
|
+
blanket above) so it keeps spinning at its intended rate. */
|
|
13800
|
+
.loading-spinner,
|
|
13801
|
+
.status-icon.spinning .spinner,
|
|
13802
|
+
.btn-refresh-external-comments.is-refreshing svg,
|
|
13803
|
+
#refresh-pr .spinner-icon,
|
|
13804
|
+
#local-refresh-btn .spinner-icon {
|
|
13805
|
+
animation: spin 1s linear infinite !important;
|
|
13806
|
+
}
|
|
13807
|
+
|
|
13808
|
+
.spinner,
|
|
13809
|
+
.council-spinner,
|
|
13810
|
+
.btn-spinner,
|
|
13811
|
+
.chat-panel__tool-spinner,
|
|
13812
|
+
.loading-spinner-small {
|
|
13813
|
+
animation: spin 0.8s linear infinite !important;
|
|
13814
|
+
}
|
|
13815
|
+
|
|
13816
|
+
.chat-file-link--loading::after {
|
|
13817
|
+
animation: chat-file-link-spin 0.6s linear infinite !important;
|
|
13818
|
+
}
|
|
13819
|
+
|
|
13820
|
+
.chat-panel__loop-spinner svg {
|
|
13821
|
+
animation: loop-spin 1.4s linear infinite !important;
|
|
13822
|
+
}
|
|
13823
|
+
}
|