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

DYN-5190 mark all as read #13260

Merged
merged 7 commits into from
Aug 30, 2022

Conversation

filipeotero
Copy link
Contributor

Purpose

This PR contains the functionality of marking all notifications as read.

  • Added a new property to the schema to define if the notification is read
  • The list notification ids are being stored in the preferences settings
  • Creation of the scriptObject class that communicates from js to c# code

markAllAsRead

This PR depends on the following implementation: DynamoDS/NotificationCenter#26

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Reviewers

@QilongTang @reddyashish @zeusongit

FYIs

@RobertGlobant20 @jesusalvino

@QilongTang
Copy link
Contributor

Hi @filipeotero From your gif, the Notification fly out height is longer than the panel itself with quite a gap, can you reduce the height to match the size?

Copy link
Contributor

@QilongTang QilongTang left a comment

Choose a reason for hiding this comment

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

Some comments then LGTM

@QilongTang
Copy link
Contributor

Currently seems no time diff is considered, but can we add a hard limit? Just in case, that setting was wiped out in certain cases.. @Amoursol What would be an idea threshold? 6 months? 3 months?

@filipeotero
Copy link
Contributor Author

Hi @filipeotero From your gif, the Notification fly out height is longer than the panel itself with quite a gap, can you reduce the height to match the size?

Hi Aaron, I noticed that this extra space in the bottom comes from the high component. The panel is calculating that space but I didn't update the number after inserting the footer. I will update the code and create a PR that will fix it.

@reddyashish
Copy link
Contributor

reddyashish commented Aug 29, 2022

@filipeotero Another thing I just noticed is, when Dynamo is maximized, the notification bell is placed close to the right corner and the notification panel anchor is off by a distance. Do you think you can look into it? or should we create a new task for it?
@QilongTang @Amoursol Also what do you guys think about the blue square border that we show when you click on the notification bell? I think it would be better without that.

Copy link
Contributor

@QilongTang QilongTang left a comment

Choose a reason for hiding this comment

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

LGTM. The only one last question is time limit threshold which can be another task or PR.

@QilongTang
Copy link
Contributor

@filipeotero Another thing I just noticed is, when Dynamo is maximized, the notification bell is placed close to the right corner and the notification panel anchor is off by a distance. Do you think you can look into it? or should we create a new task for it? @QilongTang @Amoursol Also what do you guys think about the blue square border that we show when you click on the notification bell? I think it would be better without that.

I think me and @RobertGlobant20 looked at that blue hover over background but we did not figure out how to get rid of it. @RobertGlobant20 any insight?

@filipeotero
Copy link
Contributor Author

@filipeotero Another thing I just noticed is, when Dynamo is maximized, the notification bell is placed close to the right corner and the notification panel anchor is off by a distance. Do you think you can look into it? or should we create a new task for it? @QilongTang @Amoursol Also what do you guys think about the blue square border that we show when you click on the notification bell? I think it would be better without that.

Hi @reddyashish! I added some space in the notifications button and an offset at the pointer to fit on the screen:

addSpaceNotificationsButton

@filipeotero
Copy link
Contributor Author

Hi @filipeotero From your gif, the Notification fly out height is longer than the panel itself with quite a gap, can you reduce the height to match the size?

Hi @filipeotero From your gif, the Notification fly out height is longer than the panel itself with quite a gap, can you reduce the height to match the size?

Hi Aaron, I noticed that this extra space in the bottom comes from the high component. The panel is calculating that space but I didn't update the number after inserting the footer. I will update the code and create a PR that will fix it.

PR was created to fix the panel height

DynamoDS/hig#2

@Amoursol
Copy link
Contributor

Currently seems no time diff is considered, but can we add a hard limit? Just in case, that setting was wiped out in certain cases.. @Amoursol What would be an idea threshold? 6 months? 3 months?

6 months is ideal given the slow news cadence, but 3 months is OK too if you need to.

@Amoursol
Copy link
Contributor

@filipeotero Another thing I just noticed is, when Dynamo is maximized, the notification bell is placed close to the right corner and the notification panel anchor is off by a distance. Do you think you can look into it? or should we create a new task for it? @QilongTang @Amoursol Also what do you guys think about the blue square border that we show when you click on the notification bell? I think it would be better without that.

Ideally we don't have the blue hover color, as this goes against the rest of our patterns. We should instead have a blue icon on hover.

@QilongTang
Copy link
Contributor

There is an regression from this PR, DynamoCoreWpfTests.DynamoViewTests.OpeningWorkspaceWithTrustWarning can you confirm if this is real?

@QilongTang QilongTang added this to the 2.16.0 milestone Aug 29, 2022
@QilongTang
Copy link
Contributor

@filipeotero Another thing I just noticed is, when Dynamo is maximized, the notification bell is placed close to the right corner and the notification panel anchor is off by a distance. Do you think you can look into it? or should we create a new task for it? @QilongTang @Amoursol Also what do you guys think about the blue square border that we show when you click on the notification bell? I think it would be better without that.

Ideally we don't have the blue hover color, as this goes against the rest of our patterns. We should instead have a blue icon on hover.

@filipeotero This should be a quick one, when Dynamo grabs notifications, can we ignore notifications from 6 month ago?

@filipeotero
Copy link
Contributor Author

There is an regression from this PR, DynamoCoreWpfTests.DynamoViewTests.OpeningWorkspaceWithTrustWarning can you confirm if this is real?

The tests are passing locally:

image

@@ -104,6 +105,10 @@ private void RequestNotifications()
{
jsonStringFile = reader.ReadToEnd();
notificationsModel = JsonConvert.DeserializeObject<NotificationsModel>(jsonStringFile);

//We are adding a limit of months to grab the notifications
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@QilongTang QilongTang merged commit 11f50cc into DynamoDS:master Aug 30, 2022
@QilongTang
Copy link
Contributor

@filipeotero Would you cherry-pick this PR?

filipeotero added a commit to filipeotero/Dynamo that referenced this pull request Aug 30, 2022
* mark all as read function

* mark all as read functionallity

* remove local settings

* Addressing comments

* updating the pointer position and add a margin to the notifcations button

* Limit of months to filter the notifications
filipeotero added a commit to filipeotero/Dynamo that referenced this pull request Aug 30, 2022
* mark all as read function

* mark all as read functionallity

* remove local settings

* Addressing comments

* updating the pointer position and add a margin to the notifcations button

* Limit of months to filter the notifications
filipeotero added a commit to filipeotero/Dynamo that referenced this pull request Aug 30, 2022
* mark all as read function

* mark all as read functionallity

* remove local settings

* Addressing comments

* updating the pointer position and add a margin to the notifcations button

* Limit of months to filter the notifications
QilongTang pushed a commit that referenced this pull request Aug 30, 2022
* mark all as read function

* mark all as read functionallity

* remove local settings

* Addressing comments

* updating the pointer position and add a margin to the notifcations button

* Limit of months to filter the notifications
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.

4 participants