sorry-app / status-bar

Display your Sorry™ status updates on your website and helpdesk.
https://www.sorryapp.com/notifications/
Apache License 2.0
10 stars 4 forks source link

Include subject line in the displayed message. #45

Closed SirRawlins closed 6 years ago

SirRawlins commented 7 years ago

A customer has mentioned that it'd add some clarity if the plugin displayed the subject line of the notice along with the synopsis content, as without it the message can lack context and be a little confusing.

SirRawlins commented 7 years ago

The subject line is already available in the JSON package returned from the API request that the plugin makes, so it just needs adding to the DOM template i.e. <strong>{{update.subject}}</strong>.

https://github.com/sorry-app/status-bar/blob/master/src/javascripts/status-bar.js#L80

Handlebars should then pick this up and render the subject line. It'll also need a little bit of CSS styling, perhaps make the font a little stronger so it stands out.