Commit Graph

59 Commits

Author SHA1 Message Date
thibaud-leclere
295bb16ab7 fix: reduce false positives in award detection
Filter SPARQL query to only return entertainment awards (film, TV,
music, theater) and add a canonical award map to normalize variants
(e.g. all Oscar/Academy Award → "Oscar", all Golden Globe → "Golden
Globe"). Non-entertainment awards (orders, medals, honorary degrees)
are excluded both at SPARQL level and via PHP keyword filter.

Also restart messenger container on cache:clear to avoid stale DI
container errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 21:12:28 +02:00
thibaud-leclere
116d7b409e perf: batch Wikidata SPARQL queries per film instead of per actor
Use a VALUES clause to fetch awards for all actors of a film in a
single SPARQL request, reducing Wikidata API calls from ~20 per film
to 1 and avoiding idle timeout errors from rate limiting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 20:37:13 +02:00
thibaud-leclere
369893a77e refactor: track import progress per film instead of per batch
Replace batch-level progress (processedBatches/totalBatches) with
film-level progress (processedFilms/totalFilms) for smoother UI updates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 19:30:15 +02:00
thibaud-leclere
8c73a22eff refactor: embed film data directly in batch messages
Avoid re-parsing the entire CSV file in each batch handler by including
the film data in the message payload itself.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 19:25:45 +02:00
thibaud-leclere
087b063f1f chore: reorganizing 2026-04-01 19:24:04 +02:00
thibaud-leclere
246d6fc740 fix: reorder constructor params in ImportFilmsBatchMessageHandler
Move AwardImporter after ImportRepository to fix autowiring order
in compiled container cache.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 14:44:08 +02:00
thibaud-leclere
fb13a8819d feat: use DB awards instead of live Wikidata calls for hint generation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 14:29:36 +02:00
thibaud-leclere
0fd0b85b8f feat: import actor awards during film batch import 2026-04-01 14:27:54 +02:00
thibaud-leclere
8aa33ccefc feat: add AwardImporter service with tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 14:27:15 +02:00
thibaud-leclere
6c1e4cb38b feat: add awardsImported flag and awards relation to Actor
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 14:23:56 +02:00
thibaud-leclere
859a5a1067 feat: add Award entity and repository 2026-04-01 14:23:23 +02:00
thibaud-leclere
acc266739d feat: add AwardType entity and repository 2026-04-01 14:22:33 +02:00
thibaud-leclere
116812b3f8 save movies release date in BDD, remove unused badge, add help to export movie from letterboxd 2026-03-31 22:18:46 +02:00
thibaud-leclere
c5d359bb0c remove unused sync commands (app:sync-actors, app:sync-films)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 21:55:08 +02:00
thibaud-leclere
a37ac1debd fix: resolve messenger worker OOM by clearing EntityManager and disabling debug
Clear Doctrine identity map after each film import to prevent memory
accumulation. Run messenger with --no-debug and higher PHP memory_limit
to avoid profiling overhead in dev.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 21:34:11 +02:00
thibaud-leclere
6a844542ad feat: replace notifications with import status in profile dropdown
Remove the notification system entirely and show import progress
directly in the user dropdown menu. Block new imports while one
is already running.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 21:34:05 +02:00
thibaud-leclere
6cbebb6367 refactor: move WikidataAwardGateway to src/Gateway/WikidataGateway.php
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 11:14:20 +02:00
thibaud-leclere
273ea49ed0 fix: generate hints about the row actor, not the main actor
Hints should help identify the row actor (to find the highlighted letter),
not reveal the main actor directly. Simplified hint generation: no shared
exclusion pools needed since each row has a different actor.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:51:22 +02:00
thibaud-leclere
8d413b5c57 fix: review fixes — cache Wikidata calls, add timeout, improve escaping, hide empty popovers
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:38:05 +02:00
thibaud-leclere
42a3567e1c feat: resolve hint display text in computeGridData 2026-03-30 22:33:51 +02:00
thibaud-leclere
32ae77da53 feat: generate hints per row in GameGridGenerator
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 22:32:51 +02:00
thibaud-leclere
c2efdd4eeb feat: add WikidataAwardGateway for actor awards from Wikidata SPARQL 2026-03-30 22:31:42 +02:00
thibaud-leclere
7f3738007d feat: add findOneRandomByActor to MovieRoleRepository 2026-03-30 22:31:07 +02:00
thibaud-leclere
e3ee26e070 feat: add hintType and hintData columns to GameRow entity
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 22:30:30 +02:00
thibaud-leclere
335a55562f feat: handle non-letter characters in actor names with separator rows
Display spaces, hyphens and other non-letter characters as static cells
instead of input fields, and add separator rows in the grid for
non-alphabetic characters in the main actor's name.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 21:59:11 +02:00
thibaud-leclere
1f80b554fd Remove AppExtension 2026-03-30 21:17:17 +02:00
thibaud-leclere
2f5ba701b6 feat: wrap game in centered card, style abandon button, abandon anonymous game on login
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 19:55:32 +02:00
thibaud-leclere
a6b3a93d5c refactor: use persisted games in HomepageController 2026-03-30 19:46:12 +02:00
thibaud-leclere
884168aa49 feat: add GameController with start and abandon actions 2026-03-30 19:45:39 +02:00
thibaud-leclere
ef155463ab feat: add GameGridGenerator service
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 19:44:50 +02:00
thibaud-leclere
665233425a feat: add Game and GameRow repositories 2026-03-30 19:43:39 +02:00
thibaud-leclere
ff9a48448c feat: add GameRow entity 2026-03-30 19:43:29 +02:00
thibaud-leclere
55145c366f feat: add Game entity 2026-03-30 19:43:18 +02:00
thibaud-leclere
6edc122ff6 fix: address code review issues
- Rename `read` column to `is_read` (PostgreSQL reserved word)
- Wrap navbar + modal in parent div for Stimulus controller scope
- Set temporary filePath before first flush in ImportController
- Use RETURNING clause for atomic incrementProcessedBatches
- Return proper empty 204 response in NotificationController

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 10:27:57 +02:00
thibaud-leclere
4f8eb5f3dc feat: add notification API endpoints 2026-03-29 10:21:30 +02:00
thibaud-leclere
2cfbe191cf feat: add POST /api/imports endpoint 2026-03-29 10:21:02 +02:00
thibaud-leclere
4955c5bde9 feat: add ImportFilmsBatchMessageHandler 2026-03-29 10:20:24 +02:00
thibaud-leclere
98be393e3c feat: add ProcessImportMessageHandler 2026-03-29 10:19:31 +02:00
thibaud-leclere
2d768e8b52 feat: add Messenger messages for import processing 2026-03-29 10:18:35 +02:00
thibaud-leclere
dedc41e237 refactor: extract ActorSyncer service from SyncActorsCommand 2026-03-29 10:18:00 +02:00
thibaud-leclere
bbbfb895af refactor: extract FilmImporter service from SyncFilmsCommands 2026-03-29 10:17:17 +02:00
thibaud-leclere
1bf8afd88e feat: add Notification entity 2026-03-29 10:16:29 +02:00
thibaud-leclere
7be4de6967 feat: add Import entity with batch tracking 2026-03-29 10:11:30 +02:00
thibaud-leclere
5f7ddcd3cc feat: add UserMovie join entity 2026-03-29 10:10:27 +02:00
thibaud-leclere
748b1c7a08 feat: render game grid as React component via SymfonyUX 2026-03-28 13:19:13 +01:00
thibaud-leclere
6d40c4ce08 feat: add registration page with form validation 2026-03-28 13:17:07 +01:00
thibaud-leclere
64949d2ec2 feat: add login page with SecurityController 2026-03-28 13:16:50 +01:00
thibaud-leclere
376a01bff5 feat: add User entity with email/password/roles
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 13:15:40 +01:00
thibaud-leclere
a196fac6c6 Generate grid 2026-01-31 16:17:24 +01:00
thibaud-leclere
1ebf8b99b3 rearrangements 2026-01-20 10:36:39 +01:00