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

feat: handle connection requests errors (WPB-4418) #15783

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

V-Gira
Copy link
Contributor

@V-Gira V-Gira commented Sep 11, 2023

BugWPB-4418 [Web] handle connection request errors

Description

We are not currently giving any feedback to the user if there's any error when sending / ignoring / canceling / accepting connection requests.

Other platforms have a generic error message (iOS), a toast for the different cases (android)

The decision (see ticket) was to use Androids error message in a modal

Screenshots/Screencast (for UI changes)

Screenshot from 2023-09-11 15-37-19

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

"modalUserCannotBeAddedHeadline": "Guests cannot be added",
"modalUserCannotConnectLegalHoldHeadline": "Cannot connect to this user",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The localization team requested to change this title for the no-longer-federating case.

We are using the new copy "Connecting not possible" as a title for every case

Comment on lines +346 to +350
default: {
PrimaryModal.show(PrimaryModal.type.ACKNOWLEDGE, {
text: {
title: t('modalUserCannotConnectHeadline'),
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this shows a modal with no message, only the title "Connecting not possible" as a fallback for unhandled cases

Copy link
Member

Choose a reason for hiding this comment

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

Doesn't it Look weird if the modal doesn't have a message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks fine to me, wdyt?
image

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Merging #15783 (6cda396) into dev (17d3f6e) will decrease coverage by 0.01%.
Report is 6 commits behind head on dev.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##              dev   #15783      +/-   ##
==========================================
- Coverage   44.48%   44.47%   -0.01%     
==========================================
  Files         672      672              
  Lines       22707    22714       +7     
  Branches     5168     5169       +1     
==========================================
+ Hits        10101    10103       +2     
- Misses      11317    11321       +4     
- Partials     1289     1290       +1     

@V-Gira V-Gira merged commit 274f333 into dev Sep 11, 2023
19 checks passed
@V-Gira V-Gira deleted the virgile/connection-request-error-handling branch September 11, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants