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: home tab of replay doesn't need to be called recent #24763

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

pauldambra
Copy link
Member

see: https://posthog.slack.com/archives/C03PB072FMJ/p1725370913316809?thread_ts=1725267564.281409&cid=C03PB072FMJ

As we add more ordering to the landing page of replay it doesn't make sense to call it "recent recordings"

this

  • calls it recordings
  • sets the URL to /replay/home
  • redirects /replace/recent

2024-09-03 16 19 33

@pauldambra pauldambra requested a review from a team September 3, 2024 15:26
@@ -428,6 +428,7 @@ export const redirects: Record<
return urls.replay()
},
'/replay': urls.replay(),
'/replay/recent': urls.replay(),
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm assuming this does the redirect and maintains any query params?

Copy link
Member Author

Choose a reason for hiding this comment

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

obviously I'd tested that 🙈

Copy link
Contributor

github-actions bot commented Sep 3, 2024

Size Change: +36 B (0%)

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.11 MB +36 B (0%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@@ -98,8 +98,11 @@ export const urls = {
savedInsights: (tab?: string): string => `/insights${tab ? `?tab=${tab}` : ''}`,
webAnalytics: (): string => `/web`,

replay: (tab?: ReplayTabs, filters?: Partial<RecordingUniversalFilters>): string =>
combineUrl(tab ? `/replay/${tab}` : '/replay/recent', filters ? { filters } : {}).url,
replay: (tab?: ReplayTabs, filters?: Partial<RecordingUniversalFilters>, sessionRecordingId?: string): string =>
Copy link
Member Author

Choose a reason for hiding this comment

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

we support sessionRecordingId as a query param... but it wasn't in this contract

@pauldambra pauldambra enabled auto-merge (squash) September 3, 2024 16:26
@pauldambra pauldambra merged commit 842f11e into master Sep 3, 2024
93 checks passed
@pauldambra pauldambra deleted the feat/de-recent branch September 3, 2024 17:35
MarconLP pushed a commit that referenced this pull request Sep 6, 2024
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants