Profile edit: Stimulus password-confirmation check with an inline error
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 66/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, rails, ruby
- Ambito
- frontend
Direzione di ricerca
Start with the jQuery logic in app/javascript/src/password_confirmation.js and the markup it targets in app/views/users/edit.html.erb, then look at existing controllers in app/javascript/controllers/ for the Stimulus pattern. Build the new password_confirmation_controller.js with data-target attributes, show the mismatch inline, and update spec/system/users/edit_spec.rb. Done when the old file and its require are removed, bundle exec rspec spec/system/users/edit_spec.rb and npm run test pass, and bin/lint is clean.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What
On the profile edit page (app/views/users/edit.html.erb), app/javascript/src/password_confirmation.js (jQuery) disables "Update password" until the password and the confirmation match, and shows a SweetAlert popup when they don't. Convert it to a Stimulus controller, and show the mismatch inline under the field (rose text, like other form errors in design.md) instead of a popup.
Checklist
- Add
app/javascript/controllers/password_confirmation_controller.jsand register it - Replace the
submit-password/password-new/password-confirmationclass hooks inusers/edit.html.erbwithdata-*-targetattributes - Delete
app/javascript/src/password_confirmation.jsand itsrequire. Move or rewrite__tests__/password_confirmation.test.jsfor the controller -
bundle exec rspec spec/system/users/edit_spec.rbpasses (update any spec that expected the SweetAlert)
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.
- Lingua principale
- Ruby
- Stelle
- 384
- Fork
- 558
- Merge medio
- 1g 7h
- PR unite (30g)
- 63
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rubyforgood/casa
-
⛓️ Security Difficulty: Easy Good First Issue Help Wanted ruby Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
rubyforgood/casa#7404 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficulty: Easy Good First Issue Help Wanted ruby Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
rubyforgood/casa#7402 ·
I maintainer di solito rispondono entro 1 giorno
-
Remove the bin/bundle binstub (Heroku warns it can break Bundler on deploy)Forse già presa @Akash-Dhanwate l’ha presa 8 giorni fa. Apertadependencies Difficulty: Easy Good First Issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
rubyforgood/casa#7325 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Reports page: move export-button disable/re-enable into a Stimulus controllerForse di nuovo libera @Akash-Dhanwate l’ha presa 9 giorni fa e non c’è nessuna pull request aperta. ApertaDifficulty: Easy Good First Issue Help Wanted javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rubyforgood/casa#7311 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
New case: use Stimulus for the "I don't know the court date yet" toggleForse di nuovo libera @Aryankn29 l’ha presa 9 giorni fa e non c’è nessuna pull request aperta. ApertaDifficulty: Easy Good First Issue Help Wanted javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rubyforgood/casa#7310 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rubyforgood/casa
Issue simili
-
Bug Ruby
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
getsentry/sentry-ruby#3211 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
internetee/registry#2984 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ecosyste-ms/issues#862 ·
I maintainer di solito rispondono entro 1 giorno
-
Redis Lua error `@user_script:52: ERR value is not an integer or out of range` when `window_size` is configuredForse già presa @mimosa l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
riscv/riscv-unified-db#2829 ·
I maintainer di solito rispondono entro 1 giorno