From 6ea94cca47e0d97e84c579a0642114c3c41975f2 Mon Sep 17 00:00:00 2001 From: Adriano Date: Sun, 8 Feb 2026 01:20:34 +0100 Subject: [PATCH] feat: per-task image/annotations, annotation editor toolbar, Tailwind compiled - Add per-task file upload with image preview in task editor - Add dedicated annotation editor page (task_drawing.html) with Fabric.js - Add color picker, stroke width, and line dash controls to annotation toolbar - Apply property changes to selected objects in real-time - Disable style controls until a drawing tool or object is selected - Remove zoom/pan from annotation toolbar (simplified UX) - Auto-switch to select mode after placing annotation elements - Show annotation overlay on task image previews (read-only canvas) - Add file proxy route in measure blueprint for task file access - Add file_path/file_type fields to TaskCreate/TaskUpdate Pydantic schemas - Replace Tailwind CDN with compiled CSS (tailwind.config.js with full shades) - Fix Alpine.js x-init crash: extract annotations JSON to - + + diff --git a/client/templates/maker/recipe_editor.html b/client/templates/maker/recipe_editor.html index 17dbc39..d8b05d7 100644 --- a/client/templates/maker/recipe_editor.html +++ b/client/templates/maker/recipe_editor.html @@ -10,7 +10,6 @@ {% block extra_head %} {% endblock %} @@ -131,7 +86,7 @@

{% else %}

- {{ _('Compila i dati della ricetta e carica il disegno tecnico') }} + {{ _('Compila i dati della ricetta') }}

{% endif %} @@ -281,7 +236,7 @@
@@ -290,151 +245,36 @@ - {{ _('Disegno Tecnico e Annotazioni') }} + {{ _('Immagine Anteprima') }}
- - + + + + + {{ _('Immagine caricata') }} +
- +
- - - - - - - - - - - - - - -
- - - - - -
- - - - - - - - -
- - -
- -
- -
- - +
- +
+ + + + + {{ _('Caricamento in corso...') }} +
- +
+ + {{ _('Carica Immagine o PDF') }} + + + {{ _('Sostituisci Immagine') }} + +

+ {{ _('Trascina qui oppure clicca. Formati: PNG, JPG, WebP, PDF (max 50MB)') }} +

+

+ {{ _('Usata come thumbnail nella lista ricette') }} +

+
+
@@ -549,7 +386,7 @@ {% endif %}
+ + + + + + {{ _('Torna ai Task') }} + +
+ + + + +
+ + + + + +
+ +
+ + + + +
+ + +
+
+ +
+ + + + + + + + + + + + + +
+ + + + +
+ + +
+ + {{ _('Colore') }}: + + + +
+ + + {{ _('Spessore') }}: + + + +
+ + + {{ _('Linea') }}: + +
+
+
+ + +
+
+
+ +
+
+
+ + +{% endblock %} + +{% block extra_js %} + + + + + +{% endblock %} diff --git a/client/templates/maker/task_editor.html b/client/templates/maker/task_editor.html index 655eee9..95e4da2 100644 --- a/client/templates/maker/task_editor.html +++ b/client/templates/maker/task_editor.html @@ -432,6 +432,59 @@
+ +
+

+ {{ _('Disegno Tecnico') }} +

+ + + + + + +
+