Skip to content

Conversation

@camilasan
Copy link
Member

@camilasan camilasan commented Feb 25, 2018

  • Display the actual response text from the notification api in the popups.
  • Do not display sync activities messages like how many files were downloaded, only errors.
  • Make the notifications section above the activity feed also clickable. e.g open the call, the file that was shared, open the calendar event etc
  • Split "Show desktop notifications" setting
  • Show notifications on startup and then show only NEW notifications: uses If-None-Match check to only retrieve notifications once there are new notifications.

Notification widget:
notificationwidget

One user notification:
one-user-notification

Multiple users notification:
notifications

Settings:
settings

Camila San added 15 commits February 12, 2018 22:16
…planation about it.

- Changes the configuration name in ConfigFile and GeneralSettings
accordingly with the new text.
- Makes sure the user sees error and conflict messages even if the
setting is disabled.

Signed-off-by: Camila San <[email protected]>
- Changes spacing.
- Removes QFrame.
- Changes icon size.

Signed-off-by: Camila San <[email protected]>
…r. Server activities and notifications are off by default.

Signed-off-by: Camila San <[email protected]>
browser.

- Removes debug messages.
- Removes Activity data _appName - not used anymore.

Signed-off-by: Camila San <[email protected]>
Signed-off-by: Camila San <[email protected]>
@camilasan camilasan changed the title Changes Notifications Notifications Feb 25, 2018
@jancborchardt
Copy link
Member

Cool! 2 things:

  • In the Notifications in the settings, it says "created 1 hour ago". Instead should only say the time, like for the Activities: "1 hour ago"
  • There are 2 settings? "Show Server Notifications" and "Show Server Activities". What does the second one mean – does it influence the desktop notifications, or does disabling it hide the "Activity" view? Cause I thought we would stick to one setting for only enabling/disabling desktop notifications.

@camilasan
Copy link
Member Author

@jancborchardt

In the Notifications in the settings, it says "created 1 hour ago". Instead should only say the time, like for the Activities: "1 hour ago"

ok, will change it

There are 2 settings? "Show Server Notifications" and "Show Server Activities". What does the second one mean – does it influence the desktop notifications, or does disabling it hide the "Activity" view? Cause I thought we would stick to one setting for only enabling/disabling desktop notifications.

The second one means a mistake :) Removing it.

@juliusknorr
Copy link
Member

@camilasan Is this also ready for review? Feel free to update the label if so.

a._id = json.value("notification_id").toInt();
a._subject = json.value("subject").toString();
a._message = json.value("message").toString();

Copy link
Member

Choose a reason for hiding this comment

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

Ideally we could also use and cache the icon value and use that in the UI, but that is also something that could be done later.

{
QSettings settings(configFile(), QSettings::IniFormat);
return settings.value(QLatin1String(optionalDesktopNoficationsC), true).toBool();
return settings.value(QLatin1String(optionalServerNotificationsC), false).toBool();
Copy link
Member

Choose a reason for hiding this comment

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

I think notifications should be enabled by default. Any opinions @jancborchardt

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@camilasan
Copy link
Member Author

camilasan commented Mar 3, 2018

@juliushaertl

Is this also ready for review? Feel free to update the label if so.

I think now you can review it. Could you try to run it too? Thanks.

@juliusknorr
Copy link
Member

I think now you can review it. Could you try to run it too? Thanks.

I did. Works pretty nice 👍 I'll have another look for a final review.

@camilasan
Copy link
Member Author

And @juliushaertl ? :)

@camilasan
Copy link
Member Author

@rullzer could you review it too? thanks!

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Good stuff. Lets get this in!

@camilasan camilasan merged commit 08b33c6 into master Mar 13, 2018
@jancborchardt jancborchardt deleted the fix-notifications branch March 20, 2018 15:14
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.

5 participants