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

feat(core): updated notifications to react-toastify #9103

Merged
merged 2 commits into from
Apr 23, 2021

Conversation

ranihorev
Copy link
Contributor

API changes:

  • Removed the body option as it wasn't in use (verify that)
  • Added an options field for react toastify option

image

@caseyhebebrand
Copy link
Contributor

Curious what the reasoning is for adding react-toastify? For me the benefits seem neutral. We are cleaning up some lines of code, but also adding a new package.

Also, while you are in the Notifier, could you make it a functional component? The useObservable hook in deck is great for subscription lifecycles.

@ranihorev
Copy link
Contributor Author

ranihorev commented Apr 23, 2021 via email

@caseyhebebrand
Copy link
Contributor

The current notifications are hiding the new help menu on the bottom left. Chris also mentioned that it could be useful for some of his features.

Ok great. That makes sense, I am happy to hear it will be leveraged more. It sounds like the benefits outweigh the costs 👍🏼

I was trying to minimize the changes. If I need to make more substantial changes, I can remove this component completely as the subscription service is not needed anymore.

My opinion is that we should get rid of that if we know that the subscription service isn't needed to remove some tech debt.

@ranihorev
Copy link
Contributor Author

My opinion is that we should get rid of that if we know that the subscription service isn't needed to remove some tech debt.

Good call :)
I removed it. It's much simpler now

Copy link
Contributor

@caseyhebebrand caseyhebebrand left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for cleaning up the notifier service!

@ranihorev ranihorev added the ready to merge Reviewed and ready for merge label Apr 23, 2021
@mergify mergify bot merged commit 1a6ae75 into spinnaker:master Apr 23, 2021
vigneshm added a commit that referenced this pull request Apr 23, 2021
1a6ae75 feat(core): updated notifications to react-toastify (#9103)
a0056e2 chore(core): bumped date-fns version (#9101)
mergify bot pushed a commit that referenced this pull request Apr 23, 2021
1a6ae75 feat(core): updated notifications to react-toastify (#9103)
a0056e2 chore(core): bumped date-fns version (#9101)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Reviewed and ready for merge target-release/1.27
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants