: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(replay): remove watched column from collections (#110315)
Hayne Ryu10e22ab7e034
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 41c3f1f6635f..bb124fac17fb 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -7747,9 +7747,9 @@ snapshots:replay-sharing--public-link--light:hash: v1.k794b7964.ddfd8254ca69a6fc3cb638c1bcec9cd839fda06322c538d5b077f979d563e246.rsWbpqFKkbOOKpotVfWuctA8mHs1X9zPI8bkJU0TVQgreplay-tabs-collections--recordings-play-lists--dark:- hash: v1.k794b7964.e0b88639193593d2310eb018f49347a9bb33a0cb1c2d709eb4123cea650151c9.MBJ1QFzWoPfRJD6kFjienFZcvIbeOXG63IgbNcH3BgM+ hash: v1.k794b7964.ac3814dd592bef17fb3127d9bef1940e89f5e9a0200a4bc0fe4d3263d86b6824.UZc2OicZl2dG1SUw1lETtFqg6EQqyEZF-fUkQnGx8eEreplay-tabs-collections--recordings-play-lists--light:- hash: v1.k794b7964.f903e9b0791fe14a54094c6d60ebf2f783b038c3af2cd48a4b683405e0fa9804.T5HCxaEs6jav9oxx4Xh3I7cpQE5LAHe5hxr3m8mPZiU+ hash: v1.k794b7964.28b102aeaaa3602c1633cab0260f6c42b9f14ed9ff6d57c216e3a6eb4d37f574.D4E91X4jSaMsOH6ujfQL-c0V1zA9oxUR6mlHUBCyO98replay-tabs-home-failure--not-found--dark:hash: v1.k794b7964.b9a8cf652792ff2c0bd190c60a09632c19b4d185a26cd90bd1778a70602948d7.VxjlB-GndCf740MtiPkEF0T7pY69VB1RDP9D1MH5DhYreplay-tabs-home-failure--not-found--light:diff --git a/frontend/src/scenes/session-recordings/collections/BuiltInCollections.tsx b/frontend/src/scenes/session-recordings/collections/BuiltInCollections.tsxindex 12443e42586b..eb75def6b35b 100644--- a/frontend/src/scenes/session-recordings/collections/BuiltInCollections.tsx+++ b/frontend/src/scenes/session-recordings/collections/BuiltInCollections.tsx@@ -5,7 +5,7 @@ import { LemonTableColumns } from 'lib/lemon-ui/LemonTable'import { SessionRecordingPlaylistType } from '~/types'-import { COLUMN_WIDTHS, countColumn, nameColumn, progressColumn, watchNextColumn } from './collectionColumns'+import { COLUMN_WIDTHS, countColumn, nameColumn, watchNextColumn } from './collectionColumns'import { CollectionSectionHeading } from './CollectionSectionHeading'const BUILT_IN_ICONS: Record<string, JSX.Element> = {@@ -31,7 +31,6 @@ const columns: LemonTableColumns<SessionRecordingPlaylistType> = [countColumn(),nameColumn(),{ width: COLUMN_WIDTHS.createdBy + COLUMN_WIDTHS.lastModified, render: () => null },- progressColumn(),watchNextColumn(),{ width: COLUMN_WIDTHS.actions, render: () => null },]diff --git a/frontend/src/scenes/session-recordings/collections/SessionRecordingCollections.tsx b/frontend/src/scenes/session-recordings/collections/SessionRecordingCollections.tsxindex d73caf1b5bfe..4c716490b4d7 100644--- a/frontend/src/scenes/session-recordings/collections/SessionRecordingCollections.tsx+++ b/frontend/src/scenes/session-recordings/collections/SessionRecordingCollections.tsx@@ -14,7 +14,7 @@ import { createdByColumn } from 'lib/lemon-ui/LemonTable/columnUtils'import { AccessControlLevel, AccessControlResourceType, SessionRecordingPlaylistType } from '~/types'import { BuiltInCollections } from './BuiltInCollections'-import { COLUMN_WIDTHS, countColumn, nameColumn, progressColumn, watchNextColumn } from './collectionColumns'+import { COLUMN_WIDTHS, countColumn, nameColumn, watchNextColumn } from './collectionColumns'import { CollectionSectionHeading } from './CollectionSectionHeading'import { SessionRecordingCollectionsEmptyState } from './SessionRecordingCollectionsEmptyState'import { PLAYLISTS_PER_PAGE, sessionRecordingCollectionsLogic } from './sessionRecordingCollectionsLogic'@@ -71,7 +71,6 @@ export function SessionRecordingCollections(): JSX.Element {)},},- progressColumn(),watchNextColumn(),{width: COLUMN_WIDTHS.actions,diff --git a/frontend/src/scenes/session-recordings/collections/collectionColumns.tsx b/frontend/src/scenes/session-recordings/collections/collectionColumns.tsxindex a92a849c8b14..534eef859c93 100644--- a/frontend/src/scenes/session-recordings/collections/collectionColumns.tsx+++ b/frontend/src/scenes/session-recordings/collections/collectionColumns.tsx@@ -3,7 +3,6 @@ import clsx from 'clsx'import { IconChevronRight } from '@posthog/icons'import { LemonBadge, LemonButton, Link, Tooltip } from '@posthog/lemon-ui'-import { LemonProgress } from 'lib/lemon-ui/LemonProgress'import { LemonTableColumn } from 'lib/lemon-ui/LemonTable'import { urls } from 'scenes/urls'@@ -16,7 +15,6 @@ type CollectionColumn = LemonTableColumn<SessionRecordingPlaylistType, keyof Sesexport const COLUMN_WIDTHS = {leading: 48,count: 72,- watched: 384,watchNext: 140,createdBy: 160,lastModified: 140,@@ -102,27 +100,6 @@ export function countColumn(): CollectionColumn {}}-export function progressColumn(): CollectionColumn {- return {- title: 'Watched',- width: COLUMN_WIDTHS.watched,- render: function Render(_, playlist) {- const counts = getCollectionCounts(playlist.recordings_counts)- if (!counts || !counts.total) {- return null- }- return (- <div className="flex items-center gap-2">- <LemonProgress percent={counts.watchedPercent} className="flex-1" />- <span className="text-xs text-secondary whitespace-nowrap">- {counts.watched} of {counts.total}- </span>- </div>- )- },- }-}-export function watchNextColumn(): CollectionColumn {return {width: COLUMN_WIDTHS.watchNext,diff --git a/frontend/src/scenes/session-recordings/collections/collectionUtils.ts b/frontend/src/scenes/session-recordings/collections/collectionUtils.tsindex 1983e5a020b1..c10b753df434 100644--- a/frontend/src/scenes/session-recordings/collections/collectionUtils.ts+++ b/frontend/src/scenes/session-recordings/collections/collectionUtils.ts@@ -7,9 +7,7 @@ import { PlaylistRecordingsCounts } from '~/types'export interface CollectionCounts {total: number | null- watched: numberunwatched: number- watchedPercent: number}export function isPlaylistRecordingsCounts(x: unknown): x is PlaylistRecordingsCounts {@@ -29,9 +27,7 @@ export function getCollectionCounts(recordingsCounts: unknown): CollectionCountsconst watched = recordingsCounts.collection.watched_count ?? recordingsCounts.saved_filters?.watched_count ?? 0return {total,- watched,unwatched: Math.max(0, (total ?? 0) - watched),- watchedPercent: total ? Math.min(100, Math.round((watched / total) * 100)) : 0,}}