Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Convert Stimulus JS code to Preact/Vanilla Javascript

Open
No due date
Last updated Dec 13, 2022
0% complete

In an effort to standardize our Javascript approach and consolidate how we write/implement javascript in our frontend, we first need to peel off of frameworks and paradigms that are no longer providing any value. For this reason, we want to transition from Stimulus JS. In migrating away from Stimulus, which has a very small and at times, unsupported, community, it would cause all client-side code to either be in Preact or Vanilla JS, which is part of phase 1 of our Frontend refactor. It would also allow developers to implement of complex frontend implementations accordingly.

Currently, we have 15 controllers that are considered Stimulus controllers. We would like to migrate these to vanilla JS and/or Preact where applicable. Issues are segmented based on the amount of logic, functionality and dependencies within each controller. In migrating these controllers, we want to assess the best paradigm for the functionality to live(Vanilla JS or Preact) and ultimately assure functionality and performance are not lost.

The following controllers are Stimulus controllers:
config_controller.js
ahoy_controller.js
alert_controller.js
article_controller.js
consumer_app_controller.js
data_update_script_controller.js
image_upload_controller.js
logo_upload_controller.js
modal_controller.js
reaction_controller.js
sidebar_controller.js
snackbar_controller.js
svg_icon_upload_controller.js
user_controller.js
ajax_controller.js

List view