refactor(nav): collapse single-item groups + fix ungrouped CRM resources
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) <noreply@anthropic.com>
This commit is contained in:
@@ -22,7 +22,7 @@ class ExcelImportWizard extends Page
|
|||||||
|
|
||||||
public static function getNavigationGroup(): ?string
|
public static function getNavigationGroup(): ?string
|
||||||
{
|
{
|
||||||
return __('nav.group.Stoc & Finanțe');
|
return __('nav.group.Depozit');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static ?int $navigationSort = 65;
|
protected static ?int $navigationSort = 65;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class Integrations extends Page
|
|||||||
|
|
||||||
public static function getNavigationGroup(): ?string
|
public static function getNavigationGroup(): ?string
|
||||||
{
|
{
|
||||||
return __('nav.group.Marketing');
|
return __('nav.group.Admin');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static ?int $navigationSort = 63;
|
protected static ?int $navigationSort = 63;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class BodyshopJobResource extends Resource
|
|||||||
|
|
||||||
public static function getNavigationGroup(): ?string
|
public static function getNavigationGroup(): ?string
|
||||||
{
|
{
|
||||||
return __('nav.group.Tinichigerie');
|
return __('nav.group.Service');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static ?int $navigationSort = 80;
|
protected static ?int $navigationSort = 80;
|
||||||
|
|||||||
@@ -23,6 +23,11 @@ class ClientResource extends Resource
|
|||||||
return __('nav.label.Clienți');
|
return __('nav.label.Clienți');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getNavigationGroup(): ?string
|
||||||
|
{
|
||||||
|
return __('nav.group.CRM');
|
||||||
|
}
|
||||||
|
|
||||||
protected static ?string $modelLabel = null;
|
protected static ?string $modelLabel = null;
|
||||||
|
|
||||||
public static function getModelLabel(): string
|
public static function getModelLabel(): string
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class SubcontractJobResource extends Resource
|
|||||||
|
|
||||||
public static function getNavigationGroup(): ?string
|
public static function getNavigationGroup(): ?string
|
||||||
{
|
{
|
||||||
return __('nav.group.Subcontractare');
|
return __('nav.group.Service');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static ?int $navigationSort = 71;
|
protected static ?int $navigationSort = 71;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class SubcontractorResource extends Resource
|
|||||||
|
|
||||||
public static function getNavigationGroup(): ?string
|
public static function getNavigationGroup(): ?string
|
||||||
{
|
{
|
||||||
return __('nav.group.Subcontractare');
|
return __('nav.group.Service');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static ?string $modelLabel = 'subcontractor';
|
protected static ?string $modelLabel = 'subcontractor';
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class TireSetResource extends Resource
|
|||||||
|
|
||||||
public static function getNavigationGroup(): ?string
|
public static function getNavigationGroup(): ?string
|
||||||
{
|
{
|
||||||
return __('nav.group.Anvelope');
|
return __('nav.group.Service');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static ?int $navigationSort = 60;
|
protected static ?int $navigationSort = 60;
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ class VehicleResource extends Resource
|
|||||||
return __('nav.label.Automobile');
|
return __('nav.label.Automobile');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getNavigationGroup(): ?string
|
||||||
|
{
|
||||||
|
return __('nav.group.CRM');
|
||||||
|
}
|
||||||
|
|
||||||
protected static ?string $modelLabel = null;
|
protected static ?string $modelLabel = null;
|
||||||
|
|
||||||
public static function getModelLabel(): string
|
public static function getModelLabel(): string
|
||||||
|
|||||||
Reference in New Issue
Block a user