From bc1d57f6dc43e843d26cbb5e484539201f518cf9 Mon Sep 17 00:00:00 2001 From: dizzy Date: Tue, 9 Feb 2021 21:37:26 -0800 Subject: Display help icons for categories/subcategories (#17062) * show help icons in left and display help messages on click * pointless commit * more fixes for when to show icon persistent * More docs & more fixes. * some fixes, more styling changes + UI test * remove line breaks * fix link * update SecurityInfo plugin to latest * apply more review feedback * Adding help text + tweak to notification title bar. * fix issues after review and make exception clearer * update submodules * Update CustomVariables submodule. * fixing tests * fix test Co-authored-by: sgiehl --- plugins/Dashboard/Categories/DashboardCategory.php | 6 ++++++ plugins/Dashboard/lang/en.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/Dashboard') diff --git a/plugins/Dashboard/Categories/DashboardCategory.php b/plugins/Dashboard/Categories/DashboardCategory.php index 6a7ca4bcc5..746d4e2ca7 100644 --- a/plugins/Dashboard/Categories/DashboardCategory.php +++ b/plugins/Dashboard/Categories/DashboardCategory.php @@ -9,10 +9,16 @@ namespace Piwik\Plugins\Dashboard\Categories; use Piwik\Category\Category; +use Piwik\Piwik; class DashboardCategory extends Category { protected $id = 'Dashboard_Dashboard'; protected $order = 0; protected $icon = 'icon-reporting-dashboard'; + + public function getHelp() + { + return '

' . Piwik::translate('Dashboard_DashboardCategoryHelp', ['', '']) . '

'; + } } diff --git a/plugins/Dashboard/lang/en.json b/plugins/Dashboard/lang/en.json index 68bfd22c8e..522408467b 100644 --- a/plugins/Dashboard/lang/en.json +++ b/plugins/Dashboard/lang/en.json @@ -32,6 +32,7 @@ "SetAsDefaultWidgetsConfirmHelp": "This widgets selection and dashboard columns layout will be used when any user creates a new dashboard, or when \"%s\" feature is used.", "TopLinkTooltip": "View Web Analytics reports for %s.", "WidgetNotFound": "Widget not found", - "WidgetPreview": "Widget preview" + "WidgetPreview": "Widget preview", + "DashboardCategoryHelp": "This is a dashboard page. Dashboards are a collection of Matomo's widgets that you add yourself to suit your specific needs. Mix and match any of Matomo's widgets to get the data %1$s*you*%2$s need at a glance." } } \ No newline at end of file -- cgit v1.2.3