Skip to content

Add an indicator beside Cimo's submenu entry for rating #58

@bfintal

Description

@bfintal

Currently, we show a notification when we have saved the website >= 5mb worth of file optimization savings. This notification is only visible when visiting Cimo's admin page. The notification is also only computed from the frontend.

Add a "1" indicator beside the Cimo submenu item whenever the notification is going to be displayed. The indicator should not be present if the notification is already dismissed.

Note that we'll need to implement #57 first because currently the stats are only computed when the Cimo admin page is loaded, so outside it, the stats won't be computed yet and we will not know if we have already saved >= 5mb worth of savings.

It's important to note that we cannot simply call the function that computes the stats on admin page load because this will result in unnecessary database calls and computations just for the "1" indicator.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions