Skip to content

feat(advisor): render ADR deep-links in advisor output#805

Merged
benw5483 merged 1 commit into
mainfrom
advisor-render-adr-deeplinks
Jul 10, 2026
Merged

feat(advisor): render ADR deep-links in advisor output#805
benw5483 merged 1 commit into
mainfrom
advisor-render-adr-deeplinks

Conversation

@benw5483

@benw5483 benw5483 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • actual advisor now renders each related ADR's deep link on its own line, so a reader can click through to the decision in the app.
  • The link is taken verbatim from the advisor response (the server assembles the environment-aware URL); a null or empty link is skipped so the ADR still prints cleanly.
  • The response type now captures the per-ADR url field it previously discarded during deserialization (optional and backwards-compatible: absent or null becomes None).

Test plan

  • cargo build and cargo clippy -- -D warnings are clean.
  • cargo test covers the populated, null, and empty url cases in both the renderer and the deserialization path.
  • Per-file 100% line coverage holds for both changed files (cargo llvm-cov).

Generated by the operator's software factory.
• On behalf of: @benw5483

The advisor's related-ADR list now prints each ADR's deep link on its own
line, so a reader can click straight through to the decision in the app.
The link comes from the advisor response and is rendered verbatim; a null
or empty link is skipped so the ADR still prints cleanly.

The response struct previously discarded the server's per-ADR url field
during deserialization. Capture it as an optional, backwards-compatible
field (absent or null becomes None) so it can be rendered.

Generated by the operator's software factory.
City: factory-main · Agent: local-core.builder-2
On behalf of: @benw5483
Co-Authored-By: <operator-factory-bot> <factory-bot@<operator-domain>.invalid>
@benw5483 benw5483 marked this pull request as ready for review July 7, 2026 21:41
@benw5483 benw5483 requested a review from austinborn July 8, 2026 16:19
@benw5483 benw5483 added this pull request to the merge queue Jul 10, 2026
Merged via the queue into main with commit 3069e2f Jul 10, 2026
10 checks passed
@benw5483 benw5483 deleted the advisor-render-adr-deeplinks branch July 10, 2026 15:47
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.

2 participants