-
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
[Vis: Default editor] EUIficate string control #32881
[Vis: Default editor] EUIficate string control #32881
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Glanced at code and screenshot, but didn't load it in browser. LGTM. I'm guessing that the auto-suggest in the screenshot is from the browser and not something we implemented, right?
@cchaos yes, it's the auto-suggest from the browser. |
Refactoring
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I added some changes according to @timroes's feedback. The screenshot wasn't changed. I also checked accessibility and pseudo locale, it works fine. |
💚 Build Succeeded |
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.
Thank you for updating the test. LGTM
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.
Tested and seems to work, and Code LGTM overall. Since I did some significant parts in this architecture I wonder, if maybe someone else from the team (cc @lukeelmers or @chrisdavies) could give this another review, before we're merging this.
💚 Build Succeeded |
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.
After a guided tour from @timroes, I think that all makes sense now...
Or at least, makes as much sense as the legacy angular world is ever going to make 😉
Thanks for digging into this -- LGTM!
template: function ($el, attrs) { | ||
if (attrs.editorComponent) { | ||
// Why do we need the `ng-if` here? | ||
// Short answer: Preventing black magic |
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.
🔮
Pinging @elastic/kibana-app |
💚 Build Succeeded |
* EUIficate string control * Fix tests * Update unit test * Add data-test-subj for input * Remove unused props * Refactoring * Add value prop to be able to discard changes on form * Refactoring * Set ng-model * Remove unnecessary check and specify model name * Set full width to be consistent with other controls from the form
* EUIficate string control * Fix tests * Update unit test * Add data-test-subj for input * Remove unused props * Refactoring * Add value prop to be able to discard changes on form * Refactoring * Set ng-model * Remove unnecessary check and specify model name * Set full width to be consistent with other controls from the form
Summary
EUIfication of
string
control for aggregation parameter.This control is used for
Custom label
,Exclude
andInclude
labels onData
tab.Part of #30922
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Documentation was added for features that require explanation or tutorialsFor maintainers
[ ] This was checked for breaking API changes and was labeled appropriately[ ] This includes a feature addition or change that requires a release note and was labeled appropriately