-
Notifications
You must be signed in to change notification settings - Fork 1
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
Experience Blocks #24
Conversation
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.
Linting failed (75 errors, 5 warnings).
(1 notice occurred in your codebase, but were on files/lines not included in this PR.)
I've polished up the UI considerably and added a copy function for quickly cloning an existin variant.
|
That's my bad I just forgot to factor that in yet, I think I'm going to add some text on the left to say 'If no audience is selected this variant will be used as a fallback' and make sure the front end deals with that.
Ah yeah, the whole
Fair enough! Will change that, just wanted it to stand out.
I actually wanted to use the audience name in place of |
@joehoyle ok, addressed all of those comments now |
The experience block itself is a container so I added alignment support directly to it - you'd have to align that full / wide first. |
Yeah, I did, the problem is the selectors in the theme are using direct descendent selectors, so... probably not possible. |
Co-authored-by: Ryan McCue <me@ryanmccue.info>
…into experience-blocks
There's really just the issue of deleting audiences left to figure out now but I can't work out the right approach just yet. There are a few options I've thought about:
Any better ideas? |
I'd say option 3 is best, something in the UI like "Audience has been deleted". |
require_once __DIR__ . '/personalization/register.php'; | ||
require_once __DIR__ . '/personalization-variant/register.php'; |
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.
I think these should ideally be in the main plugin.php; if this is a pattern already in the other "features", that's OK, but we should switch in a future PR.
Reorganising code into additional smaller components. Fix incorrect phpcs ignore directives.
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.
Small changes; almost all have suggestions :)
inc/features/blocks/personalization/components/variant-title.js
Outdated
Show resolved
Hide resolved
inc/features/blocks/personalization/components/variant-toolbar.js
Outdated
Show resolved
Hide resolved
inc/features/blocks/personalization/components/variant-toolbar.js
Outdated
Show resolved
Hide resolved
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.
J'approve. :wotf-ship:
This is the initial version of experience blocks. These are conditional content blocks backed by analytics data audiences.