Skip to content
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

[Uptime] Move uptime to new solution nav #100905

Merged
merged 10 commits into from
Jun 3, 2021

Conversation

shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented May 28, 2021

Summary

Fix: #99901

Move uptime to new solutions nav

The following considerations have been addressed

  • Accessibility has been considered, relevant aria tags and other accessibility features implemented
  • Telemetry has been added where relevant
  • Testing for expected behavior is in place
    • Automated tests exist to cover expected and edge case conditions
    • User acceptance testing has been carried out to ensure the feature functions as expected within the context of how it will be used
    • Any special/edge cases that need to be manually tested must be documented
    • Ensure the new layout works responsively (including down to small phone widths, where makes sense for the user flow, e.g. the error page when reacting to an alert)

image

Know Issues:

@shahzad31 shahzad31 changed the title move uptime to new nav [Uptime] Move uptime to new solution nav May 28, 2021
@shahzad31 shahzad31 self-assigned this May 28, 2021
@shahzad31 shahzad31 marked this pull request as ready for review May 28, 2021 15:30
@shahzad31 shahzad31 requested a review from a team as a code owner May 28, 2021 15:30
@shahzad31 shahzad31 added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label May 28, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@shahzad31
Copy link
Contributor Author

Note that title are wrapped in h1, this is a known issue and design team is working on a solution.

Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's really exciting seeing this design come to life!

Looking at the issue for this it seems we also wanted to add a new breadcrumb for the overview page. I think this difference is largely semantic, as both the Uptime and Monitoring overview breadcrumb will be disabled for that page.

Also, I am noticing that the Uptime breadcrumb should be disabled when we're on the overview page and today it isn't, so it links back to the current page. Sometimes this functionality is intentional for things like clearing filters, but our page doesn't do that either. I'd be fine fixing that as part of this change or creating a follow-up issue.

nav feedback1

Additionally, I noticed the focus moves to the newly-loaded page after navigating via the keyboard. I'd imagine this is controlled more by the nav component than the revisions in this PR but I did find it jarring. This new nav UI frames Observability as a more unified app and I didn't plan on focus moving from the universal nav after choosing a view. Curious to hear @dominiqueclarke's feedback on this.

@shahzad31
Copy link
Contributor Author

@justinkambic i have added the breadcrumb for Monitoring overview, just to be clear, i have kept uptime clickable, since i think it's natural to do that.

I didn't understand your focus shifting question though.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
uptime 1.1MB 1.1MB -3.0KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
uptime 19.5KB 20.0KB +595.0B
Unknown metric groups

References to deprecated APIs

id before after diff
canvas 29 25 -4
crossClusterReplication 8 6 -2
fleet 22 20 -2
globalSearch 4 2 -2
indexManagement 12 7 -5
infra 256 146 -110
lens 67 45 -22
licensing 18 15 -3
lists 239 236 -3
maps 286 208 -78
ml 121 115 -6
monitoring 109 56 -53
securitySolution 390 346 -44
stackAlerts 101 95 -6
total -340

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @shahzad31

Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. Regarding the focus issue I was talking about, I've included a new GIF below:

Jun-02-2021 16-00-17

When navigating this UI with my keyboard only, it's really hard for me to quickly switch between views and it feels as though it should be much easier. I'm not sure if this is an issue with the underlying nav API or with our app but it could improve.

@shahzad31
Copy link
Contributor Author

@justinkambic yes you are right, the tab order is weird. It's controlled by shared component. I will log an issue with EUI team to take a look at this.

@shahzad31
Copy link
Contributor Author

Code looks good. Regarding the focus issue I was talking about, I've included a new GIF below:

Jun-02-2021 16-00-17

When navigating this UI with my keyboard only, it's really hard for me to quickly switch between views and it feels as though it should be much easier. I'm not sure if this is an issue with the underlying nav API or with our app but it could improve.

@weltenwort @cchaos any ideas, how this keyboard nav can be improved?

@justinkambic
Copy link
Contributor

It's controlled by shared component.

That's what I figured, I don't see any need to hold this PR based on that.

Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@shahzad31 shahzad31 merged commit 2ea4d57 into elastic:master Jun 3, 2021
@shahzad31 shahzad31 deleted the uptime-new-nav branch June 3, 2021 13:19
@shahzad31 shahzad31 added the auto-backport Deprecated - use backport:version if exact versions are needed label Jun 3, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 3, 2021
* Expose options to customize the route matching

* Add more comments

* move uptime to new solution nav

* push

* update test

* add an extra breadcrumb

Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jun 3, 2021
* Expose options to customize the route matching

* Add more comments

* move uptime to new solution nav

* push

* update test

* add an extra breadcrumb

Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
@cchaos
Copy link
Contributor

cchaos commented Jun 3, 2021

Hey @shahzad31 , I know you just merged this, but I'm seeing something odd in the layout. It looks like there's padding around the whole template causing the side nav and panels not to attach to the window edges. Is this an artifact of the placement of the observability specific template or where the Kibana template is placed?

Image 2021-06-03 at 12 08 34 PM

As for the focus, neither the Kibana or EUI page templates do any forcing of focus states.

@shahzad31
Copy link
Contributor Author

Hey @shahzad31 , I know you just merged this, but I'm seeing something odd in the layout. It looks like there's padding around the whole template causing the side nav and panels not to attach to the window edges. Is this an artifact of the placement of the observability specific template or where the Kibana template is placed?

As for the focus, neither the Kibana or EUI page templates do any forcing of focus states.

@cchaos that's a good catch, i have removed that padding in this PR #101005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:enhancement Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime] Remove tabs navigation in place of the new solution navigation
6 participants