diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index cbac5071b..07fd5786e 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,8 +1,8 @@ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.224.2/containers/python-3/.devcontainer/base.Dockerfile # [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster -ARG VARIANT="3.10-bullseye" -FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} +ARG VARIANT="3.12-bullseye" +FROM mcr.microsoft.com/devcontainers/python:${VARIANT} # [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 ARG NODE_VERSION="none" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fed52b188..31d8f3427 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -9,7 +9,7 @@ // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6 // Append -bullseye or -buster to pin to an OS version. // Use -bullseye variants on local on arm64/Apple Silicon. - "VARIANT": "3.10-bullseye", + "VARIANT": "3.12-bullseye", // Options "NODE_VERSION": "16" } diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 09f8f5695..b890608ff 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -20,20 +20,6 @@ --> -## What type of PR is this? - -_(REQUIRED)_ - - - -- feature -- bug -- documentation -- cleanup -- dev (Internal development) - ## What this PR does / why we need it: _(REQUIRED)_ diff --git a/.github/workflows/partial-backend.yml b/.github/workflows/partial-backend.yml index fae5dfd8b..b0772d181 100644 --- a/.github/workflows/partial-backend.yml +++ b/.github/workflows/partial-backend.yml @@ -47,7 +47,7 @@ jobs: - name: Set up python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Install Poetry uses: snok/install-poetry@v1 diff --git a/.github/workflows/scheduled-checks.yml b/.github/workflows/scheduled-checks.yml index 0134d60cd..337907418 100644 --- a/.github/workflows/scheduled-checks.yml +++ b/.github/workflows/scheduled-checks.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Set PY shell: bash diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db821321b..acbc1c120 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: exclude: ^tests/data/ - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.1 + rev: v0.9.0 hooks: - id: ruff - id: ruff-format diff --git a/Taskfile.yml b/Taskfile.yml index a9ca44ac0..70f6f23dd 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -151,7 +151,7 @@ tasks: py:migrate: desc: generates a new database migration file e.g. task py:migrate -- "add new column" cmds: - - poetry run alembic revision --autogenerate -m "{{ .CLI_ARGS }}" + - poetry run alembic --config mealie/alembic/alembic.ini revision --autogenerate -m "{{ .CLI_ARGS }}" - task: py:format ui:build: diff --git a/docker/Dockerfile b/docker/Dockerfile index 6c9c09066..bdee7416e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -17,7 +17,7 @@ RUN yarn generate ############################################### # Base Image - Python ############################################### -FROM python:3.10-slim as python-base +FROM python:3.12-slim as python-base ENV MEALIE_HOME="/app" @@ -109,10 +109,6 @@ COPY --from=crfpp /usr/local/bin/crf_test /usr/local/bin/crf_test COPY ./mealie $MEALIE_HOME/mealie COPY ./poetry.lock ./pyproject.toml $MEALIE_HOME/ -# Alembic -COPY ./alembic $MEALIE_HOME/alembic -COPY ./alembic.ini $MEALIE_HOME/ - # venv already has runtime deps installed we get a quicker install WORKDIR $MEALIE_HOME RUN . $VENV_PATH/bin/activate && poetry install -E pgsql --only main diff --git a/docs/docs/contributors/developers-guide/starting-dev-server.md b/docs/docs/contributors/developers-guide/starting-dev-server.md index d17772473..4edac0b18 100644 --- a/docs/docs/contributors/developers-guide/starting-dev-server.md +++ b/docs/docs/contributors/developers-guide/starting-dev-server.md @@ -32,7 +32,7 @@ Make sure the VSCode Dev Containers extension is installed, then select "Dev Con ### Prerequisites -- [Python 3.10](https://www.python.org/downloads/) +- [Python 3.12](https://www.python.org/downloads/) - [Poetry](https://python-poetry.org/docs/#installation) - [Node v16.x](https://nodejs.org/en/) - [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable) diff --git a/docs/docs/documentation/getting-started/faq.md b/docs/docs/documentation/getting-started/faq.md index 5484c718a..7035f3713 100644 --- a/docs/docs/documentation/getting-started/faq.md +++ b/docs/docs/documentation/getting-started/faq.md @@ -1,164 +1,268 @@ + # Frequently Asked Questions -## How do I enable "smart" ingredient handling? +## Features and Functionality -You might have noticed that scaling up a recipe or making a shopping list doesn't by default handle the ingredients in a way you might expect. Depending on your settings, scaling up might yield things like `2 1 cup broth` instead of `2 cup broth`. And, making shopping lists from recipes that have shared ingredients can yield multiple lines of the same ingredient. **But**, Mealie has a mechanism to intelligently handle ingredients and make your day better. How? -### Set up your Foods and Units -Do the following just **once**. Doing this applies to your whole group, so be careful. +??? question "How do I enable 'smart' ingredient handling?" -1. Click on your name in the upper left corner to get to your settings -2. In the bottom right, select `Manage Data` -3. In the Management page, make sure that a little orange button says `Foods` -4. If your Foods database is empty, click `Seed` and choose your language. You should end up with a list of foods. (Wait a bit for seeding to happen, and try not to seed more than once or you will have duplicates) -5. Click the little orange `Foods` button and now choose `Units`. -6. Click `Seed` and choose your language. You should end up with a list of units (e.g. `tablespoon`) + ### How do I enable "smart" ingredient handling? -Initial seeding of Units is pretty complete, but there are many Foods in the world. You'll probably find that you need to add Foods to the database during parsing for the first several recipes. Once you have a well-populated Food database, there are API routes to parse ingredients automatically in bulk. But this is not a good idea without a very complete set of Foods. + You might have noticed that scaling up a recipe or making a shopping list doesn't by default handle the ingredients in a way you might expect. Depending on your settings, scaling up might yield things like `2 1 cup broth` instead of `2 cup broth`. And, making shopping lists from recipes that have shared ingredients can yield multiple lines of the same ingredient. **But**, Mealie has a mechanism to intelligently handle ingredients and make your day better. How? -### Set up Recipes to use Foods and Units -Do the following for each recipe you want to intelligently handle ingredients. +

