From 731d7b044d906b66ebc0deedd40eda8ee0936a05 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Wed, 14 Oct 2026 13:51:04 -0400 Subject: [PATCH] Webapp redesign phase 3: Drivers tab - One line per entry: position, model tokens, pack, OS, size and status chips; family, friendly name, osId, folder, zip state, Dell hint and the verbatim lint findings are in the row body. - Status chips compare the staged map with the saved one: New, Edited, Moved from #n, Removing, the worst current finding, and 'Clears on save' / 'Clears n' when the staged changes resolve this entry's findings. The toolbar and a sticky save bar show lint now and after. - Removing an entry is staged with Undo remove instead of deleting the row; Undo edit puts an edited entry back. - Reordering moved into the row menu (Move up / down / to position). The Move dialog shows the order after the move and re-lints the staged map with the move applied, listing any new errors before staging it. - An edit that changes the tokens but keeps the old friendly name is flagged in the row and in the review step. - Filters: Win11/Win10 with counts, 'Findings or unsaved', 'Zip problems' (missing, trap and case); a status key explains the chips. - _image_header.html: new header and underline tabs for every image tab; the shared review modal and diff use the design tokens. --- webapp/templates/_image_header.html | 80 +-- webapp/templates/image_drivers.html | 912 ++++++++++++++++------------ 2 files changed, 568 insertions(+), 424 deletions(-) diff --git a/webapp/templates/_image_header.html b/webapp/templates/_image_header.html index 03f346f..0d53804 100644 --- a/webapp/templates/_image_header.html +++ b/webapp/templates/_image_header.html @@ -53,51 +53,41 @@ {% set _tab = active_tab if active_tab is defined and active_tab else image_tab_for_endpoint(request.endpoint) %} {% set _hdr = image_header_info(image_type) %}
-
GE Aerospace image
-

{{ _hdr.friendly_name }}

+
Image
+

{{ _hdr.friendly_name | replace('GE Aerospace ', '') }}

{{ image_type }} - {% if _hdr.os_label %}| {{ _hdr.os_label }}{% endif %} + {% if _hdr.os_label %}|{{ _hdr.os_label }}{% endif %} {% if header_subtitle is defined and header_subtitle %}|{{ header_subtitle }}{% endif %}
@@ -106,20 +96,16 @@ {% endif %}
-
{# Shared review step: filled by PxeImage.reviewAndSave (static/image-pages.js) #} @@ -139,10 +125,8 @@
diff --git a/webapp/templates/image_drivers.html b/webapp/templates/image_drivers.html index d94e755..a27630a 100644 --- a/webapp/templates/image_drivers.html +++ b/webapp/templates/image_drivers.html @@ -1,67 +1,82 @@ {% extends "base.html" %} +{% import '_ui.html' as ui %} {% block title %}{{ friendly_name }} - Drivers{% endblock %} {# Drivers tab: the whole HardwareDriver.json staged in the browser, saved in - one go through a review step (views/images_drivers.py). The table is drawn + one go through a review step (views/images_drivers.py). The list is drawn by the script at the bottom from #drvData; the server re-lints the staged - map after every edit (/drivers/check). #} + map after every edit (/drivers/check). One line per entry; the rest of the + entry, its findings and what the staged changes clear are in the row body. #} {% block extra_head %}