feat: remove obsolete glass configurations, add title import functionality

- Deleted the `vetro.json` file containing glass configurations.
- Introduced `ImportaTitoliAction` to facilitate importing model titles from Excel.
- Created `TitoliModelliImporter` for handling title import logic and updating existing models.
- Updated `SistemaResource` to include the new title import action.
- Modified `ConfigurazioneModello` to adjust the model name retrieval logic.
- Changed `ListinoImporter` to make the alias constant public.
- Added tests for title import functionality, ensuring correct updates and creation of new models.
This commit is contained in:
2026-10-23 11:15:28 +02:00
parent 139b1690ff
commit 0f0764367f
163 changed files with 284 additions and 19716 deletions
@@ -35,7 +35,7 @@ class ConfigurazioneModello
: collect();
return [
'nome' => $modello->titolo ?: ($modello->descrizione ?: $modello->nome),
'nome' => $modello->descrizione ?: ($modello->titolo ?: $modello->nome),
'form' => $this->form($modello, $interne->isNotEmpty(), $esterne->isNotEmpty(), $maniglie->isNotEmpty(), $vetri->isNotEmpty()),
'finiture' => $finiture->map($this->finitura(...))->values(),
'finiture_interne' => $interne,
@@ -99,7 +99,7 @@ class ConfigurazioneModello
}
return [
'nome' => $modello->titolo ?: ($modello->descrizione ?: $modello->nome),
'nome' => $modello->descrizione ?: ($modello->titolo ?: $modello->nome),
'radios' => (object) $radios,
'select' => (object) $select,
// Pulsanti selezionabili insieme (es. profili extra), anche nessuno.