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

IBX-3456 Collapse all button support #1394

Open
wants to merge 17 commits into
base: 4.6
Choose a base branch
from
Open

Conversation

bozatko
Copy link
Contributor

@bozatko bozatko commented Nov 18, 2024

🎫 Issue IBX-3456

Related PRs:

Description:

For QA:

Documentation:

@bozatko bozatko changed the base branch from main to 4.6 November 18, 2024 11:51
@@ -0,0 +1,37 @@
.ibexa-multi-collapse {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved styles from product-catalog. Based on previous review comment let me know if I still should change class name to ibexa-pc-...

Copy link
Contributor

Choose a reason for hiding this comment

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

if those styles are moved from PC where will be a base twig template for a multi-collapse feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed: There is no base twig template due to its too general purpose

@bozatko bozatko force-pushed the IBX-3456-attribute-groups branch from c1599eb to c43983f Compare December 12, 2024 15:43
@bozatko bozatko force-pushed the IBX-3456-attribute-groups branch from 1228b09 to c8db495 Compare December 13, 2024 10:24
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/core/collapse.js Outdated Show resolved Hide resolved
@bozatko bozatko requested a review from dew326 December 19, 2024 14:16
Comment on lines 7 to 10
? /*@Desc("Collapse all)*/ 'product_type.edit.section.attribute_collapse_all'
: /*@Desc("Expand all)*/ 'product_type.edit.section.attribute_expand_all';

btn.innerText = Translator.trans(displayedText, {}, 'ibexa_product_catalog');
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not use any product catalog prefixes and translation domain here. Is there any option to pass translated labels into component? This will be more flexible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

after discussion: created new translation file "ibexa_collapse"

@bozatko bozatko requested a review from ciastektk January 8, 2025 08:59
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants