sahana / WACOP

Washington State Common Operating Picture
0 stars 0 forks source link

Notifications #4

Open flavour opened 7 years ago

flavour commented 7 years ago

Notifications of Status changes, etc should be visible in the Updates section for that resource. They should be styled differently (with no Edit/Bookmarks/Tags), so need differentiating with a different 'type' This can be called 'System' or 'Change Log' This type should be removed from user-visible selection options

dhornbein commented 7 years ago

Assuming that these items are going to appear in data lists as list items you can use the .status-bar structure to build them:

<li class='dl-item change-log'>
  <ul class='status-bar-left'>
    <li class='item primary datetime'>Nov 26, 2016 @ 11:23</li>
    <li class='item'>Incident status changed from open to closed</li>
  </ul>
</li>

If it's challenging to add a special class to the li then change it to <div class='change-log'> and nest it within the li.

The use of .change-log class name is not required, if you have a better naming convention please use it.

For your information, we can achieve this by including the status-bar sass mixin to a declaration like so:

.change-log {
  @include status-bar;
}

I'll set up the sass once the feature is in place.