Skip to content

IBX-11413: Use design-system dropdown component#1902

Open
tischsoic wants to merge 23 commits into
6.0from
IBX-11413-use-ds-dropdown
Open

IBX-11413: Use design-system dropdown component#1902
tischsoic wants to merge 23 commits into
6.0from
IBX-11413-use-ds-dropdown

Conversation

@tischsoic

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11413

Description:

For QA:

Documentation:

@tischsoic tischsoic force-pushed the IBX-11413-use-ds-dropdown branch 2 times, most recently from 4f5430d to 8193ee5 Compare May 28, 2026 07:18
@tischsoic tischsoic changed the base branch from 5.0 to 6.0 June 2, 2026 06:19
@tischsoic tischsoic force-pushed the IBX-11413-use-ds-dropdown branch from 8193ee5 to c41218f Compare June 2, 2026 06:42
};
const attachFieldDefinitionNodeEvents = (fieldNode, { targetContainer }) => {
const initDropdown = (dropdownContainer) => {
const dropdownAlreadyInitialized = !!ibexa.helpers.objectInstances.getInstance(dropdownContainer);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
const dropdownAlreadyInitialized = !!ibexa.helpers.objectInstances.getInstance(dropdownContainer);
const isDropdownAlreadyInitialized = !!ibexa.helpers.objectInstances.getInstance(dropdownContainer);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This code was just moved from

dropdowns.forEach((dropdownContainer) => {
            const dropdownAlreadyInitialized = !!ibexa.helpers.objectInstances.getInstance(dropdownContainer);

I preserved the old variable name and logic.

disabled: is_disabled,
required: required|default(false),
}) %}
{% set normalized_source_attr = source_id is not null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nitpick, since second option is now assigning the same value but it's your call.

Suggested change
{% set normalized_source_attr = source_id is not null
{% if source_id is not null %}
{% set normalized_source_attr = normalized_source_attr|merge({ id: source_id }) %}
{% endif %}

source,
sourceAttributes: normalized_source_attr,
} %}
{% set ds_dropdown_props = translated_placeholder is not same as(null)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here, WDYT?

@KamilSznajdrowicz KamilSznajdrowicz force-pushed the IBX-11413-use-ds-dropdown branch from c41218f to 3f5f8e4 Compare June 8, 2026 13:37
@tischsoic tischsoic force-pushed the IBX-11413-use-ds-dropdown branch from 3f5f8e4 to 1f7c8fa Compare June 9, 2026 12:01
@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

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.

6 participants