fix(frontend): give the embed snippet somewhere to paste.

The result screen ended at the snippet and a copy button. GitHub only
renders a profile README from the repo named exactly after the account,
and 15 of 23 arrivals did not have that repo, so the copy button was a
dead end for most people. Add two links under the snippet: open the
README, or create the repo.

Also serve a placeholder card instead of a JSON 400 when someone pastes
the README snippet without swapping YOUR_USERNAME for their own name,
and show a live example card in the README.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwMoSbmK77Ph7XaV5YnAdS
This commit is contained in:
shay
2026-08-25 08:10:32 -07:00
co-authored by Claude Opus 5
parent 27645048f1
commit a25ae33f29
6 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ def test_attribution_is_legible_and_consistent(name):
assert node.get("text-anchor") == "middle"
@pytest.mark.parametrize("variant", ["building", "rate_limited", "not_found"])
@pytest.mark.parametrize("variant", ["building", "rate_limited", "not_found", "unsubstituted"])
def test_placeholder_cards_have_attribution(variant):
svg = placeholder.render(variant, "alice", theme="dark")
assert "Generated with gh-stats.com" in svg