From 009dc5e0b0f1cad363cceff485aa6e58a40a5904 Mon Sep 17 00:00:00 2001 From: Clemente Raposo Date: Thu, 5 Dec 2024 00:41:46 +0000 Subject: [PATCH] Update subpanel configuration mapping for new UI --- .../SubPanelDefinitionHandler.php | 40 +++++-------------- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/core/backend/ViewDefinitions/LegacyHandler/SubPanelDefinitionHandler.php b/core/backend/ViewDefinitions/LegacyHandler/SubPanelDefinitionHandler.php index 11ffff7d9..ce9fa397e 100644 --- a/core/backend/ViewDefinitions/LegacyHandler/SubPanelDefinitionHandler.php +++ b/core/backend/ViewDefinitions/LegacyHandler/SubPanelDefinitionHandler.php @@ -218,6 +218,7 @@ class SubPanelDefinitionHandler extends LegacyHandler implements SubPanelDefinit $tabs[$key]['insightWidget'] = $this->mapInsightWidget($subpanel, $tabs, $key, $tab); $tabs[$key]['lineActions'] = $this->getSubpanelLineActions($subpanel, $tabs[$key]['module']); $tabs[$key]['searchdefs'] = $this->getSearchdefs($subpanel); + $tabs[$key]['order'] = $tab['order']; if (empty($columnSubpanel)) { continue; @@ -488,37 +489,16 @@ class SubPanelDefinitionHandler extends LegacyHandler implements SubPanelDefinit [ 'icon' => $tab['module'], ], - ] - ], - [ - 'align' => 'end', - 'justify' => 'start', - 'class' => 'flex-grow-1', - 'cols' => [ - [ - 'statistic' => $tabs[$key]['module'], - 'class' => 'sub-panel-banner-value', - 'bold' => true, - ], - ] - ], - [ - 'justify' => 'start', - 'cols' => [ - [ - 'descriptionKey' => $tabs[$key]['title_key'] . '_INSIGHT_DESCRIPTION', - 'class' => 'sub-panel-banner-tooltip', - ] - ] - ], - [ - 'justify' => 'start', - 'cols' => [ [ 'labelKey' => $tabs[$key]['title_key'], 'class' => 'sub-panel-banner-button-title', 'bold' => true, - ] + ], + [ + 'statistic' => 'default', + 'class' => 'sub-panel-banner-value', + 'bold' => true, + ], ] ], ] @@ -597,8 +577,10 @@ class SubPanelDefinitionHandler extends LegacyHandler implements SubPanelDefinit ) { $lineAction = $subpanelLineActions[$list_field['name']]; $moduleName = $this->moduleNameMapper->toFrontEnd($subpanelModule); - $lineActions[] = $this->subpanelLineActionDefinitionProvider->getLineAction($moduleName, - $lineAction); + $lineActions[] = $this->subpanelLineActionDefinitionProvider->getLineAction( + $moduleName, + $lineAction + ); } } }