Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix drink counting #47

Merged
merged 8 commits into from
Sep 24, 2024
Merged

Conversation

murtagh27
Copy link
Contributor

No description provided.

@murtagh27 murtagh27 requested review from a team, Tschonti, LeventeFarkashazi, pem00 and VarMattew and removed request for a team August 22, 2024 15:47
Copy link

vercel bot commented Aug 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
be-alcoholic-frontend ✅ Ready (Inspect) Visit Preview 1 resolved Sep 23, 2024 10:40pm

Copy link
Member

@Tschonti Tschonti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work, but we have to think one thing over:
The user is creating drinkActions here, and drinkActions have price and millilitre properties (the drink entity itself contains neither of these infos (currently)). So selecting two beers doesn't make sense right now, instead the user should be able to specify the amount consumed in millilitres.
Or we could change how we store drinks, and store a defaultVolume with each, then this could work

apps/frontend/src/app/events/new/page.tsx Outdated Show resolved Hide resolved
Copy link
Member

@Tschonti Tschonti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried running on my machine, and event creation works without problems, as long as you don't send any drinkactions. So maybe it was just a migration error all along.

I think it's best to leave the stuff with the drinkAction dialog for later, we can merge this once the other small issues have been addressed

apps/backend/package.json Outdated Show resolved Hide resolved
apps/backend/src/events/events.service.ts Outdated Show resolved Hide resolved
apps/frontend/src/app/events/new/page.tsx Outdated Show resolved Hide resolved
apps/frontend/src/app/events/new/page.tsx Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
@Tschonti
Copy link
Member

just remove the console logs and vercel will be happy as well

@murtagh27 murtagh27 merged commit dfc3971 into main Sep 24, 2024
5 checks passed
@murtagh27 murtagh27 deleted the fix/create-event-form's-drink-counting branch September 24, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants