-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor all JS to Stimulus #634
Comments
@blms regarding your note about search.js "extending" the search controller — we should just port the existing logic over to the search controller, right? |
@rlskoeser exactly! |
@blms what about openseadragon init? |
@rlskoeser Ah, I didn't think to include it since it's just injecting OSD vendor code into the HTML, but it probably should be included, I'll add it to the list! |
We may want to split this out into separate subtasks, but can wait and see how it goes; am wondering if the seadragon should be more of a progressive enhancement. I was looking at the site on my phone and wasn't seeing images on detail pages — which we should check on — but made me wonder if you really want deep zoom by default on mobile. |
@rlskoeser Good call, and I see the mobile issue—it occurs on pages where there are images but no transcription. I'll track it as a bug! |
@blms great — thanks for documenting, we should get that resolved |
confirmed in qa, but noticed we're still including a main.js bundle that appears to be empty — let's remove that one before we close this |
confirmed main.js removed in qa |
dev notes
Stimulus was first used for the relevance sort in #550, the following should also be refactored to use Stimulus:
search.js
(all functionality should be moved over tocontrollers/search_controller.js
)submenu.js
theme_toggle.js
openseadragon.js
(see Turbo integration (#635) and automatic search (#638) #684)The text was updated successfully, but these errors were encountered: