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

Aperta Adatta ai principianti
#202 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
90/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Leggi recent.py ed esamina write_card() e il controllo esistente done = n == total. Genera le schede con write_card(root, 5, 5) e write_card(root, 4, 5), poi aprirle in un browser per verificare che il timbro appaia solo con il punteggio perfetto senza coprire il contenuto della scheda. Aggiungi le asserzioni di test_share_card in tests/test_score_trend.py ed esegui python -m pytest.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
1
Fork
5
Merge medio
1h 19m
PR unite (30g)
191

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di connabyss/bite

Tutte le issue di connabyss/bite

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.