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

Add conditional variations support #5424

Merged
merged 13 commits into from
Dec 7, 2023
Merged

Conversation

sneridagh
Copy link
Member

No description provided.

Copy link

netlify bot commented Nov 22, 2023

Deploy Preview for volto ready!

Name Link
🔨 Latest commit 01a915d
🔍 Latest deploy log https://app.netlify.com/sites/volto/deploys/6570ee783f85910008af7a54
😎 Deploy Preview https://deploy-preview-5424--volto.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

Needs docs, but the basic idea is what I was expecting.

src/helpers/Extensions/withBlockSchemaEnhancer.js Outdated Show resolved Hide resolved
@sneridagh
Copy link
Member Author

@tiberiuichim I had to change the order of execution of the withVariationSchemaEnhancer HOC, so first it adds the field, then it enhances it. It's done only for the variations. Do you think it's needed also for the other extensions? Let me know, please.

I will add documentation for this on Monday.

@davisagli
Copy link
Member

@robgietema Waiting for the docs you said you were going to push...

Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

Review of docs only. Please check your editor configuration to align with Volto and docs style guides.

docs/source/blocks/extensions.md Outdated Show resolved Hide resolved
docs/source/blocks/extensions.md Show resolved Hide resolved
docs/source/blocks/extensions.md Outdated Show resolved Hide resolved
docs/source/blocks/extensions.md Outdated Show resolved Hide resolved
@davisagli davisagli force-pushed the conditionalVariationsSupport branch 2 times, most recently from 016c722 to 4eb2dd3 Compare December 6, 2023 01:51
packages/volto/news/5424.feature Outdated Show resolved Hide resolved
docs/source/blocks/extensions.md Show resolved Hide resolved
@davisagli davisagli requested a review from stevepiercy December 6, 2023 04:15
@davisagli davisagli force-pushed the conditionalVariationsSupport branch from 1ef8ce3 to 7d6c784 Compare December 6, 2023 04:21
@davisagli
Copy link
Member

@sneridagh @robgietema Since I rebased on main, these acceptance tests started failing. I haven't been able to figure out the problem yet; they work when I run the acceptance tests locally. :(

@davisagli
Copy link
Member

@sneridagh @robgietema ok, found it

@davisagli davisagli force-pushed the conditionalVariationsSupport branch from 24589eb to 01a915d Compare December 6, 2023 21:58
Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

Thank you!

@davisagli davisagli merged commit 936f5ea into main Dec 7, 2023
49 checks passed
@davisagli davisagli deleted the conditionalVariationsSupport branch December 7, 2023 17:01
davisagli added a commit that referenced this pull request Dec 7, 2023
Co-authored-by: Rob Gietema <[email protected]>
Co-authored-by: David Glick <[email protected]>
davisagli added a commit that referenced this pull request Dec 7, 2023
Co-authored-by: Rob Gietema <[email protected]>
Co-authored-by: David Glick <[email protected]>
pranayjoshi pushed a commit to pranayjoshi/volto that referenced this pull request Dec 20, 2023
Co-authored-by: Rob Gietema <[email protected]>
Co-authored-by: David Glick <[email protected]>
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.

5 participants