Skip to content

feat: add favourites module (closes #8)#9

Merged
prrockzed merged 1 commit into
mainfrom
feat/issue-8-favourites-module
Jun 14, 2026
Merged

feat: add favourites module (closes #8)#9
prrockzed merged 1 commit into
mainfrom
feat/issue-8-favourites-module

Conversation

@prrockzed

Copy link
Copy Markdown
Owner

Summary

  • Adds sports fav sub-command with four commands: add, remove, list, show
  • Users can favourite chess players (Lichess username), F1 drivers (driverRef), F1 constructors (constructorId), and football leagues (league code)
  • sports fav show fetches live data for all saved favourites and renders a per-category Rich dashboard — no API key needed for chess and F1, football key reused from config
  • Saves to ~/.config/sportscli/config.json under a "favourites" key; duplicates are silently ignored
  • Registered in CLI root — appears in welcome screen and interactive root menu
  • 36 new tests (277 total), all passing

Test plan

  • pytest — 277/277 passing locally
  • CI will run on push via python-package.yml
  • Manual: sports fav add chess magnuscarlsensports fav show
  • Manual: sports fav add f1-driver verstappensports fav show
  • Manual: sports fav list, sports fav remove chess magnuscarlsen

🤖 Generated with Claude Code

Implements issue #8. Users can favourite chess players, F1 drivers,
F1 constructors, and football leagues. The show command fetches live data
for all saved favourites and renders a per-category Rich dashboard.
Adds three config helpers (get_favourites, add_favourite, remove_favourite),
registers the fav sub-app in the CLI root, and covers 36 new tests
(277 total).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@prrockzed prrockzed merged commit 2136fc5 into main Jun 14, 2026
3 checks passed
@prrockzed prrockzed deleted the feat/issue-8-favourites-module branch June 14, 2026 10:56
@prrockzed prrockzed linked an issue Jun 14, 2026 that may be closed by this pull request
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.

feat: favourites module

1 participant