From 9aa395854d07957f581ad81c679fdd65ba8ac785 Mon Sep 17 00:00:00 2001 From: mAi Date: Sat, 16 May 2026 11:59:08 +0200 Subject: [PATCH] feat(ui): requirements live in the device inspector + admin tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit m wants 'this device connects to ...' declared from the device itself, not a global sidebar list. - Device inspector gets a '+ Requirement' button under its Requirements section. Click pre-fills the modal with from_device_id = this device, so m only picks the other endpoint + cable type + must/nice. - Existing requirement rows in the device inspector remain clickable — they jump to the requirement's own inspector pane. - New 5th admin tab 'Requirements' carries the all-projects-wide list with Edit + Delete actions per row and a single '+ Add requirement' entry point (uses the same modal). Edit/Add close the admin modal so the requirement modal isn't stacked on top. - Left sidebar 'Requirements' section + '+ Requirement' button removed. The legend + tools sections reclaim the freed real estate. renderRequirements() and the renderRequirements call site in render() deleted (no consumer left). #btn-add-requirement boot wiring removed. --- web/static/index.html | 6 +- web/static/main.js | 131 +++++++++++++++++++++++++++++------------- 2 files changed, 91 insertions(+), 46 deletions(-) diff --git a/web/static/index.html b/web/static/index.html index e14ba7a..3b00c0e 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -34,11 +34,6 @@ -
- - - -