-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improved the calculation page, added recommandations for ingred…
…ients, made prices optional (#163) * Changed calculation layout Signed-off-by: Johannes Groß <mail@gross-johannes.de> * Added showSales option to hide the sales columns Signed-off-by: Johannes Groß <mail@gross-johannes.de> * Added full bottle column at the shopping list Signed-off-by: Johannes Groß <mail@gross-johannes.de> * Changed calculation layout Signed-off-by: Johannes Groß <mail@gross-johannes.de> * Added showSales option to hide the sales columns Signed-off-by: Johannes Groß <mail@gross-johannes.de> * Added full bottle column at the shopping list Signed-off-by: Johannes Groß <mail@gross-johannes.de> * chore: Format project Signed-off-by: Johannes Groß <mail@gross-johannes.de> * chore: Project settings Signed-off-by: Johannes Groß <mail@gross-johannes.de> * feat: Added (incorrect) algorithm to calculate the recommended ingredients to fit to one ingredient Signed-off-by: Johannes Groß <mail@gross-johannes.de> * fix: Fixed algorithm, added modal to adjust the planned amounts Signed-off-by: Johannes Groß <mail@gross-johannes.de> * Added migration Signed-off-by: Johannes Groß <mail@gross-johannes.de> * feat: Fixed calculation of recommended ingredients Signed-off-by: Johannes Groß <mail@gross-johannes.de> --------- Signed-off-by: Johannes Groß <mail@gross-johannes.de>
- Loading branch information
Showing
7 changed files
with
327 additions
and
100 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
migrations/20240222142553_calculation_remove_prices/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- AlterTable | ||
ALTER TABLE "CocktailCalculation" | ||
ADD COLUMN "showSalesStuff" BOOLEAN NOT NULL DEFAULT true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
398 changes: 309 additions & 89 deletions
398
pages/workspaces/[workspaceId]/manage/calculations/[id].tsx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters