Add display type to notifications to allow snackbar to be shown. #1493
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#1493
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "issue-1488-snackbars-notifications"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes issue #1488, I've searched on the entire codebase to check if there is any place where
doNotify
was being called withoutdisplayType
property(thanks @tzarebczan, your comment helped a lot! ).@seanyesmunt I wonder if we should add a default
displayType
(ex:["snackbars"]
) in case someone forgets to add it while calling the functiondoNotify
, anyway currently I've not added any default and just fixed the issue reported on #1488This issue on #1488 :
Was also related to the notifications being queued but not dispatched because the
displayType
was not set, I could reproduce and tested the fix.Thanks again for the quick response and resolution @dan1d ! I'll let @seanyesmunt comment on the defaulting scenario.
Thanks Dan. I think a default could work, but since everything is finally moved over, we should be able to check if new doNotify contain it in future PRs. But it's still something to think about!
Rather than a default would it make more sense to just error out or except if the expected/required value is not provided?
That's pobably a better solution
On Fri, May 18, 2018, 2:48 PM Jeremy Kauffman notifications@github.com
wrote: