diff --git a/README.md b/README.md index 9941565..901440a 100644 --- a/README.md +++ b/README.md @@ -129,14 +129,16 @@ as one line: what production runs, the picked tag, how many merge requests or co failed jobs of the picked tag, or of the newest tag before a pick, with the ones allowed to fail counted apart, a mark when the range was cut at `RELEASE_SCOPE_MAX_COMMITS`, and how many rows have no tag yet, with a `+` when the cut range holds no tag, so more untagged rows may lie below it. The failed jobs are those of the tag's pipeline and of -the main pipeline of its commit; failures in other rows show only when the line is opened. +the main pipeline of its commit; failures in other rows show only when the line is opened. A service whose +production runs the head of the default branch, with no rows left to ship, is marked green as fully deployed. Opening a line shows the service's environments with when each was deployed, warnings, a link to create the next tag on the head when rows have no tag yet, merge requests that are not merged yet, and its rows with tags and their pipelines, merge requests or commits with when they were merged or committed, Jira keys with their status, environments with the time each first ran the row, and failed jobs; rows out of scope are dimmed. Links, including the GitLab settings pages that warnings and errors point to, open in a new -tab. Each tag has a **pick** button: picking it highlights the rows it ships and closes the line again. A `--jira` -report starts with each service's release tag picked. Services with neither a production deployment nor rows are left +tab. Each tag has a **pick** button: picking it highlights the rows it ships and closes the line again, which then +shows the picked tag as a blue chip. The chip's `×` clears the pick without opening the line. A `--jira` report starts +with each service's release tag picked. Services with neither a production deployment nor rows are left out of the page. The address keeps the picks after `#`, as `team/api=2.4.0&team/web=5.12.0`, so sharing or reloading the page keeps @@ -144,8 +146,10 @@ them. An address with picks replaces the release tags of a `--jira` report; pick a tag that a later run no longer lists, are skipped with a warning. Clearing every pick empties the address, so a reload starts from the release tags again. -**Release** at the bottom turns the picked tags into three lists and a release post, each with a copy button and a -text box to copy from by hand, since browsers allow the copy button only over HTTPS: +**Release**, in a column next to the services that stays in view while they scroll, or below them on a narrow screen, +turns the picked tags into three lists and a release post. While a service is open, the column folds into a strip +with the number of picked tags and tasks, so the rows get the full width; clicking the strip closes the service. Each has a tab of its own, with a copy button and a text box +to copy from by hand, since browsers allow the copy button only over HTTPS: - **Jira tasks**: the keys of every in-scope row from each picked tag down to production, without duplicates, with summary and a status badge: grey to do, blue in progress, green done. Copy them one per line or as a JQL diff --git a/release_scope/_static/index.html b/release_scope/_static/index.html index dfd7bcb..60649d4 100644 --- a/release_scope/_static/index.html +++ b/release_scope/_static/index.html @@ -33,10 +33,9 @@ [x-cloak] { display: none !important; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 system-ui, sans-serif; } - main { max-width: 1200px; margin: 0 auto; padding: 16px; } + main { max-width: 1680px; margin: 0 auto; padding: 16px; } h1 { font-size: 24px; margin: 0 0 4px; } h2 { font-size: 18px; margin: 32px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; } - h3 { font-size: 15px; margin: 0 0 8px; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } code { font: 12px ui-monospace, monospace; } @@ -57,9 +56,22 @@ .warn { color: var(--warn); } .message { white-space: pre-line; } .scroll { overflow-x: auto; } - .outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 16px; } - .outputs .wide { grid-column: 1 / -1; } - .out-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; } + .layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; } + .layout > aside { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 0 4px 16px; } + .strip { display: none; writing-mode: vertical-rl; width: 40px; min-height: 240px; margin-top: 32px; padding: 12px 4px; + border-color: var(--accent); color: var(--accent); font-weight: 600; } + .layout.folded { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px; } + .layout.folded .strip { display: block; } + .layout.folded .aside-body { display: none; } + @media (max-width: 1000px) { + .layout { display: block; } + .layout > aside { position: static; max-height: none; } + .layout.folded .strip { display: none; } + .layout.folded .aside-body { display: block; } + } + .tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; } + .outputs textarea { min-height: 160px; } + .out-head { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; } tr.out-of-scope td { opacity: 0.55; } tr.shipped td { background: color-mix(in srgb, var(--accent) 12%, transparent); } .tag { white-space: nowrap; } @@ -67,12 +79,17 @@ .service > summary { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 12px; cursor: pointer; list-style: none; } .service[open] > summary { border-bottom: 1px solid var(--border); } + .service.deployed { border-left: 4px solid var(--good); background: color-mix(in srgb, var(--good) 6%, transparent); } + .service.deployed .name { color: var(--good); } + .chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; border-radius: 999px; + background: var(--accent); color: var(--bg); font-weight: 600; } + .chip button { border: 0; border-radius: 999px; padding: 0 6px; background: transparent; color: inherit; } + .chip button:hover { background: color-mix(in srgb, var(--bg) 25%, transparent); } .service > summary::before { content: "▸"; color: var(--muted); } .service[open] > summary::before { content: "▾"; } .service .name { min-width: 200px; font-weight: 600; } .service .body { padding: 8px 12px; } .service .body > p:first-child { margin-top: 0; } - .picked-tag { font-weight: 600; } .status { display: inline-block; padding: 0 8px; border: 1px solid currentColor; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--muted); } .status-indeterminate { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); } @@ -119,18 +136,23 @@