Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

969 B
Raw Blame
import { IconFilter, IconWarning } from '@posthog/icons'

import { Tooltip } from 'lib/lemon-ui/Tooltip'

export function TileOverridesWarning(): JSX.Element | null {
    return (
        <Tooltip
            title={
                <div className="flex items-center gap-1">
                    <span>Tile filters merge with the dashboard's, taking precedence where they overlap</span>
                </div>
            }
        >
            <div className="flex items-center gap-1 text-warning">
                <IconWarning /> Tile filters applied
            </div>
        </Tooltip>
    )
}

export function IgnoresDashboardFiltersNotice(): JSX.Element | null {
    return (
        <Tooltip title="None of the dashboard's filters apply to this insight. Its own tile overrides still do.">
            <div className="flex items-center gap-1 text-muted-alt">
                <IconFilter /> Ignores dashboard filters
            </div>
        </Tooltip>
    )
}