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

Jk vy share list #23

Merged
merged 9 commits into from
Feb 21, 2024
Merged

Jk vy share list #23

merged 9 commits into from
Feb 21, 2024

Conversation

BikeMouse
Copy link
Collaborator

Description

Implemented the "sharing list with another user by email" functionality

Related Issue

closes #6

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.
  •  The input that accepts the email has a semantic label element associated with it
  •  The user can submit this form with both the mouse and the Enter key
  •  If the other user exists, the user is alerted that the list was shared
  •  If the other user does not exist, the user is shown an error message that explains the problem

Type of Changes

adding feature

Updates

Before

shareListBefore

After

successSharedList
errorSharedList

Testing Steps / QA Criteria

git checkout jk--vy--share-list
git pull
npm start
go to manage list
provide email

Copy link

github-actions bot commented Feb 20, 2024

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

https://tcl-71-smart-shopping-list--pr23-jk-vy-share-list-n4z44xgo.web.app

(expires Tue, 27 Feb 2024 12:27:21 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 1e7ade9d0f374c4ddb5d7ab6fc541062fc7a1ab4

Copy link
Collaborator

@ocsiddisco ocsiddisco left a comment

Choose a reason for hiding this comment

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

Nicely done! I like the checking for an empty user input!
Something that is not in the requirement, but could be a nice add: checking if the user is not assigning their own email address.

@elitcenk
Copy link
Collaborator

It looks good. Well done.

@BikeMouse
Copy link
Collaborator Author

@ocsiddisco Do you mean if I put my own email I get a message saying "You put in your own email?"

Copy link
Collaborator

@borjaMarti borjaMarti left a comment

Choose a reason for hiding this comment

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

Tested locally and works as expected, nice job!! 💪

- display an error message if the user tries to submit an empty string
- edit alert messages
@vivitt
Copy link
Collaborator

vivitt commented Feb 20, 2024

I noticed that in our implementation, a user is only able to share a list if they are the owner of that list. I wonder if this is the expected behavior in the app, or if we might be missing some work to allow every user in the list to share it with others.

I created a new-test-list and shared it with all team members in case anyone wants to test it.

@BikeMouse
Copy link
Collaborator Author

I could imagine that is the expected behaviour tbh. In fact, picturing myself using this app, I wouldn't want a random user to share my list

@vivitt
Copy link
Collaborator

vivitt commented Feb 20, 2024

I could imagine that is the expected behaviour tbh. In fact, picturing myself using this app, I wouldn't want a random user to share my list

Yes, I guess so... I was unsure about this since I tested the feature with test-list which it is also within my lists but was created by other user and wasn't able to share it.

@elitcenk elitcenk merged commit e283330 into main Feb 21, 2024
2 checks passed
@vivitt vivitt deleted the jk--vy--share-list branch March 7, 2024 08:44
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.

6. As a user, I want to be able to invite others to an existing shopping list
5 participants