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

User blocking UI and connecting to backend #110

Merged
merged 3 commits into from
Apr 18, 2024
Merged

Conversation

andrezz-b
Copy link
Collaborator

Changes

  • Added 3 dots on chat page and detailed profile
    • The dots open a dropdwon with 1 action Block
    • Pressing Block a confirmation dialog opens if you confirm there then you block the user
    • Upon blokcing a user you are returned to all matches page or the list of chats page

@andrezz-b andrezz-b added for: Web App Issues regarding React web app. type: feature New feature labels Apr 14, 2024
@andrezz-b andrezz-b added this to the Control point 1 💻 milestone Apr 14, 2024
@andrezz-b andrezz-b self-assigned this Apr 14, 2024
@andrezz-b andrezz-b linked an issue Apr 14, 2024 that may be closed by this pull request
@andrezz-b andrezz-b changed the title User blocking UI User blocking UI and connecting to backend Apr 14, 2024
@andrezz-b andrezz-b linked an issue Apr 14, 2024 that may be closed by this pull request
@andrezz-b
Copy link
Collaborator Author

andrezz-b commented Apr 14, 2024

@petra5555

Test case

  1. Create 2 compatible users (select the same location for both of them so that they can see only each other)
  2. Match each other on both accounts
  3. The 3 dots with the block action should appear in 2 places
    • On detailed profile page when clicking on a match on the /matches route
    • On chat page with that user
  4. Pressing the 3 dots should open a dropdown with a block button
  5. Pressing block should open a dialog where you can confirm or cancel
    • If you press cancel the dialog should close
  6. Pressing confirm you shuld be redirected to the list page (/matches if you blocked from the detailed profile page or /messages if you blocked the user from the chat page)
  7. The blocked user shuold disappear from My matches and the messages pages, he also should not appear in the new potential users

@andrezz-b andrezz-b requested a review from petra5555 April 14, 2024 09:39
Copy link
Collaborator

@petra5555 petra5555 left a comment

Choose a reason for hiding this comment

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

The test case passed without problems or errors. This looks good to me.

@andrezz-b andrezz-b merged commit c06fe76 into main Apr 18, 2024
@andrezz-b andrezz-b deleted the user-blocking-ui branch April 19, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: Web App Issues regarding React web app. type: feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connect Blocking with Backend User Blocking UI
2 participants