From b06556914c1cd7e9095a3496a314bb8d4af67757 Mon Sep 17 00:00:00 2001 From: Yulia Shanyrova Date: Thu, 27 Mar 2025 14:51:54 +0100 Subject: [PATCH] Plugins: Change Updated at label to Latest release date at plugin details panel (#102965) * change Updated at label to Latest release date * fix the tests --- .../features/plugins/admin/components/PluginDetailsPanel.tsx | 2 +- .../app/features/plugins/admin/pages/PluginDetails.test.tsx | 4 ++-- public/locales/en-US/grafana.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/app/features/plugins/admin/components/PluginDetailsPanel.tsx b/public/app/features/plugins/admin/components/PluginDetailsPanel.tsx index e8989a1b92e..1d88ea3ece8 100644 --- a/public/app/features/plugins/admin/components/PluginDetailsPanel.tsx +++ b/public/app/features/plugins/admin/components/PluginDetailsPanel.tsx @@ -73,7 +73,7 @@ export function PluginDetailsPanel(props: Props): React.ReactElement | null { {plugin.updatedAt && ( - Last updated: + Latest release date: {' '} {formatDate(new Date(plugin.updatedAt), { day: 'numeric', month: 'short', year: 'numeric' })} diff --git a/public/app/features/plugins/admin/pages/PluginDetails.test.tsx b/public/app/features/plugins/admin/pages/PluginDetails.test.tsx index fe4f257fd6e..383fc2ca74d 100644 --- a/public/app/features/plugins/admin/pages/PluginDetails.test.tsx +++ b/public/app/features/plugins/admin/pages/PluginDetails.test.tsx @@ -888,11 +888,11 @@ describe('Plugin details page', () => { config.featureToggles.pluginsDetailsRightPanel = false; }); - it('should display Last updated and report a concern information', async () => { + it('should display Latest release date and report a concern information', async () => { const id = 'right-panel-test-plugin'; const updatedAt = '2023-10-26T16:54:55.000Z'; const { queryByText } = renderPluginDetails({ id, updatedAt }); - expect(queryByText('Last updated:')).toBeVisible(); + expect(queryByText('Latest release date:')).toBeVisible(); expect(queryByText('Oct 26, 2023')).toBeVisible(); expect(queryByText('Report a concern')).toBeVisible(); }); diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 1d27e579148..965ab9747db 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -4260,6 +4260,7 @@ "from": "From", "installedVersion": "Installed Version", "lastCommitDate": "Last commit date:", + "latestReleaseDate": "Latest release date:", "latestVersion": "Latest Version", "license": "License", "raiseAnIssue": "Raise an issue", @@ -4267,8 +4268,7 @@ "reportAbuseTooltip": "Report issues related to malicious or harmful plugins directly to Grafana Labs.", "repository": "Repository", "signature": "Signature", - "status": "Status", - "updatedAt": "Last updated:" + "status": "Status" }, "modal": { "cancel": "Cancel",