-
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
74 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
backend/data/src/main/kotlin/io/tolgee/dtos/request/notification/NotificationFilters.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
package io.tolgee.dtos.request.notification | ||
|
||
import io.swagger.v3.oas.annotations.Parameter | ||
|
||
class NotificationFilters( | ||
@field:Parameter( | ||
description = """Filter by the `seen` parameter. | ||
|
||
no value = request everything | ||
|
||
true = only seen | ||
|
||
false = only unseen""", | ||
) | ||
val filterSeen: Boolean? = null, | ||
) |
8 changes: 8 additions & 0 deletions
8
.../data/src/main/kotlin/io/tolgee/dtos/request/notification/NotificationsMarkSeenRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.tolgee.dtos.request.notification | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
class NotificationsMarkSeenRequest { | ||
@Schema(example = "[1,2,3]", description = "Notification IDs to be marked as seen") | ||
var notificationIds: List<Long> = listOf() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,9 +42,7 @@ describe('tasks notifications', () => { | |
|
||
assertMessage('1 task created'); | ||
|
||
cy.gcy('notifications-count') | ||
.find('.MuiBadge-badge') | ||
.should('have.text', '1'); | ||
cy.gcy('notifications-count').should('have.text', '1'); | ||
|
||
getAssignedEmailNotification().then(({ taskLink, toAddress }) => { | ||
assert(toAddress === '[email protected]', 'correct recipient'); | ||
|
@@ -57,9 +55,7 @@ describe('tasks notifications', () => { | |
dismissMenu(); | ||
cy.gcy('notifications-button').click(); | ||
|
||
cy.gcy('notifications-count') | ||
.find('.MuiBadge-badge') | ||
.should('not.be.visible'); | ||
cy.gcy('notifications-count').should('not.be.visible'); | ||
cy.gcy('notifications-list').contains('New review task').click(); | ||
|
||
cy.url().should('include', '/translations?task='); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters