Skip to content
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

Merged
merged 7 commits into from
Feb 22, 2025
Merged

Conversation

pauldambra
Copy link
Member

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

2025-02-21 23 41 59

@pauldambra pauldambra force-pushed the feat/hide-viewed-by-anyone branch from 97b8567 to 5be19ca Compare February 21, 2025 23:49
Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 for hideViewedRecordings
  • Implemented new HideRecordingsMenu component in frontend/src/scenes/session-recordings/filters/RecordingsUniversalFilters.tsx replacing the simple toggle
  • Modified sessionRecordingsPlaylistLogic.ts to filter recordings based on both rec.viewed and rec.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

// 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
Copy link
Contributor

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)))

Copy link
Contributor

@veryayskiy veryayskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, yes, yes!

Copy link
Contributor

Size Change: +526 B (+0.01%)

Total Size: 9.71 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 9.71 MB +526 B (+0.01%)

compressed-size-action

@pauldambra pauldambra merged commit 3878c90 into master Feb 22, 2025
97 of 98 checks passed
@pauldambra pauldambra deleted the feat/hide-viewed-by-anyone branch February 22, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants