344 Commits

Author SHA1 Message Date
Michael Genson
2a541f081a
feat: User-specific Recipe Ratings (#3345) 2024-04-11 21:28:43 -05:00
Carter
eb1d569e95
Infinite redirect fix again (#3419)
* override the check method to not care about the id token if we have a valid mealie token

* prevent auto log in with auth check is already good

* fix check

* simplify check logic
2024-04-04 21:23:33 +00:00
Michael Genson
d770009e0d added reactive accepted file types 2024-03-21 16:21:37 +00:00
Michael Genson
7dcf2ca33d added migration to frontend and cleaned up migration page 2024-03-21 16:11:33 +00:00
Michael Genson
63a362a48a
fix: Limit shopping list owners to current group (#3305)
* add route for getting group-only users

* add new api route to frontend

* update shopping list user getAll call

* tests

* fixed bad import

* replace UserOut with UserSummary

* fix params
2024-03-13 18:29:00 +00:00
Michael Genson
5f5b06683a
fix: add locale and first day of week to all date pickers (#3303) 2024-03-12 22:46:34 +00:00
Michael Genson
0a344731c8
feat: Timeline Filters (#3284)
* added timeline event filters

* updated empty timeline text

* simplify icons/labels for event types

* added missing translations

* cloned sort improvements to explore page

* added filter indicator

* lint

* removed lint warning

* add top margin to "no events found" text

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>

* fixed reversed sort icons

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>

* fixed sort dir on timeline filter

* sync checkbox state with preferences state

---------

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2024-03-12 15:20:48 +00:00
Michael Genson
403038a5b2
feat: First Time Setup Wizard (#3204)
* extract user registration form into a composable

* added base wizard component

* added partial setup implementation

* removed unused attrs

* added setup bypass

* made setup page more readable

* add checkbox hints to autoform

* added common settings pages and initial submit logic

* bypass setup in demo

* add full name to user registration

* added fullname and pw handling to setup

* fixed wizard indentation

* added post-setup suggestions

* added tests for backend changes

* renamed Wizard to BaseWizard

* lint fixes

* pass hardcoded default password instead of backend nonsense

* removed old test

* fix e2e

* added setup skip to e2e testing for all admin users

---------

Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2024-03-11 13:28:54 +00:00
Hayden
5f6844eceb
feat: Login with OAuth via OpenID Connect (OIDC) (#3280)
* initial oidc implementation

* add dynamic scheme

* e2e test setup

* add caching

* fix

* try this

* add libldap-2.5 to runtime dependencies (#2849)

* New translations en-us.json (Norwegian) (#2851)

* New Crowdin updates (#2855)

* New translations en-us.json (Italian)

* New translations en-us.json (Norwegian)

* New translations en-us.json (Portuguese)

* fix

* remove cache

* cache yarn deps

* cache docker image

* cleanup action

* lint

* fix tests

* remove not needed variables

* run code gen

* fix tests

* add docs

* move code into custom scheme

* remove unneeded type

* fix oidc admin

* add more tests

* add better spacing on login page

* create auth providers

* clean up testing stuff

* type fixes

* add OIDC auth method to postgres enum

* add option to bypass login screen and go directly to iDP

* remove check so we can fallback to another auth method oauth fails

* Add provider name to be shown at the login screen

* add new properties to admin about api

* fix spec

* add a prompt to change auth method when changing password

* Create new auth section. Add more info on auth methods

* update docs

* run ruff

* update docs

* format

* docs gen

* formatting

* initialize logger in class

* mypy type fixes

* docs gen

* add models to get proper fields in docs and fix serialization

* validate id token before using it

* only request a mealie token on initial callback

* remove unused method

* fix unit tests

* docs gen

* check for valid idToken before getting token

* add iss to mealie token

* check to see if we already have a mealie token before getting one

* fix lock file

* update authlib

* update lock file

* add remember me environment variable

* add user group setting to allow only certain groups to log in

---------

Co-authored-by: Carter Mintey <cmintey8@gmail.com>
Co-authored-by: Carter <35710697+cmintey@users.noreply.github.com>
2024-03-10 13:51:36 -05:00
Michael Genson
130813ffe4
fix: Make Meal Planner Notes Not Clickable (#3274)
* selectively remove recipe card components when there is no recipe

* copied changes to regular card
2024-03-09 09:29:41 -09:00
boc-the-git
980b3c634b
Change "New" to "Add" (#3271) 2024-03-09 10:26:55 -06:00
Michael Genson
29368d9cc4 move showAll to user preferences 2024-03-06 15:11:43 +00:00
Michael Genson
c9fdf862a3
Merge branch 'mealie-next' into feat/filter-shopping-lists 2024-03-05 09:18:37 -06:00
Olly Welch
52de8afe2d
feat: sort by labels in shopping list copy if labels toggled (#3226)
* feat: sort by labels in shopping list copy if labels toggled

* fix: call parent validator in shopping list item out (#3227)

* fix: add a unit test for (#3227)

* fixed messy post_validate logic

* feat: label headings in shopping list copy

* feat: blank line for each group in shopping list copy

---------

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
2024-02-28 22:06:04 +00:00
Michael Genson
aa4527e5f7 replace v-for/v-if with computed ref 2024-02-23 19:22:39 +00:00
Michael Genson
ae8ea16dab lint 2024-02-23 19:17:08 +00:00
Michael Genson
478a4e5d73 fixed showAll centering and added to recipe dialog 2024-02-23 19:11:28 +00:00
Michael Genson
44cd2fef1c fixed trailing quote 2024-02-23 18:58:47 +00:00
Michael Genson
f9b71f4b4c translated owner string 2024-02-23 18:00:58 +00:00
Michael Genson
7ca50b63f9 moved settings under list contents 2024-02-23 18:00:13 +00:00
Michael Genson
62adc920a9 added settings to shopping list to change user 2024-02-23 17:54:50 +00:00
Michael Genson
8e5ea1df5e added "show all" toggle on list of shopping lists 2024-02-23 17:07:43 +00:00
Michael Genson
3d4405cd42 order shopping lists alphabetically 2024-02-23 16:03:56 +00:00
Jurriaan Den Toonder
4d2363ea22
Add shopping list items using the enter key (#3118)
* Enables shopping list items being saved upon enter key press in notes field

Related to: https://github.com/mealie-recipes/mealie/discussions/3114
* Enter key press is caught in note field in ShoppingListItemEditor
* The create editor now stays open after saving a food item to a shopping list,
   to allow keyboard-only interaction with the shopping list

* Prevent empty shopping list items from being added

Related to: https://github.com/mealie-recipes/mealie/discussions/3114
An item is considered empty when the foodId is not set, and no note is set.
This is only handled frontend, the backend still accepts empty items.

---------

Signed-off-by: Jurriaan Den Toonder <1493561+Fastjur@users.noreply.github.com>
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
2024-02-19 10:29:45 -06:00
Michael Genson
ea7005e822
feat: Shopping List Editor Improvements (#3178)
* modify new item factory to default to zero qty and use last isFood value

* automatically set the label of an item when choosing a food

* fix when switching to a food with no label

* removed trivial type annotation

* more lint

* removed debug log
2024-02-19 06:59:03 +11:00
boc-the-git
ba4eddccd9
Merge branch 'mealie-next' into feat-frontend-access-controll 2024-02-18 20:15:40 +11:00
boc-the-git
83887e3c37
Set recipe rating (#3175) 2024-02-15 10:57:02 -06:00
Kuchenpirat
058d968833
Merge branch 'mealie-next' into feat-frontend-access-controll 2024-02-13 18:44:01 +01:00
Kuchenpirat
aebf229b86
Merge branch 'mealie-next' into feat--dragable-items-in-ingredient-parser 2024-02-13 11:30:48 +01:00
Kuchenpirat
4be23ccffb 🧹 2024-02-13 08:23:13 +00:00
Kuchenpirat
a12ee536d9 remove animation 2024-02-12 12:28:06 +00:00
Kuchenpirat
97d5439a4f add animation (bit buggy) 2024-02-12 11:42:36 +00:00
Kuchenpirat
c94a1d7c17 add ghost 2024-02-12 11:41:44 +00:00
Kuchenpirat
0e0dfbf014 Refactor ingredient-parser component to include draggable functionality 2024-02-12 09:59:19 +00:00
Kuchenpirat
3317e061a8 add user reset email functionality 2024-02-10 12:51:38 +00:00
Kuchenpirat
1450d6fc4c
fix password reset link not shown (#3142) 2024-02-10 11:09:21 +00:00
Kuchenpirat
704d0a8392
Merge branch 'mealie-next' into feat-frontend-access-controll 2024-02-07 18:22:55 +01:00
Michael Genson
f42114e966
feat: Redirect Logged Out Users to Default Group, If It's Public (#2772)
* add default group slug to app info if public

* redirect public user to default group

* added tests

---------

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2024-02-07 07:53:55 -09:00
Kuchenpirat
813a124250
Merge branch 'mealie-next' into feat-frontend-access-controll 2024-02-05 11:47:14 +01:00
Kuchenpirat
52c58e1dc0
feat: bulk deletion on "Manage Data" page (#3056)
* labels bulk delete

* add foods

* bulk delete units

* add categories

* add tags

* add tools

* update translations

* fix types for text

* fix reactivity for stores

---------

Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2024-02-04 12:55:14 -06:00
Kuchenpirat
67b7fb007b
feat: Cookbook Create & Delete Improvements (#2902)
* add delete dialog

* put editor into component

* return data on createCookbook store action

* verry basic dialog with create & cancel functions

* 🧹

* cleanup

* add translation

* add dialog-closed to BaseDialog

* update delete dialog messaging

* use cancel instead of dialog-closed
2024-02-04 07:15:25 -09:00
Kuchenpirat
a04b6983e7
Merge branch 'mealie-next' into feat-frontend-access-controll 2024-02-02 17:27:58 +01:00
Kuchenpirat
6beea06a41 show group settings option only to users that can manage the group 2024-02-02 16:17:38 +00:00
Kuchenpirat
e75b5f2f15 add shopping lists 2024-02-02 16:00:18 +00:00
Kuchenpirat
c9acc48bd6 add group reports 2024-02-02 15:56:26 +00:00
Kuchenpirat
f4df68a9e2 restrict access to /group pages 2024-02-02 15:36:10 +00:00
Kuchenpirat
4cee8ea879 add can manage restriction 2024-02-02 15:14:48 +00:00
Kuchenpirat
e7f5a4adff move middleware for manage data page to parrent component 2024-02-02 14:58:39 +00:00
Kuchenpirat
0301713214 add auth and group only to groupSlug pages 2024-02-02 14:45:30 +00:00
Kuchenpirat
88529457bf 🧹 2024-02-01 07:50:34 +00:00