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

fix(insights): polishing of multiple breakdowns in Trends #23649

Merged
merged 30 commits into from
Jul 24, 2024

Conversation

skoob13
Copy link
Contributor

@skoob13 skoob13 commented Jul 11, 2024

Problem

Fixes the following bugs related to the multiple breakdowns:

  • Map view didn't reset
  • The number total value viz didn't reset breakdowns
  • Smoothing dropdown was always visible for line graphs
  • InsightCard had a wrong letter color
  • The popup describing session usage didn't apply to multiple breakdowns
  • Activity didn't display multiple breakdowns in insights

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Unit and manual testing

@skoob13 skoob13 requested a review from a team July 11, 2024 16:06
Copy link
Contributor

github-actions bot commented Jul 11, 2024

Size Change: 0 B

Total Size: 1.07 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.07 MB

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 2 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.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 2 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.

Copy link
Contributor

@thmsobrmlr thmsobrmlr left a comment

Choose a reason for hiding this comment

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

Heya @skoob13, thanks for the follow up here! Overall the changes look good. I left a couple of comments inline. In general I think it would be good to dry up the code a bit, as its hard to understand as is. Might also be worth splitting into separate PRs in the future.

@skoob13 skoob13 requested a review from a team July 17, 2024 12:49
Copy link
Contributor

@thmsobrmlr thmsobrmlr left a comment

Choose a reason for hiding this comment

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

Thanks for the follow-up @skoob13 ! This looks good now, with only one change that I think we should make before merging in: The current implementation would break the insight details for the other implementation of multi-breakdowns. I don't think we need to wait for the refactor to the same format and could instead just handle both formats gracefully there.

frontend/src/queries/utils.ts Outdated Show resolved Hide resolved
@skoob13 skoob13 marked this pull request as draft July 22, 2024 17:54
@skoob13 skoob13 requested a review from a team July 23, 2024 15:06
@skoob13 skoob13 marked this pull request as ready for review July 23, 2024 15:06
@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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@skoob13 skoob13 requested a review from thmsobrmlr July 23, 2024 17:27
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

@thmsobrmlr thmsobrmlr left a comment

Choose a reason for hiding this comment

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

Some CI unhappiness (looks unrelated), otherwise ready to go in 👍

@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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@skoob13 skoob13 enabled auto-merge (squash) July 24, 2024 10:01
@skoob13 skoob13 merged commit 6440ea5 into master Jul 24, 2024
90 checks passed
@skoob13 skoob13 deleted the fix/multiple-breakdowns-polishing branch July 24, 2024 10:17
thmsobrmlr pushed a commit that referenced this pull request Jul 24, 2024
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
thmsobrmlr pushed a commit that referenced this pull request Jul 25, 2024
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
silentninja pushed a commit to silentninja/posthog that referenced this pull request Aug 8, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants