From 9e89be6cf6a29e20fafca7b706486c77412b93d4 Mon Sep 17 00:00:00 2001 From: tidy-dev <75402236+tidy-dev@users.noreply.github.com> Date: Tue, 17 Dec 2024 08:21:48 -0500 Subject: [PATCH] Remove status tooltip --- app/src/ui/branches/ci-status.tsx | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/app/src/ui/branches/ci-status.tsx b/app/src/ui/branches/ci-status.tsx index 2bacd9fd8a0..3e101379a4b 100644 --- a/app/src/ui/branches/ci-status.tsx +++ b/app/src/ui/branches/ci-status.tsx @@ -5,11 +5,7 @@ import classNames from 'classnames' import { GitHubRepository } from '../../models/github-repository' import { DisposableLike } from 'event-kit' import { Dispatcher } from '../dispatcher' -import { - ICombinedRefCheck, - IRefCheck, - isSuccess, -} from '../../lib/ci-checks/ci-checks' +import { ICombinedRefCheck, IRefCheck } from '../../lib/ci-checks/ci-checks' import { IAPIWorkflowJobStep } from '../../lib/api' interface ICIStatusProps { @@ -115,7 +111,6 @@ export class CIStatus extends React.PureComponent< this.props.className )} symbol={getSymbolForCheck(check)} - title={getRefCheckSummary(check)} /> ) } @@ -190,20 +185,3 @@ export function getClassNameForLogStep(logStep: IAPIWorkflowJobStep): string { // Pending return '' } - -/** - * Convert the combined check to an app-friendly string. - */ -export function getRefCheckSummary(check: ICombinedRefCheck): string { - if (check.checks.length === 1) { - const { name, description } = check.checks[0] - return `${name}: ${description}` - } - - const successCount = check.checks.reduce( - (acc, cur) => acc + (isSuccess(cur) ? 1 : 0), - 0 - ) - - return `${successCount}/${check.checks.length} checks OK` -}