Skip to content

Make the url-shortener diagram vertical with white subgraph backgrounds - #116

Merged
paolosalvatori merged 2 commits into
mainfrom
url-shortener-diagram
Aug 11, 2026
Merged

Make the url-shortener diagram vertical with white subgraph backgrounds#116
paolosalvatori merged 2 commits into
mainfrom
url-shortener-diagram

Conversation

@paolosalvatori

Copy link
Copy Markdown
Contributor

Summary

Applies the same treatment to the url-shortener mermaid diagram that #115 gave the other samples:

  • flowchart LRflowchart TB: the diagram was a wide ribbon whose labels became unreadably small when scaled to page width; top-to-bottom renders near-square with full-size text.
  • White subgraph backgrounds (fill:#ffffff, gray border, dark title text) instead of mermaid's default pale yellow, matching the white rounded containers of the Visio-made architecture images.

Verified by rendering with mermaid-cli.

🤖 Generated with Claude Code

The left-to-right layout rendered as a wide ribbon with unreadably small
labels at page width, and the subgraphs used mermaid's default pale-yellow
fill. Switch to top-to-bottom (near-square aspect, full-size text) and
style the subgraphs white with gray borders, matching the treatment the
other samples' diagrams received in #115.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@paolosalvatori
paolosalvatori requested a review from a team as a code owner August 11, 2026 13:08
Copilot AI lite review requested due to automatic review settings August 11, 2026 13:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the url-shortener sample’s architecture diagram to match the readability and styling approach used in other samples: the mermaid flowchart is switched to a top-to-bottom layout and subgraphs are styled with white backgrounds and neutral borders/text.

Changes:

  • Switched the mermaid diagram direction from flowchart LR to flowchart TB for improved readability at typical page widths.
  • Added style overrides for the webapp, functions, and storage subgraphs to use white fill with gray borders and dark title text.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

The Storage Account subgraph forced links/qrjobs/qrcodes to sit adjacent,
so every edge into them shared one corridor and the arcs overlapped and
merged. Dissolve that cluster into individually placed nodes labeled
"(Storage Account)", group each user journey's edges together, add
node/rank spacing, and route the storage metrics edge from the links
table. Every edge now runs separately with its label on it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@paolosalvatori
paolosalvatori merged commit 3a05d12 into main Aug 11, 2026
3 checks passed
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