Commit Graph
109 Commits
Author SHA1 Message Date
Michael Genson 2f8f64da8f dev: Migrate backend CI/CD checks to match pre-commit (#8802) 2026-10-19 13:30:49 -05:00
f5559876de fix: Un-approve Crowdin translations to allow community to vote on them (#8787)
Co-authored-by: mealie-actions[bot] <247473823+mealie-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
2026-10-18 21:01:59 -05:00
Michael Genson 62aa908512 feat: convert between metric/imperial units (#8292) 2026-09-24 13:18:44 -05:00
HaydenandMichael Genson 3d1978a8ab feat: refactor, reduce, and repair food seed data (#8482)
Co-authored-by: Michael Genson <genson.michael@gmail.com>
2026-09-20 18:40:19 -05:00
Aditya Raj SinghandMichael Genson da1cf9dc43 fix: make TypeScript generation deterministic (#8356)
Co-authored-by: Michael Genson <genson.michael@gmail.com>
2026-09-16 11:02:42 -05:00
Arsène ReymondandMichael Genson 4229d7eb2a dev: switch to pnpm and update devcontainer (#7663)
Co-authored-by: Michael Genson <genson.michael@gmail.com>
2026-08-20 12:52:42 -05:00
Michael Genson 32141187ba fix: Update frontend refs (#7444) 2026-04-11 11:27:52 -05:00
Brian Choromanski ccdf7109e2 fix: Updated get_ts_locales to resolve issues with Automatic Locale Sync workflow (#7181) 2026-03-04 02:37:38 +00:00
Michael Genson 29c6176d89 docs: Remove redoc API generation (#7109) 2026-02-20 20:49:43 +00:00
Michael Genson 23c7bd7e3d feat: Customize Ingredient Plural Handling (#7057) 2026-02-12 19:07:23 -06:00
Michael Genson 75616d66b8 dev: Migrate to uv (#6470) 2025-11-01 14:36:40 -05:00
Michael Genson 089bb24c0f fix: Make docs:gen consistent regardless of timestamp (again) (#6432) 2025-10-24 16:34:44 -05:00
Michael Genson d16a10440d chore: Add Stricter Frontend Formatting (#6262) 2025-09-27 13:57:53 -05:00
Michael Genson b2f8d63f33 fix: Missing Locale Dates (#6116) 2025-09-08 09:47:37 +00:00
Michael Genson ff958a5015 fix: Fix PWA (#6090) 2025-09-03 07:44:52 +02:00
Michael Genson 1c23d855ae fix: Remove Recipes From Cookbook API (#5899) 2025-08-15 08:44:45 +00:00
Michael GensonandKuchenpirat 245ca5fe3b feat: Remove "Is Food" and "Disable Amounts" Flags (#5684)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2025-07-31 17:36:24 +02:00
Michael Genson 00a03559ff fix: RTL Settings Ignored (#5762) 2025-07-21 07:51:28 +00:00
Kuchenpirat f99b305dc3 fix: lint error from locale sync (#5644) 2025-07-06 16:20:43 -05:00
Hayden da3271f33f chore: remove unused jinja export option (#5631) 2025-07-05 00:45:56 +00:00
Hayden 0c534ad9d4 fix: load from env if available vs file (#5635) 2025-07-04 19:08:50 -05:00
Hayden 9cce0f65aa chore: automatic crowdin sync via gh actions (#5630) 2025-07-04 19:00:23 -05:00
e794c6b525 feat: Update food seeding logic to use new format, now with removed CrowdIn limits? (#5514)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2025-07-04 12:50:13 -05:00
c24d532608 feat: Migrate to Nuxt 3 framework (#5184)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2025-06-19 17:09:12 +00:00
Hayden 974d848ee2 fix: Revert "feat: Update seeding to use new foods list format - round 2" (#5208) 2025-03-12 23:27:18 -05:00
Cameronwyatt 72668e2881 feat: Update seeding to use new foods list format - round 2 (#5189) 2025-03-13 00:30:03 +00:00
Hayden 641d24aa1e fix: revert "feat: Add new labels and foods for en-US language" (#4996) 2025-01-31 22:46:57 -06:00
Cameronwyatt fb08a11ffe feat: Add new labels and foods for en-US language
Update all locale seeding files and seeding logic to parse the new format Only add new labels, units, and foods during seeding (checking against existing names)
2025-02-01 02:17:43 +00:00
Michael Genson 82cc9e11f7 dev: Fix json2ts codegen (#4590) 2024-11-25 09:25:35 +00:00
Michael GensonandKuchenpirat a7c8b33cca dev: Improve Docs Generation (#4402)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2024-10-21 15:01:40 +00:00
Michael Genson eb170cc7e5 feat: Add Households to Mealie (#3970) 2024-08-22 10:14:32 -05:00
8a15f400e1 feat: Import + Translate recipe images with OpenAI (#3974)
Co-authored-by: Johan Lindell <johan@lindell.me>
Co-authored-by: boc-the-git <3479092+boc-the-git@users.noreply.github.com>
2024-08-18 08:07:01 +10:00
Christian Clauss 432914e310 fix: Lint Python code with ruff (#3799) 2024-08-12 15:09:30 +00:00
TheSuperBeaver f92a9afbe5 feat: Added fr-BE (#4004) 2024-08-08 09:50:14 -05:00
Christian Clauss e2033b2d67 fix: pre-commit autoupdate && pre-commit run --all-files (#3780) 2024-06-26 10:41:46 +00:00
Michael Genson b38c19ce71 fix: Missing Translations (#3494) 2024-04-19 10:42:50 +00:00
Hayden 9e6ae2e514 chore: remove black (#3437) 2024-04-11 20:36:55 -05:00
b54cdf6425 fix: sync locales in user registration validation (#3278)
* Add ability to inject into Python files

* Update outdated references to gen_global_components.py

* Add code gen for registration locale validation

* sort validators

* update for pydantic 2

* run generator again

---------

Co-authored-by: Gasper Gril <gasper@gril.si>
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
2024-03-10 09:58:52 -08:00
Hayden 8d8a101580 chore: code gen (#3012)
* code-gen

* remove old generator commands

* remove old docker stuff
2024-01-20 16:34:57 +00:00
Michael Gensonandboc-the-git 10ba4d2d7f feat: RTL Support for RTL Languages (Hebrew, Arabic) (#2832)
* add language direction to locale generation

* apply language direction when setting language

---------

Co-authored-by: boc-the-git <3479092+boc-the-git@users.noreply.github.com>
2024-01-19 16:56:36 +00:00
Michael Genson 7602c67449 fix: More Backup Restore Fixes (#2859)
* refactor normalized search migration to use dummy default

* changed group slug migration to use raw SQL

* updated comment

* added tests with anonymized backups (currently failing)

* typo

* fixed LDAP enum in test data

* fix for adding label settings across groups

* add migration data fixes

* fix shopping list label settings test

* re-run db init instead of just running alembic migration, to include fixes

* intentionally broke SQLAlchemy GUID handling

* safely convert between GUID types in different databases

* restore original test data after testing backup restores

* added missing group name update to migration
2024-01-03 04:19:04 +00:00
Flightkick bb9afd86c1 fix: Use reserved example.com as bogus instead of email.com domain. (#2551)
`email.com` is not a reserved domain, incorrect configuration could result in unintentional effects.
`example.com` is reserved by IANA for bogus purposes, see RFC 6761.
2023-09-23 07:56:34 -08:00
HaydenandSören Busch 9e77a9f367 prs-fleshgolem-2070: feat: sqlalchemy 2.0 (#2096)
* upgrade sqlalchemy to 2.0

* rewrite all db models to sqla 2.0 mapping api

* fix some importing and typing weirdness

* fix types of a lot of nullable columns

* remove get_ref methods

* fix issues found by tests

* rewrite all queries in repository_recipe to 2.0 style

* rewrite all repository queries to 2.0 api

* rewrite all remaining queries to 2.0 api

* remove now-unneeded __allow_unmapped__ flag

* remove and fix some unneeded cases of "# type: ignore"

* fix formatting

* bump black version

* run black

* can this please be the last one. okay. just. okay.

* fix repository errors

* remove return

* drop open API validator

---------

Co-authored-by: Sören Busch <fleshgolem@gmx.net>
2023-02-06 18:43:12 -09:00
Hayden fcc5d99d40 chore: frontend testing setup (#1739)
* add vitest

* initialize lib w/ tests

* move to dev dep

* run tests in CI

* update file names

* move api folder to lib

* move api and api types to same folder

* update generator outpath

* rm husky

* i guess i _did_ need those types

* reorg types

* extract validators into testable components

* (WIP) start composable testing

* fix import type

* fix linter complaint

* simplify icon type def

* fix linter errors (maybe?)

* rename client file for sorting
2022-10-22 11:51:07 -08:00
Hayden 9ecef4c25f chore: file generation cleanup (#1736)
This PR does too many things :( 

1. Major refactoring of the dev/scripts and dev/code-generation folders. 

Primarily this was removing duplicate code and cleaning up some poorly written code snippets as well as making them more idempotent so then can be re-run over and over again but still maintain the same results. This is working on my machine, but I've been having problems in CI and comparing diffs so running generators in CI will have to wait. 

2. Re-Implement using the generated api routes for testing

This was a _huge_ refactor that touched damn near every test file but now we have auto-generated typed routes with inline hints and it's used for nearly every test excluding a few that use classes for better parameterization. This should greatly reduce errors when writing new tests. 

3. Minor Perf improvements for the All Recipes endpoint

  A. Removed redundant loops
  B. Uses orjson to do the encoding directly and returns a byte response instead of relying on the default 
       jsonable_encoder.

4. Fix some TS type errors that cropped up for seemingly no reason half way through the PR.

See this issue https://github.com/phillipdupuis/pydantic-to-typescript/issues/28

Basically, the generated TS type is not-correct since Pydantic will automatically fill in null fields. The resulting TS type is generated with a ? to indicate it can be null even though we _know_ that i can't be.
2022-10-18 14:49:41 -08:00
Ben Boeckel 2e6b877ba9 docs: fix typos (#1665)
* docs: fix typos

* typos: fix typos found by `codespell` across the codebase

* docs: fix `macOS` spelling

* docs: fix `authentification` terminology

"Authentification" is not a thing.

* docs: fix `localhost` typo in example link

* typos: fix in-code typos

These are potentially higher risk, but no other mentions of these typos
show up in the codebase.
2022-09-25 15:17:27 -08:00
Hayden b3c41a4bd0 security: implement user lockout (#1552)
* add data-types required for login security

* implement user lockout checking at login

* cleanup legacy patterns

* expose passwords in test_user

* test user lockout after bad attempts

* test user service

* bump alembic version

* save increment to database

* add locked_at to datetime transformer on import

* do proper test cleanup

* implement scheduled task

* spelling

* document env variables

* implement context manager for session

* use context manager

* implement reset script

* cleanup generator

* run generator

* implement API endpoint for resetting locked users

* add button to reset all locked users

* add info when account is locked

* use ignore instead of expect-error
2022-08-13 13:18:12 -08:00
Hayden 6649ccf224 lang: options updates + gen utils cleanup (#1520)
* generate new langs

* add to nuxt

* cleanup generator code

* additional cleanups
2022-08-02 10:41:44 -08:00
Hayden 1a23f867da feat: admin maintenance and analytics stubs (#1107)
* add tail log viewer routes

* add log viewer

* add _mealie to ignore directories

* add detailed breakdown of storage

* generate types

* add dialog to view breakdown

* cleanup mobile UI

* move migrations page

* spelling

* init analytics page

* move route up

* add remove temp files function

* analytics API client

* stub out analytics pages

* generate types

* stub out analytics routes

* update names

* ignore types

* temporary remove analytics from sidebar
2022-03-29 08:25:28 -08:00
Hayden 11b4d2389a chore: refactor base schema (#1098)
* remove dead backup code

* implmenet own base model

* refactor to use MealieModel instead of CamelModel

* cleanup deps
2022-03-25 10:56:49 -08:00