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

Next: useUiNotification #5382

Merged
merged 13 commits into from
Jan 19, 2021
Merged

Next: useUiNotification #5382

merged 13 commits into from
Jan 19, 2021

Conversation

lukaszjedrasik
Copy link
Contributor

@lukaszjedrasik lukaszjedrasik commented Jan 7, 2021

Related Issues

closes #5363

Short Description and Why It's Useful

Screenshots of Visual Changes before/after (if There Are Any)

Nagranie.z.ekranu.2021-01-8.o.14.42.06.mp4
Nagranie.z.ekranu.2021-01-8.o.14.46.57.mp4

Which Environment This Relates To

Check your case. In case of any doubts please read about Release Cycle

  • Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
  • RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
  • Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

  • No upgrade steps required (100% backward compatibility and no breaking changes)
  • I've updated the Upgrade notes and Changelog on how to port existing Vue Storefront sites with this new feature

IMPORTANT NOTICE

  • Remember to update CHANGELOG.md with description of your change

Contribution and Currently Important Rules Acceptance

@lukaszjedrasik lukaszjedrasik added the Next Issues/bugs for Vue Storefront Next label Jan 7, 2021
@lukaszjedrasik lukaszjedrasik changed the title Next: Useui notification Next: useUiNotification Jan 7, 2021
@coveralls
Copy link

coveralls commented Jan 7, 2021

Pull Request Test Coverage Report for Build 469251453

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.8%) to 95.553%

Totals Coverage Status
Change from base Build 469148148: 0.8%
Covered Lines: 704
Relevant Lines: 730

💛 - Coveralls

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2021

💙 vsf-next-demo successfully deployed at https://b3613b123406e55fadc9f4beca2b23c69f06c524.vsf-next-demo.preview.storefrontcloud.io

@lukaszjedrasik
Copy link
Contributor Author

lukaszjedrasik commented Jan 11, 2021

@filrak

I have removed the remove function from public API and I decided to add id to the UiNotification interface.
Based on id we can remove a proper notification from the array. What do you think?

@lukaszjedrasik
Copy link
Contributor Author

Just like we talked about, I have removed remove function and added dismiss in each notification.


return {
send,
notifications: computed(() => state.notifications)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder...
Shouldn't we put here [...state.notifications]?
Currently, computed returns reference to the Heap. So probably it is still possible to modify an array via methods like push etc.

Wdyt @andrzejewsky @filrak ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

lets leave it like this

@filrak filrak merged commit 8769c2e into next Jan 19, 2021
@filrak filrak deleted the useui-notification branch January 19, 2021 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Next Issues/bugs for Vue Storefront Next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants