Commit graph

152 commits

Author SHA1 Message Date
6f014ef238 Cleaning 2025-05-07 20:12:49 +02:00
198bff6e4a Only set the cookie if the user is not connected 2025-05-07 16:07:49 +02:00
a175595e23 - Do not force the language in the url when sign in (to use the user language preference).
- Do not force the language in the url when sign out to use the cookie or Accept-Language settings
2025-05-07 15:51:19 +02:00
2a93456350 Enhance sign up test 2025-05-07 15:24:28 +02:00
fcadaf855f Little changes on forms presentation 2025-05-07 13:38:01 +02:00
3ab168fd67 Do not update user email if there is an error when sending the validation link to the new email 2025-05-07 01:12:51 +02:00
6010c8600f Split translation file in multiple files: one per language 2025-05-05 23:58:09 +02:00
ec36391ec8 Dispaly a user message when a recipe is successfully deleted 2025-05-05 23:28:17 +02:00
348b0f24e9 Update dependencies, add translation endpoint, and display a user message when logged in 2025-05-05 01:59:30 +02:00
3626f8a11b Update dependencies and implement email service integration
- Refactor app and email modules to include email service
- Add tests for user sign-up and mock email service
2025-05-02 00:57:32 +02:00
f31167dd95 Factorize RON error response for not authorized content 2025-05-01 20:56:20 +02:00
630ad418bd Refactor for clearer code 2025-05-01 16:16:05 +02:00
3bc17cea79 Translate an error message 2025-04-30 19:29:35 +02:00
58e299b337 Set parameter SameSite to Lax for both cookies *dark_theme* and *lang* 2025-04-30 17:38:16 +02:00
983002b5ec Doc+log 2025-04-30 17:36:58 +02:00
4f749c7d88 Log message when the dark theme cookie can't be read 2025-04-30 17:35:31 +02:00
44eb2bbe42 Disable log for integration tests 2025-04-30 12:07:36 +02:00
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