Commit graph

317 commits

Author SHA1 Message Date
Hayden
5d43fac7c9
feat(frontend): add group permissions (#721)
* style(frontend): 💄 add darktheme custom

* add dummy users in dev mode

* feat(frontend):  add group permissions editor UI

* feat(backend):  add group permissions setters

* test(backend):  tests for basic permission get/set (WIP)

Needs more testing

* remove old test

* chore(backend): copy template.env on setup

* feat(frontend):  enable send invitation via email

* feat(backend):  enable send invitation via email

* feat:  add app config checker for site-settings

* refactor(frontend): ♻️ consolidate bool checks

Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-04 20:16:37 -08:00
Hayden
b7b8aa9a08
Feature/email support (#720)
* feat(frontend):  add UI for testing email configuration

* feat(backend):  add email service with common templates (WIP)

* test(backend):  add basic tests for email configuration

* set defaults

* add email variables

Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-03 18:38:45 -08:00
Hayden
c0dd07f9e7
Feature/infinite scroll (#719)
* feat(frontend):  lazy-load all recipes page

* feat(frontend):  enable runtime theme through env-variables

* docs(docs): 📝 update v1 changelog

* bump version

Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-03 14:07:18 -08:00
Hayden
568215cf70
perf(backend): remove validation on recipe summary response (#718)
* count responses

* perf(backend):  remove validation on recipe summary response

use the construct() method from pydantic to reduce get time as well as optimize the SQL query for recipes

* update UI to support new categories/tags

* fix(backend): 🐛 restrict recipes by group

Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-02 22:07:29 -08:00
Hayden
f9829141c0
style(frontend): 🎨 refactor/rewrite UI for meal-planner (#717)
* add new creation links

* style(frontend): 🎨 refactor/rewrite UI for meal-planner

* add random meal

Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-02 16:11:50 -08:00
Hayden
bd8882ec44
Feature/update login UI (#716)
* cleanup signin UI

* add timeout

Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-02 12:18:01 -08:00
Hayden
4bdba9f3af
feat(backend): 🚧 stub out new exporter service (WIP) (#715)
* chore(backend): 🎨 add isort path to vscode settings

* style(frontend): 💄 remove fab and add general create button

* feat(backend): 🚧 stub out new exporter service

* comment out stub tests

Co-authored-by: Hayden <hay-kot@pm.me>
2021-10-02 11:37:04 -08:00
Hayden
476aefeeb0
refactor(backend): ♻️ cleanup HTTP service classes and remove database singleton (#687)
* refactor(backend): ♻️ cleanup duplicate code in http services

* refactor(backend): ♻️ refactor database away from singleton design

removed the database single and instead injected the session into a new Database class that is created during each request life-cycle. Now sessions no longer need to be passed into each method on the database

All tests pass, but there are likely some hidden breaking changes that were not discovered.

* fix venv

* disable venv cache

* fix install script

* bump poetry version

* postgres fixes

* revert install

* fix db initialization for postgres

* add postgres to docker

* refactor(backend): ♻️ cleanup unused and duplicate code in http services

* refactor(backend): remove sessions from arguments

* refactor(backend): ♻️ convert units and ingredients to use http service class

* test(backend):  add unit and food tests

* lint

* update tags

* re-enable cache

* fix missing fraction in db

* fix lint

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-19 15:31:34 -08:00
hay-kot
c0e3f04c23 fix(frontend): 🐛 add sortablejs types 2021-09-14 12:36:46 -08:00
hay-kot
58f758b6c1 fix(frontend): 🐛 fix login page setup script 2021-09-14 12:26:28 -08:00
Hayden
b542583303
feat(backend): rewrite mealplanner with simple api (#683)
* feat(backend):  new meal-planner feature

* feat(frontend):  new meal plan feature

* refactor(backend): ♻️ refactor base services classes and add mixins for crud

* feat(frontend):  add UI/API for mealplanner

* feat(backend):  add get_today and get_slice options for mealplanner

* test(backend):  add and update group mealplanner tests

* fix(backend): 🐛 Fix recipe_id column type for PG

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-12 11:05:09 -08:00
Hayden
bdaf758712
feat(backend): start multi-tenant support (WIP) (#680)
* fix ts types

* feat(code-generation): ♻️ update code-generation formats

* new scope

* add step button

* fix linter error

* update code-generation tags

* feat(backend):  start multi-tenant support

* feat(backend):  group invitation token generation and signup

* refactor(backend): ♻️ move group admin actions to admin router

* set url base to include `/admin`

* feat(frontend):  generate user sign-up links

* test(backend):  refactor test-suite to further decouple tests (WIP)

* feat(backend): 🐛 assign owner on backup import for recipes

* fix(backend): 🐛 assign recipe owner on migration from other service

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-09 08:51:29 -08:00
Hayden
3c504e7048
feat(backend): migrate site-settings to groups (#673)
* feat(frontend):  add user registration page (WIP)

* feat(backend):  add user registration (WIP)

* test(backend):  add validator testing for registration schema

* feat(backend):  continued work on user sign-up

* feat(backend):  add signup flow and user/group settings

* test(backend):  user-creation tests and small refactor of existing tests

* fix(backend):  fix failing group tests

* style: 🎨 fix lint issues

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-05 22:05:29 -08:00
Hayden
e179dcdb10
refactor(frontend): ♻️ split user profile/management (#670)
* refactor(frontend): ♻️ major rewrite/improvement of use-profile pages

* refactor(frontend): ♻️ split webhooks into their own page

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-04 20:24:32 -08:00
Hayden
b550dae593
refactor(backend): ♻️ change error messages to follow standard pattern to match locals on frontend (#668)
Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-02 21:33:18 -08:00
Hayden
abc0d0d59f
refactor(♻️): update 'about' page to new composition API (#667)
* test-commit

* Remove PR Name Checker

* refactor(backend): ♻️ split unrelated routes into clearer router paths

Add an /app and /admin router base paths to split previously grouped public/admin data into different paths. Part of a longer migration to move 'admin' operations under the admin path.

* refactor(backend): ♻️ rename imports

* refactor(frontend): ♻️ refactor frontend API and Pages to refelect new API design

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-02 11:24:17 -08:00
Hayden
990244e37e
Refactor/group page (#666)
* refactor(backend): ♻️ Refactor base class to be abstract and create a router factory method

* feat(frontend):  add group edit

* refactor(backend):  add group edit support

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-01 21:39:40 -08:00
Hayden
9b1bf56a5d
[Feat] Migrate from Pages to Cookbooks (#664)
* feat:  Add Description to Cookbooks

* feat(frontend):  Cookbook view page

* feat(frontend): 💄 Add final UI touches

* fix(backend): 🐛 Add get by slug or id

* fix linting issue

* test(backend):  Update tests from pages -> cookbooks

* refactor(backend): 🔥 Delete old page files

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-08-31 18:51:34 -08:00
hay-kot
83ab858e46 feat(frontend): Add Initial CookBook Support 2021-08-31 14:39:02 -08:00
hay-kot
0b27e8af45 refactor(frontend): 💄 Imrove UI for parser 2021-08-29 17:09:08 -08:00
hay-kot
0f6f81eb27 feat(frontend): 🚧 groundwork for user interactive ingredient parsing 2021-08-28 14:14:21 -08:00
hay-kot
5ba337ab11 feat(frontend): Fractional Scaling 2021-08-27 20:05:02 -08:00
hay-kot
d1a7ec3b95 fix(backend): 🐛 Fix CI/CD Linting Failures 2021-08-23 15:33:39 -08:00
hay-kot
24a4b5b810 feat(frontend): Add Recipe Editor to Assign Units and Foods for Recipe Scaling 2021-08-23 12:24:38 -08:00
hay-kot
a1aad078da feat(frontend): Create CRUD User Interface for Units and Foods 2021-08-22 15:23:45 -08:00
hay-kot
7d40f8d74d events api 2021-08-21 14:04:49 -08:00
hay-kot
6d3a06e1b9 cleanup todos 2021-08-21 11:00:42 -08:00
hay-kot
d1b8add4e4 remove unused items 2021-08-21 00:53:08 -08:00
hay-kot
edae7bbb21 refactor(frontend): 🔥 rewrite backup UI for new page base components
Removed old split code and used the composition api to to re-write the import/export functionality of mealie.
2021-08-21 00:46:43 -08:00
hay-kot
460f508f79 whitespace 2021-08-09 17:45:09 -08:00
hay-kot
8710dad727 fix recipe static routes 2021-08-09 16:19:23 -08:00
hay-kot
625dbcdea5 fix failing build 2021-08-08 21:15:20 -08:00
hay-kot
bde885dc84 refactor(frontend): ♻️ rewrite search componenets to typescript 2021-08-08 20:52:44 -08:00
hay-kot
1981e191be Setup vite for development 2021-08-08 17:01:45 -08:00
hay-kot
da425c970e properly support subroutes 2021-08-08 14:10:32 -08:00
hay-kot
fcee79a3e7 fix subpath config 2021-08-08 11:17:03 -08:00
hay-kot
886d1b7a50 fix ci/cd 2021-08-07 20:21:44 -08:00
hay-kot
ea68095cd3 remove husky 2021-08-07 17:05:46 -08:00
hay-kot
3ed197a843 fix linter issues 2021-08-07 16:49:55 -08:00
hay-kot
9386cc320b refactor(frontend): 🚧 Migrate Dashboard to Nuxt
Add API and Functinality for Admin Dashboard. Stills needs to clean-up. See // TODO's
2021-08-07 15:12:25 -08:00
hay-kot
41a6916771 remove old files 2021-08-07 11:28:50 -08:00
hay-kot
c13fb6743c add nuxt localization 2021-08-07 11:28:20 -08:00
hay-kot
695d7e96ae refactor(frontend): 🚧 Add group/user CRUD support for admins 2021-08-06 16:28:12 -08:00
hay-kot
5ee0a57163 feat(frontend): 👷 Add image operations to recipe page
Added/Fixed image upload/get process on the recipe pages as well as some additional styling
2021-08-03 21:38:45 -08:00
hay-kot
afcad2f701 feat(frontend): 🚧 CRUD Functionality 2021-08-02 22:15:11 -08:00
hay-kot
00a8fdda41 reorganize all frontend items 2021-08-01 19:24:47 -08:00
hay-kot
f6b3285ae3 refactor(frontend): 🚧 rename recipe and meal-plan components 2021-07-31 15:07:19 -08:00
hay-kot
5047b3f5af refactor(frontend): 🚧 move static assets from .old to new
Move static assets from frontend.old to frontend
2021-07-31 14:53:02 -08:00
hay-kot
91f56b42de refactor(frontend): 🏗️ scafold pages and componenets folder
Setup the file structure for components, pages, layouts, api, and all new frontend structure
2021-07-31 14:45:28 -08:00
hay-kot
8d3db89327 nuxt init 2021-07-31 14:00:28 -08:00