Commit graph

135 commits

Author SHA1 Message Date
ee4c2038b8 Add tests recipe_view and user_edit 2025-04-30 12:00:41 +02:00
710a134966 Refactor MessageTemplate initialization to use Context directly instead of Tr and user parameters 2025-04-30 11:26:53 +02:00
c8e0aa918c Check user is validated before creating a new recipe 2025-04-30 11:11:01 +02:00
104ae6b38e Use asynchronous file removal in backup process 2025-04-30 01:51:09 +02:00
8152d3d9b0 Replace all event! by a specific macro: warn!, error!, etc. 2025-04-30 01:50:50 +02:00
1485110204 Integration tests: homepage (WIP) 2025-04-30 01:39:11 +02:00
fb62288161 Implement Default trait for Config type 2025-04-29 18:09:58 +02:00
7f94159852 Extract some functions to the app module: preparation for integration tests. 2025-04-29 17:51:46 +02:00
aa7a7a23fc Display the final path (compressed backup) in log 2025-04-29 13:15:06 +02:00
5962b13d05 Remove an unwrap 2025-04-29 13:14:46 +02:00
ef918dc724 broken link in doc 2025-04-29 13:14:25 +02:00
bf02420e18 Update to askama 0.14 2025-04-28 23:23:13 +02:00
6651d6e91d Doc 2025-04-28 23:22:38 +02:00
c296689c6b Refactor recipe editing logic to use User's method for permission check and update template accordingly 2025-04-28 12:52:45 +02:00
2a1f246925 Remove useless error message prefix 2025-04-27 13:02:05 +02:00
7b9df97a32 Log errors in the user module 2025-04-27 02:57:08 +02:00
b0f0633338 Move logs view from dev_panel page to a logs page 2025-04-26 16:26:35 +02:00
1bb0f05fc0 Enhance logging display in dev panel with structured output and improved styling 2025-04-26 15:56:56 +02:00
9dccd553bc Current recipe id was not set 2025-04-21 19:37:09 +02:00
812ba9dc3b Add logging functionality to the dev panel 2025-04-21 16:52:14 +02:00
c8dd82a5e0 Add support for first day of the week based on territory 2025-04-19 13:53:09 +02:00
475024a97b Add doc 2025-04-19 12:17:07 +02:00
fdbf2e4f27 Add first day of the week feature to user settings and calendar functionality 2025-04-19 12:01:46 +02:00
f2e0aa3b43 Form CSS style + dev panel (WIP) 2025-04-15 11:34:18 +02:00
9daa852add Refactor recipe fetching logic to use a new constructor for Recipes, improving code clarity and reducing duplication. 2025-04-12 18:45:51 +02:00
aebca7a7e2 Add tracing-appender for improved logging with daily rotation. 2025-04-12 17:27:03 +02:00
b4411ae892 Directories for database file, backups and logs are defined in configuration file now 2025-04-12 15:58:19 +02:00
2a288abb07 CSS: use a $margin constant. Some CSS improvements (WIP). 2025-04-09 15:08:43 +02:00
c1fc9aa46f Log thread ID and name in debug mode 2025-04-08 18:11:49 +02:00
24aa046f8c Add application version to footer in base template and define VERSION constant 2025-04-08 18:11:23 +02:00
182c951fd2 Refactor backup file removal logic to simplify error handling and improve clarity 2025-04-06 23:30:47 +02:00
07cdadbdac Enhance backup process with gzip compression 2025-04-06 00:21:44 +02:00
0c2e4b7624 Add markdown rendering for recipe descriptions using comrak 2025-04-02 18:19:06 +02:00
9b89117a66 Replace endpoint /calendar/schedule_recipe by /calendar/sheduled_recipe 2025-04-02 02:14:17 +02:00
4f739593b8 Rename 'published' to 'public' (for recipe) 2025-04-02 01:53:02 +02:00
9874497469 Better email title + translation 2025-04-01 23:46:25 +02:00
bb9a6ba9ec Documentation 2025-04-01 18:14:35 +02:00
63266dec56 Use the default OS theme (dark or light) 2025-03-31 23:37:58 +02:00
315626b3ed Remove useless verbs in web api urls 2025-03-31 21:24:20 +02:00
559ed139aa Add a toggle between dark and light theme 2025-03-31 15:31:06 +02:00
d22617538e Add a simple daily backup module 2025-03-29 23:59:48 +01:00
b8a8af3979 Use thiserror crate for email (instead of manually implementing all 'From' traits) 2025-03-27 17:32:56 +01:00
4ddc12ba28 Graceful shutdown with CTRL-C 2025-03-26 18:38:14 +01:00
dc40a057ac Replace Rinja by askama 2025-03-26 13:19:16 +01:00
3089ede6eb Add the lang prefix to all links 2025-03-26 12:03:31 +01:00
b39cb1c067 Put the lang in front of url (WIP) 2025-03-26 02:08:20 +01:00
418d31a127 * Support for lang in URL as /fr/recipe/view/42
* Create a pages module in the frontend crate
2025-03-26 01:49:02 +01:00
b812525f4b Update ron version to 0.9 2025-03-19 01:06:57 +01:00
995f77d1ef Doc + formatting 2025-03-18 20:03:25 +01:00
9ed5a04e22 Replace PUT method by the more appropriate PATCH method. 2025-03-18 20:02:30 +01:00