-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Lens] Add IP support to Lens #46383
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
Conversation
💚 Build Succeeded |
flash1293
left a comment
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.
Code LGTM, didn't test locally
| const icons: Partial<Record<string, UnwrapArray<typeof ICON_TYPES>>> = { | ||
| boolean: 'invert', | ||
| date: 'calendar', | ||
| ip: 'compute', |
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.
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 definitely don't think it should be link. We use that more exclusively for actual URL's. compute sort of works, but I worry that it's only recognizable by those with more intimate knowledge of computer parts. I'd lean towards online because it's indicating there's an internet connection. Or if that really doesn't work, maybe storage, otherwise we'd have to create something new.
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.
+1 for a specific "IP" icon. I like storage second best till that's ready.
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.
note that with #46485 discover will use the same icons (for now in black, but coloring is already built in), there are a few more here, but I think it would make sense to have 1 shared component just for this icons. A specific IP icon would be welcome, but also the storage one is fine
| return Boolean( | ||
| newField && | ||
| newField.type === 'string' && | ||
| supportedTypes.has(newField.type) && |
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.
oops, thanks for taking care of that.
|
Pinging @elastic/kibana-app |
💚 Build Succeeded |


Adds support for IP fields to the Lens editor.