0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00

fix: Events loading state and no-capture (#12282)

This commit is contained in:
Ben White 2022-10-17 12:45:07 +02:00 committed by GitHub
parent aabd22c8a4
commit b1d8ecca3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -133,7 +133,7 @@ export function SessionRecordingsPlaylist({ personUUID }: SessionRecordingsTable
onClick={() => onRecordingClick(rec)}
>
<div className="flex justify-between items-center">
<div className="truncate font-medium text-primary">
<div className="truncate font-medium text-primary ph-no-capture">
{asDisplay(rec.person, 25)}
</div>
{!rec.viewed && (

View File

@ -1,4 +1,5 @@
.PlayerList {
position: relative;
display: flex;
flex-direction: column;
background-color: var(--side);

View File

@ -60,7 +60,9 @@ export function PlayerList<T extends Record<string, any>>({
const { data, showPositionFinder, isCurrent, isDirectionUp, expandedRows } = useValues(logic)
const { setRenderedRows, setList, scrollTo, disablePositionFinder, handleRowClick, expandRow, collapseRow } =
useActions(logic)
const { sessionEventsDataLoading } = useValues(sessionRecordingDataLogic({ sessionRecordingId }))
const { sessionEventsDataLoading, sessionPlayerMetaDataLoading } = useValues(
sessionRecordingDataLogic({ sessionRecordingId, playerKey })
)
const { currentTeam } = useValues(teamLogic)
const { updateCurrentTeam } = useActions(teamLogic)
@ -72,7 +74,7 @@ export function PlayerList<T extends Record<string, any>>({
return (
<div className="PlayerList">
{sessionEventsDataLoading ? (
{sessionEventsDataLoading || sessionPlayerMetaDataLoading ? (
<SpinnerOverlay />
) : (
<>