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

[Console] Fix actions menu scrolling issue #200018

Merged

Conversation

sabarasaba
Copy link
Member

@sabarasaba sabarasaba commented Nov 13, 2024

Fixes: #197965

Summary

Make sure that the offset never goes into negative so that if a request is long enough, the actions menu remains anchored at the top of the editor.

@sabarasaba sabarasaba added Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Nov 13, 2024
@sabarasaba sabarasaba self-assigned this Nov 13, 2024
@sabarasaba sabarasaba marked this pull request as ready for review November 13, 2024 16:49
@sabarasaba sabarasaba requested a review from a team as a code owner November 13, 2024 16:49
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

It would be nice to see a unit test for the code that determines the line number where the action buttons are placed BUT I leave it up to you to decide if you want to this. Otherwise the code look good and works well.

@sabarasaba sabarasaba enabled auto-merge (squash) November 14, 2024 09:08
@sabarasaba
Copy link
Member Author

/ci

@sabarasaba
Copy link
Member Author

@elasticmachine merge upstream

@sabarasaba
Copy link
Member Author

@elasticmachine merge upstream

@sabarasaba sabarasaba merged commit 0ed8230 into elastic:main Nov 17, 2024
22 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@elasticmachine
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
console 205.6KB 205.6KB +11.0B

History

cc @sabarasaba

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 17, 2024
@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 17, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Console] Fix actions menu scrolling issue
(#200018)](#200018)

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

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

<!--BACKPORT [{"author":{"name":"Ignacio
Rivas","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-17T11:44:07Z","message":"[Console]
Fix actions menu scrolling issue
(#200018)","sha":"0ed82309e22a7fc8ac067c1dbf2c378735f86855","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana
Management","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Console]
Fix actions menu scrolling
issue","number":200018,"url":"https://github.com/elastic/kibana/pull/200018","mergeCommit":{"message":"[Console]
Fix actions menu scrolling issue
(#200018)","sha":"0ed82309e22a7fc8ac067c1dbf2c378735f86855"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200018","number":200018,"mergeCommit":{"message":"[Console]
Fix actions menu scrolling issue
(#200018)","sha":"0ed82309e22a7fc8ac067c1dbf2c378735f86855"}}]}]
BACKPORT-->

Co-authored-by: Ignacio Rivas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Console Dev Tools Console Feature release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dev Console] Make dev console send request button available while scrolling down
4 participants