Commit Graph
2 Commits
Author SHA1 Message Date
Isaac ConnorandClaude Opus 4.8 cccb72c82a Merge pull request #6143 from pliablepixels/zone-test-upstream
feat: try zone settings on a past event from the zone editor

Conflicts resolved against current master:
- db/zm_update: master's 1.39.53 (MonitorPresets ControlId fix) kept; the PR's
  Zones.ObjectCoords migration renumbered to db/zm_update-1.39.54.sql and
  version.txt bumped to 1.39.54 (1.39.53 was already taken on master).
- src/zm_zone.cpp: kept the PR's Zone::LoadRow extraction, but its per-row
  threshold conversion now uses master's RasterArea()/PercentToPixels() instead
  of the PR's stale polygon.Area() math, so runtime zone thresholds are
  unchanged from master.
- tests/CMakeLists.txt: union of master's zm_zone_percent/zm_zone_scoring and
  the PR's zm_zone_load_row.
- tests/zm_zone_load_row.cpp: percent-coords expectation updated to the
  RasterArea/PercentToPixels conversion it now exercises.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 08:50:59 -05:00
Pliable PixelsandClaude Opus 5.5 57a89fc3c5 test: cover Zone::LoadRow and the zone diagnostics refs #6140
LoadRow is checked against kLoadColumns' order, converts percent
thresholds to pixels from the polygon's area for percent coords, keeps
pixel thresholds for pixel coords, loads an inactive row and skips a
polygon it cannot parse. CheckAlarms is checked to record the alarmed,
filtered and largest blob boxes, and ResetStats to clear them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:20:52 -05:00