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

[Workplace Search] Replaces success Flash Messages with Toasts #108937

Merged

Conversation

scottybollinger
Copy link
Contributor

@scottybollinger scottybollinger commented Aug 17, 2021

closes https://github.com/elastic/workplace-search-team/issues/1971

Summary

This PR replaces all usages of success flash messages, and queued success flash messages with Toasts, to align with Kibana guidelines and App Search.

2021-08-17_10-44-53 (1)

Checklist

@scottybollinger scottybollinger added release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 labels Aug 17, 2021
@scottybollinger scottybollinger requested a review from a team August 17, 2021 15:40
@@ -239,7 +238,8 @@ export const SourceLogic = kea<MakeLogicType<SourceValues, SourceActions>>({

try {
const response = await HttpLogic.values.http.delete(route);
setQueuedSuccessMessage(
KibanaLogic.values.navigateToUrl(getSourcesPath(SOURCES_PATH, isOrganization));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The redirect needs to occur before the toast is flashed. This wasn't working before with setQueuedSuccessMessage and should have been redirected before there as well. Verified this is working as expected with toasts

Copy link
Contributor

@yakhinvadim yakhinvadim left a comment

Choose a reason for hiding this comment

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

This looks great, thanks, Scotty! 💯

@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
enterpriseSearch 2.1MB 2.1MB -814.0B

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

@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 Aug 17, 2021
…) (#108962)

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
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:skip Skip the PR/issue when compiling release notes v7.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants