Delete dead sweet-alert-confirm.js (no view uses data-confirm-swal)
Maintainer thường phản hồi trong vòng 1 ngày
@KoushikSagarr đang làm issue này rồi.
Từ ngày 3/11/2026.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 85/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, rails
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu bằng cách chạy lệnh grep trong danh sách kiểm tra trên app/views, app/components và app/helpers để xác nhận không có gì dùng data-confirm-swal. Sau đó xóa app/javascript/sweet-alert-confirm.js và bỏ import của nó khỏi app/javascript/application.js, giữ nguyên gói sweetalert2. Hoàn thành khi các xác nhận xóa và loại liên hệ vẫn hiển thị trên trình duyệt, npm run test chạy thành công và spec/system/volunteers/edit_spec.rb xanh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What
app/javascript/sweet-alert-confirm.js hooks Rails UJS so that links with data-confirm-swal show a SweetAlert. No view uses data-confirm-swal any more: confirmations now go through shared/_confirm_button (a native dialog) or plain data-confirm.
Checklist
- Confirm
grep -rn "confirm-swal\|confirm_swal" app/views app/components app/helpersreturns nothing - Delete
app/javascript/sweet-alert-confirm.jsand remove its import fromapp/javascript/application.js - Check whether
window.Swalis still used (grep -rn "window.Swal\|Swal" app/javascript). Other files importSwaldirectly, so leave thesweetalert2package alone in this PR - Click a delete button (for example on a contact type) and a deactivate button (on a volunteer's edit page) and confirm both confirmations still appear
-
npm run testpasses, and so doesbundle exec rspec spec/system/volunteers/edit_spec.rb
Before you start
- Comment here to be assigned. Setup is
bin/setup, thenbin/dev. Logins are in the README. - JS tests:
npm run test. Lint:bin/lint. - Part of #7301 (removing jQuery). Keep this PR to just this file.
- Ngôn ngữ chính
- Ruby
- Star
- 383
- Fork
- 551
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 49
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rubyforgood/casa
-
Remove the bin/bundle binstub (Heroku warns it can break Bundler on deploy)Có thể đã có người làm @KoushikSagarr đã nhận 5 ngày trước. Đang mởdependencies Difficulty: Easy Good First Issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
rubyforgood/casa#7325 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Reports page: move export-button disable/re-enable into a Stimulus controllerCó thể đã có người làm @Akash-Dhanwate đã nhận hôm nay. Đang mởDifficulty: Easy Good First Issue Help Wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rubyforgood/casa#7311 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
New case: use Stimulus for the "I don't know the court date yet" toggleCó thể đã có người làm @Aryankn29 đã nhận 1 ngày trước. Đang mởDifficulty: Easy Good First Issue Help Wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rubyforgood/casa#7310 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Difficulty: Easy Good First Issue Help Wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rubyforgood/casa#7309 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🖥️ Frontend Difficulty: Easy Good First Issue Help Wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
rubyforgood/casa#7308 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rubyforgood/casa
Issue tương tự
-
test_rescues_connection_reset_on_issue_comments_lookup fails on master and blocks every pull requestĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
zerocracy/judges-action#3142 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Malformed encoded_filters causes a 500, and keeps failing with session persistenceCó thể đã có người làm @officialasishkumar đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
avo-hq/avo#4986 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Visual COBOL: missing 11.0 and 12.0, and 9.0 date differs from Rocket Software's lifecycle pageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
endoflife-date/endoflife.date#11561 ·
Maintainer thường phản hồi trong vòng 1 ngày