From 69057034926506126821b533e1b2f3f23a0222cf Mon Sep 17 00:00:00 2001 From: Konrad du Plessis Date: Thu, 23 Apr 2026 19:13:10 +0200 Subject: [PATCH] feat(adjustments): Team -> Workers cross-filter in the popover JS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When Team(s) are selected via the Teams popover, the Workers popover now only shows workers who belong to at least one of those teams. URL-selected workers stay visible regardless (so the user can see and untick them). Backend adds one context key: team_worker_pairs_json — raw Python list of {team_id, worker_id} dicts from Team.workers.through; template renders via |json_script (safe, no double-encoding). Frontend reads the JSON once, builds a team_id -> Set(worker_id) index, and on every Workers-popover open (and on Teams-popover OK) hides rows whose worker is out-of-team. display:none on the