-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: hide recordings viewed by anyone #29092
Conversation
97b8567
to
5be19ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR enhances the session recording filtering functionality by allowing users to hide recordings that have been viewed by any user, not just the current user, providing more granular control over the recording list visibility.
- Added three-state option in
frontend/src/scenes/session-recordings/player/playerSettingsLogic.ts
to support 'current-user', 'any-user', or false forhideViewedRecordings
- Implemented new
HideRecordingsMenu
component infrontend/src/scenes/session-recordings/filters/RecordingsUniversalFilters.tsx
replacing the simple toggle - Modified
sessionRecordingsPlaylistLogic.ts
to filter recordings based on bothrec.viewed
andrec.viewers.length
- Added backward compatibility handling for legacy boolean values in player settings
3 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
frontend/src/scenes/session-recordings/player/playerSettingsLogic.ts
Outdated
Show resolved
Hide resolved
frontend/src/scenes/session-recordings/filters/RecordingsUniversalFilters.tsx
Show resolved
Hide resolved
// hideViewRecordings used to be flat boolean | ||
// if someone has it set to true, we should set it to 'current-user' | ||
// to upgrade them to the new behavior | ||
// this can be deleted after a few weeks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
famous last words before never touching it)))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, yes, yes!
Size Change: +526 B (+0.01%) Total Size: 9.71 MB ℹ️ View Unchanged
|
follow-up to #29067
now that we know if other people have watched a recording, we can offer you the option to only see recordings that nobody has watched