From f574291ce90d3781a5bfeaf1ac15e095b929f3e2 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sat, 24 Oct 2026 12:02:41 +0300 Subject: [PATCH] Mark only the Jira keys a change does not mention --- demo/scenario.py | 2 +- docs/page.md | 4 ++-- release_scope/_static/index.html | 21 +++++++++++---------- tests/test_browser.py | 18 +++++++++++------- 4 files changed, 25 insertions(+), 20 deletions(-) diff --git a/demo/scenario.py b/demo/scenario.py index 3419afc..bfe1869 100644 --- a/demo/scenario.py +++ b/demo/scenario.py @@ -190,7 +190,7 @@ class DemoIssue: summary="Search products by SKU", status="Ready for release", category="done", - links=(f"{ENDPOINT}/shop/web/-/merge_requests/99",), + links=(f"{ENDPOINT}/shop/web/-/merge_requests/99", f"{ENDPOINT}/shop/api/-/merge_requests/54"), ), DemoIssue( key="SHOP-35", diff --git a/docs/page.md b/docs/page.md index c08ab81..d64b8a0 100644 --- a/docs/page.md +++ b/docs/page.md @@ -39,8 +39,8 @@ Opening a line shows: - a link to create the next tag on the head, when rows have no tag yet; - the rows, each with its tags and their pipelines, its merge requests or commits with when they were merged or committed, Jira keys with their status, the time each environment first ran it, and failed jobs. Rows out of scope - are dimmed. Each Jira key says why the row carries it: `named` when the merge request or commit mentions it, - `linked` when the Jira issue links to the change, or both. + are dimmed. A key the merge request or commit does not mention, which the row carries only because the Jira + issue links to the change, is underlined with a dashed line and marked `via Jira`; hover over it for the reason. Links open in a new tab, including the GitLab settings pages that warnings and errors point to. diff --git a/release_scope/_static/index.html b/release_scope/_static/index.html index 86b2e71..44c1f4c 100644 --- a/release_scope/_static/index.html +++ b/release_scope/_static/index.html @@ -127,6 +127,8 @@ .issue-row.chosen { background: color-mix(in srgb, var(--accent) 10%, transparent); } .issue-row code { font-weight: 500; } .gaps ul { margin: 4px 0 12px; padding-left: 18px; } + .row-key.via-jira > a { text-decoration: underline dashed; text-underline-offset: 3px; } + .link-icon { width: 13px; height: 13px; margin-right: 2px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .issue-row .summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .issue-row .reach { grid-column: 3 / -1; display: flex; gap: 4px; overflow: hidden; white-space: nowrap; } .rider-mark { padding: 0 6px; border: 1px dashed var(--warn); border-radius: 999px; color: var(--warn); font-size: 11px; white-space: nowrap; } @@ -285,9 +287,10 @@