Set up your Foods and Units

+ Do the following just **once**. Doing this applies to your whole group, so be careful. -1. Go to a recipe -2. Click the Edit button/icon -3. Click the Recipe Settings gear and deselect `Disable Ingredient Amounts` -4. Save -5. The ingredients should now look a little weird (`1 1 cup broth` and so on) -6. Click the Edit button/icon again -7. Scroll to the ingredients and you should see new fields for Amount, Unit, Food, and Note. The Note in particular will contain the original text of the Recipe. -8. Click `Parse` and you will be taken to the ingredient parsing page. -9. Choose your parser. The `Natural Language Parser` works very well, but you can also use the `Brute Parser`, or the `OpenAI Parser` if you've [enabled OpenAI support](./installation/backend-config.md#openai). -10. Click `Parse All`, and your ingredients should be separated out into Units and Foods based on your seeding in Step 1 above. -11. For ingredients where the Unit or Food was not found, you can click a button to accept an automatically suggested Food to add to the database. Or, manually enter the Unit/Food and hit `Enter` (or click `Create`) to add it to the database -12. When done, click `Save All` and you will be taken back to the recipe. Now the Unit and Food fields of the recipe should be filled out. + 1. Click on your name in the upper left corner to get to your settings + 2. In the bottom right, select `Manage Data` + 3. In the Management page, make sure that a little orange button says `Foods` + 4. If your Foods database is empty, click `Seed` and choose your language. You should end up with a list of foods. (Wait a bit for seeding to happen, and try not to seed more than once or you will have duplicates) + 5. Click the little orange `Foods` button and now choose `Units`. + 6. Click `Seed` and choose your language. You should end up with a list of units (e.g. `tablespoon`) -Scaling up this recipe or adding it to a Shopping List will now smartly take care of ingredient amounts and duplicate combinations. + Initial seeding of Units is pretty complete, but there are many Foods in the world. You'll probably find that you need to add Foods to the database during parsing for the first several recipes. Once you have a well-populated Food database, there are API routes to parse ingredients automatically in bulk. But this is not a good idea without a very complete set of Foods. -## Is it safe to upgrade Mealie? +

Set up Recipes to use Foods and Units

-Yes. If you are using the v1 branches (including beta), you can upgrade to the latest version of Mealie without performing a site Export/Restore. This process was required in previous versions of Mealie, however we've automated the database migration process to make it easier to upgrade. Note that if you were using the v0.5.x version, you CANNOT upgrade to the latest version automatically. You must follow the migration instructions in the documentation. + Do the following for each recipe you want to intelligently handle ingredients. -- [Migration From v0.5.x](./migrating-to-mealie-v1.md) + 1. Go to a recipe + 2. Click the Edit button/icon + 3. Click the Recipe Settings gear and deselect `Disable Ingredient Amounts` + 4. Save + 5. The ingredients should now look a little weird (`1 1 cup broth` and so on) + 6. Click the Edit button/icon again + 7. Scroll to the ingredients and you should see new fields for Amount, Unit, Food, and Note. The Note in particular will contain the original text of the Recipe. + 8. Click `Parse` and you will be taken to the ingredient parsing page. + 9. Choose your parser. The `Natural Language Parser` works very well, but you can also use the `Brute Parser`, or the `OpenAI Parser` if you've [enabled OpenAI support](./installation/backend-config.md#openai). + 10. Click `Parse All`, and your ingredients should be separated out into Units and Foods based on your seeding in Step 1 above. + 11. For ingredients where the Unit or Food was not found, you can click a button to accept an automatically suggested Food to add to the database. Or, manually enter the Unit/Food and hit `Enter` (or click `Create`) to add it to the database + 12. When done, click `Save All` and you will be taken back to the recipe. Now the Unit and Food fields of the recipe should be filled out. -## How can I change the theme? - -You can change the theme by settings the environment variables. - -- [Backend Config - Themeing](./installation/backend-config.md#themeing) - -## How can I change the login session timeout? - -Login session can be configured by setting the `TOKEN_TIME` variable on the backend container. - -- [Backend Config](./installation/backend-config.md) - -## Can I serve Mealie on a subpath? - -No. Due to limitations from the JavaScript Framework, Mealie doesn't support serving Mealie on a subpath. - -## Can I install Mealie without docker? - -Yes, you can install Mealie on your local machine. HOWEVER, it is recommended that you don't. Managing non-system versions of python, node, and npm is a pain. Moreover, updating and upgrading your system with this configuration is unsupported and will likely require manual interventions. - -## What is fuzzy search and how do I use it? -Mealie can use fuzzy search, which is robust to minor typos. For example, searching for "brocolli" will still find your recipe for "broccoli soup". But fuzzy search is only functional on a Postgres database backend. To enable fuzzy search you will need to migrate to Postgres: - -1. Backup your database and download the .zip file (same as when [migrating](./migrating-to-mealie-v1.md)) -2. Set up a [Postgres](./installation/postgres.md) instance of Mealie -3. Upload the backup .zip and click to apply it (as as migration) - -## How can I attach an image or video to a Recipe? - -Mealie's Recipe Steps and other fields support markdown syntax and therefore support images and videos. To attach an image to the recipe, you can upload it as an asset and use the provided copy button to generate the html image tag required to render the image. For videos, Mealie provides no way to host videos. You'll need to host your videos with another provider and embed them in your recipe. Generally, the video provider will provide a link to the video and the html tag required to render the video. For example, YouTube provides the following link that works inside a step. You can adjust the width and height attributes as necessary to ensure a fit. - -```html - -``` - -## How can I unlock my account? - -If your account has been locked by bad password attempts, you can use an administrator account to unlock another account. Alternatively, you can unlock all accounts via a script within the container. - -```shell -docker exec -it mealie bash - -python /app/mealie/scripts/reset_locked_users.py -``` - -## How can I change my password? - -You can change your password by going to the user profile page and clicking the "Change Password" button. Alternatively you can use the following script to change your password via the CLI if you are locked out of your account. - -```shell -docker exec -it mealie bash - -python /app/mealie/scripts/change_password.py -``` - -## I can't log in with external auth. How can I change my authentication method? - -Follow the [steps above](#how-can-i-change-my-password) for changing your password. You will be prompted if you would like to switch your authentication method back to local auth so you can log in again. - -## How do private groups, households, and recipes work? - -Managing private groups and recipes can be confusing. The following diagram and notes should help explain how they work to determine if a recipe can be shared publicly. - -- Private links that are generated from the recipe page using the `Share` button bypass all group and recipe permissions -- Private groups block all access to recipes, including those that are public, except as noted above. -- Private households, similar to private groups, block all access to recipes, except as noted above. -- Households with "Allow users outside of your group to see your recipes" disabled block all access to recipes, except as noted above. -- Private recipes block all access to the recipe from public links. This does not affect Private Links. - -```mermaid -stateDiagram-v2 - r1: Request Access - p1: Using Private Link? - p2: Is Group Private? - p3: Is Household Private? - p4: Is Recipe Private? - s1: Deny Access - n1: Allow Access + Scaling up this recipe or adding it to a Shopping List will now smartly take care of ingredient amounts and duplicate combinations. - r1 --> p1 - p1 --> p2: No - p1 --> n1: Yes +??? question "How do I enable Nutritional Values?" - p2 --> s1: Yes - p2 --> p3: No + ### How do I enable Nutritional Values? - p3 --> s1: Yes - p3 --> p4: No + Mealie can store Nutritional Information for Recipes. Please note that the values you enter are static for the recipe and no scaling is being done when changing Servings / Yield. - p4 --> s1: Yes - p4 --> n1: No -``` + Do the following to enable Nutritional Values on individual Recipes, or to modify your Household Recipe Preferences -For more information on public access, check out the [Permissions and Public Access guide](./usage/permissions-and-public-access.md). For more information on groups vs. households, check out the [Groups and Households](./features.md#groups-and-households) section in the Features guide. + **Show Nutritional Values on a Single Recipe** -## Can I use fail2ban with Mealie? -Yes, Mealie is configured to properly forward external IP addresses into the `mealie.log` logfile. Note that due to restrictions in docker, IP address forwarding only works on Linux. + 1. Go to a recipe + 2. Click the Edit button/icon + 3. Click the Recipe Settings gear and select `Show Nutritional Values` + 4. Scroll down to manually fill out the Nutritional Values + 5. Save -Your fail2ban usage should look like the following: -``` -Use datepattern : %d-%b-%y %H:%M:%S : Day-MON-Year2 24hour:Minute:Second -Use failregex line : ^ERROR:\s+Incorrect username or password from -``` + **Show Nutritional Values by default** -## Why an API? -An API allows integration into applications like [Home Assistant](https://www.home-assistant.io/) that can act as notification engines to provide custom notifications based on Meal Plan data to remind you to defrost the chicken, marinate the steak, or start the CrockPot. Additionally, you can access nearly any backend service via the API giving you total control to extend the application. To explore the API spin up your server and navigate to http://yourserver.com/docs for interactive API documentation. + 1. Click your username in the top left + 2. Click the 'Household Settings' button + 3. Under 'Household Recipe Preferences', click to select 'Show nutrition information' + 4. Click 'Update' -## Why a database? -Some users of static-site generator applications like ChowDown have expressed concerns about their data being stuck in a database. Considering this is a new project, it is a valid concern to be worried about your data. Mealie specifically addresses this concern by providing automatic daily backups that export your data in json, plain-text markdown files, and/or custom Jinja2 templates. **This puts you in control of how your data is represented** when exported from Mealie, which means you can easily migrate to any other service provided Mealie doesn't work for you. -As to why we need a database? +??? question "What is fuzzy search and how do I use it?" -- **Developer Experience:** Without a database, a lot of the work to maintain your data is taken on by the developer instead of a battle-tested platform for storing data. -- **Multi User Support:** With a solid database as backend storage for your data, Mealie can better support multi-user sites and avoid read/write access errors when multiple actions are taken at the same time. + ### What is fuzzy search and how do I use it? -## Why is there no "Keep Screen Alive" button when I access a recipe? -You've perhaps visited the Mealie Demo and noticed that it had a "Keep Screen Alive" button, but it doesn't show up in your own Mealie instance. -There are typically two possible reasons for this: -1. You're accessing your Mealie instance without using HTTPS. The Wake Lock API is only available if HTTPS is used. Read more here: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API -2. You're accessing your Mealie instance on a browser which doesn't support the API. You can test this here: https://vueuse.org/core/useWakeLock/#demo + Mealie can use fuzzy search, which is robust to minor typos. For example, searching for "brocolli" will still find your recipe for "broccoli soup". But fuzzy search is only functional on a Postgres database backend. To enable fuzzy search you will need to migrate to Postgres: -Solving the above points will most likely resolve your issues. However, if you're still having problems, you are welcome to create an issue. Just remember to add that you've tried the above two options first in your description. + 1. Backup your database and download the .zip file (same as when [migrating](./migrating-to-mealie-v1.md)) + 2. Set up a [Postgres](./installation/postgres.md) instance of Mealie + 3. Upload the backup .zip and click to apply it (as as migration) + +??? question "How can I attach an image or video to a Recipe?" + + ### How can I attach an image or video to a Recipe? + + Mealie's Recipe Steps and other fields support markdown syntax and therefore support images and videos. To attach an image to the recipe, you can upload it as an asset and use the provided copy button to generate the html image tag required to render the image. For videos, Mealie provides no way to host videos. You'll need to host your videos with another provider and embed them in your recipe. Generally, the video provider will provide a link to the video and the html tag required to render the video. For example, YouTube provides the following link that works inside a step. You can adjust the width and height attributes as necessary to ensure a fit. + + ```html + + ``` + +## Customization and Configuration + +??? question "How can I change the theme?" + + ### How can I change the theme? + + You can change the theme by settings the environment variables. + + - [Backend Config - Themeing](./installation/backend-config.md#themeing) + + +??? question "How can I change the login session timeout?" + + ### How can I change the login session timeout? + + Login session can be configured by setting the `TOKEN_TIME` variable on the backend container. + + - [Backend Config](./installation/backend-config.md) + + +??? question "Can I serve Mealie on a subpath?" + + ### Can I serve Mealie on a subpath? + + No. Due to limitations from the JavaScript Framework, Mealie doesn't support serving Mealie on a subpath. + + +??? question "Can I install Mealie without docker?" + + ### Can I install Mealie without docker? + + Yes, you can install Mealie on your local machine. HOWEVER, it is recommended that you don't. Managing non-system versions of python, node, and npm is a pain. Moreover, updating and upgrading your system with this configuration is unsupported and will likely require manual interventions. + + +## Account Management + +??? question "How can I unlock my account?" + + ### How can I unlock my account? + + If your account has been locked by bad password attempts, you can use an administrator account to unlock another account. Alternatively, you can unlock all accounts via a script within the container. + + ```shell + docker exec -it mealie bash + + python /app/mealie/scripts/reset_locked_users.py + ``` + + +??? question "How can I reset admin privileges for my account?" + + ### How can I reset admin privileges for my account? + + If you've lost admin privileges and no other admin can restore them, you can use the Command Line Interface (CLI) to grant admin access. + + ```shell + docker exec -it mealie bash + + python /app/mealie/scripts/make_admin.py + ``` + + +??? question "How can I change my password?" + + ### How can I change my password? + + You can change your password by going to the user profile page and clicking the "Change Password" button. Alternatively you can use the following script to change your password via the CLI if you are locked out of your account. + + ```shell + docker exec -it mealie bash + + python /app/mealie/scripts/change_password.py + ``` + + +??? question "I can't log in with external auth. How can I change my authentication method?" + + ### I can't log in with external auth. How can I change my authentication method? + + Follow the [steps above](#how-can-i-change-my-password) for changing your password. You will be prompted if you would like to switch your authentication method back to local auth so you can log in again. + + +## Collaboration and Privacy + +??? question "How do private groups, households, and recipes work?" + + ### How do private groups, households, and recipes work? + + Managing private groups and recipes can be confusing. The following diagram and notes should help explain how they work to determine if a recipe can be shared publicly. + + - Private links that are generated from the recipe page using the `Share` button bypass all group and recipe permissions + - Private groups block all access to recipes, including those that are public, except as noted above. + - Private households, similar to private groups, block all access to recipes, except as noted above. + - Households with "Allow users outside of your group to see your recipes" disabled block all access to recipes, except as noted above. + - Private recipes block all access to the recipe from public links. This does not affect Private Links. + + ```mermaid + stateDiagram-v2 + r1: Request Access + p1: Using Private Link? + p2: Is Group Private? + p3: Is Household Private? + p4: Is Recipe Private? + s1: Deny Access + n1: Allow Access + + + r1 --> p1 + p1 --> p2: No + p1 --> n1: Yes + + p2 --> s1: Yes + p2 --> p3: No + + p3 --> s1: Yes + p3 --> p4: No + + p4 --> s1: Yes + p4 --> n1: No + ``` + + For more information on public access, check out the [Permissions and Public Access guide](./usage/permissions-and-public-access.md). For more information on groups vs. households, check out the [Groups and Households](./features.md#groups-and-households) section in the Features guide. + + +## Security and Maintenance + +??? question "Can I use fail2ban with Mealie?" + + ### Can I use fail2ban with Mealie? + + Yes, Mealie is configured to properly forward external IP addresses into the `mealie.log` logfile. Note that due to restrictions in docker, IP address forwarding only works on Linux. + + Your fail2ban usage should look like the following: + ``` + Use datepattern : %d-%b-%y %H:%M:%S : Day-MON-Year2 24hour:Minute:Second + Use failregex line : ^ERROR:\s+Incorrect username or password from + ``` + + +??? question "Is it safe to upgrade Mealie?" + + ### Is it safe to upgrade Mealie? + + Yes. If you are using the v1 branches (including beta), you can upgrade to the latest version of Mealie without performing a site Export/Restore. This process was required in previous versions of Mealie, however we've automated the database migration process to make it easier to upgrade. Note that if you were using the v0.5.x version, you CANNOT upgrade to the latest version automatically. You must follow the migration instructions in the documentation. + + - [Migration From v0.5.x](./migrating-to-mealie-v1.md) + + +## Technical Considerations + +??? question "Why an API?" + + ### Why an API? + + An API allows integration into applications like [Home Assistant](https://www.home-assistant.io/) that can act as notification engines to provide custom notifications based on Meal Plan data to remind you to defrost the chicken, marinate the steak, or start the CrockPot. Additionally, you can access nearly any backend service via the API giving you total control to extend the application. To explore the API spin up your server and navigate to http://yourserver.com/docs for interactive API documentation. + + +??? question "Why a database?" + + ### Why a database? + + Some users of static-site generator applications like ChowDown have expressed concerns about their data being stuck in a database. Considering this is a new project, it is a valid concern to be worried about your data. Mealie specifically addresses this concern by providing automatic daily backups that export your data in json, plain-text markdown files, and/or custom Jinja2 templates. **This puts you in control of how your data is represented** when exported from Mealie, which means you can easily migrate to any other service provided Mealie doesn't work for you. + + As to why we need a database? + + - **Developer Experience:** Without a database, a lot of the work to maintain your data is taken on by the developer instead of a battle-tested platform for storing data. + - **Multi User Support:** With a solid database as backend storage for your data, Mealie can better support multi-user sites and avoid read/write access errors when multiple actions are taken at the same time. + + +## Usability + +??? question "Why is there no 'Keep Screen Alive' button when I access a recipe?" + + ### Why is there no "Keep Screen Alive" button when I access a recipe? + + You've perhaps visited the Mealie Demo and noticed that it had a "Keep Screen Alive" button, but it doesn't show up in your own Mealie instance. + There are typically two possible reasons for this: + 1. You're accessing your Mealie instance without using HTTPS. The Wake Lock API is only available if HTTPS is used. Read more here: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API + 2. You're accessing your Mealie instance on a browser which doesn't support the API. You can test this here: https://vueuse.org/core/useWakeLock/#demo + + Solving the above points will most likely resolve your issues. However, if you're still having problems, you are welcome to create an issue. Just remember to add that you've tried the above two options first in your description. diff --git a/docs/docs/documentation/getting-started/installation/installation-checklist.md b/docs/docs/documentation/getting-started/installation/installation-checklist.md index f941a7e0d..1cf2500f7 100644 --- a/docs/docs/documentation/getting-started/installation/installation-checklist.md +++ b/docs/docs/documentation/getting-started/installation/installation-checklist.md @@ -31,7 +31,7 @@ To deploy mealie on your local network, it is highly recommended to use Docker t We've gone through a few versions of Mealie v1 deployment targets. We have settled on a single container deployment, and we've begun publishing the nightly container on github containers. If you're looking to move from the old nightly (split containers _or_ the omni image) to the new nightly, there are a few things you need to do: 1. Take a backup just in case! -2. Replace the image for the API container with `ghcr.io/mealie-recipes/mealie:v2.3.0` +2. Replace the image for the API container with `ghcr.io/mealie-recipes/mealie:v2.4.2` 3. Take the external port from the frontend container and set that as the port mapped to port `9000` on the new container. The frontend is now served on port 9000 from the new container, so it will need to be mapped for you to have access. 4. Restart the container diff --git a/docs/docs/documentation/getting-started/installation/postgres.md b/docs/docs/documentation/getting-started/installation/postgres.md index b4a9d35d5..dac2231c4 100644 --- a/docs/docs/documentation/getting-started/installation/postgres.md +++ b/docs/docs/documentation/getting-started/installation/postgres.md @@ -7,7 +7,7 @@ PostgreSQL might be considered if you need to support many concurrent users. In ```yaml services: mealie: - image: ghcr.io/mealie-recipes/mealie:v2.3.0 # (3) + image: ghcr.io/mealie-recipes/mealie:v2.4.2 # (3) container_name: mealie restart: always ports: @@ -45,6 +45,7 @@ services: environment: POSTGRES_PASSWORD: mealie POSTGRES_USER: mealie + PGUSER: mealie healthcheck: test: ["CMD", "pg_isready"] interval: 30s diff --git a/docs/docs/documentation/getting-started/installation/sqlite.md b/docs/docs/documentation/getting-started/installation/sqlite.md index f1b22bcb9..49d2dd6f9 100644 --- a/docs/docs/documentation/getting-started/installation/sqlite.md +++ b/docs/docs/documentation/getting-started/installation/sqlite.md @@ -11,7 +11,7 @@ SQLite is a popular, open source, self-contained, zero-configuration database th ```yaml services: mealie: - image: ghcr.io/mealie-recipes/mealie:v2.3.0 # (3) + image: ghcr.io/mealie-recipes/mealie:v2.4.2 # (3) container_name: mealie restart: always ports: diff --git a/docs/docs/news/surveys/2024-october/Question2.png b/docs/docs/news/surveys/2024-october/Question2.png new file mode 100644 index 000000000..c68aef572 Binary files /dev/null and b/docs/docs/news/surveys/2024-october/Question2.png differ diff --git a/docs/docs/news/surveys/2024-october/Question3.png b/docs/docs/news/surveys/2024-october/Question3.png new file mode 100644 index 000000000..b46cf99c6 Binary files /dev/null and b/docs/docs/news/surveys/2024-october/Question3.png differ diff --git a/docs/docs/news/surveys/2024-october/Question4.png b/docs/docs/news/surveys/2024-october/Question4.png new file mode 100644 index 000000000..e2682aed7 Binary files /dev/null and b/docs/docs/news/surveys/2024-october/Question4.png differ diff --git a/docs/docs/news/surveys/2024-october/Question5.png b/docs/docs/news/surveys/2024-october/Question5.png new file mode 100644 index 000000000..7cd3f4bbc Binary files /dev/null and b/docs/docs/news/surveys/2024-october/Question5.png differ diff --git a/docs/docs/news/surveys/2024-october/Question6.png b/docs/docs/news/surveys/2024-october/Question6.png new file mode 100644 index 000000000..80a03ee9f Binary files /dev/null and b/docs/docs/news/surveys/2024-october/Question6.png differ diff --git a/docs/docs/news/surveys/2024-october/Question7.png b/docs/docs/news/surveys/2024-october/Question7.png new file mode 100644 index 000000000..8bd281ffd Binary files /dev/null and b/docs/docs/news/surveys/2024-october/Question7.png differ diff --git a/docs/docs/news/surveys/2024-october/Question8.png b/docs/docs/news/surveys/2024-october/Question8.png new file mode 100644 index 000000000..d9f48c134 Binary files /dev/null and b/docs/docs/news/surveys/2024-october/Question8.png differ diff --git a/docs/docs/news/surveys/2024-october/overview.md b/docs/docs/news/surveys/2024-october/overview.md new file mode 100644 index 000000000..6c691ee13 --- /dev/null +++ b/docs/docs/news/surveys/2024-october/overview.md @@ -0,0 +1,126 @@ +# October 2024 Survey + +It's been a while since a Mealie survey was done, and the community was much smaller back then. So much has changed in 2024, and we wanted to gauge the community's thoughts. +Our v2.0 release gave us a platform to ask people to take a few minutes to share their thoughts. + +A massive thanks to everyone who took the time to fill out this survey. We had 525 respondents! We're overwhelmed with the support. + +Also, thanks to ChristianB-F from our Discord community for putting the following images together, and to everyone who has taken the time to raise either an issue or pull request on our GitHub repository! + +For each question, we've created a GitHub discussion and we invite you to share any interesting insights or thoughts you have from the survey results! +If you see a specific idea that resonates with you, please check if there's already a feature request, and if not, please raise one and add your perspective. + +The questions (bar question 1) that are free text are on separate pages you'll need to click into, as there's just too much content to include on this page. + +For the written response sections, we have removed some of the more indifferent responses (e.g., "N/A") to save you reading time. If you'd like to see all the raw responses, they're in [this GitHub commit](https://github.com/mealie-recipes/mealie/pull/4666/commits/1287bc1635d9c2560b10db3a92a0d6644bc81571). + +## Structured Questions + +### Mealie Version (pre-v2) + +This question was free text input and it was mandatory. + +The responses to this were so varied and not overly informative/indicative of anything, so we've decided not to publish them - both to save space and your time. + +### Database Type + +This question was a single select and it was optional. + +Key insight: SQLite is the predominant database, but Postgres maintains an admirable share and must remain front of mind for any changes we make. + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4640) + +![Question 2](Question2.png) + +### Time Using Mealie + +How long have you been using Mealie? This question was a single select and it was mandatory. + +Key insight: Most users have been using Mealie less than a year, with another 25% in the 1-2 year range. These users will have seen a lot of change in the product over that time. +Thanks to the long term users! + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4641) + +![Question 3](Question3.png) + +### Engagement with Mealie, the Project, and the Community + +This question was multiple choice and it was optional. + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4642) + +![Question 4](Question4.png) + +### Number of Active Users + +This question was a single select and it was mandatory. + +Key insight: ~85% of instances have 2 users or fewer. This is assumed to be a couple of adults living together. + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4643) + +![Question 5](Question5.png) + +### Number of Active Groups + +This question was a single select and it was mandatory. + +Key insight: Similar to the above question, one group being the most common backs the theory of one "family" using the Mealie instance. + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4644) + +![Question 6](Question6.png) + +### Using Mealie on Mobile + +Do you access Mealie on a mobile? Using your browser or with it installed as an app (a Progressive Web App/PWA)? This question was a multiple select and it was mandatory. + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4645) + +![Question 7](Question7.png) + +### Feature Usage + +Please select all the features you actively/regularly use, or consider important. This question was a multiple select and it was optional. + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4646) + +![Question 8](Question8.png) + +## Suggestions/Feedback + +Some of you will spot feature suggestions that you know to already exist in Mealie. We'd love it if you could help us improve the documentation so more people can know about them! All pull requests are much appreciated. The [features](https://docs.mealie.io/documentation/getting-started/features/) page, or the [FAQ](https://docs.mealie.io/documentation/getting-started/faq/) could be appropriate places to add documentation. + +### Shopping List Suggestions + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4647) + +[Question 9](q9.md) + +### Meal Planner Suggestions + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4648) + +[Question 10](q10.md) + +### Recipe Timeline Suggestions + +Key insight: Looks like a lot of people would be fine with this not existing, or at least being hidden. + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4649) + +[Question 11](q11.md) + +### Recipe Suggestions + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4650) + +[Question 12](q12.md) + +### Other Suggestions + +There are so many kind words in this section in particular. Thanks so much, it means a lot to the whole team and all our contributors to see the impact Mealie has on people's lives! + +[GitHub Discussion](https://github.com/mealie-recipes/mealie/discussions/4651) + +[Question 13](q13.md) diff --git a/docs/docs/news/surveys/2024-october/q10.md b/docs/docs/news/surveys/2024-october/q10.md new file mode 100644 index 000000000..97ae6fbd9 --- /dev/null +++ b/docs/docs/news/surveys/2024-october/q10.md @@ -0,0 +1,227 @@ +[Back to the overview](overview.md) + +# Question 10: Any suggestions for how to improve the Meal Planner? + +> again mostly visual, I think it works well as is for my needs but the interface could use some improvements + +> The ability to open a recipe in a new tab from Edit mode. You can do this in the View only mode, but when editing the meal plan, it would be nice to easily get to a recipe to see what ingredients there are. I am often checking recipes to see if I already have the ingredients in my cupboard, as part of making a plan for my weekly meal plan. Not being able to quickly see the recipe is a little annoying. + +> If Not fixed jet, integrate Portions e.g. 200g sugger and 2egg for two people and 400g sugger and 4eggs for 4 people + +> I live alone, so I almost always have leftovers from a meal. Would love for the meal planner to be able to see how many portions a recipe makes, and if its more than the number of people eating it automatically makes leftover meals for the next days. I know you can create notes manually currently, but that's a lot of work. + +> Option for "friendly mode" when selecting a date, I.e. "next Tuesday" or "two Wednesday's from today" + +> Add a label with the name of the user who added a meal to the planner in case of two or more users in the same household don't share the same dish. + +> editing is a separate button/step. It would be nice if that would be more intuitive/user friendly + +> - two week view, month view - drag & drop - mass add to shopping list + +> It would be very helpful if the meal planner had an option that helps the user to find recipes with some of the similar ingredients, so that it's easier to use all of the groceries bought. + +> Allow to set the same food every day of the week if needed + +> Synchronize Meal Plan via ics calendar + +> Add a button to automatically fill the whole week (or a predetermined number of days). (Wasn't that an option before?) Add the choice of having the full week (Monday to Sunday) stay in place until the new week. Now the meal planner changes to the current day and adds the chosen number of days to display, which always creates a new empty day. + +> Improve import + +> A better sliding window of plans. I've found looking back to previous weeks clunky. Most of the time, we only care about this upcoming week but once in a while we'll plan a couple weeks out. I know you can expand the view to be more than 7 days; however, beyond planning, I typically only care about a few days in advance once the plan has been set. + +> We create meal plans for the next 7 days but are not fixed to what meals have to be made on which dates. It's more flexible in practice. The Meal Planner as-is is a bit in-flexible in this aspect. Being able to check-off meals as they have been made. As above, are meal plans have to be flexible so being able to mark meals as 'made' or done, makes it easier to see what is left for the rest of the week. + +> So the meal planner I find it to be the weakest yet the most important point of Mealie. My main issue is that there are only 4 fixed meals. There are some diet plans that have some intermediate snacks and stuff like that, so the best thing would be to have free control on how many meals each day can have, and perhaps have some rules like "mondays have the standard 4 meals" and "tuesdays have these 4 snacks in middle of the meals" or "wednesdays have these customs meals", so I can set as many meals each day with its custom names on them. The logic would be that I have a "meals" database so I create the object like "morning snack" and then I can apply rules like having a fruit on my morning snack and a power bar on my "afternoon snack". - Also would be cool to have a randomizer for the whole week or month after proper rules were established that autofills the meals set for each day, so I can plan my groceries in advance and save a good amount of repetitive clicking. - In the case of each day's random meal, its strange that there is a button for 2 different meals, but dinner and side have their own buttons. They should have eiother their own button each, or be all toghether in one menu - The possibilty of marking special days like birthdays so these days wont autofill with the suggested randomizer, ignore the rules, and instead would require user input for planning these special meals + +> So far it works. It could use some UX changes to improve the flow, certain sizing on mobile would be nice. I am using it with a couple of rules, and made a feature request about this already. + +> Create an option to create singular list, that does not tie recipe to specific date. When I create a meal plan, my idea is to use it as a todo list, not deciding upfront what will be done on each day. Currently I am not using meal planner at all, because it really cumbersome for me. + +> 1. have a check box so a week could be automatically selected. maybe use the week of the year, ie check box next to Week 47 that would select Sunday - Saturday 2. to be able to click and drag the recipes between the days of the week. so if i didn't want make it on Monday but Tuesday instead i can just drag the recipe cards to the new days. 3. having a Today button in the drop down calendar in case you plan a few weeks ahead + +> Being able to go back to previous dates and batch edit the meal plan without having to set the dates after each single edit + +> A wizard for creating a meal plan for a given period + +> Easy integration of daily meal image into Home assistant. eg a HACS addon? + +> More options to auto create e.g. based on ingredients such as pick recipes that total 500g minced beef or 2 meals that include pulled pork. Include macro tracking e.g. total planned calories and average calories + +> I was very excited about a "Meal Planner" feature when I first saw it, but it was not what I was expecting. I wanted to be able to collect several recipes into a single "meal", e.g., a soup, a starter, a main, and a desert; or combine my home made steak sauce recipe with my grilled steak recipe for a more complete meal without having to duplicate recipes in multiple records. This would be particularly helpful for large holiday gatherings or dinner parties. Once collected, it could provide a master ingredients list and help with organizing the sequencing of the cooking. + +> Ability to reorder meals without switching to edit mode. (Very minor) + +> It could be here that you pick the number of people a recipe is for when you add it to a plan. Currently, to double a recipe we have to add it twice to the meal planner and list. Also, drag n drop doesn't work great when editing plans on a tablet (android). + +> No I like the meal planner. Integration with the shopping list would be awesome. As in, add the ingredients from recipes on the planner to the shopping list. + +> Allow a default view instead of "today forward. (For example, "x previous days" or "this week") Remove the modes and integrate editing with viewing Default to "today" (or "first blank dinner/etc slot") when adding entries. + +> As per previous shopping list comments. Really appreciate and like the planner. It makes managing the week's meals and shopping so much easier! + +> Add https://github.com/mealie-recipes/mealie/discussions/1761, it would make it easier for me to make many recipes of like tacos or pizzas with base seasoning mixes/dough mixes and individual recipe customizations on top. + +> Please add more entry type/food type on planner. In Poland the main dish is at 1-4 P.M. It's called obiad but it's related to lunch. But because it's main meal, we usually have 2 dishes: soup (zupa) and the second dish (drugie danie). It would be great to have separate entry type for soups and the second dished. So in generally, please allow to define own entry types in planner (like in Tandoor Recipes). + +> On the meal planner screen, I feel like there should be a button for immediately adding or randomizing a meal for any given day that is blank. There’s something about having to go into edit mode first when you’re creating a meal plan on a blank day that seems unintuitive. To my brain “Edit” means to change something that exists, not to create from scratch. Not a big issue obviously but I notice it every time. + +> It could be that I’m missing something, but excluding meals from categories when using random selection. For example, let me disable adding foods labeled “Dessert” when randomizing. + +> Same here. Make it removable via env. + +> Mealie has done a great job. If you have to ask questions, I hope to support the