mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-13 19:50:54 +08:00
PR #172 made the summary length and the number of assets listed in an IM message configurable, but only through the API. The Notifications page now shows both next to the other global settings: Summary length (characters) notify_summary_max_runes 0-4000 Assets listed per finding notify_assets_max_shown 0-50 The values are read from GET /api/settings (they are not part of /notify/meta) and saved with the existing "Save global settings" PUT. Each field carries a help text stating that 0 means no truncation. A value that is not a whole number within the bounds marks the input invalid and blocks the save with a toast. The check runs before the request because the backend applies the fields of one PUT in order, so a 400 on a limit would leave the URL and digest interval already saved. An empty field is not submitted and keeps the stored value.