entdec / signum

Rails engine with replacement for flash messages, Signum allows for messages from background jobs.
MIT License
2 stars 0 forks source link

Some dotting the i's and crossing the t's needed #7

Closed tdegrunt closed 7 months ago

tdegrunt commented 8 months ago

We need to do some fine tunining:

Screenshot 2024-02-26 at 08 32 50 Screenshot 2024-02-26 at 08 59 19 Screenshot 2024-02-26 at 09 00 14 Screenshot 2024-02-26 at 09 05 06 Screenshot 2024-02-26 at 08 59 19

See: https://flowbite.com/docs/components/progress/

Perhaps best to make this a satis component?

Screenshot 2024-02-26 at 10 12 28

We'll do the following in a separate ticket:

sanderhelsloot commented 7 months ago

As shown below, displaying the msgs 'Importing...' and 'Completed...', do not correspond with the progress bar anymore while the Download button returns a 404.

Screenshot 2024-02-29 at 11 27 43

Screenshot 2024-02-29 at 11 27 53

Screenshot 2024-02-29 at 11 50 19

WaQasRPL commented 7 months ago

Apart from one point stating "Sticky notifications are not added to the screen after refresh, can this be fixed?", rest are all completed. this point require some core changes to the way turbo-rails is setup, which wont be possible currently. Already informed Tom about it.

PRs created

https://github.com/boxture/oms/pull/3839 https://github.com/entdec/signum/pull/8

we require to update the assets, for some reason cant find the label for this ticket

tdegrunt commented 7 months ago

Screenshot 2024-03-05 at 17 06 43

Possibly in different ticket, depending on the complexity:

Use @rails/request.js:

import { delete } from '@rails/request.js'
  markRead (event) {
    let url = this.ourUrl // get url from notification body? and call delete on that?

    post(url, {
      responseKind: 'turbo-stream'
    }).then(() => {
      // do other magic, the turbo stream should pick things up based on the 
    })
  }

destroy.turbo_stream.slim:

= turbo_stream.update "css-selector" do
  | slim here

= turbo_stream.update "css-selector" do
  | slim here
sanderhelsloot commented 7 months ago

As discussed with Tom, we would like to add the signum msgs, with the following icon's.

Screenshot 2024-03-06 at 10 11 44

Note:

WaQasRPL commented 7 months ago

PR created https://github.com/entdec/signum/pull/11

I have skipped the last point in the comment due to its complexity and the amount of changes would be required as we initiate stream from backend, not on demand.

tdegrunt commented 7 months ago

Bell is not showing as ringing when there are "unread"/"unclosed" notifications:

Screenshot 2024-03-06 at 16 26 26

The close icon has too little margin from the right side of the notification too as compared to:

Screenshot 2024-03-06 at 16 27 14

It should be a bit more "roomy" / "wider"

sanderhelsloot commented 7 months ago

I would not expect the information icon's in the cases below.

Screenshot 2024-03-07 at 13 33 22 Screenshot 2024-03-07 at 13 31 07

WaQasRPL commented 7 months ago

PRs created for the above two comments

https://github.com/boxture/server/pull/3914 https://github.com/entdec/signum/pull/13

sanderhelsloot commented 7 months ago

The signum messages are displayed properly as expected. Warning, success, failure and informational messages are displayed for the scenario's.

sanderhelsloot commented 7 months ago

Screenshot 2024-03-19 at 16 23 00