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

Replace the label chooser with a new LabelPicker #5684

Draft
wants to merge 18 commits into
base: 6.2
Choose a base branch
from
Draft

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.

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
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