From e454533ea9746a4edf94fccddd9744ea91225a31 Mon Sep 17 00:00:00 2001 From: Josh Mabry Date: Sun, 15 Nov 2026 12:02:08 -0800 Subject: [PATCH] fix: status dots stay round when a row's title wraps; release v0.12.1 The DS .pl-dot is a shrinkable flex item, so beside a wrapping title it lost width and rendered as an oval. Pin flex:none in the board page until the design system carries it (protoContent#679). Co-Authored-By: Claude Fable 5.2 --- protoagent.plugin.yaml | 2 +- pyproject.toml | 2 +- tests/test_board_view.py | 8 ++++++++ uv.lock | 2 +- view.py | 3 +++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/protoagent.plugin.yaml b/protoagent.plugin.yaml index 1378c4f..d0f1ef9 100644 --- a/protoagent.plugin.yaml +++ b/protoagent.plugin.yaml @@ -2,7 +2,7 @@ # Keep `version` in lockstep with pyproject.toml (tests/test_version.py asserts it). id: github name: GitHub (read/write tools) -version: 0.12.0 +version: 0.12.1 description: >- Read AND write GitHub tools over the `gh` CLI, with PER-AGENT write gating. The read tools (PRs — list + merge readiness, issues, comments, search-before-filing, diff --git a/pyproject.toml b/pyproject.toml index ee111cc..8c2e3ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "github-plugin" -version = "0.12.0" +version = "0.12.1" description = "Read/write GitHub tools for protoAgent over the gh CLI, with per-agent write gating." requires-python = ">=3.11" diff --git a/tests/test_board_view.py b/tests/test_board_view.py index 18dfdb4..06df0a7 100644 --- a/tests/test_board_view.py +++ b/tests/test_board_view.py @@ -1608,3 +1608,11 @@ def test_board_counts_zero_errors_and_stale_responses(): })().catch(e=>{console.error(e);process.exitCode=1;}); """ ) + + +def test_status_dot_never_shrinks_in_a_flex_row(): + """A long title wraps and the flex row shrinks its children; the 8px dot lost width and + rendered as an oval. The page pins it so it stays round at any panel width.""" + from ghplugin.view import PAGE + + assert ".pl-dot{flex:none}" in PAGE diff --git a/uv.lock b/uv.lock index a54c656..1b2a411 100644 --- a/uv.lock +++ b/uv.lock @@ -4,5 +4,5 @@ requires-python = ">=3.11" [[package]] name = "github-plugin" -version = "0.12.0" +version = "0.12.1" source = { virtual = "." } diff --git a/view.py b/view.py index 3773a8e..ba2a6e8 100644 --- a/view.py +++ b/view.py @@ -111,6 +111,9 @@ border-bottom:1px solid var(--pl-color-border)} .row:hover{background:var(--pl-color-bg)} .row .top{display:flex;align-items:baseline;gap:7px} + /* The DS dot is a shrinkable flex item: beside a title that wraps (.row .top) it lost width and + rendered as an oval. Pin it here until .pl-dot carries flex:none upstream (protoContent#679). */ + .pl-dot{flex:none} .title{font-weight:600;line-height:1.35} .num{color:var(--pl-color-fg-muted);font-weight:400} .meta{margin-top:3px;font-size:11px;color:var(--pl-color-fg-muted);display:flex;gap:6px;flex-wrap:wrap;align-items:center}