mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-25 01:10:54 +08:00
The panel had no way to scope it to one target. Companies exist as the ownership layer, but only the task form offered one, so a second engagement mixed into every list. Sidebar header, under the logo: a company picker that defaults to "All companies" and persists per browser. Every asset-backed view follows it — findings (all three views plus the asset tree and export), the dashboard's finding panels, the task list, the traffic list and the assets tabs. Server side the switch rides on the existing ownership column: findings and traffic take a company, and the assets list takes company_id on both the plain and the DSL path. Findings with no live asset anchor stay visible under their company, because they belong to no other one; the strict subtree filter would hide them from every view. Tests: TestFindingCompanyScopeFilter (own assets, another company, a company with none, a nonexistent id) and TestPageHostsAllowlist. Full ./db/ ./traffic/ ./server/ pass. Co-Authored-By: Claude Code <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BWbhPDnkSEFNzBXG4wDvTj