-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Support multiline Timelion queries #11164
Support multiline Timelion queries #11164
Conversation
ddee6d4
to
92c60cb
Compare
92c60cb
to
d09fca0
Compare
d09fca0
to
8c0188d
Compare
5aee243
to
0df7fdb
Compare
e30658c
to
57f4cf6
Compare
@cjcenizal are you still trying to target this for 5.5, or does #10961 going only into 6.0 also push this PR back? |
@Bargs You're right, this will only go into 6.0 because it depends upon the PR you linked. |
3a1aea2
to
d38b3e6
Compare
…ype of form control. Fix suggestions in Timelion Visualization.
…LocalNavSearch component of UI Framework.
…. Update UI Framework CSS to correctly set width of example content area.
…t, to allow for suggestions to be listed below.
… of input element in Timelion.
- Move event listeners from container element to the transcluded input. - Throw error if transcluded element isn't available.
- Use Angular directives to handle focus, blur, keydown, and keyup events. - Also move getCaretOffset and setCaretOffset into the directive definition. - Hide suggestions when the directive loses focuses. - Show suggestions when the directive gains focus. - Preserve focus when the user clicks a suggestion.
…it won't overlap with graphs when focused.
edd607d
to
b87eabe
Compare
- Make suggestions popover charts instead of pushing the down. - Align controls to top of expression input if the textarea is resized to be tall.- Tweak interval styles to look nice.
@snide Thoughts on the changes to the UI? |
jenkins test 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.
seems this PR contains 2 approaches, where the first one is later thrown away and replaced by the second approach. This makes reviewing this much harder than it should be. Could you rebase this and throw away the commits that are no longer relevant ?
@@ -91,7 +91,7 @@ function_name | |||
= first:[a-zA-Z]+ rest:[.a-zA-Z0-9_-]* { return first.join('') + rest.join('') } | |||
|
|||
function "function" | |||
= space? '.' name:function_name space? '(' space? arg_list:arg_list? space? ')' { |
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 don't really get it ... how does this solve 'hitting enter now submits the query without adding a newline' ?
@@ -70,6 +71,7 @@ | |||
white-space: nowrap; /* 4 */ | |||
overflow: hidden; /* 4 */ | |||
text-overflow: ellipsis; /* 4 */ | |||
resize: none; /* 5 */ |
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.
what other text areas does this affect ?
@@ -23,7 +23,6 @@ const app = require('ui/modules').get('apps/timelion', []); | |||
|
|||
require('plugins/timelion/services/saved_sheets'); | |||
require('plugins/timelion/services/_saved_sheet'); | |||
import './directives/timelion_model'; |
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.
is this is something you added previously in this PR ?
Per @ppisljar's request I'm going to clean up the history for easier review. But I'd like to keep this PR as a reference for future contenteditable work. So I'm closing this PR and I'll open a new one with the clean history in its place. |
Addresses #8881 and #10556