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

Provide Better Feedback For Failed Uploads #12228

Merged
merged 9 commits into from
Dec 6, 2023

Conversation

alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Dec 4, 2023

When upload failed user may want to navigate to Upload List so I added action for that into notification. Before this implementation user can just open conflict resolve dialog or dismiss notification

If user taps the notification goes to upload list
If user taps the resolve conflict FileResolveConflictDialog appears

Screenshot 2023-12-06 at 10 55 35

Sometimes file cannot be found to solve conflict and nothing happens. I added snackbar message to provide better feedback
https://github.com/nextcloud/android/assets/67455295/2f36f36a-377e-4c77-8038-9a9415461462

  • Tests written, or not not needed

Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Copy link
Collaborator

@JonasMayerDev JonasMayerDev left a comment

Choose a reason for hiding this comment

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

Functionality of quick access to "FileUploadList" already exists. You should actually be able to simply click on the notification and be redirected. Maybe this is not working in Android 14? The implementation for this is in notifyUploadResult a view lines down from your reimplementation. Maybe get the original implementation to work?

Signed-off-by: alperozturk <[email protected]>
@alperozturk96
Copy link
Collaborator Author

Signed-off-by: alperozturk <[email protected]>
Copy link

github-actions bot commented Dec 6, 2023

Codacy

Lint

TypemasterPR
Warnings7575
Errors99

SpotBugs

CategoryBaseNew
Bad practice2626
Correctness7070
Dodgy code359359
Experimental22
Internationalization99
Malicious code vulnerability22
Multithreaded correctness99
Performance5858
Security1818
Total553553

Copy link

github-actions bot commented Dec 6, 2023

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12228.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Copy link
Collaborator

@JonasMayerDev JonasMayerDev left a comment

Choose a reason for hiding this comment

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

Works for me! Thanks for the change :)

@AndyScherzinger AndyScherzinger merged commit f71d5a4 into master Dec 6, 2023
19 checks passed
@delete-merged-branch delete-merged-branch bot deleted the feature/better-feedback-for-failed-uploads branch December 6, 2023 11:35
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.28.0 milestone Dec 6, 2023
AndyScherzinger added a commit that referenced this pull request Dec 6, 2023
…ack-for-failed-uploads"

This reverts commit f71d5a4, reversing
changes made to d3906c0.
AndyScherzinger added a commit that referenced this pull request Dec 6, 2023
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.

3 participants