-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[uiSettings] Page reload toast should remain on screen longer #135950
Comments
Pinging @elastic/kibana-core (Team:Core) |
Hello! I'd like to take on this problem. Could you assign me to this issue? Also, I'm fairly new to open source contributions, so any advice/pointers would be welcome. Also, I've found the contribution guide and I'm currently working on getting everything set up. Does my version of Visual Studio have to be the exact type referenced in the guide? I've currently got 2022 installed. |
Sure, done.
The toast opening is performed here: kibana/src/plugins/advanced_settings/public/management_app/components/form/form.tsx Lines 189 to 193 in 3730dd0
The change is just about adding the @lukeelmers what would be a acceptable value here?
No, any recent version should be fine. |
Hm, ideally it would just stay up until dismissed, but since toasts don't provide that option (to my knowledge), maybe 30s is high enough? cc @LeeDr who originally reported this issue to me |
Not sure if this is the appropriate place to ask for help, but this is where I'm at so far with the issue: I've found the file needing to be modified and I've added the line of code that (I think) should resolve the issue. Let me know if I've botched it there. However, I'm in the process of trying to make a pull request for the change. I made the change on my main fork. I think I understand that I actually need to put this change on a branch from my fork, correct? And then I should be able to use my branch to create a pull request? Let me know if I've got any of that wrong. In the process of trying to do that, I've run into errors with Git. I'm trying to pull from my fork so that I can see locally the branch that I created remotely on GitHub. When I do the pull, this is what it comes back with:
Could someone advise on what I should do next? I appreciate your patience and the opportunity you're giving me to contribute. |
The correct practice is to create a dedicated branch for the PR on your fork yea. But you can also open a PR from your
Hum, not sure what you did exactly. The correct workflow is usually to create a FWIW my usual way of create a PR is the following:
This assume the
|
Can we use |
Pinging @elastic/appex-sharedux (Team:SharedUX) |
Hello @pgayvallet , I'm a first-time contributor to Kibana and I'm wondering if it's necessary to be assigned to this issue before tackling it. Considering that this is a quick fix, I believe it could expedite the process. Thanks! |
@Willie-The-Lord assigning is not a requirement, feel free to just open a PR flagged at closing the current issue and it should be fine. But if you prefer, I could also assign the issue to you, just tell me. |
Thanks @pgayvallet ! I've just opened a PR, ready for review. |
## Summary - Extend toast lifetime to `15s`. - Resolves #135950 ### Checklist Delete any items that are not applicable to this PR. - [ ] 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 - [ ] [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 - [ ] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [ ] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [ ] 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 renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [ ] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) Signed-off-by: Willie Hung <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
If a user changes an advanced setting that specifies
requiresPageReload: true
, a toast notification will pull up telling them to refresh the page:However, no specific
toastLifeTimeMs
is provided for the setting, so it falls back to thenotifications:lifetime:info
(default 5000ms).We should consider setting the lifetime for this toast to a higher value, since it feels like the type of thing that should be explicitly dismissed as it requires the user to take action.
The text was updated successfully, but these errors were encountered: