From 29e5481fc3a4e08cfac0703d1b283cf37bfa2b5f Mon Sep 17 00:00:00 2001 From: Vasyka Date: Mon, 10 Aug 2026 19:29:03 +0000 Subject: [PATCH] refactor(nav): collapse single-item groups + fix ungrouped CRM resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously nav had 12 groups, several with just 1 item. Now 8 clean groups, no orphans: - Anvelope (1 item) → merged into Service (Seturi anvelope) - Stoc & Finanțe (1 item) → merged into Depozit (Import factură Excel) - Tinichigerie (1 item) → merged into Service (Tinichigerie / Detailing) - Subcontractare (2 items) → merged into Service (Lucrări terți, Subcontractori) - Integrări moved from Marketing → Admin (it's a config concern, not a marketing feature) - ClientResource + VehicleResource were ungrouped → added to CRM Final groups: Admin(8) · Analiză(4) · CRM(5) · Depozit(10) · Finanțe(6) · Magazin(2) · Marketing(3) · Service(11) Co-Authored-By: Claude Opus 4.7 (1M context) --- app/Filament/Tenant/Pages/ExcelImportWizard.php | 2 +- app/Filament/Tenant/Pages/Integrations.php | 2 +- app/Filament/Tenant/Resources/BodyshopJobResource.php | 2 +- app/Filament/Tenant/Resources/ClientResource.php | 5 +++++ app/Filament/Tenant/Resources/SubcontractJobResource.php | 2 +- app/Filament/Tenant/Resources/SubcontractorResource.php | 2 +- app/Filament/Tenant/Resources/TireSetResource.php | 2 +- app/Filament/Tenant/Resources/VehicleResource.php | 5 +++++ 8 files changed, 16 insertions(+), 6 deletions(-) diff --git a/app/Filament/Tenant/Pages/ExcelImportWizard.php b/app/Filament/Tenant/Pages/ExcelImportWizard.php index 3033e91..9e6c40f 100644 --- a/app/Filament/Tenant/Pages/ExcelImportWizard.php +++ b/app/Filament/Tenant/Pages/ExcelImportWizard.php @@ -22,7 +22,7 @@ class ExcelImportWizard extends Page public static function getNavigationGroup(): ?string { - return __('nav.group.Stoc & Finanțe'); + return __('nav.group.Depozit'); } protected static ?int $navigationSort = 65; diff --git a/app/Filament/Tenant/Pages/Integrations.php b/app/Filament/Tenant/Pages/Integrations.php index 0179e6d..f49f598 100644 --- a/app/Filament/Tenant/Pages/Integrations.php +++ b/app/Filament/Tenant/Pages/Integrations.php @@ -17,7 +17,7 @@ class Integrations extends Page public static function getNavigationGroup(): ?string { - return __('nav.group.Marketing'); + return __('nav.group.Admin'); } protected static ?int $navigationSort = 63; diff --git a/app/Filament/Tenant/Resources/BodyshopJobResource.php b/app/Filament/Tenant/Resources/BodyshopJobResource.php index eeacda6..7376791 100644 --- a/app/Filament/Tenant/Resources/BodyshopJobResource.php +++ b/app/Filament/Tenant/Resources/BodyshopJobResource.php @@ -29,7 +29,7 @@ class BodyshopJobResource extends Resource public static function getNavigationGroup(): ?string { - return __('nav.group.Tinichigerie'); + return __('nav.group.Service'); } protected static ?int $navigationSort = 80; diff --git a/app/Filament/Tenant/Resources/ClientResource.php b/app/Filament/Tenant/Resources/ClientResource.php index 98f98d7..802778a 100644 --- a/app/Filament/Tenant/Resources/ClientResource.php +++ b/app/Filament/Tenant/Resources/ClientResource.php @@ -23,6 +23,11 @@ class ClientResource extends Resource return __('nav.label.Clienți'); } + public static function getNavigationGroup(): ?string + { + return __('nav.group.CRM'); + } + protected static ?string $modelLabel = null; public static function getModelLabel(): string diff --git a/app/Filament/Tenant/Resources/SubcontractJobResource.php b/app/Filament/Tenant/Resources/SubcontractJobResource.php index 49157ec..31aa532 100644 --- a/app/Filament/Tenant/Resources/SubcontractJobResource.php +++ b/app/Filament/Tenant/Resources/SubcontractJobResource.php @@ -27,7 +27,7 @@ class SubcontractJobResource extends Resource public static function getNavigationGroup(): ?string { - return __('nav.group.Subcontractare'); + return __('nav.group.Service'); } protected static ?int $navigationSort = 71; diff --git a/app/Filament/Tenant/Resources/SubcontractorResource.php b/app/Filament/Tenant/Resources/SubcontractorResource.php index f6fd623..c281877 100644 --- a/app/Filament/Tenant/Resources/SubcontractorResource.php +++ b/app/Filament/Tenant/Resources/SubcontractorResource.php @@ -25,7 +25,7 @@ class SubcontractorResource extends Resource public static function getNavigationGroup(): ?string { - return __('nav.group.Subcontractare'); + return __('nav.group.Service'); } protected static ?string $modelLabel = 'subcontractor'; diff --git a/app/Filament/Tenant/Resources/TireSetResource.php b/app/Filament/Tenant/Resources/TireSetResource.php index c82e1d6..00837e7 100644 --- a/app/Filament/Tenant/Resources/TireSetResource.php +++ b/app/Filament/Tenant/Resources/TireSetResource.php @@ -29,7 +29,7 @@ class TireSetResource extends Resource public static function getNavigationGroup(): ?string { - return __('nav.group.Anvelope'); + return __('nav.group.Service'); } protected static ?int $navigationSort = 60; diff --git a/app/Filament/Tenant/Resources/VehicleResource.php b/app/Filament/Tenant/Resources/VehicleResource.php index e5fb0f8..f5eba30 100644 --- a/app/Filament/Tenant/Resources/VehicleResource.php +++ b/app/Filament/Tenant/Resources/VehicleResource.php @@ -24,6 +24,11 @@ class VehicleResource extends Resource return __('nav.label.Automobile'); } + public static function getNavigationGroup(): ?string + { + return __('nav.group.CRM'); + } + protected static ?string $modelLabel = null; public static function getModelLabel(): string