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
This commit is contained in:
@@ -73,7 +73,7 @@ export function PluginDetailsPanel(props: Props): React.ReactElement | null {
|
||||
{plugin.updatedAt && (
|
||||
<Stack direction="column" gap={0.5}>
|
||||
<Text color="secondary">
|
||||
<Trans i18nKey="plugins.details.labels.updatedAt">Last updated:</Trans>
|
||||
<Trans i18nKey="plugins.details.labels.latestReleaseDate">Latest release date:</Trans>
|
||||
</Text>{' '}
|
||||
<Text>
|
||||
{formatDate(new Date(plugin.updatedAt), { day: 'numeric', month: 'short', year: 'numeric' })}
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user