title={translate('project_activity.graphs.rating_split.title')}
description={translate('project_activity.graphs.rating_split.description')}
footer={
- <DocumentationLink to={DocLink.MetricDefinitions}>
+ <DocumentationLink standalone to={DocLink.MetricDefinitions}>
{translate('learn_more')}
</DocumentationLink>
}
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { Link, LinkProps } from '@sonarsource/echoes-react';
+import { Link, LinkProps, LinkStandalone } from '@sonarsource/echoes-react';
import * as React from 'react';
import { DocLink } from '../../helpers/doc-links';
import { useDocUrl } from '../../helpers/docs';
-type Props = Omit<LinkProps, 'to'> & { innerRef?: React.Ref<HTMLAnchorElement>; to: DocLink };
+type Props = Omit<LinkProps, 'to'> & {
+ innerRef?: React.Ref<HTMLAnchorElement>;
+ standalone?: boolean;
+ to: DocLink;
+};
-export default function DocumentationLink({ to, innerRef, ...props }: Props) {
+export default function DocumentationLink({ to, innerRef, standalone = false, ...props }: Props) {
const toStatic = useDocUrl(to);
- return <Link ref={innerRef} to={toStatic} {...props} />;
+ return standalone ? (
+ <LinkStandalone ref={innerRef} to={toStatic} {...props} />
+ ) : (
+ <Link ref={innerRef} to={toStatic} {...props} />
+ );
}
project_activity.graphs.data_table.data_gap=The chart history for issues related to software qualities may contain gaps while information is not available for one or more projects. {learn_more}
project_activity.graphs.rating_split.title=Metrics calculation changed
-project_activity.graphs.rating_split.description=The way we calculate ratings has changed and it might have affected your ratings.
+project_activity.graphs.rating_split.description=The way we calculate ratings has changed and it might have affected this metric's values.
project_activity.graphs.rating_split.info_icon=Metrics calculation change information
project_activity.custom_metric.covered_lines=Covered Lines