thunderbird-patch-review

Easy-to-use patch review interface for Thunderbird

Contribute: ~marcc/thunderbird-review-plugin@lists.sr.ht

git clone git://mccd.space/thunderbird-patch-review

commit 28d27e979bbd73f374f5fb4e9544954ea34a0aa2
parent 7b8f45dede3805cc8716494e710d0834e454e721
Author: Pi Agent <agent@pi.local>
Date:   Sat, 18 Jul 2026 22:13:31 +0200

review: dim the branch portion of the repo chip to muted gray

Diffstat:
Mextension/review/review.css | 3+++
Mextension/review/review.js | 19+++++++++++++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/extension/review/review.css b/extension/review/review.css
@@ -86,6 +86,9 @@ body {
   text-align: left;
 }
 
+#repo-path .repo-branch { color: var(--muted); }
+#repo-path.error .repo-sep,
+#repo-path.error .repo-branch { color: inherit; }
 #repo-path:hover { background: var(--hunk-bg); }
 #repo-path.error { cursor: pointer; }
 #repo-path.error {
diff --git a/extension/review/review.js b/extension/review/review.js
@@ -621,7 +621,7 @@ async function applySeries(mode) {
     // user to confirm by re-applying, rather than silently writing onto
     // an unexpected branch.
     state.repoBranch = fresh.branch;
-    $("#repo-path").textContent = `${fresh.name} · ${fresh.branch}`;
+    renderRepoChip(fresh.name, fresh.branch);
     showStatus(
       `The repository's branch changed to "${fresh.branch}" since you chose it; ` +
       "click Apply again to confirm.",
@@ -684,7 +684,22 @@ async function refreshRepoDisplay(path) {
   state.repo = response.repo || path;
   state.repoBranch = response.branch || null;
   chip.classList.remove("error");
-  chip.textContent = `${response.name} · ${response.branch}`;
+  renderRepoChip(response.name, response.branch);
+}
+
+// The chip reads <name> · <branch> with the branch in a muted color.
+function renderRepoChip(name, branch) {
+  const chip = $("#repo-path");
+  chip.textContent = "";
+  chip.appendChild(document.createTextNode(name));
+  const sep = document.createElement("span");
+  sep.className = "repo-sep";
+  sep.textContent = " · ";
+  chip.appendChild(sep);
+  const br = document.createElement("span");
+  br.className = "repo-branch";
+  br.textContent = branch;
+  chip.appendChild(br);
 }
 
 async function openEditor(repo) {