-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): reactify notification and manual execution modal (#7075)
* Refactor Notifications from angular components to React components. * Notifications now uses formik * Refactoring Notifications to formik forced me to refactor Manual Execution Modal to React and formik * Refactored Stages, Manual Judgment, Triggers and Application Config to use new Notifications * Updated previously implemented manual execution components to no longer update the command in their props but to use a callback instead * Leveraged the Registry Service to add Notifications types similar to triggers
- Loading branch information
Jammy Louie
committed
Jul 25, 2019
1 parent
bec74d9
commit 71a4d9e
Showing
103 changed files
with
2,154 additions
and
1,834 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
5 changes: 3 additions & 2 deletions
5
app/scripts/modules/core/src/application/config/applicationNotifications.directive.html
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,6 +1,7 @@ | ||
<p>You can edit notification settings for this application</p> | ||
<notification-list | ||
application="vm.application" | ||
notifications="vm.notifications" | ||
level="application" | ||
application="vm.application.name" | ||
level="'application'" | ||
update-notifications="vm.updateNotifications" | ||
></notification-list> |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
import { ITemplateInheritable } from './IPipeline'; | ||
|
||
export interface INotification extends ITemplateInheritable { | ||
level?: string; | ||
type: string; | ||
when: string[]; | ||
[key: string]: any; | ||
} |
13 changes: 13 additions & 0 deletions
13
app/scripts/modules/core/src/domain/INotificationTypeConfig.ts
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,13 @@ | ||
import * as React from 'react'; | ||
|
||
export interface INotificationTypeConfig { | ||
label: string; | ||
key: string; | ||
config?: INotificationTypeCustomConfig; | ||
component?: React.ComponentType; | ||
} | ||
|
||
export interface INotificationTypeCustomConfig { | ||
fieldName?: string; | ||
botName?: string; | ||
} |
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
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
4 changes: 2 additions & 2 deletions
4
app/scripts/modules/core/src/notification/AppNotificationsService.ts
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
Oops, something went wrong.