Skip to content

Conversation

@csachdeva83
Copy link

* Install howler package
* Add error.mp3 and success.mp3 files
* Add error,info,success,warning.mp3 sounds
* Create toast type and sound map
* Play sound in openToast method
* Enable & Disable Sound option add in home html
* Add enableSound key in interface IndividualConfig
* Default enableSound is false
@codecov
Copy link

codecov bot commented Feb 25, 2023

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 55.49%. Comparing base (efaf809) to head (e5325d9).
⚠️ Report is 12 commits behind head on master.

Files with missing lines Patch % Lines
src/app/home/home.component.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #978      +/-   ##
==========================================
+ Coverage   55.11%   55.49%   +0.37%     
==========================================
  Files          19       19              
  Lines         508      510       +2     
  Branches       88       89       +1     
==========================================
+ Hits          280      283       +3     
- Misses        216      217       +1     
+ Partials       12       10       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@csachdeva83
Copy link
Author

@scttcper Please review this PR and list out any changes you desire.

@scttcper
Copy link
Owner

its interesting, but i don't think it belongs as part of the toastr

@csachdeva83
Copy link
Author

its interesting, but i don't think it belongs as part of the toastr

Why so ?

tapToDismiss: true,
onActivateTick: false,
progressAnimation: 'decreasing',
enableSound: false,

Choose a reason for hiding this comment

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

Greaty PR, Hope it get's merged and we get to see this feature soon

src: ['assets/notification-sound/success.mp3'],
})],
['error', new Howl({
src: ['assets/notification-sound/error.mp3'],

Choose a reason for hiding this comment

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

Consider keeping asset paths in a config file or environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants