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

Find a permanent solution to getting barista products #422

Closed
fredpetersen opened this issue Apr 18, 2023 · 3 comments · Fixed by #413
Closed

Find a permanent solution to getting barista products #422

fredpetersen opened this issue Apr 18, 2023 · 3 comments · Fixed by #413
Labels
blocked Blocked enhancement New feature or request

Comments

@fredpetersen
Copy link
Contributor

As per the barista hub change, the barista products are hardcoded in the app in /lib/data/repositories/barista_product/barista_product_repository.dart

These should be fetched from the backend, after we have marked barista products in the database

@fredpetersen fredpetersen added the enhancement New feature or request label Apr 18, 2023
@marfavi marfavi added the blocked Blocked label May 24, 2023
@marfavi
Copy link
Member

marfavi commented May 24, 2023

Awaiting a backend change

@jonasanker
Copy link
Member

jonasanker commented May 24, 2023

@marfavi What are your requirements for the app? Would grouping a product category enum suffice?

Eg a Barista perk product would be in a product category Barista

@marfavi
Copy link
Member

marfavi commented May 24, 2023

How about a list of user groups?

enum UserGroup { customer, barista, ... };

// field in product replacing the isVisible boolean
List<UserGroup> visibleTo;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants