feat: add user-scoped favorites and notes

This commit is contained in:
bisco
2026-04-07 18:11:19 +02:00
parent a5e1d841df
commit caa1f8354d
12 changed files with 364 additions and 93 deletions

View File

@ -10,8 +10,9 @@ The current application baseline provides:
- player scouting search with player, context, and stat filters
- matching season/team/competition context on search results
- result sorting and pagination
- a shared development shortlist for favorite players
- shared plain-text scouting notes on player detail pages
- login/logout with Django built-in authentication
- user-scoped shortlist favorites
- user-scoped plain-text scouting notes on player detail pages
Accepted technical and product-shaping decisions live in:
- `docs/ARCHITECTURE.md`
@ -48,9 +49,12 @@ Accepted technical and product-shaping decisions live in:
1. Start the stack with `docker compose --env-file .env -f infra/docker-compose.yml up -d --build`.
2. Apply migrations with `docker compose --env-file .env -f infra/docker-compose.yml exec -T app python manage.py migrate`.
3. Load sample data with `docker compose --env-file .env -f infra/docker-compose.yml exec -T app python manage.py seed_scouting_data`.
4. Visit `http://127.0.0.1:8000/players/` to explore the scouting search MVP.
5. Use player detail pages to manage shortlist entries and shared scouting notes.
6. Use `http://127.0.0.1:8000/favorites/` to review the shared development shortlist.
4. Create a local user with `docker compose --env-file .env -f infra/docker-compose.yml exec -T app python manage.py createsuperuser` if you need a development login.
5. Visit `http://127.0.0.1:8000/players/` to explore the scouting search MVP.
6. Log in at `http://127.0.0.1:8000/accounts/login/` to manage your own shortlist and notes.
7. Use `http://127.0.0.1:8000/favorites/` to review your user-scoped shortlist.
Legacy shared favorites and notes from the pre-auth MVP are cleared by the early-stage ownership migration so the app can move cleanly to user-scoped data.
## Workflow