diff --git a/packages/web/src/app/[domain]/components/errorNavIndicator.tsx b/packages/web/src/app/[domain]/components/errorNavIndicator.tsx index a63a469d..2f024a61 100644 --- a/packages/web/src/app/[domain]/components/errorNavIndicator.tsx +++ b/packages/web/src/app/[domain]/components/errorNavIndicator.tsx @@ -11,6 +11,7 @@ import { useQuery } from "@tanstack/react-query"; import { ConnectionSyncStatus, RepoIndexingStatus } from "@sourcebot/db"; import { getConnections } from "@/actions"; import { getRepos } from "@/actions"; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"; export const ErrorNavIndicator = () => { const domain = useDomain(); @@ -62,18 +63,27 @@ export const ErrorNavIndicator = () => { The following connections have failed to sync:

- {connections - .slice(0, 10) - .map(connection => ( - captureEvent('wa_error_nav_job_pressed', {})}> -
- {connection.name} -
- - ))} + + {connections + .slice(0, 10) + .map(connection => ( + captureEvent('wa_error_nav_job_pressed', {})}> +
+ + + {connection.name} + + + {connection.name} + + +
+ + ))} +
{connections.length > 10 && (
And {connections.length - 10} more... @@ -93,23 +103,29 @@ export const ErrorNavIndicator = () => { The following repositories failed to index:

- {repos - .slice(0, 10) - .filter(item => item.linkedConnections.length > 0) // edge case: don't show repos that are orphaned and awaiting gc. - .map(repo => ( - // Link to the first connection for the repo - captureEvent('wa_error_nav_job_pressed', {})}> -
- - {repo.repoName} - -
- - ))} + + {repos + .slice(0, 10) + .filter(item => item.linkedConnections.length > 0) // edge case: don't show repos that are orphaned and awaiting gc. + .map(repo => ( + // Link to the first connection for the repo + captureEvent('wa_error_nav_job_pressed', {})}> +
+ + + {repo.repoName} + + + {repo.repoName} + + +
+ + ))} +
{repos.length > 10 && (
And {repos.length - 10} more... diff --git a/packages/web/src/app/[domain]/components/warningNavIndicator.tsx b/packages/web/src/app/[domain]/components/warningNavIndicator.tsx index 496c8f0a..dc176b1d 100644 --- a/packages/web/src/app/[domain]/components/warningNavIndicator.tsx +++ b/packages/web/src/app/[domain]/components/warningNavIndicator.tsx @@ -10,6 +10,7 @@ import useCaptureEvent from "@/hooks/useCaptureEvent"; import { env } from "@/env.mjs"; import { useQuery } from "@tanstack/react-query"; import { ConnectionSyncStatus } from "@prisma/client"; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"; export const WarningNavIndicator = () => { const domain = useDomain(); @@ -45,16 +46,25 @@ export const WarningNavIndicator = () => { The following connections have references that could not be found:

- {connections.slice(0, 10).map(connection => ( - captureEvent('wa_warning_nav_connection_pressed', {})}> -
- {connection.name} -
- - ))} + + {connections.slice(0, 10).map(connection => ( + captureEvent('wa_warning_nav_connection_pressed', {})}> +
+ + + {connection.name} + + + {connection.name} + + +
+ + ))} +
{connections.length > 10 && (
And {connections.length - 10} more...