Adds new tile on the admin home page with system data. (#301)

* Adds new tile on the admin home page with system data. Also fixes the active users bug in the pie chart

* Fixes missing parentheses

* Updates user stats cache when signing in

* Reads active number of users from session provider

* Removes unused variable

* Small improvements

* Removes acl properties from system data websocket and performs initial push of data

* fix: remove acl fetch

---------

Co-authored-by: DecDuck <declanahofmeyr@gmail.com>
This commit is contained in:
Paco
2026-01-21 23:58:21 +00:00
committed by GitHub
parent 82cdc1e1aa
commit d8db5b5b85
18 changed files with 243 additions and 23 deletions
+5
View File
@@ -43,6 +43,8 @@ export const userACLDescriptions: ObjectFromList<typeof userACLs> = {
"emoji:read": "Read built in emojis",
"settings:read": "Read system settings.",
"system-data:listen":
"Connect to a websocket to receive system data updates.",
};
export const systemACLDescriptions: ObjectFromList<typeof systemACLs> = {
@@ -108,4 +110,7 @@ export const systemACLDescriptions: ObjectFromList<typeof systemACLs> = {
"depot:new": "Create a new download depot",
"depot:delete": "Remove a download depot",
"system-data:listen":
"Connect to a websocket to receive system data updates.",
};
+4
View File
@@ -37,6 +37,8 @@ export const userACLs = [
"news:read",
"settings:read",
"system-data:listen",
] as const;
const userACLPrefix = "user:";
@@ -100,6 +102,8 @@ export const systemACLs = [
"maintenance:read",
"settings:update",
"system-data:listen",
] as const;
const systemACLPrefix = "system:";