Skip to content

[WIP] Global header: deployment switcher #3504

Closed

Description

@ryankeairns

Related to #3489

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.

Early mockups

Button in global header...

Screenshot 2020-05-19 16 24 30

...triggers menu popover/modal

Screenshot 2020-05-19 16 18 03

Activity

  1. cchaos commented on May 20, 2020

    @cchaos
    Contributor

    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:

    import theme from '@elastic/eui/dist/eui_theme_light.json';
    
    <EuiBadge
      color={theme.euiColorDarkestShade}
      onClick={() => {}}
      iconType="arrowDown"
      iconSide="right">
      Production logs
    </EuiBadge>

    Screen Shot 2020-05-20 at 09 29 21 AM

  2. ryankeairns commented on Jun 5, 2020

    @ryankeairns
    ContributorAuthor

    and the resulting modal is populated with standard inputs, buttons, and a tables... correct?

  3. cchaos commented on Jun 5, 2020

    @cchaos
    Contributor

    Not sure who you're asking, but from my view, yes it's all just a combination of other existing EUI components.

  4. ryankeairns commented on Jun 8, 2020

    @ryankeairns
    ContributorAuthor

    @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.

  5. cchaos commented on Jun 8, 2020

    @cchaos
    Contributor

    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.

  6. snide commented on Jun 8, 2020

    @snide
    Contributor

    ^^ 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.

  7. ryankeairns commented on Jun 8, 2020

    @ryankeairns
    ContributorAuthor

    +1 for carving these out. They're very useful but certainly don't feel like they should be made and maintained for the masses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions