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

[Serverless][DataUsage] UX updates from demo feedback #201638

Merged

Conversation

ashokaditya
Copy link
Member

@ashokaditya ashokaditya commented Nov 25, 2024

Summary

Follow up of #200911

  • Treat date picker values as UTC date/time
  • Tooltip for date picker
  • Align filters (right aligned for all screens and responsive)
  • Disable refresh button if no metricTypes or dataStreams or invalid date range
  • Validate selected date/time range before sending requests

Screenshot 2024-11-25 at 17 25 43
Screenshot 2024-11-25 at 17 27 53
Screenshot 2024-11-26 at 15 45 56

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

Identify risks

Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.

@ashokaditya ashokaditya added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 ci:build-serverless-image backport:version Backport to applied version labels v8.18.0 labels Nov 25, 2024
@ashokaditya ashokaditya marked this pull request as ready for review November 25, 2024 17:31
@ashokaditya ashokaditya requested review from a team as code owners November 25, 2024 17:31
@ashokaditya ashokaditya force-pushed the task/data-usage-UX-updates-demo-feedback branch from 46f4aed to a4e3496 Compare November 26, 2024 10:50
@ashokaditya ashokaditya self-assigned this Nov 26, 2024
@neptunian
Copy link
Contributor

The screenshot looks confusing to me. It says to try searching with data streams but the user does have data streams selected? 3 in this case.

@ashokaditya
Copy link
Member Author

The screenshot looks confusing to me. It says to try searching with data streams but the user does have data streams selected? 3 in this case.

That's just on my local dev where I'm in a state with metrics API failed with 500 error cause I don't have correct certs/keys, which would not happen in prod. The screenshots are to show the filter alignment and responsiveness.

Although, I do think that in such a state we should show some other callout instead (and not a toast as it disappears) as at the moment we show the no data callout when no metrics data which also satisfies the above case. We can do that in a new PR.

Screenshot 2024-11-26 at 19 17 39

@ashokaditya ashokaditya enabled auto-merge (squash) November 27, 2024 20:31
@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 28, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 9c9041f
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-201638-9c9041fbb83d

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #13 / APM API tests fleet/input_only_package.spec.ts basic no archive APM package policy input only package when ingesting events using the scoped api key the events can be seen on the Service Inventory Page

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
dataUsage 240.2KB 241.4KB +1.2KB

History

cc @ashokaditya

@ashokaditya ashokaditya merged commit d0d33aa into elastic:main Nov 28, 2024
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12066665990

@ashokaditya ashokaditya deleted the task/data-usage-UX-updates-demo-feedback branch November 28, 2024 10:08
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 28, 2024
## Summary

Follow up of elastic#200911

- [x] Treat date picker values as UTC date/time
- [ ] Tooltip for date picker
- [x] Align filters (right aligned for all screens and responsive)
- [x] Disable `refresh` button if no `metricTypes` or `dataStreams` or
invalid date range
- [x] Validate selected date/time range before sending requests

