Skip to content

Commit

Permalink
feat(nginx-button): add external link with tooltip (#1752)
Browse files Browse the repository at this point in the history
feat(nginx-button): add tooltip with format link
  • Loading branch information
RemiBonnet authored Nov 13, 2024
1 parent e5d013d commit fcb8676
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useParams, useSearchParams } from 'react-router-dom'
import { match } from 'ts-pattern'
import { ServiceStateChip, useRunningStatus, useService } from '@qovery/domains/services/feature'
import { DEPLOYMENT_LOGS_URL, ENVIRONMENT_LOGS_URL } from '@qovery/shared/routes'
import { Button, DropdownMenu, Icon, Link, TablePrimitives } from '@qovery/shared/ui'
import { Button, DropdownMenu, ExternalLink, Icon, Link, TablePrimitives, Tooltip } from '@qovery/shared/ui'
import { HeaderLogs } from '../header-logs/header-logs'
import { type LogType, useServiceLogs } from '../hooks/use-service-logs/use-service-logs'
import { ProgressIndicator } from '../progress-indicator/progress-indicator'
Expand Down Expand Up @@ -242,6 +242,21 @@ export function ListServiceLogs({ environment, clusterId, serviceStatus, environ
className="gap-1.5"
onClick={() => setEnabledNginx(!enabledNginx)}
>
<Tooltip
side="top"
content={
<ExternalLink
size="xs"
href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/log-format/"
>
Learn more about NGINX log format
</ExternalLink>
}
>
<span>
<Icon iconName="circle-info" iconStyle="regular" />
</span>
</Tooltip>
Nginx Logs
<Icon iconName={enabledNginx ? 'eye-slash' : 'eye'} iconStyle="regular" />
</Button>
Expand Down

0 comments on commit fcb8676

Please sign in to comment.