Move review actions into the platform, emit events on change

Still not seeing updates in the sidebar, however.
This commit is contained in:
Eli Ribble 2026-03-19 16:55:49 +00:00
parent 954a4330ee
commit ee61b6d24b
No known key found for this signature in database
6 changed files with 181 additions and 133 deletions

View file

@ -90,7 +90,7 @@
class="position-absolute translate-middle badge rounded-pill bg-primary"
>
<span
x-text="notification_counts.reviwe > 99 ? '99+' : notification_counts.review"
x-text="notification_counts.review > 99 ? '99+' : notification_counts.review"
></span>
<span class="visually-hidden">unread notifications</span>
</span>

View file

@ -16,7 +16,7 @@
<script>
const USER = {{ .User.AsJSON|json }};
SSEManager.subscribe("*", function (e) {
if (e.type == "created" && e.resource.startsWith("rmo:")) {
if (e.type != "heartbeat") {
updateUserState();
}
});