Skip to content

Conversation

dtdesign
Copy link
Member

@dtdesign dtdesign commented Oct 8, 2023

The existing label selection uses a legacy jQuery component and requires a lot of boilerplate code to integrate with both the frontend and backend. The new LabelPicker and LabelPickerGroup implementation is designed to simplify the API usage and to provide a “drop-in replacement” for existing usages.

The selection of a label is now backed by the <woltlab-core-label-picker> web component that autonomously handles state changes and is eagerly evaluated. The later allows the component to render the proper initial state without requiring an extra render pass, removing the visible state change on page load when a value was preselected.

This PR is the foundation for the introduction of multiple label picks per label group and is intended to provide an API that is transparent to the implementers regardless of the use of single or multiple selections.

See https://www.woltlab.com/community/thread/288676-mehrere-labels-aus-selber-labelgruppe/

@dtdesign dtdesign requested a review from TimWolla October 8, 2023 16:04
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

I did a first pass through the PR, but did not yet look into all the files.

@dtdesign dtdesign requested a review from TimWolla October 9, 2023 16:10
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

I don't have any further remarks.

@dtdesign dtdesign marked this pull request as draft March 26, 2024 13:30
@dtdesign dtdesign changed the base branch from master to 6.2 October 15, 2024 09:59
@dtdesign dtdesign moved this to Foundation in WoltLab Suite 6.3 Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Foundation

Development

Successfully merging this pull request may close these issues.

2 participants