Improve code review usability

This patch moves the revision list from the tab bar drop-down to a sidebar
on wide screens and above the current revision on narrow screens. This
way all revisions are visible at all times.

We also move and nest the revision reviews into that list so that one
can see whether there's anything actionable at a glance.

Other tweaks:

  - added comment counts to revisions and reviews
  - displayed unresolved comment thread counts per review
  - swapped icons for accepted/rejected and neutral reviews to avoid clashing
    with resolved/unresolved comment icons
  - made label and assignee sections more compact with hover-triggered "+" buttons
  - added author and status sections to the sidebar
  - enabled patch state changes from the title bar
  - made "Review revision" the primary action and "Checkout patch" secondary
  - added "Draft" label to draft patches
  - capitalized all badges for consistent UI text
This commit is contained in:
Rūdolfs Ošiņš
2025-07-03 11:46:39 +02:00
parent 18f5aa9065
commit a55a138a7f
20 changed files with 933 additions and 649 deletions
+7 -1
View File
@@ -33,6 +33,7 @@
align-items: center;
justify-content: center;
font-size: var(--font-size-small);
background-color: none;
}
button:disabled {
cursor: inherit;
@@ -50,7 +51,12 @@
popoverPositionLeft="0"
bind:expanded={popoverExpanded}>
{#snippet toggle(onclick)}
<button disabled={selectedState.status === "merged"} {onclick}>
<button
disabled={selectedState.status === "merged"}
{onclick}
title={selectedState.status === "merged"
? "The state of merged patches can not be changed"
: "Click to change patch state"}>
<span
class="global-counter badge"
style:color={patchStatusColor[selectedState.status]}