Commit graph

9 commits

Author SHA1 Message Date
08f5128e8d Add interaction logging and tighten model NOT NULL constraints
Log searches (article/category) and message-generation events to a new
interaction_log table, capturing IP address and User-Agent.

Also apply NOT NULL constraints to Contribution, SentMessage, FlickrUpload,
and ThumbnailCache fields that are always populated, and remove stale
continue_token references from category.html.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 12:34:04 +00:00
252a854e76 Move Flickr sent-mail cookies into local config file 2026-02-07 14:41:41 +00:00
ac1b01ea68 Update README and AGENTS with category search and license features
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 10:26:56 +00:00
a2d29d7937 Show recent Commons uploads obtained via Flickr mail
Display recent Wikimedia Commons uploads on the home page, filtered to
only show images that were obtained by contacting creators via Flickr
mail. Each upload shows:
- Thumbnail linking to Commons
- Creator name linking to their Flickr profile
- Link to the illustrated Wikipedia article (or Wikidata item)

Features:
- Parse sent mail messages to extract Flickr and Wikipedia URLs
- Match Commons uploads with sent mail by normalized Flickr URL
- Cache Commons API thumbnail responses and sent mail index
- Handle Wikidata item URLs (Q-numbers) with correct links
- Add update_flickr_uploads.py script to find uploads from UploadWizard
  contributions by checking Commons API metadata

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 10:43:45 +00:00
0062de8ede Add pagination for search results
- Add SearchResult dataclass with pagination metadata
- Update search_flickr() to accept page parameter
- Parse total results count from Flickr response
- Add Bootstrap pagination controls to template
- Display total result count in UI
- Update documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 17:03:30 +00:00
e627e6f34c Update README with integrated Flickr search feature
Document the new workflow where users can browse Flickr search results
directly in the interface instead of visiting Flickr's search page.

Closes: #5

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 16:52:27 +00:00
826ba9868c Add URL to README.md 2023-09-29 12:51:14 +01:00
ea4adabdab Tidy 2023-09-29 12:32:14 +01:00
c81ba11616 Add README.md and LICENSE 2023-09-29 12:31:15 +01:00