mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user