the-collab-lab / tcl-74-smart-shopping-list

1 stars 0 forks source link

Issue #6 : Share existing shopping list to a user #24

Closed stacy-tech closed 1 month ago

stacy-tech commented 1 month ago

Description

Related Issue

Acceptance Criteria

The ManageList view shows a form that allows the user to enter an email to invite an existing user to a list, in addition to the form that allows them to add items to that list.

Type of Changes

Enhancement

Updates

Before

image (1)

After

image

Screenshot 2024-08-26 at 2 57 58 PM

image

Screenshot 2024-08-26 at 2 59 35 PM

Testing Steps / QA Criteria

github-actions[bot] commented 1 month ago

Visit the preview URL for this PR (updated for commit 09d7d42):

https://tcl-74-smart-shopping-list--pr24-sd-st-6-o6t0snvw.web.app

(expires Sat, 07 Sep 2024 15:09:30 GMT)

πŸ”₯ via Firebase Hosting GitHub Action 🌎

Sign: 79d73546692f99aad8468c28e36db434e2c190ac

NickRoccodev11 commented 1 month ago

looks great! I would mention in the testing criteria that a list you share has to be one you created, but all seems to be working well!

shuveksha-tuladhar commented 1 month ago

We have updated the testing criteria. Thank you @NickRoccodev11

shuveksha-tuladhar commented 1 month ago

Tests worked for me! Well done! My only question pertains to shareList function. If it is an async function (firebase, line 140), would it make sense to add an await in ManageList? I'm wondering this myself. Great job!

Thank you for the feedback @dterceroparker ! We believe adding await in either Firebase.js file and ManageList.jsx would give the same result. So Stacy and I decided to keep the code as is.

jtkabenni commented 1 month ago

Tests worked for me! Well done! My only question pertains to shareList function. If it is an async function (firebase, line 140), would it make sense to add an await in ManageList? I'm wondering this myself. Great job!

Thank you for the feedback @dterceroparker ! We believe adding await in either Firebase.js file and ManageList.jsx would give the same result. So Stacy and I decided to keep the code as is.

It may seem like the same result but it is slightly different! πŸ‘€