wetrockpolice
wetrockpolice copied to clipboard
[Webpack] Rebuild interactions on the rainy day options page
Description The rainy day options page provides basic alternatives for visitors to consider when bad weather occurs in a watched area. A set of options are pre-configured on the admin panel, saved into the database, then pulled and rendered here on this page.
Problem In moving to Webpack, we no longer have javascript enabled on this page. We want to re-build the interactions (javascript) on this page to function under Stimulus which is a very basic HTML based javascript framework.
The previous javascript has been moved to controllers/rainy_day_controller.js
(link) and commented out.
Requirements We want to maintain a 1-1 parity with the interactions and display we have today on the rainy day page.
- As a user, when I click on an idea listed, the Mountain Project map should change to reflect the new area and the information below should change to reflect the area I clicked.
Notes
Stimulus handbook: https://stimulus.hotwired.dev/handbook/origin