-
Notifications
You must be signed in to change notification settings - Fork 31
Add email body template & Optimize notification setting UI #141
Add email body template & Optimize notification setting UI #141
Conversation
@@ -97,7 +97,6 @@ export function EditReportDefinition(props) { | |||
|
|||
const callUpdateAPI = async (metadata) => { | |||
const { httpClient } = props; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this file from the PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean edit_report_definition.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah- it looks like the only change is an empty line removal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -143,13 +142,12 @@ export const channelSchema = schema.object({ | |||
}), | |||
{ minSize: 1 } | |||
), | |||
// TODO: consider add this field next to url-related fields. | |||
// Need this to build the links in email | |||
origin: schema.uri(), //e.g. https://xxxxx.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need input validation for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the .uri()
will check whether it is valid uri in this format https://xxxxx.com
); | ||
/** | ||
* notification plugin response example: | ||
* { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this comment block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - please address comments before merging
Issue #, if available:
Description of changes:
update notification settings UI and flow behind in create report definition
Add email template
update notification setting UI in report details page
Add better logging and error handling for email
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.