Refactor: Remove unused extension links from DataSourceTestingStatus … (#110004)

This commit is contained in:
Miguel Palau
2025-08-22 17:02:35 +02:00
committed by GitHub
parent 743bc1cfe2
commit cbb54c517d
2 changed files with 2 additions and 30 deletions
@@ -52,13 +52,7 @@ const getStyles = (theme: GrafanaTheme2, hasTitle: boolean) => {
};
};
const AlertSuccessMessage = ({
title,
exploreUrl,
dataSourceId,
onDashboardLinkClicked,
extensionLinks = [],
}: AlertMessageProps) => {
const AlertSuccessMessage = ({ title, exploreUrl, dataSourceId, onDashboardLinkClicked }: AlertMessageProps) => {
const theme = useTheme2();
const hasTitle = Boolean(title);
@@ -90,26 +84,6 @@ const AlertSuccessMessage = ({
</Link>
.
</Trans>
{/* Extension links for allowed datasource extension plugins */}
{extensionLinks.length > 0 && (
<div className={styles.extensionLinks}>
<Trans i18nKey="data-source-testing-status-page.success-more-details-links-extensions">
You can also explore data with the following extensions:
</Trans>
{extensionLinks.map((link) => (
<Link
key={link.id}
href={link.path || '#'}
title={link.description}
className="external-link"
onClick={'onClick' in link ? link.onClick : undefined}
>
{link.title}
</Link>
))}
</div>
)}
</div>
);
};
@@ -236,7 +210,6 @@ export function DataSourceTestingStatus({ testingStatus, exploreUrl, dataSource
exploreUrl={exploreUrl}
dataSourceId={dataSource.uid}
onDashboardLinkClicked={onDashboardLinkClicked}
extensionLinks={extensionLinks}
/>
) : null}
{severity === 'error' && errorDetailsLink ? <ErrorDetailsLink link={String(errorDetailsLink)} /> : null}
+1 -2
View File
@@ -6421,8 +6421,7 @@
},
"data-source-testing-status-page": {
"error-more-details-link": "Click <2>here</2> to learn more about this error.",
"success-more-details-links": "Next, you can start to visualize data by <2>building a dashboard</2>, or by querying data in the <5>Explore view</5>.",
"success-more-details-links-extensions": "You can also explore data with the following extensions:"
"success-more-details-links": "Next, you can start to visualize data by <2>building a dashboard</2>, or by querying data in the <5>Explore view</5>."
},
"data-sources": {
"datasource-add-button": {