Notifications
#554
Merged
6543
merged 12 commits from opyale/GitNex:notifications
into master
2 years ago
Reviewers
Request review
Labels
Requires and waits for changes in Gitea's API Backport
Bugfix ported to a release branch for point release Blocked
Waits for something else that must be solved first Brainstorming Breaking
Contains or will result in breaking changes Bug Cannot-reproduce Changelog CI
Related to the CI/CD Cleanup Confirmed Discussion Documentation Duplicate Enhancement External-dependecy F-droid Feature Frontport Good-first-issue Google-play Has-backport Improvement Invalid Investigate Long-term Major-release Minor-release Needs-backport Needs-cleanup Needs-feedback Needs-frontport Needs-help Performance Priority-critical Priority-high Priority-low Priority-medium Question Ready Refactor Regression Release Repository
Related to this repository and it's management Security Suggestion Summary Support Testing Translation UI/UX
Related to the user interface or experience Upstream Website
Related to the website Wontfix
This won't get fixed
Apply labels
Clear labels
API-dependency
Requires and waits for changes in Gitea's API Backport
Bugfix ported to a release branch for point release Blocked
Waits for something else that must be solved first Brainstorming Breaking
Contains or will result in breaking changes Bug Cannot-reproduce Changelog CI
Related to the CI/CD Cleanup Confirmed Discussion Documentation Duplicate Enhancement External-dependecy F-droid Feature Frontport Good-first-issue Google-play Has-backport Improvement Invalid Investigate Long-term Major-release Minor-release Needs-backport Needs-cleanup Needs-feedback Needs-frontport Needs-help Performance Priority-critical Priority-high Priority-low Priority-medium Question Ready Refactor Regression Release Repository
Related to this repository and it's management Security Suggestion Summary Support Testing Translation UI/UX
Related to the user interface or experience Upstream Website
Related to the website Wontfix
This won't get fixed
No Label
API-dependency
Backport
Blocked
Brainstorming
Breaking
Bug
Cannot-reproduce
Changelog
CI
Cleanup
Confirmed
Discussion
Documentation
Duplicate
Enhancement
External-dependecy
F-droid
Feature
Frontport
Good-first-issue
Google-play
Has-backport
Improvement
Invalid
Investigate
Long-term
Major-release
Minor-release
Needs-backport
Needs-cleanup
Needs-feedback
Needs-frontport
Needs-help
Performance
Priority-critical
Priority-high
Priority-low
Priority-medium
Question
Ready
Refactor
Regression
Release
Repository
Security
Suggestion
Summary
Support
Testing
Translation
UI/UX
Upstream
Website
Wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
2020-07-21
Dependencies
This pull request currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch 'opyale/GitNex:notifications'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
[DONE] This PR has to wait until this PR got merged and backported to 1.12
Closes #5
Help is very much appreciated in the following topics:
This work is already done and represents the basis:
I would be very grateful if you, @mmarif and @6543 could help me. Working together on notifications would make much more fun.
Few obervations using 1.13-dev
Pin notification
shuold bePin Notification
Mark as unread
shuold beMark as Unread
Open
should beUnread
with proper iconClosed
should beRead
with proper iconPin Notification
returns an instance errorMark as Unread
when tap on itRelated to this PR. Some things are not implemented yet.
mark all notification as read
should clear the listPagination issues - this is for another PR and has to be solved within the whole app.
Read
notifications, and close the app. When start it should launch withUnread
notifications screen(clear the saved value on start?)These are the few things I noticed which will help improve the feature. :)
I will post back if found anything else.
And without diving to the code itself, the feature is great and working nicely. Good work.
Some more improvements
Select polling delay
should beSelect Polling Delay
in the popupPolling Delay
in the settings should beNotifications Polling Delay
Polling Delay
should be 12spAlso not necessary but would be useful, if we can show the current selected value under
Polling Delay
like cache.I think we should move this into 3.1.0
Yes, they are. But they are the saved values not hint text. Hint text is more like information and in grey color. Example is drafts.
Let's say I want to add some text for Theme, Hint text will be 12sp, while the saved which is in green will be 14sp.
Theme (16sp)
Dark (14sp)
hint text (12sp)
<string-array name="tipsLoadingMoreView">
<item>You can drink something meanwhile</item>
<item>I don't know what to write here</item>
need escabe \
private static String[] cacheSizeImagesList = {"50 MB", "100 MB", "250 MB", "500 MB", "1 GB"};
private static int cacheSizeImagesSelectedChoice = 0;
private static int MINIMUM_POLLING_DELAY = 15;
if a user want to poll every 1min?
This is not possible due to Google's constraints on WorkManager.
https://developer.android.com/reference/androidx/work/PeriodicWorkRequest
Few thins:
an suggestion would be to have two different times for the checking iterfall:
if the app is open (user interacts with gitnex): pull each 10-30sec
if the app is closed/minimized: pull each 1-270min
This would require an additional and dedicated background service, since WorkManager is only able to pull each 15 Minutes - as described before. It's just better to stay with WorkManager and accept its downsides, because im pretty sure it will not change much in the future (not as much deprecations which makes services like the BackgroundService unusable for long term background tasks).
this is bad - realy would like this feature - but this is no blocking point
#554 comment-69151 is what we need to fix
If the app is open/background notificatin will happen instantly.
As described, this is limitation from Google. When app is terminated(not even in background) delay is minimum 15 minutes.
Working on it.
<vector xmlns:android="http://schemas.android.com/apk/res/android"
You can delete this icon and use
ic_pull_request
instead.<vector android:height="24dp" android:tint="#368F73"
You can use
ic_question
and delete this icon.<vector android:height="24dp" android:tint="#368F73"
Use icon
ic_unwatch
and delete this icon.Notificationsto [WIP] Notifications 2 years ago[WIP] Notificationsto Notifications 2 years ago🎉
39ac49b258
into master 2 years agoReviewers
39ac49b258
.