@in-the-loop-labs/pair-review 5.4.3 → 5.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in-the-loop-labs/pair-review",
3
- "version": "5.4.3",
3
+ "version": "5.5.0",
4
4
  "description": "Your AI-powered code review partner - Close the feedback loop with AI coding agents",
5
5
  "main": "src/server.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pair-review",
3
- "version": "5.4.3",
3
+ "version": "5.5.0",
4
4
  "description": "pair-review app integration — Open PRs and local changes in the pair-review web UI, run server-side AI analysis, and address review feedback. Requires the pair-review MCP server.",
5
5
  "author": {
6
6
  "name": "in-the-loop-labs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-critic",
3
- "version": "5.4.3",
3
+ "version": "5.5.0",
4
4
  "description": "AI-powered code review analysis — Run three-level AI analysis directly in your coding agent. Works standalone, no server required.",
5
5
  "author": {
6
6
  "name": "in-the-loop-labs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pair-loop",
3
- "version": "5.4.3",
3
+ "version": "5.5.0",
4
4
  "description": "Agent-orchestrated review loop — implement, review with pair-review multi-model councils via the headless CLI, triage, fix, and repeat until a final review returns no blockers. MCP-independent.",
5
5
  "author": {
6
6
  "name": "in-the-loop-labs",
package/public/css/pr.css CHANGED
@@ -951,6 +951,17 @@
951
951
  margin-bottom: 8px;
952
952
  }
953
953
 
954
+ /* Nested folders sit tight under their parent */
955
+ .file-group .file-group {
956
+ margin-bottom: 0;
957
+ }
958
+
959
+ /* Collapsed folder chains (e.g. "src/js/utils") can be long */
960
+ .file-group-name {
961
+ min-width: 0;
962
+ overflow-wrap: anywhere;
963
+ }
964
+
954
965
  .file-group-header {
955
966
  display: flex;
956
967
  align-items: center;
@@ -984,7 +995,9 @@
984
995
  height: 12px;
985
996
  }
986
997
 
987
- .file-group.expanded .file-group-chevron {
998
+ /* Child combinators: only a folder's own chevron follows its expanded state,
999
+ not the chevrons of nested subfolders */
1000
+ .file-group.expanded > .file-group-header > .file-group-chevron {
988
1001
  transform: rotate(90deg);
989
1002
  }
990
1003
 
@@ -1001,7 +1014,7 @@
1001
1014
  }
1002
1015
 
1003
1016
  .file-group-items {
1004
- margin-left: 16px;
1017
+ margin-left: 12px;
1005
1018
  }
1006
1019
 
1007
1020
  /* Hide file items when group is collapsed */
@@ -5764,114 +5777,6 @@ a.posted-comment-icon:focus-visible {
5764
5777
  border-top-color: #30363d;
5765
5778
  }
5766
5779
 
5767
- /* Toast Notification Styles */
5768
- .toast-container {
5769
- position: fixed;
5770
- top: 16px;
5771
- left: 50%;
5772
- transform: translateX(-50%);
5773
- z-index: 20000;
5774
- display: flex;
5775
- flex-direction: column-reverse;
5776
- gap: 8px;
5777
- pointer-events: none;
5778
- }
5779
-
5780
- .toast {
5781
- padding: 12px 16px;
5782
- border-radius: 8px;
5783
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
5784
- font-size: 14px;
5785
- font-weight: 500;
5786
- opacity: 0;
5787
- transform: translateY(-20px);
5788
- transition: var(--transition-ui-slow);
5789
- pointer-events: auto;
5790
- max-width: 500px;
5791
- }
5792
-
5793
- .toast-show {
5794
- opacity: 1;
5795
- transform: translateY(0);
5796
- }
5797
-
5798
- .toast-fade-out {
5799
- opacity: 0;
5800
- transform: translateY(-10px);
5801
- transition: var(--transition-ui-slow);
5802
- }
5803
-
5804
- .toast-success {
5805
- background-color: #1f883d;
5806
- color: white;
5807
- border: 1px solid #1a7f37;
5808
- }
5809
-
5810
- .toast-error {
5811
- background-color: #d1242f;
5812
- color: white;
5813
- border: 1px solid #cf222e;
5814
- }
5815
-
5816
- .toast-warning {
5817
- background-color: #9a6700;
5818
- color: white;
5819
- border: 1px solid #bf8700;
5820
- }
5821
-
5822
- .toast-info {
5823
- background-color: #0969da;
5824
- color: white;
5825
- border: 1px solid #0550ae;
5826
- }
5827
-
5828
- .toast-content {
5829
- display: flex;
5830
- align-items: center;
5831
- gap: 8px;
5832
- }
5833
-
5834
- .toast-icon {
5835
- flex-shrink: 0;
5836
- }
5837
-
5838
- .toast-message {
5839
- flex: 1;
5840
- line-height: 1.4;
5841
- }
5842
-
5843
- .toast-link {
5844
- color: white;
5845
- text-decoration: underline;
5846
- margin-left: 8px;
5847
- white-space: nowrap;
5848
- }
5849
-
5850
- .toast-link:hover {
5851
- color: rgba(255, 255, 255, 0.9);
5852
- }
5853
-
5854
- /* Dark theme toast styles */
5855
- [data-theme="dark"] .toast-success {
5856
- background-color: #238636;
5857
- border-color: #2ea043;
5858
- }
5859
-
5860
- [data-theme="dark"] .toast-error {
5861
- background-color: #da3633;
5862
- border-color: #f85149;
5863
- }
5864
-
5865
- [data-theme="dark"] .toast-warning {
5866
- background-color: #9e6a03;
5867
- border-color: #d29922;
5868
- }
5869
-
5870
- [data-theme="dark"] .toast-info {
5871
- background-color: #1f6feb;
5872
- border-color: #58a6ff;
5873
- }
5874
-
5875
5780
  /* Loading spinner for buttons */
5876
5781
  .loading-spinner-small {
5877
5782
  width: 16px;
@@ -9168,8 +9073,9 @@ body.resizing * {
9168
9073
  display: none;
9169
9074
  }
9170
9075
 
9171
- /* Comment filter menu: a funnel at the right of the segment row that opens
9172
- labeled options for user comments (show dismissed, show posted). */
9076
+ /* Filter menu: a funnel at the right of the segment row that opens labeled
9077
+ options: sort and severity filter for AI suggestions, and show dismissed /
9078
+ show posted for user comments. The dot means this review hides something. */
9173
9079
  .comment-filter {
9174
9080
  position: relative;
9175
9081
  flex-shrink: 0;
@@ -9230,6 +9136,9 @@ body.resizing * {
9230
9136
  z-index: 100;
9231
9137
  min-width: 160px;
9232
9138
  padding: 6px 0;
9139
+ /* max-height is set when the menu opens (AIPanel._fitFilterMenuToViewport) so it
9140
+ scrolls instead of running past the window */
9141
+ overflow-y: auto;
9233
9142
  background: var(--color-bg-primary);
9234
9143
  border: 1px solid var(--color-border-primary);
9235
9144
  border-radius: var(--radius-sm);
@@ -9269,15 +9178,28 @@ body.resizing * {
9269
9178
  accent-color: var(--comment-primary);
9270
9179
  }
9271
9180
 
9181
+ /* Line between the AI suggestion (severity) and user comment sections */
9182
+ .comment-filter-menu-divider {
9183
+ height: 1px;
9184
+ margin: 6px 0;
9185
+ background: var(--color-border-primary);
9186
+ }
9187
+
9188
+ .comment-filter-section .comment-filter-option + .comment-filter-menu-title {
9189
+ padding-top: 8px;
9190
+ }
9191
+
9272
9192
  /* Muted line at the end of the user comment list when filters hide some */
9273
- .hidden-comments-notice {
9193
+ .hidden-comments-notice,
9194
+ .hidden-severity-notice {
9274
9195
  padding: 8px 12px;
9275
9196
  font-size: 12px;
9276
9197
  color: var(--color-text-tertiary);
9277
9198
  text-align: center;
9278
9199
  }
9279
9200
 
9280
- .hidden-comments-show {
9201
+ .hidden-comments-show,
9202
+ .hidden-severity-show {
9281
9203
  padding: 0;
9282
9204
  background: none;
9283
9205
  border: none;
@@ -9286,7 +9208,8 @@ body.resizing * {
9286
9208
  cursor: pointer;
9287
9209
  }
9288
9210
 
9289
- .hidden-comments-show:hover {
9211
+ .hidden-comments-show:hover,
9212
+ .hidden-severity-show:hover {
9290
9213
  text-decoration: underline;
9291
9214
  }
9292
9215
 
@@ -0,0 +1,147 @@
1
+ /* Copyright 2026 Tim Perkins (tjwp) | SPDX-License-Identifier: Apache-2.0 */
2
+
3
+ /* Toast notifications rendered by js/components/Toast.js.
4
+ * Loaded by every page that loads Toast.js (dashboard, PR, Local), so it must
5
+ * not depend on variables defined only in pr.css.
6
+ *
7
+ * Do NOT load on settings.html or repo-settings.html. Those pages have their
8
+ * own toast system using the same class names (.toast, .toast-container,
9
+ * .toast-icon, .toast-message) and show toasts with `.show`, not `.toast-show`,
10
+ * so `.toast { opacity: 0 }` here would hide them. */
11
+
12
+ .toast-container {
13
+ position: fixed;
14
+ top: 16px;
15
+ left: 50%;
16
+ transform: translateX(-50%);
17
+ z-index: 20000;
18
+ display: flex;
19
+ flex-direction: column-reverse;
20
+ gap: 8px;
21
+ pointer-events: none;
22
+ }
23
+
24
+ .toast {
25
+ padding: 12px 16px;
26
+ border-radius: 8px;
27
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
28
+ font-size: 14px;
29
+ font-weight: 500;
30
+ opacity: 0;
31
+ transform: translateY(-20px);
32
+ transition: opacity 0.3s ease, transform 0.3s ease;
33
+ pointer-events: auto;
34
+ max-width: 500px;
35
+ }
36
+
37
+ .toast-show {
38
+ opacity: 1;
39
+ transform: translateY(0);
40
+ }
41
+
42
+ .toast-fade-out {
43
+ opacity: 0;
44
+ transform: translateY(-10px);
45
+ transition: opacity 0.3s ease, transform 0.3s ease;
46
+ }
47
+
48
+ .toast-success {
49
+ background-color: #1f883d;
50
+ color: white;
51
+ border: 1px solid #1a7f37;
52
+ }
53
+
54
+ .toast-error {
55
+ background-color: #d1242f;
56
+ color: white;
57
+ border: 1px solid #cf222e;
58
+ }
59
+
60
+ .toast-warning {
61
+ background-color: #9a6700;
62
+ color: white;
63
+ border: 1px solid #bf8700;
64
+ }
65
+
66
+ .toast-info {
67
+ background-color: #0969da;
68
+ color: white;
69
+ border: 1px solid #0550ae;
70
+ }
71
+
72
+ .toast-content {
73
+ display: flex;
74
+ align-items: center;
75
+ gap: 8px;
76
+ }
77
+
78
+ .toast-icon {
79
+ flex-shrink: 0;
80
+ }
81
+
82
+ .toast-message {
83
+ flex: 1;
84
+ line-height: 1.4;
85
+ }
86
+
87
+ .toast-link {
88
+ color: white;
89
+ text-decoration: underline;
90
+ margin-left: 8px;
91
+ white-space: nowrap;
92
+ }
93
+
94
+ .toast-link:hover {
95
+ color: rgba(255, 255, 255, 0.9);
96
+ }
97
+
98
+ /* Scoped to .toast-content to target only the Toast.js close button */
99
+ .toast-content .toast-close {
100
+ display: flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ flex-shrink: 0;
104
+ width: 24px;
105
+ height: 24px;
106
+ margin: -4px -8px -4px 4px;
107
+ padding: 0;
108
+ background: transparent;
109
+ border: none;
110
+ border-radius: 4px;
111
+ color: inherit;
112
+ opacity: 0.8;
113
+ cursor: pointer;
114
+ transition: background-color 0.15s ease, opacity 0.15s ease;
115
+ }
116
+
117
+ .toast-content .toast-close:hover {
118
+ background: rgba(255, 255, 255, 0.2);
119
+ opacity: 1;
120
+ }
121
+
122
+ .toast-content .toast-close:focus-visible {
123
+ outline: 2px solid currentColor;
124
+ outline-offset: 1px;
125
+ opacity: 1;
126
+ }
127
+
128
+ /* Dark theme toast styles */
129
+ [data-theme="dark"] .toast-success {
130
+ background-color: #238636;
131
+ border-color: #2ea043;
132
+ }
133
+
134
+ [data-theme="dark"] .toast-error {
135
+ background-color: #da3633;
136
+ border-color: #f85149;
137
+ }
138
+
139
+ [data-theme="dark"] .toast-warning {
140
+ background-color: #9e6a03;
141
+ border-color: #d29922;
142
+ }
143
+
144
+ [data-theme="dark"] .toast-info {
145
+ background-color: #1f6feb;
146
+ border-color: #58a6ff;
147
+ }
package/public/index.html CHANGED
@@ -18,6 +18,7 @@
18
18
  <link rel="icon" type="image/png" href="/favicon.png">
19
19
 
20
20
  <link rel="stylesheet" href="/css/analysis-config.css">
21
+ <link rel="stylesheet" href="/css/toast.css">
21
22
 
22
23
  <style>
23
24
  :root {