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(data-exploration): improved editing UX #13726

Merged
merged 8 commits into from
Jan 17, 2023
Merged

Conversation

mariusandra
Copy link
Collaborator

Problem

Currently you can only edit data exploration columns via the "column configurator" view

Changes

Adds a submenu at the end of each column header, letting you sort, edit, add and delete columns:

2023-01-16 11 54 56

I don't know what should be in the scope of this PR and what should go in a followup. There are still many obvious changes we can make to this interface. I'd be very happy to hear thoughts on how can we improve this further, and what is blocking in this round :).

How did you test this code?

Played around with the columns.

@mariusandra
Copy link
Collaborator Author

I improved the popups somewhat, yet there's probably still some room for improvement. The tooltip that shows up for e.g. "library" could likely also be rolled into the popup.

2023-01-16 14 51 00

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.

LGTM - I have absolutely no remarks code or functionality wise. Sorting the columns seems to be eagerly awaited, so this will help lots

Since you're asking for feedback - here are some ideas that came to mind:

  • I think the "more" button would be better right aligned, as otherwise there is no spacing between the column title text and the button on hover

  • Sorting could be done with with by up / down / neutral icons, like we do here, including clickable columns https://storybook.posthog.net/?path=/docs/lemon-ui-lemon-table--basic

  • I'm not a big fan of the "Add column before/after" items - I think the current solution works, and could imagine a "+" button at the end of the table, with draggable columns

  • We could show the edit / sort icons just on hover, to keep the UI more clean

  • Something that doesn't work well right now, but could with PostHog 3000 is how Notion does it (hover and click on the columns):

    notion-columns.mov

@mariusandra
Copy link
Collaborator Author

Thanks for the review! I added a link to your UX suggestions as a checkmark in the "next steps" list to be sure not to forget this. As it would be a bit of work which I'd take on after the "hogql property filters" PR is done (so likely not today), I'll merge this in now and continue in a followup.

@mariusandra mariusandra merged commit 914131f into master Jan 17, 2023
@mariusandra mariusandra deleted the data-table-edit-columns branch January 17, 2023 10:13
@lharries
Copy link
Contributor

Great work! Few thoughts:

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