Space storage notifications for admins; admin Spaces shows limits; amber follows warn % (#801) #818
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat-801"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #801; implements
mockup-801-space-notifications.htmlandmockup-801b-admin-spaces-usage.htmlwith the decisions in the #801 comments.Server
internal/spacealerts: per space ID{level, at}, statestore-persisted.Observekeeps the crossing time while the level holds;""clears;Prunedrops uncapped or removed spaces.SpacesAPI.SpaceAlerts: for every capped space, from live usage: full when used ≥ limit; warn when used ≥ the "Warn people at" % (none when 0).NotifyAPI.derive(admins only):space-full/space-warnitems (file,used,limit,at= crossing time);prefKey→space-storage, added tonotifPrefKinds. No horizon cut, since it's current state. The existing 45 s per-user cache applies.main.go: opensspacealerts.jsonand wiresAlerts,WarnPercent(settings) andNotify.SpaceAlerts.Web
data-kquota / quotafull). A click setsspcFocusand opens Admin › Spaces.#bellmenu .bico svg{color:inherit}. A general.menu svgrule was painting every bell icon grey.spcSize, also the details-panel label) at 140px, right-aligned;spqMeterwith livequotaUsed;spcFocusrow is scrolled into view and highlighted for 4 s.spqLevel: amber from the warn % (90 % when empty).Docs:
spaces-quota.mdgains "Notifications for administrators".Tests: RED
50c49fe8→ green.go test ./...passes (alert store, levels at 80 % / 0 %, admin-only feed items + mute key). Web 309/309;node --checkpasses.