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

task(files): Add failed msg to upload failing #1876

Merged
merged 7 commits into from
Mar 5, 2024
Merged

Conversation

Flemmli97
Copy link
Collaborator

What this PR does 📖

  • Adds the error message to pending message if an error occurred during file upload
  • Also show the error as a toast notification

Which issue(s) this PR fixes 🔨

@github-actions github-actions bot added Don't merge yet DO NOT MERGE Missing dev review Still needs to be reviewed by a dev Failed Automated Test This PR is failing Luis's Appium test and needs revised labels Feb 27, 2024
Copy link
Contributor

github-actions bot commented Feb 27, 2024

UI Automated Test Results Summary for MacOS/Windows

534 tests   480 ✅  2h 58m 44s ⏱️
 45 suites   54 💤
  3 files      0 ❌

Results for commit 1254aad.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Feb 27, 2024

UI Automated Tests execution is complete! You can find the test results report here

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@phillsatellite
Copy link
Contributor

Sara and I both tried and had the same results

File limit was reached and we tried to then send a file in the chat but got no toast notification and message would not show as failed

PR branch

We tried to send the same file on dev branch and on dev on the message bubble it will at least say failed

Dev

@phillsatellite phillsatellite added the Changes requested When other dev or QA request a change label Feb 27, 2024
@stavares843
Copy link
Member

same here 🔨

@github-actions github-actions bot removed the Failed Automated Test This PR is failing Luis's Appium test and needs revised label Feb 27, 2024
@Flemmli97
Copy link
Collaborator Author

fixed. but the toast msg will also have the same problem as #1877

@stavares843
Copy link
Member

thanks 🔨

@phillsatellite phillsatellite removed the Changes requested When other dev or QA request a change label Feb 28, 2024
luisecm and others added 3 commits February 29, 2024 14:08

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@github-actions github-actions bot added Failed Automated Test This PR is failing Luis's Appium test and needs revised and removed Failed Automated Test This PR is failing Luis's Appium test and needs revised labels Mar 2, 2024
@phillsatellite phillsatellite added the QA Tested QA has tested and approved label Mar 4, 2024
@stavares843 stavares843 added Changes requested When other dev or QA request a change and removed QA Tested QA has tested and approved labels Mar 4, 2024
Copy link
Member

@stavares843 stavares843 left a comment

Choose a reason for hiding this comment

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

Captura de ecrã 2024-03-04, às 19 23 13

is there a way to make the copy more user friendly?

can we remove where it says

Current length: 11461366070. Minimum Length: None, Maximum: Some(10737418240)

and add the MB's instead?

@Flemmli97
Copy link
Collaborator Author

Captura de ecrã 2024-03-04, às 19 23 13 is there a way to make the copy more user friendly?

can we remove where it says

Current length: 11461366070. Minimum Length: None, Maximum: Some(10737418240)

and add the MB's instead?

hmm idk about that. it currently simply prints the error provided by a failed download.
and that error msg is provided by warp.

we can of course simply print a simple error message with something along the line of:
"Error during download - "
but this also looses any other potential context

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@stavares843
Copy link
Member

we can just add a message saying "Error on upload, no space left on storage" and maybe we could add the same storage size we use on the files section

Captura de ecrã 2024-03-05, às 16 21 05

@Flemmli97
Copy link
Collaborator Author

Flemmli97 commented Mar 5, 2024

we can just add a message saying "Error on upload, no space left on storage" and maybe we could add the same storage size we use on the files section

Captura de ecrã 2024-03-05, às 16 21 05

the thing is though that error might not be related to a full storage as its just a generic one. so always displaying it as "full storage" is misleading.
so we could only have "Error on upload"

@stavares843
Copy link
Member

"Error on upload - lack of storage" works fine

@Flemmli97
Copy link
Collaborator Author

like i said what if that error is not caused by lack of storage?
e.g. the wifi went out?
there is no way to tell. we would need to have warp send the actual error struct instead of just passing in a string

@dariusc93
Copy link
Contributor

like i said what if that error is not caused by lack of storage? e.g. the wifi went out? there is no way to tell. we would need to have warp send the actual error struct instead of just passing in a string

My PR already changes it to an Error, so once that is merged in, we can use that instead

@stavares843
Copy link
Member

sounds good, thank you 🔨

@stavares843 stavares843 added QA Tested QA has tested and approved and removed Changes requested When other dev or QA request a change labels Mar 5, 2024
@dariusc93 dariusc93 added Ready to Merge This PR is ready to merge and removed Missing dev review Still needs to be reviewed by a dev Don't merge yet DO NOT MERGE labels Mar 5, 2024
@stavares843 stavares843 merged commit 6d37e55 into dev Mar 5, 2024
10 checks passed
@stavares843 stavares843 deleted the upload_failed_msg branch March 5, 2024 21:21
@github-actions github-actions bot removed QA Tested QA has tested and approved Ready to Merge This PR is ready to merge labels Mar 5, 2024
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.

task(files): Show toast notification when user is sending file but limit is reached
5 participants