: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(visual-review): move quarantined toggle to run panel bottom-left (#62139)
Paul D'Ambra349b415f4af1
diff --git a/products/visual_review/frontend/scenes/VisualReviewRunScene.tsx b/products/visual_review/frontend/scenes/VisualReviewRunScene.tsxindex b08698f0c534..ff0f033d3d56 100644--- a/products/visual_review/frontend/scenes/VisualReviewRunScene.tsx+++ b/products/visual_review/frontend/scenes/VisualReviewRunScene.tsx@@ -152,9 +152,9 @@ function QuarantinedThumbnailsToggle({onClick={onClick}aria-expanded={isExpanded}data-attr="visual-review-toggle-quarantined-thumbnails"- className="flex flex-col items-center justify-center shrink-0 rounded p-1.5 w-[100px] h-full text-warning-dark border border-dashed border-warning hover:bg-warning/10 transition-colors"+ className="shrink-0 text-xs text-muted hover:text-default hover:underline underline-offset-2 transition-colors">- <span className="text-[11px] font-semibold text-center leading-tight">{label}</span>+ {label}</button>)}@@ -254,6 +254,7 @@ export function VisualReviewRunScene(): JSX.Element {? navSnapshots: navSnapshots.filter((s: SnapshotApi) => !isHiddenQuarantined(s))const hiddenQuarantinedCount = navSnapshots.length - visibleNavSnapshots.length+ const showQuarantinedToggle = quarantinedNavCount > 0 && (hiddenQuarantinedCount > 0 || showQuarantinedThumbnails)const currentIndex = selectedSnapshot? navSnapshots.findIndex((s: SnapshotApi) => s.id === selectedSnapshot.id)@@ -512,44 +513,52 @@ export function VisualReviewRunScene(): JSX.Element {/>)})}- {quarantinedNavCount > 0 && (hiddenQuarantinedCount > 0 || showQuarantinedThumbnails) && (+ </div>+ )}++ {/* Pagination — below thumbnails, right-aligned */}+ {(showQuarantinedToggle || navSnapshots.length > 1) && (+ <div+ className={`flex items-center gap-2 px-3 pb-2 ${+ showQuarantinedToggle ? 'justify-between' : 'justify-end'+ }`}+ >+ {showQuarantinedToggle && (<QuarantinedThumbnailsTogglehiddenCount={hiddenQuarantinedCount}isExpanded={showQuarantinedThumbnails}onClick={toggleQuarantinedThumbnails}/>)}- </div>- )}-- {/* Pagination — below thumbnails, right-aligned */}- {navSnapshots.length > 1 && (- <div className="flex items-center justify-end gap-2 px-3 pb-2">- <LemonButton- size="xsmall"- icon={<IconChevronLeft />}- sideIcon={<KeyboardShortcut p />}- onClick={goToPrevious}- disabledReason={!hasPrevious ? 'No previous snapshot' : undefined}- data-attr="visual-review-snapshot-previous"- >- Previous- </LemonButton>- {currentIndex >= 0 && (- <span className="text-xs text-muted">- {currentIndex + 1} of {navSnapshots.length}- </span>+ {navSnapshots.length > 1 && (+ <div className="flex items-center gap-2">+ <LemonButton+ size="xsmall"+ icon={<IconChevronLeft />}+ sideIcon={<KeyboardShortcut p />}+ onClick={goToPrevious}+ disabledReason={!hasPrevious ? 'No previous snapshot' : undefined}+ data-attr="visual-review-snapshot-previous"+ >+ Previous+ </LemonButton>+ {currentIndex >= 0 && (+ <span className="text-xs text-muted">+ {currentIndex + 1} of {navSnapshots.length}+ </span>+ )}+ <LemonButton+ size="xsmall"+ icon={<KeyboardShortcut n />}+ sideIcon={<IconChevronRight />}+ onClick={goToNext}+ disabledReason={!hasNext ? 'No next snapshot' : undefined}+ data-attr="visual-review-snapshot-next"+ >+ Next+ </LemonButton>+ </div>)}- <LemonButton- size="xsmall"- icon={<KeyboardShortcut n />}- sideIcon={<IconChevronRight />}- onClick={goToNext}- disabledReason={!hasNext ? 'No next snapshot' : undefined}- data-attr="visual-review-snapshot-next"- >- Next- </LemonButton></div>)}</div>