Commit Graph
948 Commits
Author SHA1 Message Date
Jash Ambaliya bcc175a559 fix: ZM_AUTH_HASH_TTL of 0 means 2 hours on the web side, as it does in zms and zmu refs #8366 (#8367) 2026-11-26 17:56:55 -05:00
Jash Ambaliya cd9fa3171f fix: API groups index, view and associations hide groups the user cannot view refs #7512 (#7513) 2026-11-26 17:55:58 -05:00
Harsh Singh 551e8c7140 fix: a failed AI dataset, class or model save shows its error on the options page (#7266) 2026-11-26 17:48:44 -05:00
Jash Ambaliya ddec4c32d2 feat: offer to clone the zones when cloning a monitor refs #2906 (#6666) 2026-11-26 17:47:56 -05:00
Harsh Singh d1ff6bf234 fix: API group add links monitors given as a MonitorIds array (#8096) 2026-11-26 08:57:34 -05:00
Harsh Singh e91f658118 fix: API storage add requires a Name and Path and edit refuses blank ones (#8351) 2026-11-26 08:56:10 -05:00
Harsh Singh 4ff7afc61b fix: filter view takes the email server as text so a host name no longer blocks saving (#8355) 2026-11-26 08:54:37 -05:00
Harsh Singh 3422c6540e fix: API filters refuse a list given to LIKE, REGEXP and comparison operators instead of a 500 (#8084) 2026-11-26 08:51:14 -05:00
Harsh Singh 59c32b78e5 fix: a malformed JSON string no longer raises an undefined variable warning in checkJsonError (#8126) 2026-11-26 08:50:56 -05:00
Harsh Singh b8a31cff94 fix: console Source column shows the file of a File or cURL monitor instead of Monitor N (#8104) 2026-11-26 08:49:43 -05:00
Harsh Singh 296c6c6af6 fix: API saves refuse a datetime with an hour, minute or second out of range (#8106) 2026-11-26 08:49:12 -05:00
Harsh Singh 799df89af9 fix: a missing conf.d folder no longer raises an undefined variable warning in loadConfigFiles (#8122) 2026-11-26 08:48:57 -05:00
Harsh Singh 3ca22ce72b fix: API server add requires a Name and edit refuses a blank one (#8349) 2026-11-26 08:48:20 -05:00
Jash Ambaliya 9459d91fa0 feat: API can generate an event video refs #8265 (#8266) 2026-11-26 08:47:45 -05:00
Harsh Singh 343f50bdc8 fix: reports list ignores an array offset or limit instead of raising a deprecation (#8262) 2026-11-26 08:41:43 -05:00
Harsh Singh 8d1189246f fix: require Name on API manufacturer add (#8329) 2026-11-26 08:41:07 -05:00
Harsh Singh d57c35e514 fix: API tag add and edit refuse a name that differs only in case from another tag (#8319) 2026-11-26 08:39:43 -05:00
Harsh Singh 3de2512ea4 fix: API state delete makes default active when it deletes the active state (#8313) 2026-11-26 08:31:29 -05:00
Harsh Singh 9debd14f40 fix: objdetect modal tests stub the Event lookup and validCardinal the modal now uses (#8335) 2026-11-26 08:29:51 -05:00
Harsh Singh 44bab3c1d3 fix: test_report_deleted_filter stubs Report::canEdit that the report view now calls (#8331) 2026-11-26 08:29:34 -05:00
Harsh Singh 9ed6586f00 fix: API role add requires a Name (#8347) 2026-11-26 08:09:25 -05:00
Harsh Singh c35c8a179a fix: API group add requires a Name (#8345) 2026-11-26 08:09:11 -05:00
Harsh Singh dbdc08e614 fix: user form keeps a saved home view the list does not offer instead of resetting it to default (#8357) 2026-11-26 08:08:55 -05:00
Harsh Singh 7a5ae8f3e2 fix: user and role views no longer index the group tree with null, deprecated in PHP 8.5 (#8359) 2026-11-26 08:08:14 -05:00
Harsh Singh 587f2bb9a3 fix: monitor form keeps a saved return location above preset 1 instead of resetting it to none (#8321) 2026-11-26 08:07:31 -05:00
Harsh Singh b31d641f03 fix: monitor form no longer offers negative default rates the unsigned column cannot store (#8323) 2026-11-26 08:07:15 -05:00
Harsh Singh 917d34437b fix: API config edit refuses a value that is not valid for the option's type (#8315) 2026-11-26 08:06:20 -05:00
477ad70d93 Added a beautiful and user-friendly image viewer GLightbox support to the Event page (#5352)
* Added GLightbox support to the Event page

* Fix arrow function syntax in skin.js

* Fix Eslint new-cap

* fix: snapshot and objdetect links on the event page

The class attribute ended up inside the href, so both links pointed at
?view=image&eid=N&fid=snapshot class= (404) and had no glightbox class.
Set the type and title on each link with data-type/data-title, which
GLightbox reads directly.

refs #5352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: set up GLightbox in event.js, keep page keys out of the viewer

The library loads only on the event page, so set it up there instead of
initPageGeneral(), scoped to #frames. Its titles go through innerHTML;
they stay fixed strings.

While the viewer is open (body.glightbox-open), the event page's keydown
handler returns: arrows moved to another event, Space toggled playback
and Delete opened the delete confirmation behind it.

refs #5352

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* We won’t complicate the markup; instead, we’ll leave all the processing to JS. (event.php)

* We continue to initialize GLightbox globally within initPageGeneral().

Prefer data-title, falling back to the link's title and then the nested image's title.
Strip HTML markup from the selected title before passing it to GLightbox.

* We continue to initialize GLightbox globally within initPageGeneral().

* The check for an open GLightbox instance has been moved to a separate function, which is also called within `handleKeydownGeneral(evt)`.

* - Use `escapeHTML(title)` instead of `strip_html(title)`.
- Safely initialize GLightbox, dispatch a readiness event on success, and log initialization errors.
- When opening a GLightbox window, pause playback if it was currently playing.

* Removed extra space

* Add isLightboxOpen mock to event-view-state test

* Refactor Filter class to include id property

---------

Co-authored-by: Nic Boet <nic@boet.cc>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:05:45 -05:00
Jash Ambaliya 00a1984092 fix: reports explain a refused save and disable New and Save for users who would be refused refs #8295 (#8296) 2026-11-25 20:42:30 -05:00
Jash Ambaliya d13098901f fix: API role edit and user preference add and edit refuse other request methods refs #8299 (#8300) 2026-11-25 20:41:44 -05:00
Jash Ambaliya 866400991a feat: monitor settings page links to the monitor's events refs #8281 (#8282) 2026-11-25 20:41:05 -05:00
Jash Ambaliya 9a38906486 fix: filter view shows the error page for a filter that does not exist instead of a blank new filter refs #8301 (#8302) 2026-11-25 20:39:46 -05:00
Jash Ambaliya 2649b3cf4d feat: API sends a PTZ command to a controllable monitor refs #8206 (#8207) 2026-11-25 20:38:53 -05:00
Jash Ambaliya 526638b867 feat: storage areas show their free space in the header and the Storage options tab refs #8220 (#8221) 2026-11-25 20:38:36 -05:00
Harsh Singh 4bc6d139f8 fix: API saves refuse a whole number outside the column's range (#8108) 2026-11-25 20:37:20 -05:00
Harsh Singh 4974ec75a6 fix: renaming a monitor removes its old name link when the storage path goes through a symlink (#8120) 2026-11-25 20:35:32 -05:00
Jash Ambaliya b5e8459d45 feat: filters can select events by their Videoed, Uploaded, Emailed, Messaged and Executed flags refs #8214 (#8215) 2026-11-25 20:34:02 -05:00
Jash Ambaliya 938ff65491 feat: filter Execute reports whether the filter ran, and zmfilter logs the match count at Info for one-off runs refs #8218 (#8219) 2026-11-25 20:32:12 -05:00
Jash Ambaliya c0e12c3ba2 feat: API creates a snapshot from monitors as the web snapshot action does refs #8208 (#8209) 2026-11-25 20:31:24 -05:00
Jash Ambaliya 5b42f076d0 fix: stream seek and max fps round the fraction to microseconds instead of truncating it (#7396)
* fix: stream seek and max fps round the fraction to microseconds instead of truncating it refs #7395

* fix: seek rounds only the fraction so whole seconds stay within a 32-bit int refs #7395
2026-11-25 20:23:30 -05:00
Harsh Singh 885c520334 fix: report chart plots no events when its filter was deleted (#8144) 2026-11-25 18:30:37 -05:00
Harsh Singh f74923c8d5 fix: saving a control capability that no longer exists reports it instead of inserting a new one (#8150) 2026-11-25 18:30:21 -05:00
Jash Ambaliya 8e60f1f3a8 feat: API archives or unarchives many events in one request refs #8202 (#8203) 2026-11-25 18:27:59 -05:00
Jash Ambaliya 6b9f89c1fc feat: API adds and removes a tag on events refs #8204 (#8205) 2026-11-25 18:27:40 -05:00
Jash Ambaliya ab22cbb9fa feat: a monitor daemon's log lines link to that monitor refs #8222 (#8223) 2026-11-25 18:27:23 -05:00
Jash Ambaliya 6fbbd206a5 fix: saving a user that no longer exists reports it instead of creating a new account refs #8297 (#8298) 2026-11-25 18:20:39 -05:00
Jash Ambaliya 86f360d8ff fix: add monitors table escapes the device and CSV values it lists refs #7626 (#7627) 2026-11-25 18:20:34 -05:00
Jash Ambaliya 639c03c104 fix: object detection modal uses only the digits of the event id refs #7478 (#7479) 2026-11-25 18:20:30 -05:00
Jash Ambaliya b5db3eb59c fix: options save skips config rows marked System refs #7472 (#7473) 2026-11-25 18:19:24 -05:00
Jash Ambaliya 5bc06eaa0e feat: snapshot thumbnails link to their events refs #8293 (#8294) 2026-11-25 18:19:08 -05:00