You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write up Implementation Document to design a system for displaying short lived notifications in the top right of the current viewing window. Use the ContentWindowContext context and useContentWindowContext hook to implement this behavior. There is a branch already made that has a partially made solution for this, but it comes with limitations. Use this as inspiration if you want for solutions.
The idea is the top right window will contain all the notifications in a little stack of messages. If multiple notifications appear at the same time, just add to the top of the message stack. Message senders should be able to access the sendMessage/sendNotification function from the context value. The message sender can configure the message and the time it lives for.
Some Challenges to consider
When you add a message to a stack, you'll need to set a timeout which will remove that specific message out of the stack. They don't necessarily have to be removed in order. If the first message you send is going to live for 5 min but the second message you send only lives for 5 seconds, you'll have to remove from the middle of the stack.
You'll need a way to identify by some unique feature. Timestamp perhaps. If it's the timestamp, you cannot assume that two messages won't be sent at the same time. This is maybe 1 in a million but it can still happen.
The text was updated successfully, but these errors were encountered:
Overview
Write up Implementation Document to design a system for displaying short lived notifications in the top right of the current viewing window. Use the
ContentWindowContext
context anduseContentWindowContext
hook to implement this behavior. There is a branch already made that has a partially made solution for this, but it comes with limitations. Use this as inspiration if you want for solutions.The idea is the top right window will contain all the notifications in a little stack of messages. If multiple notifications appear at the same time, just add to the top of the message stack. Message senders should be able to access the sendMessage/sendNotification function from the context value. The message sender can configure the message and the time it lives for.
Some Challenges to consider
When you add a message to a stack, you'll need to set a timeout which will remove that specific message out of the stack. They don't necessarily have to be removed in order. If the first message you send is going to live for 5 min but the second message you send only lives for 5 seconds, you'll have to remove from the middle of the stack.
You'll need a way to identify by some unique feature. Timestamp perhaps. If it's the timestamp, you cannot assume that two messages won't be sent at the same time. This is maybe 1 in a million but it can still happen.
The text was updated successfully, but these errors were encountered: