From 7955e0e5171689842647f93b65b9aaf3e145d7c2 Mon Sep 17 00:00:00 2001 From: AdrianoDev Date: Sat, 25 Apr 2026 14:06:22 +0200 Subject: [PATCH] =?UTF-8?q?refactor(themes):=20rinomina=20tielogic-devnote?= =?UTF-8?q?s.css=20=E2=86=92=20tielogic.css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il nome "devnotes" era fuorviante: il theme è unico e copre sia i report tecnici stile DEVNOTES (template "report-analisi") sia le offerte economiche stile docx Tielogic (template "offerta"). Le classi sono partizionate per uso ma vivono nello stesso file. - themes/tielogic.css: header esteso con descrizione delle famiglie di classi (status-card+badge per report, table.financial per offerte, cover+acceptance comuni) - templates_seed/{offerta,report-analisi}/template.md: aggiornato il riferimento `stylesheet:` nel frontmatter - README: chiarito che themes/ contiene un theme unico Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 4 ++-- .../mcp-docugen/templates_seed/offerta/template.md | 2 +- .../templates_seed/report-analisi/template.md | 2 +- themes/{tielogic-devnotes.css => tielogic.css} | 14 +++++++++++++- 4 files changed, 17 insertions(+), 5 deletions(-) rename themes/{tielogic-devnotes.css => tielogic.css} (91%) diff --git a/README.md b/README.md index 41f1739..e4dada7 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ ArcaSuite/ ├── secrets/ # chiavi, token (gitignored) ├── docker/ # base.Dockerfile condiviso multi-stage ├── gateway/ # Caddy reverse proxy (Caddyfile) -├── themes/ # CSS condivisi (Tielogic DEVNOTES per md-to-pdf) +├── themes/ # CSS condivisi (theme Tielogic unico per md-to-pdf, copre report e offerte) ├── docker-compose.yml # stack completo (gateway + servizi MCP) ├── pyproject.toml # workspace uv + ruff + pytest root ├── .env.example # config root stack @@ -88,7 +88,7 @@ Template attualmente disponibili: Per propagare modifiche al template versionato su un'installazione esistente: usare il tool MCP `template_update`, oppure rimuovere il template dal volume e fare restart del container. -Conversione Markdown→PDF (in attesa di `mcp-convert`): `md-to-pdf .md` con il CSS `themes/tielogic-devnotes.css` referenziato dal frontmatter dei template. +Conversione Markdown→PDF (in attesa di `mcp-convert`): `md-to-pdf .md` con il CSS `themes/tielogic.css` referenziato dal frontmatter dei template. ## Remote diff --git a/services/mcp-docugen/templates_seed/offerta/template.md b/services/mcp-docugen/templates_seed/offerta/template.md index 9ce4f34..33f4427 100644 --- a/services/mcp-docugen/templates_seed/offerta/template.md +++ b/services/mcp-docugen/templates_seed/offerta/template.md @@ -39,7 +39,7 @@ Italiano formale, terza persona impersonale, tono professionale ma asciutto. Nie ``` --- -stylesheet: /home/adriano/Documenti/Git_XYZ/ArcaSuite/themes/tielogic-devnotes.css +stylesheet: /home/adriano/Documenti/Git_XYZ/ArcaSuite/themes/tielogic.css pdf_options: format: A4 margin: diff --git a/services/mcp-docugen/templates_seed/report-analisi/template.md b/services/mcp-docugen/templates_seed/report-analisi/template.md index c02e50f..ff69030 100644 --- a/services/mcp-docugen/templates_seed/report-analisi/template.md +++ b/services/mcp-docugen/templates_seed/report-analisi/template.md @@ -51,7 +51,7 @@ Il documento DEVE iniziare con questo YAML frontmatter compatibile `md-to-pdf` ( ``` --- -stylesheet: /home/adriano/Documenti/Git_XYZ/ArcaSuite/themes/tielogic-devnotes.css +stylesheet: /home/adriano/Documenti/Git_XYZ/ArcaSuite/themes/tielogic.css pdf_options: format: A4 margin: diff --git a/themes/tielogic-devnotes.css b/themes/tielogic.css similarity index 91% rename from themes/tielogic-devnotes.css rename to themes/tielogic.css index 8db10e6..0d5d8a6 100644 --- a/themes/tielogic-devnotes.css +++ b/themes/tielogic.css @@ -1,4 +1,16 @@ -/* Tielogic — A4 portrait theme (cover bianca stile offerta + DEVNOTES interno) */ +/* Tielogic — A4 portrait theme (unico) + * + * Copre due famiglie di documento con la stessa identità visiva: + * 1. Report tecnico stile DEVNOTES (template "report-analisi") + * classi: .status-card, .badge-{ok,parziale,drift,fail}, blockquote + * 2. Offerta economica stile docx Tielogic (template "offerta") + * classi: table.financial, tr.total-row, td.num + * + * Classi comuni: .cover (logo TIELOGIC + box FORNITORE/CLIENTE), + * .acceptance + .signature-grid (firme), badge generici impatto/verdetto. + * + * Riferito dal frontmatter dei template via `stylesheet:` (md-to-pdf). + */ @page { size: A4 portrait;