-
Notifications
You must be signed in to change notification settings - Fork 1
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
154 scheduled notifications allow users be able to add or delete the queries to use in their notification #170
Conversation
β¦ble-to-add-or-delete-the-queries-to-use-in-their-notification
Bundle size differenceComparing this PR to
|
β¦ble-to-add-or-delete-the-queries-to-use-in-their-notification
@@ -108,7 +105,6 @@ export const DataTableComponent = <T extends RecordWithId>({ | |||
display: 'flex', | |||
flexDirection: 'column', | |||
flex: 1, | |||
height: '100%', |
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.
Removing this seems a bit dangerous, but doesn't seem to have had any ill effects that I've seen so far...
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.
π€ I can't see why it was required
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.
π Changes are working nicely - and it's all very good to use and the code looks great.
I have a couple of layout suggestions ( popped into a suggestion branch )
Main thing that troubles me is that all the bits are cramped on the form.. which is unrelated to this PR really..
Current
I've also added the end of the breadcrumb - it was showing the ID but I think it's nicer with the title
One other nit pick when using the form.. I had trouble with the validation.
I thought that I had entered all the required fields - there was nothing else indicated in this view:
it turned out that the parameters were required - but because they aren't shown I didn't realise π
Even opening the panel - they aren't indicated as required..
Then I caused a separate problem by deleting a parameter value, but the validation allows me to save still π€
@@ -108,7 +105,6 @@ export const DataTableComponent = <T extends RecordWithId>({ | |||
display: 'flex', | |||
flexDirection: 'column', | |||
flex: 1, | |||
height: '100%', |
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.
π€ I can't see why it was required
height={modalHeight} | ||
width={modalWidth} | ||
okButton={ | ||
<Tooltip title={t('label.select-queries')}> |
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.
Does the tooltip add anything? Given that it has the same text, I'm not convinced that it's useful.
If it is - perhaps it should be part of the button component itself
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.
β¦layout-suggestion some ui suggestions
I've put in a error state for missing parameters, doesn't automatically open the parameters tab though if you've closed it. I'm tempted to remove the close button as a simple fix, I also assume that only experienced people will be using the system so I think it's ok for now, and can be refined later if we get time. At least they'll get a red highlight now... |
Thanks heaps for the suggestions and the review! |
β¦ble-to-add-or-delete-the-queries-to-use-in-their-notification
Closes #154
π©π»βπ» What does this PR do?
Gives user a method to see and select sql queries to use in templates.
Any required parameters are added to the params panel to be configured.
π§ͺ How has/should this change been tested?
Create SqlRecipientList (with params), Notification Query (with params)
Test different combinations of Scheduled notifications with different parameters, make sure the right combination of parameters shows in the parameter panel.
Check that Coldchain still works...
π Any notes for the reviewer?
This PR still doesn't do anything with the sql queries, that will be a later PR.