prreviewbuddy 0.86.7 → 0.88.1

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/static/shell.css CHANGED
@@ -90,6 +90,22 @@
90
90
  --neutral-subtle: light-dark(rgba(15, 23, 42, 0.06), rgba(139, 148, 158, 0.16));
91
91
  --merged-subtle: light-dark(#f3e8ff, rgba(163, 113, 247, 0.18));
92
92
  --merged-ink: light-dark(#6b21a8, #d2a8ff);
93
+ /* A review's own lifecycle, what happens next with it: Active, Waiting, Done. Named apart from
94
+ --lifecycle-*, which is a pull request's, so the two cannot be swapped by accident. Done is a
95
+ muted slate rather than purple, because purple already means the brand, Merged and branch news. */
96
+ --state-active-subtle: light-dark(#eaf2fd, rgba(56, 139, 253, 0.14));
97
+ --state-active-ink: light-dark(#0b4fae, #9cc4ff);
98
+ --state-active-border: light-dark(rgba(11, 79, 174, 0.3), rgba(56, 139, 253, 0.45));
99
+ --state-waiting-subtle: light-dark(#fff5d6, rgba(210, 153, 34, 0.16));
100
+ --state-waiting-ink: light-dark(#7a5200, #ffd18a);
101
+ --state-waiting-border: light-dark(rgba(138, 92, 0, 0.32), rgba(210, 153, 34, 0.5));
102
+ --state-done-subtle: light-dark(#e8ecf1, rgba(148, 163, 184, 0.16));
103
+ --state-done-ink: light-dark(#334155, #cbd5e1);
104
+ --state-done-border: light-dark(rgba(51, 65, 85, 0.32), rgba(148, 163, 184, 0.45));
105
+ /* The pills' widths, the widest of their words (NOT REVIEWED, WAITING): a press never moves what
106
+ is beside them, and a card can reserve exactly the room its controls take. */
107
+ --status-pill-width: 104px;
108
+ --lifecycle-pill-width: 70px;
93
109
  /* A pull request's lifecycle in Activity: merged, closed, reopened. Blue because purple there
94
110
  means unread, and a merged tile must never be read as a new one. */
95
111
  --lifecycle-subtle: light-dark(#e7f0fd, rgba(56, 139, 253, 0.16));
@@ -408,6 +424,8 @@ body > * { flex: 0 0 auto; }
408
424
  a fixed-width box hanging below the header, and its items have to wrap inside it. */
409
425
  .prb-header-stats > :not(.prb-menu) { white-space: nowrap; }
410
426
  .prb-header-stats .prb-add { color: var(--success); }
427
+ /* The two pills and the change chip read as one pair of facts, closer to each other than to the stats. */
428
+ .prb-state-pills { display: inline-flex; align-items: center; gap: 6px; }
411
429
  .prb-header-stats .prb-del { color: var(--danger); }
412
430
 
413
431
  /* The build, and where to complain about it. Quieter than the change stats — it is provenance,
@@ -470,10 +488,20 @@ body > * { flex: 0 0 auto; }
470
488
  .prb-shell {
471
489
  display: grid;
472
490
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
491
+ grid-template-rows: auto minmax(0, 1fr);
473
492
  flex: 1 1 0;
474
493
  min-height: 0;
475
494
  }
476
495
  .prb-shell > * { min-height: 0; }
496
+ /* The application shell is the strip and the rail, and the rail starts directly under the strip on
497
+ every page. What a page says about itself (its context bar, or a review's bar and banners) sits at
498
+ the top of the content column beside the rail, so however tall it is it moves only that column.
499
+ Placed by grid line, never by an offset: the rail spans both rows, the bar takes the first row of
500
+ the last column and the content the second, so the same rules hold when the narrow layout drops
501
+ the rail and the shell is one column. */
502
+ .prb-shell > .prb-rail { grid-column: 1; grid-row: 1 / -1; }
503
+ .prb-shell > .prb-context { grid-column: -2; grid-row: 1; }
504
+ .prb-shell > main { grid-column: -2; grid-row: 2; }
477
505
 
478
506
  /* ── The strip's controls ──
479
507
  Notifications, Settings and Stop server, as icons, in the corner they are reached for from. Icon
@@ -605,6 +633,27 @@ body[data-restarting] .prb-body { opacity: 0.55; pointer-events: none; }
605
633
  .prb-strip-action:hover .prb-unread-dot,
606
634
  .prb-strip-action[aria-current="true"] .prb-unread-dot { border-color: var(--surface-2); }
607
635
  .prb-unread-dot[hidden] { display: none; }
636
+ /* The count beside Runs, on the strip's Runs icon: a digit where the bell has a dot, because how
637
+ much is running is the useful part, and capped at 9+ so it stays the size of the corner. */
638
+ .prb-strip-count {
639
+ position: absolute;
640
+ top: -1px;
641
+ right: -3px;
642
+ min-width: 15px;
643
+ padding: 0 4px;
644
+ border: 2px solid var(--bg);
645
+ border-radius: 999px;
646
+ background: var(--wordmark-accent);
647
+ color: var(--bg);
648
+ font-size: var(--t-pill);
649
+ font-weight: 700;
650
+ line-height: 11px;
651
+ text-align: center;
652
+ font-variant-numeric: tabular-nums;
653
+ }
654
+ .prb-strip-action:hover .prb-strip-count,
655
+ .prb-strip-action[aria-current="true"] .prb-strip-count { border-color: var(--surface-2); }
656
+ .prb-strip-count[hidden] { display: none; }
608
657
 
609
658
  /* Said, never shown. The bell carries the count twice: the digit above, capped at 9+, and this,
610
659
  which is the whole number in words. A screen reader hears one bell that knows how many. */
@@ -623,47 +672,39 @@ body[data-restarting] .prb-body { opacity: 0.55; pointer-events: none; }
623
672
 
624
673
  /* ── The context bar ──
625
674
  What page this is, and the controls belonging to it: the dominant bar on a page that is not a
626
- review, exactly as `.prb-review-bar` is on one. It wraps rather than clips, because what it holds
627
- is a row of controls and not a single ref that must stay on one line. */
675
+ review, exactly as `.prb-review-bar` is on one. Two regions, one border: the title row, the same
676
+ height on every page and the same height as the review bar, and beneath it the controls row of a
677
+ page that has controls. So the title sits at the same place on every page and only the presence
678
+ of controls changes how tall the bar is. It does not scroll because nothing it is in scrolls:
679
+ `main`, the row below it in the shell, is the scroller. */
628
680
  .prb-context {
629
- display: flex;
630
- align-items: center;
631
- flex-wrap: wrap;
632
- gap: 12px 16px;
633
681
  flex: none;
634
- min-height: var(--header-height);
635
- padding: 10px 20px;
636
682
  background: var(--surface);
637
683
  border-bottom: 1px solid var(--border);
638
684
  }
685
+ /* Title at the workspace's left edge on every page, never in the list's centred column: it names the
686
+ page, and the page is the whole column. Actions (Mark all read) take the right of the row. A fixed
687
+ height, not a minimum, so a row of actions can never make one page's title row taller. */
688
+ .prb-context-primary {
689
+ display: flex;
690
+ align-items: center;
691
+ gap: 16px;
692
+ box-sizing: border-box;
693
+ height: var(--header-height);
694
+ padding: 0 20px;
695
+ container-type: inline-size;
696
+ }
639
697
  .prb-context .prb-page-title { margin: 0; }
698
+ /* The reviews and runs toolbars sit over the list they govern, so this row takes the list's own
699
+ gutters (`.prb-shell > .prb-index`) and the search's edges are the cards' edges at every width. */
700
+ .prb-context-secondary {
701
+ --list-gutter: max(24px, calc((100% - 960px) / 2 + 24px));
702
+ padding: 12px var(--list-gutter);
703
+ border-top: 1px solid var(--border);
704
+ }
640
705
  /* The controls came up from the top of the page's own column, so the margins that spaced them from
641
706
  the content below them belong to that column, not to this bar. */
642
- .prb-context .prb-index-controls,
643
- .prb-context .prb-settings-back { margin-bottom: 0; }
644
- /* The reviews toolbar shares the list's column rather than the window's right edge.
645
- The bar is full-bleed and the list is a 960px column centred in the space beside the rail, so
646
- right-aligning the controls put them over nothing they govern: the search began past the middle
647
- of the page while the cards below started far to its left. Centring them in the space the title
648
- leaves is not the same thing either -- the title eats the left side, the rail shifts the column
649
- right, and the group lands short of the list by half the rail.
650
- So the title is given the rail's own width and the group the column's, from the same two numbers
651
- the layout below already uses. The search spans the column, so its edges are the cards' edges
652
- at every width wide enough to have a rail. */
653
- /* Scoped with :has() and not by a body class: all three workspace pages share `prb-index-body`,
654
- and only this bar holds the list's controls. */
655
- .prb-context:has(.prb-index-controls) { padding-left: 0; padding-right: 0; column-gap: 0; }
656
- .prb-context:has(.prb-index-controls) .prb-page-title { flex: none; box-sizing: border-box; width: var(--rail-width); padding-left: 20px; }
657
- .prb-context .prb-index-controls {
658
- flex: 1 1 320px;
659
- box-sizing: border-box;
660
- max-width: 960px;
661
- margin: 0 auto;
662
- padding: 0 24px;
663
- }
664
- /* Two rows: the search on its own, the filters below it. Search is how a reviewer finds a review and
665
- the filters refine what it found, so the search takes the column's whole width rather than
666
- competing with three dropdowns for it, and the filters sit together under its left edge. */
707
+ .prb-context .prb-index-controls { margin-bottom: 0; }
667
708
  .prb-context .prb-index-search { flex: 1 1 100%; padding: 6px 10px; font-size: var(--t-meta); }
668
709
  .prb-context-controls {
669
710
  display: flex;
@@ -671,6 +712,22 @@ body[data-restarting] .prb-body { opacity: 0.55; pointer-events: none; }
671
712
  gap: 12px;
672
713
  margin-left: auto;
673
714
  }
715
+ .prb-context-controls .prb-index-select { flex: none; }
716
+ /* Where the title row cannot hold the title, the unread line and Mark all read, the line goes and
717
+ the button stays: the button is the action, and the line says what the dot on the bell already
718
+ says. 270px is where "Nothing unread", the longest the line gets, stops fitting (a window under
719
+ about 310px). Visually hidden rather than removed, because it is the live region a screen reader
720
+ hears. */
721
+ @container (max-width: 270px) {
722
+ .prb-context-controls .prb-index-count {
723
+ position: absolute;
724
+ width: 1px;
725
+ height: 1px;
726
+ margin: -1px;
727
+ overflow: hidden;
728
+ clip-path: inset(50%);
729
+ }
730
+ }
674
731
 
675
732
  /* ── Stop-server dialog ── */
676
733
  .prb-dialog {
@@ -938,10 +995,11 @@ a.prb-author:hover .prb-author-name { color: var(--text-primary); }
938
995
 
939
996
  /* ── Three-pane body ── */
940
997
  .prb-body {
941
- /* Positioned, for Buddy AI's edge tab, which hangs off this box's right edge at its top. */
998
+ /* Positioned, for the assistant's overlay at narrow widths. */
942
999
  position: relative;
943
1000
  display: grid;
944
1001
  grid-template-columns: var(--rail-width) minmax(0, 1fr) var(--ask-width);
1002
+ grid-template-rows: auto minmax(0, 1fr);
945
1003
  /* Whatever the banners above did not take, and `0` rather than `auto` as the basis: the height
946
1004
  comes from the space left over, never from the content. With `auto` the browser measures the
947
1005
  panes first, which is how a pane full of findings ends up deciding how tall the shell is. */
@@ -957,6 +1015,19 @@ a.prb-author:hover .prb-author-name { color: var(--text-primary); }
957
1015
  * `min-height: auto` on a grid item made every pane as tall as its content and the whole page went
958
1016
  * rigid. `.prb-ask` already carried its own copy of this line, which was the clue. */
959
1017
  .prb-body > * { min-height: 0; }
1018
+ /* The review's header (its bar and banners) is the first row of the columns right of the rail, as a
1019
+ workspace page's context bar is (see `.prb-shell`): it spans the document and the assistant, and
1020
+ pushes down only them. The rail spans both rows from directly under the strip. The panes take the
1021
+ second row and are placed into its columns in order. Where the rail is not drawn (focus mode, the
1022
+ narrow layout) the body is one column and the header spans it. */
1023
+ .prb-body > .prb-review-head { grid-column: 2 / -1; grid-row: 1; min-width: 0; }
1024
+ .prb-body > .prb-rail { grid-column: 1; grid-row: 1 / -1; }
1025
+ .prb-body > .prb-doc,
1026
+ .prb-body > .prb-ask { grid-row: 2; }
1027
+ /* Buddy AI's edge tab and, at narrow widths, the assistant's overlay are positioned against the
1028
+ panes' row rather than the whole body, so neither covers the header. An absolutely positioned
1029
+ grid child takes the area its lines name as its containing block. */
1030
+ .prb-body > .prb-ask-tab { grid-row: 2; grid-column: 1 / -1; }
960
1031
  /* No `data-ask` means "whatever fits" — wide viewports show the assistant, narrow ones do not.
961
1032
  The attribute appears only once the reviewer states a preference, and from then on it wins. */
962
1033
  .prb-body[data-ask='closed'] { grid-template-columns: var(--rail-width) minmax(0, 1fr) 0; }
@@ -974,8 +1045,32 @@ a.prb-author:hover .prb-author-name { color: var(--text-primary); }
974
1045
  overflow-y: auto;
975
1046
  padding: 18px 0 18px;
976
1047
  }
977
- /* Everything that is not this review sits at the bottom, out of the reading path. */
1048
+ /* Three parts, in one order on every page: the places, this review's section (review pages only),
1049
+ the foot. The places and the foot keep their size; the section takes what is left and scrolls on
1050
+ its own, so a long review path never pushes Runs or Collapse sidebar out of the window. The rail
1051
+ still scrolls as a whole if the places and the foot alone are taller than it. */
1052
+ .prb-rail-places,
1053
+ .prb-rail-foot { flex: none; }
978
1054
  .prb-rail-foot { margin-top: auto; }
1055
+ .prb-rail-context {
1056
+ flex: 1 1 auto;
1057
+ min-height: 0;
1058
+ overflow-y: auto;
1059
+ overscroll-behavior: contain;
1060
+ }
1061
+ .prb-rail-places + .prb-rail-context { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
1062
+ /* The foot is anchored to the bottom by its auto margin, whatever is above it and however short.
1063
+ The rule between groups sets a fixed margin and is more specific than `.prb-rail-foot`, so it had
1064
+ been winning and leaving the foot wherever the rows above it ended. The gap it kept is now the
1065
+ least space above the foot, held by whatever precedes it, which an auto margin cannot hold. */
1066
+ .prb-rail > .prb-rail-group.prb-rail-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
1067
+ .prb-rail > :has(+ .prb-rail-foot) { margin-bottom: 22px; }
1068
+ /* The page with no places (the offline preview) starts with the section, with nothing to rule off. */
1069
+ .prb-rail-context-title { margin: 0; }
1070
+ /* KISS, the section's last group, is set apart by space alone: it belongs to this review as much as
1071
+ the rows above it, and a rule would say it did not. The same in every state, so sliding a Compact
1072
+ sidebar out does not move it. */
1073
+ .prb-rail-context > .prb-rail-group { margin-top: 12px; }
979
1074
  a.prb-rail-item { text-decoration: none; }
980
1075
  .prb-rail-item:disabled { opacity: 0.6; cursor: default; }
981
1076
  /* Operational, and it ends every open review rather than this one. It stays quiet — the
@@ -991,11 +1086,6 @@ a.prb-rail-item { text-decoration: none; }
991
1086
  color: var(--text-muted);
992
1087
  }
993
1088
  .prb-rail-group + .prb-rail-group { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
994
- /* A group that is only its own row (KISS before anybody has run it) is spaced as tightly as Compact
995
- spaces every row, and in every state, so sliding the sidebar out does not grow it. A group with
996
- pages under it keeps the wider spacing in every state, Compact included. */
997
- .prb-rail-group + .prb-rail-group:has(> .prb-rail-body:empty) { margin-top: 12px; padding-top: 12px; }
998
- .prb-rail-group:has(> .prb-rail-body:empty) + .prb-rail-group { margin-top: 12px; }
999
1089
 
1000
1090
  /* A group owns everything under it: the row navigates to that review type's summary and the twisty
1001
1091
  beside it folds the group away. The twisty is a sibling of the button, not a child, so one click
@@ -1155,12 +1245,17 @@ a.prb-rail-item { text-decoration: none; }
1155
1245
  "Review path" and "PR context" wrapped to two lines part-way and every row below dropped. */
1156
1246
  :root[data-sidebar-compact][data-sidebar-peek] .prb-rail > * { width: calc(var(--rail-full-width) - 1px); }
1157
1247
 
1158
- /* Compact: every row is its icon, named in a tooltip beside it on hover and keyboard focus. The
1159
- tooltip is the row's own label, moved out to the right, so the name a screen reader hears is
1160
- the one it always heard. What has no icon (headings, the numbered review path, the folds, the
1161
- counts) waits for Expanded. The rail lets the tooltips out past its edge, and sits above the
1162
- pane beside it so they draw over it. */
1248
+ /* Compact: every row is its icon. What has no icon (headings, the numbered review path, the folds,
1249
+ most counts) waits for the sidebar to slide out, which resting the pointer on it or tabbing into
1250
+ it does at once, so a row's name is never shown any other way. It is still the row's name for a
1251
+ screen reader: the label stays in the row, only undrawn. Neither the rail nor its section
1252
+ scrolls in the 56px strip, where a scrollbar would take a third of it. */
1163
1253
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail { overflow: visible; }
1254
+ /* The section keeps the height it has when slid out, so the foot stays on screen however short the
1255
+ window and no row moves when the sidebar slides out. It clips vertically only, which `clip` can do
1256
+ and `hidden` cannot, so the corner marks are never cut at its side, and rows past its end are
1257
+ reached by sliding the sidebar out (pointer or Tab), where it scrolls. */
1258
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-context { overflow-x: visible; overflow-y: clip; }
1164
1259
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-item {
1165
1260
  position: relative;
1166
1261
  justify-content: center;
@@ -1169,26 +1264,16 @@ a.prb-rail-item { text-decoration: none; }
1169
1264
  padding: 9px 0;
1170
1265
  border-left-width: 0;
1171
1266
  }
1172
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-item .prb-rail-label {
1267
+ /* Undrawn, not removed: the label is still the row's name, and New review's. */
1268
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-item .prb-rail-label,
1269
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-new-review-label {
1173
1270
  position: absolute;
1174
- top: 50%;
1175
- left: calc(100% + 6px);
1176
- transform: translateY(-50%);
1177
- padding: 5px 8px;
1178
- border-radius: 6px;
1179
- background: var(--text-primary);
1180
- color: var(--bg);
1181
- font-size: var(--t-micro);
1182
- font-weight: 500;
1183
- line-height: 1.4;
1271
+ width: 1px;
1272
+ height: 1px;
1273
+ overflow: hidden;
1274
+ clip-path: inset(50%);
1184
1275
  white-space: nowrap;
1185
- opacity: 0;
1186
- pointer-events: none;
1187
- z-index: 1;
1188
1276
  }
1189
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-item .prb-rail-label * { color: inherit; font: inherit; }
1190
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-item:hover .prb-rail-label,
1191
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-item:focus-visible .prb-rail-label { opacity: 1; transition: opacity 0.1s 0.35s; }
1192
1277
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-count,
1193
1278
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-selected,
1194
1279
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-twisty,
@@ -1201,39 +1286,59 @@ a.prb-rail-item { text-decoration: none; }
1201
1286
  strip it would be a line taller than the row it stands in for. */
1202
1287
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-subhead { visibility: hidden; overflow: hidden; }
1203
1288
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-subhead .prb-rail-heading { display: block; white-space: nowrap; }
1289
+ /* The section's heading keeps its height undrawn for the same reason, so the review's icons are
1290
+ already where they will be when the sidebar slides out. */
1291
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-heading.prb-rail-context-title { display: block; visibility: hidden; overflow: hidden; white-space: nowrap; }
1292
+ /* The count beside Runs is the one count Compact keeps, as a mark on the icon's corner: work going
1293
+ on is the thing a reader with the sidebar folded most needs to see. Unread has the bell's dot. */
1294
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-count.prb-rail-running:not([hidden]) {
1295
+ display: block;
1296
+ position: absolute;
1297
+ top: 3px;
1298
+ left: calc(50% + 2px);
1299
+ min-width: 15px;
1300
+ padding: 0 4px;
1301
+ border: 2px solid var(--bg);
1302
+ border-radius: 999px;
1303
+ background: var(--wordmark-accent);
1304
+ color: var(--bg);
1305
+ font-size: var(--t-pill);
1306
+ line-height: 11px;
1307
+ text-align: center;
1308
+ }
1309
+ /* Issues and Questions keep their indicator too, on the same corner as Runs, but quiet: what is
1310
+ left is a fact about the review, not an alert. The same element as Expanded, so the figure, the
1311
+ zero and the tick are whatever the expanded row says. Absolute, so no icon or row moves. The ring
1312
+ is the row's own background, so it separates the mark from the icon on every row state. */
1313
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) :is([data-view-nav='issues'], [data-view-nav='questions']) .prb-rail-count {
1314
+ display: block;
1315
+ position: absolute;
1316
+ top: 3px;
1317
+ left: calc(50% + 1px);
1318
+ min-width: 13px;
1319
+ padding: 0 2px;
1320
+ border-radius: 999px;
1321
+ background: var(--surface-2);
1322
+ box-shadow: 0 0 0 1px var(--rail-mark-ring, var(--bg));
1323
+ color: var(--text-secondary);
1324
+ font-size: var(--t-pill);
1325
+ font-weight: 600;
1326
+ line-height: 13px;
1327
+ text-align: center;
1328
+ }
1329
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) :is([data-view-nav='issues'], [data-view-nav='questions']) .prb-rail-count-done { color: var(--success); font-weight: 700; }
1330
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-item:hover { --rail-mark-ring: var(--surface-hover); }
1331
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-item[aria-current='true'] { --rail-mark-ring: var(--brand-muted); }
1204
1332
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-body { margin-left: 0; border-left: 0; }
1205
1333
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-body .prb-rail-item { padding-left: 0; }
1206
- /* New review is the square + at the top, its name and shortcut in the strip's own tooltip. */
1334
+ /* New review is the square + at the top; sliding out shows its name and shortcut beside it. */
1207
1335
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-rail-new { padding: 0 10px 10px; }
1208
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-new-review { position: relative; justify-content: center; width: 36px; padding: 0; }
1209
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-new-review-label,
1336
+ :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-new-review { justify-content: center; width: 36px; padding: 0; }
1210
1337
  :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-new-review-key { display: none; }
1211
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-new-review[data-tip]::after {
1212
- content: attr(data-tip);
1213
- position: absolute;
1214
- top: 50%;
1215
- left: calc(100% + 6px);
1216
- transform: translateY(-50%);
1217
- padding: 5px 8px;
1218
- border-radius: 6px;
1219
- background: var(--text-primary);
1220
- color: var(--bg);
1221
- font-size: var(--t-micro);
1222
- font-weight: 500;
1223
- line-height: 1.4;
1224
- white-space: nowrap;
1225
- opacity: 0;
1226
- pointer-events: none;
1227
- z-index: 1;
1228
- }
1229
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-new-review[data-tip]:hover::after,
1230
- :root[data-sidebar-compact]:not([data-sidebar-peek]) .prb-new-review[data-tip]:focus-visible::after { opacity: 1; transition: opacity 0.1s 0.35s; }
1231
1338
 
1232
1339
  /* Hidden: the strip's square New review stands in, as it does whenever the rail is not drawn. Send
1233
1340
  feedback belongs to the sidebar and goes with it; the strip has no copy of it at any width. */
1234
1341
  :root[data-sidebar-hidden] .prb-strip .prb-strip-new-review { display: flex; }
1235
- /* The page title is set in the rail's column, so it keeps its own width while that column narrows. */
1236
- :root:is([data-sidebar-compact], [data-sidebar-hidden]) .prb-context:has(.prb-index-controls) .prb-page-title { width: auto; }
1237
1342
  /* The pages under a review type (Issues, Questions, Files, PR context) and the links at the foot
1238
1343
  share the group rows' white, so the grey themes in the review path read as their own list.
1239
1344
  Weight still separates these from the group rows above them. Must come after `.prb-rail-item`:
@@ -2948,6 +3053,7 @@ a.prb-guide-pick { text-decoration: none; }
2948
3053
  .prb-body:not([data-ask='open']),
2949
3054
  .prb-body[data-ask='open'] { grid-template-columns: minmax(0, 1fr); }
2950
3055
  .prb-rail { display: none; }
3056
+ .prb-body > .prb-review-head { grid-column: 1 / -1; }
2951
3057
  .prb-strip .prb-strip-new-review { display: flex; }
2952
3058
  /* No sidebar fits at this width, so Show sidebar would bring back nothing. */
2953
3059
  :root[data-sidebar-hidden] .prb-strip .prb-sidebar-restore { display: none; }
@@ -2966,11 +3072,6 @@ a.prb-guide-pick { text-decoration: none; }
2966
3072
  width: min(var(--ask-width), 100%);
2967
3073
  }
2968
3074
  .pr-helper-sidebar.prb-pane { padding: 20px 18px 48px; }
2969
- /* No rail here, so there is no column beside it for the toolbar to share: the bar goes back to a
2970
- title and a row of controls, each taking the width it needs. */
2971
- .prb-context:has(.prb-index-controls) { padding-left: 20px; padding-right: 20px; column-gap: 16px; }
2972
- .prb-context:has(.prb-index-controls) .prb-page-title { width: auto; padding-left: 0; }
2973
- .prb-context .prb-index-controls { max-width: none; padding: 0; }
2974
3075
  }
2975
3076
 
2976
3077
  /* Phone width. Both bars were one fixed-height row of things that could not shrink, so below about
@@ -3436,12 +3537,17 @@ a.prb-guide-pick { text-decoration: none; }
3436
3537
  .prb-index-more[hidden] { display: none; }
3437
3538
  .prb-index-more:hover { color: var(--text-primary); border-color: var(--border-strong); }
3438
3539
  .prb-card {
3540
+ /* What the controls over the top-right corner take: two pills, the menu and the star, and the
3541
+ gaps between them. The head reserves exactly this, so the title is cut only where they are. */
3542
+ --card-controls-width: calc(var(--status-pill-width) + var(--lifecycle-pill-width) + 26px + 26px + 3 * 6px);
3439
3543
  position: relative;
3544
+ container-type: inline-size;
3440
3545
  border: 1px solid var(--border);
3441
3546
  border-radius: 12px;
3442
3547
  background: var(--surface-raised);
3443
3548
  }
3444
- .prb-card:hover { border-color: var(--border-strong); }
3549
+ /* A stronger edge and the faintest change of ground, and nothing that moves. */
3550
+ .prb-card:hover { border-color: var(--border-strong); background: color-mix(in srgb, var(--surface-raised), var(--text-primary) 2%); }
3445
3551
  .prb-card[hidden] { display: none; }
3446
3552
 
3447
3553
  /* ── Selecting ──
@@ -3685,10 +3791,9 @@ a.prb-guide-pick { text-decoration: none; }
3685
3791
  align-items: baseline;
3686
3792
  justify-content: space-between;
3687
3793
  gap: 12px;
3688
- /* Room for the pin and the menu, both positioned over the card's top-right corner. Reserved
3689
- here rather than left to chance: the status badge is the last thing in this row, and without
3690
- the space it is what the controls sit on top of. */
3691
- padding-right: 56px;
3794
+ /* Room for the controls positioned over the card's top-right corner. Reserved here rather than
3795
+ left to chance: without it the PR state and the change chip are what the controls sit on. */
3796
+ padding-right: calc(var(--card-controls-width) + 6px);
3692
3797
  }
3693
3798
  .prb-card-head h2 {
3694
3799
  /* The auto margin takes the free space, so the status and the PR state sit together at the end
@@ -3764,12 +3869,26 @@ a.prb-guide-pick { text-decoration: none; }
3764
3869
 
3765
3870
  /* News about the change rather than a verdict on it: tinted like the brand, never like a risk.
3766
3871
  It sits in the meta line with the other facts, because that is what it is. */
3767
- .prb-card-moved {
3768
- color: var(--brand);
3872
+ .prb-card-moved,
3873
+ .prb-card-badge {
3874
+ padding: 1px 7px;
3875
+ border-radius: 999px;
3769
3876
  font-weight: 600;
3877
+ white-space: nowrap;
3770
3878
  }
3879
+ .prb-card-moved { background: var(--brand-muted); color: var(--brand-ink); }
3771
3880
  .prb-card-diffstat { font-variant-numeric: tabular-nums; }
3772
- .prb-card-left { color: var(--text-secondary); }
3881
+ /* What is left, as facts: a badge only where there is an outcome to see at a glance (resolved and
3882
+ answered, or still open), plain words for the rest, "Nothing flagged" among them. */
3883
+ .prb-card-left {
3884
+ display: inline-flex;
3885
+ flex-wrap: wrap;
3886
+ align-items: baseline;
3887
+ gap: 8px;
3888
+ color: var(--text-secondary);
3889
+ }
3890
+ .prb-card-badge[data-tone="success"] { background: var(--success-subtle); color: var(--success-ink); }
3891
+ .prb-card-badge[data-tone="attention"] { background: var(--warning-subtle); color: var(--warning-ink); }
3773
3892
 
3774
3893
  /* What is happening to this review right now.
3775
3894
  A dot that breathes, because the one thing this line has to communicate before it is read is
@@ -3962,6 +4081,51 @@ a.prb-guide-pick { text-decoration: none; }
3962
4081
  .prb-card-status { border: 1px solid var(--border); color: var(--text-tertiary, var(--text-secondary)); }
3963
4082
  .prb-card-status[data-status="new"] { border-color: var(--brand); color: var(--brand-ink); }
3964
4083
  .prb-card-status[data-status="complete"] { border-color: var(--success-border); color: var(--success-ink); }
4084
+
4085
+ /* ── Status and lifecycle pills ──
4086
+ Where a review stands, on a card and in the review's header, and the control that changes it
4087
+ (state_pills.ts). Outlined on a faint tint of their own colour, where the facts beside them
4088
+ (Merged, risk, branch news) are filled and borderless, so a control and a fact never look alike.
4089
+ Each kind has one width whatever its words, so pressing one never moves what is beside it. */
4090
+ .prb-state-pill {
4091
+ box-sizing: border-box;
4092
+ display: inline-flex;
4093
+ align-items: center;
4094
+ justify-content: center;
4095
+ gap: 4px;
4096
+ flex: none;
4097
+ padding: 2px 8px;
4098
+ border: 1px solid var(--border-strong);
4099
+ border-radius: 999px;
4100
+ background: var(--neutral-subtle);
4101
+ color: var(--text-secondary);
4102
+ font: inherit;
4103
+ font-size: var(--t-pill);
4104
+ font-weight: 700;
4105
+ line-height: 1.4;
4106
+ letter-spacing: 0.04em;
4107
+ text-transform: uppercase;
4108
+ white-space: nowrap;
4109
+ }
4110
+ .prb-state-pill.prb-card-status { min-width: var(--status-pill-width); }
4111
+ .prb-lifecycle-pill { min-width: var(--lifecycle-pill-width); }
4112
+ .prb-state-pill[data-status="new"] { border-color: var(--brand-border); background: var(--brand-muted); color: var(--brand-ink); }
4113
+ .prb-state-pill[data-status="complete"] { border-color: var(--success-border); background: var(--success-subtle); color: var(--success-ink); }
4114
+ /* A mark as well as a colour, so Reviewed is not told apart by colour alone. Silent to a screen
4115
+ reader, which hears the word. */
4116
+ .prb-state-pill[data-status="complete"]::before { content: '✓' / ''; }
4117
+ .prb-lifecycle-pill[data-lifecycle-pill="active"] { border-color: var(--state-active-border); background: var(--state-active-subtle); color: var(--state-active-ink); }
4118
+ .prb-lifecycle-pill[data-lifecycle-pill="waiting"] { border-color: var(--state-waiting-border); background: var(--state-waiting-subtle); color: var(--state-waiting-ink); }
4119
+ .prb-lifecycle-pill[data-lifecycle-pill="done"] { border-color: var(--state-done-border); background: var(--state-done-subtle); color: var(--state-done-ink); }
4120
+ button.prb-state-pill { cursor: pointer; }
4121
+ /* Pressable, said quietly: the outline takes the word's colour and the ground darkens a step. */
4122
+ button.prb-state-pill:not([aria-busy="true"]):hover {
4123
+ border-color: color-mix(in srgb, currentColor 55%, transparent);
4124
+ box-shadow: inset 0 0 0 999px var(--wash-strong);
4125
+ }
4126
+ button.prb-state-pill:focus-visible { outline: 2px solid var(--brand-hover); outline-offset: 2px; }
4127
+ button.prb-state-pill[aria-busy="true"] { opacity: 0.6; cursor: progress; }
4128
+ .prb-pill-menu .prb-menu-panel { top: 28px; width: 200px; }
3965
4129
  /* The upstream's state, beside the reviewer's. Filled where the status is outlined, so the two read
3966
4130
  as different kinds of fact. Merged takes the forge's own purple; closed is muted rather than red,
3967
4131
  because red on this card already means high risk. */
@@ -3978,19 +4142,42 @@ a.prb-guide-pick { text-decoration: none; }
3978
4142
  padding: 2px 7px;
3979
4143
  border-radius: 999px;
3980
4144
  font-size: var(--t-meta);
3981
- font-weight: 600;
4145
+ font-weight: 700;
3982
4146
  white-space: nowrap;
3983
4147
  background: var(--brand-muted);
3984
4148
  color: var(--brand-ink);
4149
+ /* A step louder than Branch updated, because a parked review that moved is the thing to find when
4150
+ scanning a long list. An inset edge, so it is no bigger than the pills beside it. */
4151
+ box-shadow: inset 0 0 0 1px var(--brand-border);
3985
4152
  }
3986
4153
  .prb-card-lifecycle[hidden] { display: none; }
3987
4154
 
3988
- /* Over the card rather than inside its link, so pinning cannot be a mis-click into the review. */
3989
- .prb-card-pin {
4155
+ /* The card's controls, over its top-right corner rather than inside its link, so no press on them
4156
+ can be a mis-click into the review. No z-index of its own: each control keeps the layer it had
4157
+ when the pin and the menu sat here alone, the pin and the pills under any open panel above them
4158
+ (a collection's menu, the card's above), the menu over them. Waiting's items rise while open. */
4159
+ .prb-card-controls {
3990
4160
  position: absolute;
3991
4161
  top: 10px;
3992
4162
  right: 10px;
3993
- z-index: 1;
4163
+ display: flex;
4164
+ align-items: center;
4165
+ gap: 6px;
4166
+ }
4167
+ .prb-card-controls > .prb-state-pill,
4168
+ .prb-card-controls > .prb-card-pin { position: relative; z-index: 1; }
4169
+ .prb-card-controls > .prb-menu { position: relative; top: auto; right: auto; }
4170
+ .prb-card-controls > .prb-pill-menu { z-index: 1; }
4171
+ .prb-card-controls > .prb-pill-menu:has(> [aria-expanded="true"]) { z-index: 3; }
4172
+ /* Where the title would be cut short, the controls take a line of their own under it instead, at
4173
+ the title's own left edge. The title is one line, so the line it leaves is a fixed height. */
4174
+ @container (max-width: 560px) {
4175
+ .prb-card[data-card] .prb-card-head { padding-right: 0; margin-bottom: 38px; }
4176
+ .prb-card-controls { top: 42px; right: auto; left: 16px; }
4177
+ .prb-index[data-selecting] .prb-card-controls { left: 42px; }
4178
+ }
4179
+
4180
+ .prb-card-pin {
3994
4181
  width: 26px;
3995
4182
  height: 26px;
3996
4183
  border: 0;
@@ -4139,18 +4326,6 @@ a.prb-guide-pick { text-decoration: none; }
4139
4326
  line-height: var(--lh-body);
4140
4327
  }
4141
4328
 
4142
- /* The review page's lifecycle pill is the status pill's shape. Changed since it was parked, it
4143
- reads as the card's chip does: a sentence, tinted like news. */
4144
- .prb-page-lifecycle[data-changed] {
4145
- border-color: transparent;
4146
- background: var(--brand-muted);
4147
- color: var(--brand-ink);
4148
- font-size: var(--t-meta);
4149
- font-weight: 600;
4150
- letter-spacing: 0;
4151
- text-transform: none;
4152
- }
4153
- .prb-page-lifecycle[hidden] { display: none; }
4154
4329
 
4155
4330
  /* ── Diagrams ──
4156
4331
  *
@@ -5558,21 +5733,6 @@ span.prb-arch-location:hover { text-decoration: none; }
5558
5733
  ground the rail and header have. It reuses `.prb-index` for the column and `.prb-field` for the
5559
5734
  controls; what is here is only the vertical rhythm of stacked sections and the two things a form
5560
5735
  has that no other page in this product has, a save and something to say about it. */
5561
- /* The way out, where a way out goes: top left of the content, above the first section, rather than
5562
- among the version and the feedback link where it reads as chrome. The caret is the same one the
5563
- rail uses for "All reviews", so the two say the same thing in the same shape. */
5564
- .prb-settings-back {
5565
- display: inline-block;
5566
- margin-bottom: 14px;
5567
- padding: 5px 10px 5px 8px;
5568
- border: 1px solid var(--border);
5569
- border-radius: 8px;
5570
- color: var(--text-secondary);
5571
- font-size: var(--t-meta);
5572
- text-decoration: none;
5573
- }
5574
- .prb-settings-back:hover { color: var(--text-primary); border-color: var(--border-strong); }
5575
- .prb-settings-back:focus-visible { outline: 2px solid var(--brand-hover); outline-offset: 2px; }
5576
5736
  .prb-settings-section {
5577
5737
  padding: 20px 0;
5578
5738
  border-bottom: 1px solid var(--border);
@@ -5869,7 +6029,8 @@ select.prb-addreview-control {
5869
6029
 
5870
6030
  /* ── Notifications ── */
5871
6031
 
5872
- .prb-rail-unread { color: var(--wordmark-accent); font-weight: 700; }
6032
+ .prb-rail-unread,
6033
+ .prb-rail-running { color: var(--wordmark-accent); font-weight: 700; }
5873
6034
 
5874
6035
  .prb-notifications {
5875
6036
  list-style: none;
@@ -6016,6 +6177,7 @@ a.prb-notification-open:focus-visible { outline: 2px solid var(--brand-hover); o
6016
6177
  and without depending on this block staying last. */
6017
6178
  body .prb-body[data-focus] { grid-template-columns: minmax(0, 1fr); }
6018
6179
  body .prb-body[data-focus] .prb-rail { display: none; }
6180
+ body .prb-body[data-focus] > .prb-review-head { grid-column: 1 / -1; }
6019
6181
  /* The rail's New review goes with it, so the strip's square one stands in, as below 860px. */
6020
6182
  body:has(.prb-body[data-focus]) .prb-strip .prb-strip-new-review { display: flex; }
6021
6183
  /* Focus is left from the pane it expanded, so Show sidebar would bring back nothing here. */