☂️ Remove jQuery: convert the last legacy scripts to Stimulus
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, jquery, rails
- 領域
- frontend
調査の方向性
This is a tracker, so pick one linked sub-issue (for example #7302 or #7305) and comment to get assigned rather than working on #7301 itself. Start from app/javascript/application.js and app/javascript/all_casa_admin.js to see which legacy files in app/javascript/src/ they still require, and read MIGRATION-MAP.md. Done means the sub-issue's file is removed or converted to a Stimulus controller in app/javascript/controllers/, with npm run test and bin/lint passing.
索引モデルが issue の本文から書いたものです。
説明
Goal
Remove jQuery (and the libraries that only exist for it: DataTables, the SweetAlert confirm shim) from the app. New JS is Stimulus (app/javascript/controllers/).
The Bootstrap → Tailwind page migration is already done: every page renders on a Tailwind layout, see MIGRATION-MAP.md. What's left is the legacy scripts in app/javascript/src/ that app/javascript/application.js and app/javascript/all_casa_admin.js still require. Several of them now target markup the redesign removed, so they're dead code.
Each sub-issue covers one file, one page, and one PR. Comment on a sub-issue to be assigned.
Sub-issues
Easy — dead code, delete it (Good First Issue)
- #7302
emancipations.js - #7303 All-CASA
tables.js+datatable.js - #7304 remove
datatables.net-dtpackage (after #7302, #7303) - #7305
read_more.js - #7306
sweet-alert-confirm.js
Easy — small Stimulus swaps (Good First Issue)
- #7308 volunteer edit: SMS reactivation button styling
- #7309 case contacts filter →
auto-submit - #7310 new case court-date toggle →
reveal - #7311 reports export buttons
Intermediate
- #7307
validated_form.js(delete + check one warning) - #7312 profile edit: password confirmation
- #7313 profile edit: contact-method check
- #7314 imports page
Advanced
- #7315 emancipation checklist page
- #7316 All-CASA patch notes page
Last
- #7317 remove jQuery,
notifier.js,type_checker.js(after all of the above)
Done when
- No
$(/jQueryleft inapp/javascript/ -
jquery,datatables.net-dtremoved frompackage.json;app/javascript/jQueryGlobalizer.jsdeleted - This makes #6685 (jQuery 4 upgrade) and #7278 (DataTables 3 upgrade) moot. Close them when the removal lands.
Tips
- Setup:
bin/setup, thenbin/dev. Logins are in the README. - JS tests:
npm run test. Ruby/system tests:bundle exec rspec spec/system/... - Before pushing, run
bin/lint. - See existing controllers such as
auto_submit_controller.js,reveal_controller.jsanddisable_form_controller.jsbefore writing a new one. One of them may already do what you need.
- 主要言語
- Ruby
- スター
- 384
- フォーク
- 558
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 63
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rubyforgood/casa のほかの issue
-
⛓️ Security Difficulty: Easy Good First Issue Help Wanted ruby Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
rubyforgood/casa#7404 ·
メンテナーはふだん 1 日以内に返信
-
Difficulty: Easy Good First Issue Help Wanted ruby Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
rubyforgood/casa#7402 ·
メンテナーはふだん 1 日以内に返信
-
Remove the bin/bundle binstub (Heroku warns it can break Bundler on deploy)対応中かも @Akash-Dhanwate が 8 日前に担当しました。 オープンdependencies Difficulty: Easy Good First Issue
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
rubyforgood/casa#7325 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Reports page: move export-button disable/re-enable into a Stimulus controller再び着手できるかも @Akash-Dhanwate が 9 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンDifficulty: Easy Good First Issue Help Wanted javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rubyforgood/casa#7311 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
New case: use Stimulus for the "I don't know the court date yet" toggle再び着手できるかも @Aryankn29 が 9 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンDifficulty: Easy Good First Issue Help Wanted javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rubyforgood/casa#7310 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
rubyforgood/casa の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
internetee/registry#2984 ·
メンテナーはふだん 6 日以内に返信
-
Redis Lua error `@user_script:52: ERR value is not an integer or out of range` when `window_size` is configured対応中かも @mimosa が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
riscv/riscv-unified-db#2829 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docker-library/ruby#534 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100