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

Favourite #39

Open
stylianosnicoletti opened this issue Apr 19, 2022 · 0 comments
Open

Favourite #39

stylianosnicoletti opened this issue Apr 19, 2022 · 0 comments

Comments

@stylianosnicoletti
Copy link
Owner

In user's document create a new field with a favorites collection of "Food Reference to it's document".

In 'tab-foods-database.page.html' add a button to route you to a new page with you Favourite items.

This new page will allow searching items to add or delete to and from favourite list.

Use accordion in "add-entry-search-page.html" to display the favorite items.

<!-- Recent and Favourite --> <ion-accordion-group> <ion-accordion value="recentItems"> <ion-item slot="header"> <ion-label>🕑 Recent foods</ion-label> </ion-item> <ion-list slot="content"> <ion-item> <ion-label>Red</ion-label> </ion-item> <ion-item> <ion-label>Blue</ion-label> </ion-item> </ion-list> </ion-accordion> <ion-accordion value="favourite"> <ion-item slot="header"> <ion-label>⭐ Favourite</ion-label> </ion-item> <ion-list slot="content"> <ion-item> <ion-label>X</ion-label> </ion-item> <ion-item> <ion-label>Y</ion-label> </ion-item> </ion-list> </ion-accordion> </ion-accordion-group>

Items will be fetched when the accordion is opened to avoid delay on this page.

Update existing "createNewUserFields" cloud function to add the new empty collection for a new user.
Afterwards, Create and do a custom run cloud function to update existing users with the favourite collection.

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

No branches or pull requests

1 participant