-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(experiments): UX refresh for the no-code toolbar. #25190
base: master
Are you sure you want to change the base?
Conversation
Size Change: -939 kB (-45.51%) 🎉 Total Size: 1.12 MB
|
Clicking on the accordion items doesn't expand them. Screen.Recording.2024-09-25.at.16.07.36.mov |
I'm not sure I like having the select button directly on the accordion header. The purpose of the accordion header is only to collapse/uncollapse an accordion item. I don't think it's a good idea to mix it with the functionality to select an element. There is no point selecting an element if a particular accordion item is collapsed, so in that case that functionality should be hidden. My suggestion:
|
Variant keys should be editable. Again, I suggesting putting the input field inside the accordion content, and only render the variant key on the accordion header (similar to #25190 (comment)) |
There's a horizontal overflow here, rendering a scroll bar Screen.Recording.2024-09-25.at.16.34.42.mov |
} | ||
return 0 |
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.
lol thank you for doing this
@@ -3,8 +3,10 @@ import { cssEscape } from 'lib/utils/cssEscape' | |||
import { ElementType } from '~/types' | |||
|
|||
// these plus any element with cursor:pointer will be click targets | |||
export const CLICK_TARGETS = ['a', 'button', 'input', 'select', 'textarea', 'label', 'h1'] | |||
export const CLICK_TARGETS = ['a', 'button', 'input', 'select', 'textarea'] | |||
export const EXPERIMENT_TARGETS = ['label', 'h1', 'h2', 'h3', 'h4', 'span', 'img'] |
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.
@jurajmajerik or @corywatilo is this a good set of elements to run experiments on? I don't want to put in a *
here and would rather limit the set.
📸 UI snapshots have been updated4 snapshot changes in total. 0 added, 4 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
Problem
@corywatilo and I did a design review of the no-code toolbar and found a lot of issues we could fix easily.
Below is the list:
Changes
Before
After
After
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Manually, in local development