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

[WIP] Replace bootstrap-tagsinput with Tom Select #3074

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

taylor-steve
Copy link
Contributor

Chasing seemingly unrelated test ghosts locally, let's see what CI says...

bootstrap-tagsinput is unsupported and out of date. Tom Select supports using a text input, has a similar method of loading remote data, and has both Bootstrap 4 and 5 assets. Vendoring the assets for now, but if we change the asset pipeline for Spotlight v4 perhaps we can remove that.

@taylor-steve taylor-steve force-pushed the 2890-bootstrap-tagsinput-replacement branch from 130795a to fffb0b3 Compare August 2, 2024 00:42
bootstrap-tagsinput is unsupported and out of date. Tom Select supports
using a text input, has a similar method of loading remote data, and has
both Bootstrap 4 and 5 assets. Vendoring the assets for now, but if we
change the asset pipeline for Spotlight v4 perhaps we can remove that.
@taylor-steve taylor-steve force-pushed the 2890-bootstrap-tagsinput-replacement branch from fffb0b3 to 1e85361 Compare August 2, 2024 15:04
@jcoyne
Copy link
Member

jcoyne commented Aug 2, 2024

This seems like a huge addition for a small feature. Have you also considered adapting https://github.com/sul-dlss/argo/blob/main/app/javascript/controllers/text_extraction_controller.js ?

@taylor-steve
Copy link
Contributor Author

It certainly looks huge. It's ~70 lines, 30 of which are config. The rest are vendor files because we lack a clean way to incorporate those in a different fashion (AFAIK).

I wasn't aware of that code, thanks.

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