Commit graph

88 commits

Author SHA1 Message Date
5a314ffbec Keeps the same behavior as before when parameter is missing 2025-05-21 21:27:28 +02:00
817ef3d727 Use typed parameters instead of a hashmap 2025-05-21 20:18:31 +02:00
084f7ef445 Add a RON API to search recipes by title + a bit of refactoring 2025-05-21 19:58:31 +02:00
c24b0caeaf Add a API entry point to get all tags 2025-05-20 15:32:54 +02:00
6e017e41a3 Simplify web API (put ids in url) 2025-05-19 22:58:00 +02:00
e4ec80e118 Add some HTTP tests for recipe fields and recipe tags 2025-05-15 00:36:07 +02:00
9c368e82ab Add a HTTP test for recipe edit (WIP) 2025-05-14 00:30:40 +02:00
1c2e910dea Replace mime type "application/ron" by "text/ron" and put it in the common crate 2025-05-09 23:45:32 +02:00
f9899c1aeb Set authentication cookie as secure 2025-05-07 21:47:24 +02:00
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
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
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
710a134966 Refactor MessageTemplate initialization to use Context directly instead of Tr and user parameters 2025-04-30 11:26:53 +02:00
8152d3d9b0 Replace all event! by a specific macro: warn!, error!, etc. 2025-04-30 01:50:50 +02:00
7f94159852 Extract some functions to the app module: preparation for integration tests. 2025-04-29 17:51:46 +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
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
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
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
559ed139aa Add a toggle between dark and light theme 2025-03-31 15:31:06 +02: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
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
a90c097e2a Set language cookie even when connected + increase number of concurrent connections when sign in and sign up 2025-03-10 21:06:09 +01:00
b2572ebfe5 Add favicon 2025-03-03 00:18:56 +01:00
a590d7e1e9 A bit of clean up 2025-03-02 00:39:58 +01:00
a1fd63ad08 Shopping list items can now be checked/unchecked 2025-02-12 23:13:48 +01:00
da5ea57787 Ingredients can now be remove from shopping list when a recipe is unscheduled. 2025-02-12 02:05:38 +01:00
084be9fb00 Shopping list (WIP) 2025-02-11 19:39:13 +01:00
ce3821b94e Ingredients can now be added to shopping list when a recipe is scheduled 2025-02-10 15:02:20 +01:00
37721ac3ea Calendar is now displayed on home page and recipes can be scheduled without being logged 2025-02-08 22:31:38 +01:00
ccb1248da3 Toast message when scheduling a recipe 2025-02-05 15:44:48 +01:00