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

fix: updating dashboard - initial save button state is "disabled" #196137

Conversation

paulinashakirova
Copy link
Contributor

@paulinashakirova paulinashakirova commented Oct 14, 2024

Summary

This PR fixes [Dashboard] User can click on update dashboard even without changing anything issue.

Change

  • When the flyout is open, the initial state of the button is disabled.
  • When there is a change made, the disabled state is removed.

Screenshot 2024-10-14 at 15 21 28

Screenshot 2024-10-14 at 15 21 55

@paulinashakirova paulinashakirova marked this pull request as ready for review October 15, 2024 13:53
@paulinashakirova paulinashakirova requested a review from a team as a code owner October 15, 2024 13:53
@paulinashakirova paulinashakirova self-assigned this Oct 15, 2024
@paulinashakirova paulinashakirova added the Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) label Oct 15, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@paulinashakirova paulinashakirova added backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:fix labels Oct 15, 2024
@paulinashakirova paulinashakirova force-pushed the update-dashboard-intial-save-button-disabled branch from e08a3f6 to 906af8a Compare October 16, 2024 12:03
Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

works well, thank you!

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #10 / Title it disables the input when loading

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
dashboard 637.3KB 637.5KB +213.0B
eventAnnotationListing 226.7KB 226.9KB +213.0B
filesManagement 120.4KB 120.6KB +213.0B
graph 413.0KB 413.2KB +213.0B
maps 3.0MB 3.0MB +213.0B
visualizations 316.6KB 316.8KB +213.0B
total +1.2KB

History

cc @paulinashakirova

@paulinashakirova paulinashakirova enabled auto-merge (squash) October 17, 2024 07:56
@paulinashakirova paulinashakirova merged commit 0ead257 into elastic:main Oct 17, 2024
20 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 17, 2024
…astic#196137)

## Summary

This PR fixes [[Dashboard] User can click on update dashboard even
without changing
anything](elastic#187800) issue.

## Change

- When the flyout is open, the initial state of the button is
`disabled`.
- When there is a change made, the `disabled` state is removed.

![Screenshot 2024-10-14 at 15 21
28](https://github.com/user-attachments/assets/7f4a6234-959b-4779-bb4b-3f8bc221b3f2)

![Screenshot 2024-10-14 at 15 21
55](https://github.com/user-attachments/assets/24349b06-d6ee-4749-8981-d192eda8fd9d)

(cherry picked from commit 0ead257)
@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

@paulinashakirova paulinashakirova deleted the update-dashboard-intial-save-button-disabled branch October 17, 2024 11:08
kibanamachine added a commit that referenced this pull request Oct 17, 2024
…sabled" (#196137) (#196661)

# Backport

This will backport the following commits from `main` to `8.x`:
- [fix: updating dashboard - initial save button state is
"disabled"
(#196137)](#196137)

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

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

<!--BACKPORT [{"author":{"name":"Paulina
Shakirova","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-17T10:39:42Z","message":"fix:
updating dashboard - initial save button state is \"disabled\"
(#196137)\n\n## Summary\r\n\r\nThis PR fixes [[Dashboard] User can click
on update dashboard even\r\nwithout
changing\r\nanything](#187800)
issue.\r\n\r\n## Change\r\n\r\n- When the flyout is open, the initial
state of the button is\r\n`disabled`.\r\n- When there is a change made,
the `disabled` state is removed.\r\n\r\n![Screenshot 2024-10-14 at 15
21\r\n28](https://github.com/user-attachments/assets/7f4a6234-959b-4779-bb4b-3f8bc221b3f2)\r\n\r\n![Screenshot
2024-10-14 at 15
21\r\n55](https://github.com/user-attachments/assets/24349b06-d6ee-4749-8981-d192eda8fd9d)","sha":"0ead257ff4912218775a70484ac5754b4b3baa31","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:SharedUX","backport:prev-minor"],"title":"fix:
updating dashboard - initial save button state is
\"disabled\"","number":196137,"url":"https://github.com/elastic/kibana/pull/196137","mergeCommit":{"message":"fix:
updating dashboard - initial save button state is \"disabled\"
(#196137)\n\n## Summary\r\n\r\nThis PR fixes [[Dashboard] User can click
on update dashboard even\r\nwithout
changing\r\nanything](#187800)
issue.\r\n\r\n## Change\r\n\r\n- When the flyout is open, the initial
state of the button is\r\n`disabled`.\r\n- When there is a change made,
the `disabled` state is removed.\r\n\r\n![Screenshot 2024-10-14 at 15
21\r\n28](https://github.com/user-attachments/assets/7f4a6234-959b-4779-bb4b-3f8bc221b3f2)\r\n\r\n![Screenshot
2024-10-14 at 15
21\r\n55](https://github.com/user-attachments/assets/24349b06-d6ee-4749-8981-d192eda8fd9d)","sha":"0ead257ff4912218775a70484ac5754b4b3baa31"}},"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/196137","number":196137,"mergeCommit":{"message":"fix:
updating dashboard - initial save button state is \"disabled\"
(#196137)\n\n## Summary\r\n\r\nThis PR fixes [[Dashboard] User can click
on update dashboard even\r\nwithout
changing\r\nanything](#187800)
issue.\r\n\r\n## Change\r\n\r\n- When the flyout is open, the initial
state of the button is\r\n`disabled`.\r\n- When there is a change made,
the `disabled` state is removed.\r\n\r\n![Screenshot 2024-10-14 at 15
21\r\n28](https://github.com/user-attachments/assets/7f4a6234-959b-4779-bb4b-3f8bc221b3f2)\r\n\r\n![Screenshot
2024-10-14 at 15
21\r\n55](https://github.com/user-attachments/assets/24349b06-d6ee-4749-8981-d192eda8fd9d)","sha":"0ead257ff4912218775a70484ac5754b4b3baa31"}}]}]
BACKPORT-->

Co-authored-by: Paulina Shakirova <[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) release_note:fix Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] User can click on update dashboard even without changing anything
4 participants