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.

feat(replay): show a spinner on the logs filter button while logs load (#122561)

Jon McCallum3bd2566bdb5e
diff --git a/frontend/src/scenes/session-recordings/player/inspector/PlayerInspectorControls.tsx b/frontend/src/scenes/session-recordings/player/inspector/PlayerInspectorControls.tsx
index 05acef28c734..59206732ad4e 100644
--- a/frontend/src/scenes/session-recordings/player/inspector/PlayerInspectorControls.tsx
+++ b/frontend/src/scenes/session-recordings/player/inspector/PlayerInspectorControls.tsx
@@ -100,6 +100,7 @@ function FilterSettingsButton({
type,
icon,
disabledReason,
+ loading,
upsellSideAction,
label,
'data-attr': dataAttr,
@@ -107,6 +108,7 @@ function FilterSettingsButton({
type: FilterableInspectorListItemTypes
icon: JSX.Element
disabledReason?: string | undefined
+ loading?: boolean
upsellSideAction?: SideAction
label?: string
'data-attr'?: string
@@ -141,6 +143,7 @@ function FilterSettingsButton({
setMiniFilters(filterKeys, !isEnabled)
}}
disabledReason={disabledReason}
+ loading={loading}
active={isEnabled}
/>
)
@@ -330,6 +333,7 @@ function LogsFilterSettingsButton(): JSX.Element {
type="logs"
icon={<IconLive />}
disabledReason={disabledReason}
+ loading={logsLoading}
label="Logs"
/>
)