Commit Graph

103 Commits

Author SHA1 Message Date
e9b01eea2b fix: address code review issues in SQLite adapter 2026-05-04 18:46:31 +02:00
f5fe8aeaff feat: implement feed/stats/history/trends SQLite queries 2026-05-04 18:42:45 +02:00
bb1337c5b1 feat: impl UserRepository::list_with_stats 2026-05-04 18:40:58 +02:00
70c8676ae3 feat: add feed/stats SQLite row types 2026-05-04 18:32:59 +02:00
96635360a6 feat: add feed/profile/stats port methods to repositories 2026-05-04 18:30:01 +02:00
923d445431 fix: use UserId newtype in UserSummary instead of raw Uuid 2026-05-04 18:29:10 +02:00
5ada90a99f feat: add feed/profile domain models, extend DiaryFilter 2026-05-04 18:26:55 +02:00
02d8741ea5 feat: update color scheme to use primary variables for consistency in styling 2026-05-04 17:47:00 +02:00
2a347dbdc2 feat: enhance movie rating display with star icons and improved styling 2026-05-04 15:43:02 +02:00
41da6e1f56 feat: enhance styling and layout; add background image and improve UI elements 2026-05-04 15:39:15 +02:00
7ba4b39ced feat: add Dockerfile, .dockerignore, and README; remove common crate 2026-05-04 15:19:29 +02:00
7e7c1ee1f4 Refactor movie review logging and resolution strategies
- Introduced `MovieResolver` and associated strategies for resolving movie data based on external metadata ID, manual title, or manual entry.
- Updated `log_review` use case to utilize the new `MovieResolver` for fetching movie details.
- Simplified the `LogReviewData` structure and its conversion to `LogReviewCommand`.
- Enhanced error handling for date parsing in review forms and requests.
- Updated dependencies in `Cargo.toml` and `Cargo.lock` to include necessary crates for async operations.
- Added tests for new functionality in `movie_resolver.rs` to ensure correct behavior of resolution strategies.
2026-05-04 15:08:04 +02:00
7913b3e0e5 fix(tests): add missing trait methods to PanicRepo mocks 2026-05-04 14:37:48 +02:00
39ac5a0c50 fix(presentation): restore user_id in get_new_review_page for nav bar 2026-05-04 14:34:46 +02:00
36f3a9c44b fix(presentation): pass None user_id for non-diary page contexts 2026-05-04 14:32:30 +02:00
7c704f39b3 feat(template): add user_id to HtmlPageContext and delete button to diary 2026-05-04 14:31:12 +02:00
6d71da9f1e fix(presentation): use {id} syntax in delete review route 2026-05-04 14:29:24 +02:00
977a8ed8fd feat(presentation): add POST /reviews/:id/delete handler and route 2026-05-04 14:27:43 +02:00
f74a36a16f feat(presentation): add DELETE /api/reviews/:id handler and route 2026-05-04 14:24:48 +02:00
8d7700995d feat(sqlite): implement get_review_by_id, delete_review, delete_movie 2026-05-04 14:21:25 +02:00
de84bb7331 feat(application): add DeleteReviewCommand and delete_review use case 2026-05-04 14:17:13 +02:00
4c38724d93 feat(domain): add get_review_by_id to MovieRepository 2026-05-04 14:15:04 +02:00
6e50b64245 feat(database): remove unused SQL queries and update Cargo dependencies 2026-05-04 14:00:33 +02:00
8ee54817d7 feat(routes): replace /diary with /, add login/logout/register/reviews/new routes 2026-05-04 13:38:19 +02:00
5c0be8b2ca feat(handlers): add HTML handlers for login, logout, register, new review, diary index 2026-05-04 13:38:16 +02:00
17be6f529a feat(dtos): add LoginForm, RegisterForm, ErrorQuery 2026-05-04 13:38:14 +02:00
7560ff8ac5 feat(extractors): add OptionalCookieUser and RequiredCookieUser 2026-05-04 13:34:31 +02:00
2a4f1585dc feat(templates): add base layout, login, register, new_review templates; update diary 2026-05-04 13:30:33 +02:00
37c7c77399 feat(domain): add find_by_id to UserRepository + SQLite impl 2026-05-04 13:28:20 +02:00
657e9d443d feat(ports): extend HtmlRenderer with page context and new render methods 2026-05-04 13:20:30 +02:00
b7f4855ba3 fix(database): update database connection to use DATABASE_URL with SqliteConnectOptions 2026-05-04 12:54:28 +02:00
494c907729 feat(wiring): wire PosterSyncHandler into event channel in main.rs 2026-05-04 12:44:53 +02:00
fb27e23861 fix(event-handlers): expect over unwrap, panic-stub comment, fix deprecated chrono call 2026-05-04 12:42:03 +02:00
7ab7561133 feat(presentation): implement PosterSyncHandler with retry 2026-05-04 12:37:57 +02:00
5fffdc93c7 feat(application): derive Clone on SyncPosterCommand 2026-05-04 12:35:10 +02:00
e17082b11d test(event-publisher): fix flaky sleep synchronization in EventWorker tests 2026-05-04 12:34:29 +02:00
c37c79ac6c feat(event-publisher): add EventHandler trait and fan-out in EventWorker 2026-05-04 12:32:44 +02:00
bda0531797 feat(event-publisher): add event publisher adapter with configuration and integration 2026-05-04 12:30:42 +02:00
992a1a2674 feat(rss): implement RSS feed adapter and integrate with application state 2026-05-04 12:03:17 +02:00
c1c61ad19b feat(poster-fetcher): add poster fetcher adapter with configuration and integration 2026-05-04 11:51:20 +02:00
00c0b940bc feat(poster-storage): implement S3/Minio storage adapter and configuration 2026-05-04 11:44:44 +02:00
bd160e3861 feat(log_review): add manual title resolution for movie lookup 2026-05-04 11:24:18 +02:00
e78216b404 feat(metadata): Implement OMDB metadata provider and refactor metadata client
- Added `OmdbProvider` to fetch movie metadata from the OMDB API.
- Refactored `MetadataClient` to use `MetadataSearchCriteria` for fetching movie metadata.
- Updated `MetadataClientImpl` to support fetching metadata using OMDB.
- Modified `log_review` use case to utilize the new metadata fetching mechanism.
- Updated tests and presentation layer to accommodate changes in metadata handling.
- Added dependencies for `reqwest` and `async-trait` in relevant `Cargo.toml` files.
2026-05-04 11:19:51 +02:00
1f8b24fec2 feat(auth): implement JWT authentication and user registration
- Added JWT authentication with token generation and validation.
- Introduced user registration functionality with email and password.
- Integrated Argon2 for password hashing.
- Created SQLite user repository for user data persistence.
- Updated application context to include user repository and configuration settings.
- Added environment variable support for JWT secret and registration allowance.
- Enhanced error handling for unauthorized access and validation errors.
- Updated presentation layer to handle login and registration requests.
2026-05-04 10:43:07 +02:00
98ad1b19fa refactor(tests): remove unused models from api_test 2026-05-04 09:35:54 +02:00
0d7a0cc712 presentation wiring 2026-05-04 09:30:20 +02:00
d2c8886bb0 feat(presentation): add initial structure with dtos, errors, extractors, handlers, and routes modules 2026-05-04 02:11:33 +02:00
408f21b7ec refactor(template-askama): clean up comments and improve code readability 2026-05-04 02:05:13 +02:00
9cc2d3dd7a feat(template-askama): add Askama template adapter for diary entries 2026-05-04 02:04:52 +02:00
1823756fc1 feat(sqlite): implement movie and review management with migrations
- Added SQL migrations for movies and reviews tables.
- Implemented SqliteMovieRepository with methods for upserting movies, saving reviews, and querying diary entries.
- Introduced models for database rows and conversion to domain models.
- Integrated async migration handling in the repository.
- Updated Cargo.toml files to include necessary dependencies for async operations and HTTP handling.
2026-05-04 01:59:52 +02:00