Altalogy / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[Mining] Monero / Tari block mined notifications #15

Open tarnas14 opened 2 years ago

tarnas14 commented 2 years ago

Blocked by: #188


image

  1. the above notifications should be shown as modals, with backdrop
  2. user interaction is needed for the notification to disappear (either "got it" button or backdrop click)
  3. if any other modal is currently open (e.g. settings), the notification should wait - once the current modal is closed, the new one appears after short delay (300~500ms ?), effectively making a stack of popups waiting for the user
  4. the same principle explained above should apply when there are multiple different mining notifications, so: if there are 3 blocks mined of the same type (XTR/XMR), the text should combine them "3 blocks were mined" etc. but if there are blocks of different type XTR & XMR, we should not cmbine them, they should stack as explained with modals)
  5. we should show a text OS notification about mined blocks, example notification:
    [Title] Tari Launchpad: Fantaritastic!
    [Body] You've just mined a Tari block!
tarnas14 commented 2 years ago

internal discussion:

  1. should they pop up like modals to take the whole screen and user attention?
  2. do they auto-close or is user interaction necessary (either "Got it" or clicking backdrop)?
  3. what if the user is currently in a modal (like settings) - do we obscure everything to show them that a block was mined?
  4. what if we mine multiple blocks in succession in a short time before user interacts with the previous notification - do they stack?
  5. do we show an OS notification about mined blocks?

~ answer in description

tarnas14 commented 2 years ago

@CjS77 @alex1307 what is the event that we should listen to for mining notifications?

CjS77 commented 2 years ago

Doesn't the design have pop-ups / notifications for whenever you mine a new block?

CjS77 commented 2 years ago

This is still to be written

CjS77 commented 2 years ago

https://github.com/Altalogy/tari/issues/155

tarnas14 commented 2 years ago

Doesn't the design have pop-ups / notifications for whenever you mine a new block?

yes, they're designed - included in the description, also figured out OS notifications

thanks for the backend issue

tarnas14 commented 2 years ago

preparing the frontend while backend is unblocking