Stamp BITE-PROOF on the share card for a perfect score

Open Beginner friendly
#202 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
90/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Read recent.py and inspect write_card() and its existing done = n == total check. Render cards with write_card(root, 5, 5) and write_card(root, 4, 5), then open them in a browser to check the stamp appears only on the perfect score without covering the card content. Add the test_share_card assertions in tests/test_score_trend.py and run python -m pytest.

Written by the indexing model from the issue text.

Description

good first issue

What happens: bite_proof/card.svg is the picture of your Bite score to share. A perfect score (say 9/9) looks almost the same as 8/9: just a fuller ring.

What we'd like: when every change was noticed, the card gets a BITE-PROOF stamp, like a rubber stamp: tilted a few degrees, a bold outline, all caps, in the card's green (#5fbf86). It must not cover the score, the cat or the words. Only a perfect score gets it.

Where to look: recent.py, write_card(). done = n == total is already worked out there. The card is plain SVG text, so the stamp is a <g transform="rotate(...)"> with a <rect> and a <text>. Open the card in a browser to see it as you go (bite --demo makes one in a throwaway folder; the demo isn't perfect, so call write_card(root, 5, 5) yourself for the perfect one).

Done when:

  • The stamp shows on a perfect card and not on any other.
  • A picture of both cards (perfect and not) is in the PR description.
  • A test in tests/test_score_trend.py (see test_share_card) checks a 5/5 card has the stamp and a 4/5 card doesn't, and fails without your change.

New here? CONTRIBUTING.md has setup (pip install -e .[test], then python -m pytest). Comment to claim it.


Generated by Claude Code

Dominant language
Python
Stars
1
Forks
5
Avg merge
1h 19m
Merged PRs (30d)
191

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from connabyss/bite

All issues in connabyss/bite

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.