-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: allow sorting Lifecycle graph bars #16542
Conversation
Hey @nategrift, thanks for your contribution to PostHog! Overall your PR looks very well made :) After looking into the changes I'm inclined to reject the PR however. The reason being that I don't think the proposed functionality is useful enough to justify maintaining it (drag-and-drop being especially finicky in my experience). More concretely I saw that dormant users will always be below the 0-line as negative numbers and I was asking myself why I'd want to re-order the remaining three lifecycles. Based on the user request that this originates from (see below) I'm thinking changing the default order so that new users (blue) are on top is the thing we actually want to do here:
In it's current state the PR would also need to be adapted to a refactor that landed in master and there's an issue when dragging a lifecycle outside of the designated drop area. drag-outside-drop.mov |
@thmsobrmlr |
Very happy to merge this in with only code for the sorting to make sure the top is always new users |
Okay, will do! |
@thmsobrmlr Fixed! Only sorts the graphs to make sure new always shows at top of graph. Also moved the code from |
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.
Thanks for the follow up @nategrift!
Edit: We're fixing up a few CI issues before merging this in (just FYI).
My first PR on PostHog, feedback is greatly appreciated!
Problem
Enhancement from issue #14579
I want to be able to order the different bars on a lifecycle graph (i.e. new, resurrecting, or recurring users) so I can more easily compare what I care about
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?
Screenshots of how it looks