You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the Global Header project (Kibana meta issue), Phase 3 includes the addition of the Deployment switcher UI. This feature will allow users to quickly navigate between and (to a degree) manage Cloud deployments.
As I understand it, the EUI solution is still TBD - whether it's a new component or documented pattern.
🚧Reason for WIP label
There's a fair amount of backend work yet to be completed by Cloud that will support this feature in addition to the work for the new stacked global header design itself. For those reasons, this particular feature is towards the tail end of the overall effort. Relatedly, this feature is likely the least settled in terms of UI and functionality, so consider these mockups (and the lack of detailed requirements) in that light.
Looking at this close, it seems that it is just a simple EuiBadge with a custom hex passed. The hex could be pulled from the JSON in the consuming applications like so:
importthemefrom'@elastic/eui/dist/eui_theme_light.json';<EuiBadgecolor={theme.euiColorDarkestShade}onClick={()=>{}}iconType="arrowDown"iconSide="right">
Production logs
</EuiBadge>
@cchaos Recalling my original impetus for the question... EUI will be providing a pattern for the search 'dropdown', could it also provide a pattern for the deployment switcher 'modal' as seen in the description above? These feel like similar situations.
We may want to start thinking about how we "section off" these patterns as a way to explain that these are patterns we need for consistency in our platforms but that they're also just simply that. I worry that exposing so much of that to our non-Elasticians could either cause confusion or a sense that we need to keep it up to date.
The main mechanics will be in the integration of whatever the API is and that will be on the app engineers to vision and maintain. It would be a round-about circle for us to know their API, supply it to the pattern, then export the pattern back to the consuming app.
Having a logical, easy-to-find, place for these things would be key and we could utilize CodeSandbox for the code parts that anyone could update and pass on the changes.
^^ I agree. I don't think the pattern for this part belongs in EUI. It's just a grouping of existing components and is very likely to change when we do the implementation. I don't think we want to get into a scenario where we have to update patterns in EUI because downstream decisions have been made in the product, especially when none of the actual changes need to happen in the components themselves. Normally, I'm all for heavy documentation, but when we're only documenting a single usage (rather than a variety of acceptable usages) it feels a little too much like copy/paste maintenance between two sources.
Activity
cchaos commentedon May 20, 2020
Looking at this close, it seems that it is just a simple EuiBadge with a custom hex passed. The hex could be pulled from the JSON in the consuming applications like so:
ryankeairns commentedon Jun 5, 2020
and the resulting modal is populated with standard inputs, buttons, and a tables... correct?
cchaos commentedon Jun 5, 2020
Not sure who you're asking, but from my view, yes it's all just a combination of other existing EUI components.
ryankeairns commentedon Jun 8, 2020
@cchaos Recalling my original impetus for the question... EUI will be providing a pattern for the search 'dropdown', could it also provide a pattern for the deployment switcher 'modal' as seen in the description above? These feel like similar situations.
cchaos commentedon Jun 8, 2020
We may want to start thinking about how we "section off" these patterns as a way to explain that these are patterns we need for consistency in our platforms but that they're also just simply that. I worry that exposing so much of that to our non-Elasticians could either cause confusion or a sense that we need to keep it up to date.
The main mechanics will be in the integration of whatever the API is and that will be on the app engineers to vision and maintain. It would be a round-about circle for us to know their API, supply it to the pattern, then export the pattern back to the consuming app.
Having a logical, easy-to-find, place for these things would be key and we could utilize CodeSandbox for the code parts that anyone could update and pass on the changes.
snide commentedon Jun 8, 2020
^^ I agree. I don't think the pattern for this part belongs in EUI. It's just a grouping of existing components and is very likely to change when we do the implementation. I don't think we want to get into a scenario where we have to update patterns in EUI because downstream decisions have been made in the product, especially when none of the actual changes need to happen in the components themselves. Normally, I'm all for heavy documentation, but when we're only documenting a single usage (rather than a variety of acceptable usages) it feels a little too much like copy/paste maintenance between two sources.
ryankeairns commentedon Jun 8, 2020
+1 for carving these out. They're very useful but certainly don't feel like they should be made and maintained for the masses.