From 5670b83eab77f5af867139b80d06c31c2f1b4bc8 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Thu, 11 Dec 2025 17:35:36 +0100 Subject: [PATCH] fix: correct import job modal field names and improve UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix field name mismatch: use 'imported' and 'updated' instead of 'imported_count' and 'updated_count' to match API response schema - Add progress stats cards with color-coded metrics (imported, updated, errors, total) for better visual hierarchy - Replace grid layout with structured table for job details - Add Language field to display import language - Add error_message display with icon - Improve header with icon and subtitle - Better dark mode support with consistent styling - Add border and rounded corners to table container 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/templates/shared/macros/modals.html | 169 ++++++++++++++---------- 1 file changed, 102 insertions(+), 67 deletions(-) diff --git a/app/templates/shared/macros/modals.html b/app/templates/shared/macros/modals.html index 71e59d2a..5b544144 100644 --- a/app/templates/shared/macros/modals.html +++ b/app/templates/shared/macros/modals.html @@ -492,7 +492,8 @@ Required Alpine.js state: - showJobModal: boolean - - selectedJob: object with job data + - selectedJob: object with job data (fields: id, vendor_id, marketplace, status, source_url, + imported, updated, error_count, total_processed, started_at, completed_at, language) - closeJobModal(): function to close and clear - getVendorName(id): function to resolve vendor name - formatDate(date): function to format dates @@ -517,93 +518,127 @@ x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0 transform translate-y-1/2"> {# Modal Header #} -
-

- Import Job Details -

-
{# Modal Content #} -
-
-
-

Job ID

-

+
+ {# Status Badge #} +
+ Status + + +
+ + {# Progress Stats Cards #} +
+
+

+

Imported

-
-

Vendor

-

+
+

+

Updated

-
-

Marketplace

-

+
+

+

Errors

-
-

Status

- - +
+

+

Total

-
-

Source URL

-

+
+ + {# Details Table #} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + {% if show_created_by %} + + + + + {% endif %} + +
Vendor
Marketplace
Language + +
Source URL + +
Started At
Completed At
Created By
+
+ + {# Error Message #} +
+
+ +
+

Error Message

+

+
-
-

Imported

-

-
-
-

Updated

-

-
-
-

Errors

-

-
-
-

Total Processed

-

-
-
-

Started At

-

-
-
-

Completed At

-

-
- {% if show_created_by %} -
-

Created By

-

-
- {% endif %}
{# Error Details #} -
+

Error Details

-
-

+                
+

                 
{# Modal Footer #} -
+