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

Transform the tag selector into a web component #2748

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

sascha-karnatz
Copy link
Contributor

@sascha-karnatz sascha-karnatz commented Feb 26, 2024

What is this pull request for?

it is still a Select2 select until we find a better alternative, but it is now abstracted into a web component and a View Component to make it easier usable and avoid initialization issues.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@sascha-karnatz sascha-karnatz requested a review from a team February 26, 2024 11:57
@sascha-karnatz sascha-karnatz force-pushed the add-multi-tag-component branch 2 times, most recently from ed65f66 to 50e62de Compare February 26, 2024 12:10
@tvdeyen tvdeyen added this to the 7.2 milestone Feb 27, 2024
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Very nice. Some naming nits

app/components/alchemy/admin/tags_select.rb Outdated Show resolved Hide resolved
app/components/alchemy/admin/tags_select.rb Outdated Show resolved Hide resolved
config/locales/alchemy.en.yml Show resolved Hide resolved
@sascha-karnatz sascha-karnatz force-pushed the add-multi-tag-component branch from 50e62de to 6c5430d Compare February 27, 2024 09:16
it is still a Select2 select until we find a better alternative, but it is now abstracted into a web component and a View Component to make it easier usable and avoid initialization issues.
The select page - translation for the PageSelect View Component was missing.
@sascha-karnatz sascha-karnatz force-pushed the add-multi-tag-component branch from 6c5430d to 56c74d1 Compare February 27, 2024 10:23
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Very nice!

@tvdeyen tvdeyen merged commit cdfee90 into AlchemyCMS:main Feb 27, 2024
34 checks passed
@sascha-karnatz sascha-karnatz deleted the add-multi-tag-component branch February 27, 2024 11:38
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.

2 participants