![Screenshot 2024-11-25 at 17 25
43](https://github.com/user-attachments/assets/bc61ad73-2c85-4b40-9156-c5ccc87e0d7e)
![Screenshot 2024-11-25 at 17 27
53](https://github.com/user-attachments/assets/3aef26d1-6df2-4315-a939-0807c9da18c7)
![Screenshot 2024-11-26 at 15 45
56](https://github.com/user-attachments/assets/f7e1da72-4559-42e0-bee2-2e53709fd812)

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

(cherry picked from commit d0d33aa)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 28, 2024
…#202123)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Serverless][DataUsage] UX updates from demo feedback
(#201638)](#201638)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Ash","email":"1849116+ashokaditya@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-11-28T10:04:29Z","message":"[Serverless][DataUsage]
UX updates from demo feedback (#201638)\n\n## Summary\n\nFollow up of
https://github.com/elastic/kibana/pull/200911\n\n- [x] Treat date picker
values as UTC date/time\n- [ ] Tooltip for date picker\n- [x] Align
filters (right aligned for all screens and responsive)\n- [x] Disable
`refresh` button if no `metricTypes` or `dataStreams` or\ninvalid date
range\n- [x] Validate selected date/time range before sending
requests\n\n![Screenshot 2024-11-25 at 17
25\n43](https://github.com/user-attachments/assets/bc61ad73-2c85-4b40-9156-c5ccc87e0d7e)\n![Screenshot
2024-11-25 at 17
27\n53](https://github.com/user-attachments/assets/3aef26d1-6df2-4315-a939-0807c9da18c7)\n![Screenshot
2024-11-26 at 15
45\n56](https://github.com/user-attachments/assets/f7e1da72-4559-42e0-bee2-2e53709fd812)\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ]
...","sha":"d0d33aab38009fe19cb18bacd3bf1943b5a8043f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:build-serverless-image","backport:version","v8.18.0"],"title":"[Serverless][DataUsage]
UX updates from demo
feedback","number":201638,"url":"https://github.com/elastic/kibana/pull/201638","mergeCommit":{"message":"[Serverless][DataUsage]
UX updates from demo feedback (#201638)\n\n## Summary\n\nFollow up of
https://github.com/elastic/kibana/pull/200911\n\n- [x] Treat date picker
values as UTC date/time\n- [ ] Tooltip for date picker\n- [x] Align
filters (right aligned for all screens and responsive)\n- [x] Disable
`refresh` button if no `metricTypes` or `dataStreams` or\ninvalid date
range\n- [x] Validate selected date/time range before sending
requests\n\n![Screenshot 2024-11-25 at 17
25\n43](https://github.com/user-attachments/assets/bc61ad73-2c85-4b40-9156-c5ccc87e0d7e)\n![Screenshot
2024-11-25 at 17
27\n53](https://github.com/user-attachments/assets/3aef26d1-6df2-4315-a939-0807c9da18c7)\n![Screenshot
2024-11-26 at 15
45\n56](https://github.com/user-attachments/assets/f7e1da72-4559-42e0-bee2-2e53709fd812)\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ]
...","sha":"d0d33aab38009fe19cb18bacd3bf1943b5a8043f"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201638","number":201638,"mergeCommit":{"message":"[Serverless][DataUsage]
UX updates from demo feedback (#201638)\n\n## Summary\n\nFollow up of
https://github.com/elastic/kibana/pull/200911\n\n- [x] Treat date picker
values as UTC date/time\n- [ ] Tooltip for date picker\n- [x] Align
filters (right aligned for all screens and responsive)\n- [x] Disable
`refresh` button if no `metricTypes` or `dataStreams` or\ninvalid date
range\n- [x] Validate selected date/time range before sending
requests\n\n![Screenshot 2024-11-25 at 17
25\n43](https://github.com/user-attachments/assets/bc61ad73-2c85-4b40-9156-c5ccc87e0d7e)\n![Screenshot
2024-11-25 at 17
27\n53](https://github.com/user-attachments/assets/3aef26d1-6df2-4315-a939-0807c9da18c7)\n![Screenshot
2024-11-26 at 15
45\n56](https://github.com/user-attachments/assets/f7e1da72-4559-42e0-bee2-2e53709fd812)\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [ ] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ]
...","sha":"d0d33aab38009fe19cb18bacd3bf1943b5a8043f"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Ash <1849116+ashokaditya@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
## Summary

Follow up of elastic#200911

- [x] Treat date picker values as UTC date/time
- [ ] Tooltip for date picker
- [x] Align filters (right aligned for all screens and responsive)
- [x] Disable `refresh` button if no `metricTypes` or `dataStreams` or
invalid date range
- [x] Validate selected date/time range before sending requests

![Screenshot 2024-11-25 at 17 25
43](https://github.com/user-attachments/assets/bc61ad73-2c85-4b40-9156-c5ccc87e0d7e)
![Screenshot 2024-11-25 at 17 27
53](https://github.com/user-attachments/assets/3aef26d1-6df2-4315-a939-0807c9da18c7)
![Screenshot 2024-11-26 at 15 45
56](https://github.com/user-attachments/assets/f7e1da72-4559-42e0-bee2-2e53709fd812)

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels ci:build-serverless-image release_note:skip Skip the PR/issue when compiling release notes v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants