Skip to content

Link the GitHub Issue URL from Stages and Command details - #1181

Merged
JacobStephens2 merged 3 commits into
mainfrom
issue-1099
Oct 23, 2026
Merged

JacobStephens2 merged 3 commits into
mainfrom
issue-1099

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

/?page=stages showed each Command with a peek-link subject but no path to its GitHub issue. Each Stages header, Lanes article, and the Command details (peek) panel now carries an explicit Issue #N link to the record's Issue URL. Subjects still open details; the new link goes outward.

 Stages grid header / Lanes article
   <a class="peek-link" href=".../peek?...">Ticket run · acme/widgets#7</a>
+  <a href="https://github.com/acme/widgets/issues/7">Issue #7</a>
 Command details (peek panel, shared by all pages)
+  <p><a href="https://github.com/acme/widgets/issues/7">Issue #7</a></p>
   <code>thirdshift show ... --json</code>

Seams under test: Console HTTP /?page=stages (Stages grid) and /peek?command= (Command details panel).

Evidence

  • Before: new test stages_and_command_details_link_the_github_issue failed — the stages page rendered no Issue #7 anchor (red confirmed before the fix).
    After: that test passes; neighboring peek tests (urls_in_inbox_and_peek_text_are_links, peek_and_full_logs, dispatched_run_and_its_security_command_have_distinct_peeks) pass; cargo fmt --check clean; scripts/affected-tests main green on this head (fail-fast full cargo test fallback reaching the final targets with test result: ok, exit 0).

Merge Danger

Door: two-way — a pure Console view addition; rollback is a revert with no data or config migration.

Blast Radius: console — Stages/Lanes headers and the shared peek panel gain one link each when the Command has an https:// Issue URL; no CLI, scheduling, or auth behavior changes.

Unaddressed findings

Security:

  • No unaddressed introduced findings. The new Issue #N anchors render only an https:// allowlisted record URL through escaped template interpolation with a derived Issue #N label; hostile-URL probes (attribute-quote breakout, executable scheme, markup in URL) rendered inert, and the record's issue title is never rendered by this change.

Standards (all judgement calls, none claiming wrong behaviour, so no failing-test runs apply):

  • Duplicated {% match %} block in src/console/time.html (lanes <p> vs grid <br> wrappers) — kept: the wrappers differ per placement and a shared fragment adds indirection for a one-line anchor. Plan decision, no ADR/run against it.
  • https:// guard + (url, label) shape in src/logs/status/time.rs (issue_link), src/logs/status/inbox.rs:290 (issue_url), and src/console/peek.rs (untyped JSON re-derivation) — kept separate: peek.rs works from show --json details where the typed Issue is not reachable without restructuring; unifying would widen the change. Plan decision.
  • issue_url/issue_label travelling as a pair on Run (src/logs/status/time.rs:26-27) and Peek (src/console/peek.rs:20-21) — kept: matches the existing plain-data style of both structs; a newtype for one link is speculative generality.
  • Separate Issue #N link instead of linking the subject Inbox-style (src/console/row.html:2) — kept deliberately: the Stages subject already links to peek, so reusing the Inbox idiom would break Command details access. No glossary conflict (casing unpinned).

Spec:

  • Lanes blocks (src/console/time.html:30, /?page=lanes) also gain the link though the spec names only /?page=stages — accepted as intended: both pages share one template (src/console/time.rs:29) and the consistent placement is the point of the request. No Day-shift/Spec decision needed; no needs-triage issue filed.

Review coverage: every changed file was read on both axes; remaining unread changed files: none.

Closes #1099

Built with muse · default model · default effort

Security review outcome

No unaddressed introduced findings.

Stages headers and Lanes articles show an Issue link beside the
peek-linked subject, and the Command details panel shows the same
link above the Command log. Subjects keep opening details; the new
link goes to the Issue URL.

Closes #1099
@JacobStephens2
JacobStephens2 merged commit 696f00e into main Oct 23, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1099 branch October 23, 2026 20:42
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

put link to github issue in command details section on console /?page=stages page

1 participant