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

Unify Notifications #12907

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

Unify Notifications #12907

wants to merge 27 commits into from

Conversation

alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Apr 19, 2024

  • Tests written, or not not needed

What does this PR?

  • Unify notifications for downloads and uploads to display all progress in a single notification rather than multiple notifications.
  • Make download and upload notifications dismissible to prevent stuck notifications on some devices.
  • Prevent unnecessary notification updates by adding debounce for the progress updates of downloads and uploads.
  • Use a parent class for Upload and Download Notification Manager to prevent code duplication.
  • Remove unnecessary usage of notification dismiss.
  • Add BigTextStyle for upload and download notifications to provide better visibility
  • Fix notification blinking for uploads

Before

before.mp4

After

v.mp4

How to Test

  • Test one file download

  • Test one file upload

  • Test multiple file upload

  • Test multiple file download

  • Test all above scenarios for e2e

@alperozturk96 alperozturk96 linked an issue Apr 19, 2024 that may be closed by this pull request
@alperozturk96 alperozturk96 force-pushed the feature/unify-notifications branch 2 times, most recently from 46bf27c to 32d0efb Compare April 26, 2024 14:05
@alperozturk96 alperozturk96 force-pushed the feature/unify-notifications branch 4 times, most recently from fb239e5 to 248ee8a Compare May 3, 2024 06:57
ZetaTom
ZetaTom previously requested changes May 7, 2024
Copy link
Collaborator

@ZetaTom ZetaTom left a comment

Choose a reason for hiding this comment

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

In general these changes seem to work and not break anything.

Please revert any changes made to app/src/main/res/values-*/strings.xml as these files are managed via transifex.

@alperozturk96 alperozturk96 marked this pull request as draft May 8, 2024 13:11
auto-merge was automatically disabled May 8, 2024 13:11

Pull request was converted to draft

Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk96 and others added 19 commits May 31, 2024 16:31
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
…icationManager.kt

Co-authored-by: Tom <70907959+ZetaTom@users.noreply.github.com>
Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
…nting unnecessary updates

Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 marked this pull request as ready for review May 31, 2024 15:14
@alperozturk96 alperozturk96 dismissed ZetaTom’s stale review May 31, 2024 15:14

Not valid anymore

Copy link

Codacy

Lint

TypemasterPR
Warnings7070
Errors33

SpotBugs

CategoryBaseNew
Bad practice6464
Correctness6969
Dodgy code346346
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness66
Performance5757
Security1919
Total571571

Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12907.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

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.

Unified Notifications
3 participants