From e4504d28439acc17e8e149164d6bae3f08e6830a Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Wed, 7 Oct 2026 04:15:55 -0700 Subject: [PATCH] feat: a fork's counts and the way to review them are one control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Four badges beside a button read as four things that happen to sit together. They are one thing — every segment opens the same page on the part it names — so they now share a box: one outline, square corners inside it, and the rounding on the box alone, which means no segment has to know where in the row it sits. The only rule in the strip is the one before the end cap: everything left of it is a reading, that is an action. With room every count says what it counts; below 1280px of bar they keep their icon and their number, which is the part a reader scans for, and the tooltip names them either way. The end cap keeps its words at every width — the counts have icons to fall back on and it has none. Co-Authored-By: Claude Opus 5 (1M context) --- .../src/lib/components/ForkStatusStrip.svelte | 148 ++++++++++++++++++ .../lib/components/ForkWorkspaceBanner.svelte | 136 +++++----------- 2 files changed, 186 insertions(+), 98 deletions(-) create mode 100644 frontend/src/lib/components/ForkStatusStrip.svelte diff --git a/frontend/src/lib/components/ForkStatusStrip.svelte b/frontend/src/lib/components/ForkStatusStrip.svelte new file mode 100644 index 0000000000..da3c858215 --- /dev/null +++ b/frontend/src/lib/components/ForkStatusStrip.svelte @@ -0,0 +1,148 @@ + + + + +
+ {#if ahead > 0} + + {/if} + {#if behind > 0} + + {/if} + {#if conflicts > 0} + + + {/if} + {#if drafts > 0} + + {/if} + + +
diff --git a/frontend/src/lib/components/ForkWorkspaceBanner.svelte b/frontend/src/lib/components/ForkWorkspaceBanner.svelte index aea8814704..73563a6592 100644 --- a/frontend/src/lib/components/ForkWorkspaceBanner.svelte +++ b/frontend/src/lib/components/ForkWorkspaceBanner.svelte @@ -1,11 +1,10 @@