Commit graph

104 commits

Author SHA1 Message Date
Colin Darie
be020e1031 fix(dropdown): error when click outside before unloading menu
Co-Authored-by: mfo <mfo@users.noreply.github.com>
2023-01-31 12:09:50 +01:00
Colin Darie
3265fff30e fix(dropdown): wait "other" input to be disabled before autosave
Fix le workflow suivant pour un champ drop down avec option "autre" :

- on choisit la valeur "autre" avec une valeur => ça autosave la bonne valeur
- on choisit finalement une autre valeur proposée => l'autosave envoyait
  la nouvelle valeur, et toujours la valeur "other" car l'input n'était pas encore
  `disabled`. Par conséquent la valeur other overridait la valeur choisie
  et ça provoquait des erreurs en cascade, notamment dans le conditionnel.
2023-01-30 12:16:25 +01:00
Colin Darie
c15ad573bc feat(dropdown/a11y): "other" input with label and autofocus 2023-01-30 12:16:25 +01:00
Colin Darie
ec1ae25bb4 fix(stimulus): on handler having target 2023-01-30 11:34:24 +01:00
Martin
2be0f5aa99 amelioration(menu): extraction des menu dans un composant ruby pour ne pas dupliquer les changements aria partout ds la codebase 2023-01-26 11:13:23 +01:00
Colin Darie
5bff5542f1 refactor(spinner): dependent-conditions on champ wrapper instead of each champ 2023-01-26 09:06:30 +01:00
Colin Darie
26236a11ba feat(autosave): conditional spinner on all manager champs 2023-01-26 09:06:30 +01:00
Colin Darie
c6bdfc7401 feat(autosave): don't show loader when response is very fast 2023-01-26 09:06:30 +01:00
Colin Darie
3a48f201ee style(autosave/conditional): new a11y spinner proposition 2023-01-26 09:06:30 +01:00
Colin Darie
7c13449b4f feat(conditional): show loader during autosave when other champs are dependent of it 2023-01-26 09:06:30 +01:00
Paul Chavard
5b9e534b3f chore(turbo): morph all the things 2023-01-25 13:45:26 +01:00
Paul Chavard
2f17793900 feat(autosubmit): data-no-autosubmit can disable only some event types
this is useful on inputs with datalist for example where we want to only autosubmit on change
2023-01-18 09:26:47 +01:00
Paul Chavard
e4eb54e87a fix(autosubmit): addEventListener with capture for focus events 2023-01-18 09:25:41 +01:00
Paul Chavard
7f9414012e refactor(turbo): use @coldwired/actions 2023-01-16 21:40:10 +01:00
Paul Chavard
5f192f93e0 refactor(js): make generic format controller 2023-01-16 21:23:33 +01:00
Paul Chavard
5ccf57b488 fix(js): use on instead of addEventListener to ensure cleanup 2023-01-16 16:37:36 +01:00
Paul Chavard
d16c490779 feat(stimulus): allow on with target 2023-01-16 16:37:36 +01:00
Paul Chavard
a0878ffde5 feat(turbo): prevent scroll on form submits 2023-01-16 15:59:43 +01:00
Paul Chavard
f971a42e7d fix(js): fix submitter attributes not recognised by safari 2023-01-12 17:58:23 +01:00
Paul Chavard
289d48f697 refactor(js): use autosubmit controller in filter_component 2023-01-12 11:58:46 +01:00
Paul Chavard
5d7284b8da refactor(js): use autosubmit controller in notified_toggle_component 2023-01-12 11:58:46 +01:00
Paul Chavard
88866d0413 refactor(autosubmit): split and improuve autosubmit and turbo controller 2023-01-12 11:58:46 +01:00
Paul Chavard
e6d5033184 clean(js): remove console 2023-01-11 12:11:55 +01:00
Paul Chavard
f17ae44952 fix(dossier): disable buttons when selection is canceled 2023-01-11 11:50:25 +01:00
Paul Chavard
77a0033b3e feat(batch_operation): enable only available operations 2023-01-10 19:03:32 +01:00
Paul Chavard
5128b9a086 refactor(demarches): use turbo_stream template 2023-01-10 09:48:32 +01:00
Paul Chavard
416550c6ea refactor(batch): simplify stimulus controller 2023-01-06 14:25:46 +01:00
Lisa Durand
8df0147fd1 fix linter 2023-01-05 16:20:18 +01:00
Lisa Durand
1ecdf5f544 remove manipulating checkbox with JS and set just one form instead of 2 2023-01-05 16:20:18 +01:00
Lisa Durand
d7ebb67889 implement first step - accepte without motivation and PJ 2023-01-05 16:20:18 +01:00
Martin
a4d6692bc6 accessibilite(pages-authentification): evolutions des pages de connexion/creation de compte pour respecter le DSFR et supporter une meilleure accessibilite
Update app/components/dsfr/input_component/input_component.html.haml

Co-authored-by: Colin Darie <colin@darie.eu>
2023-01-03 16:26:05 +01:00
Martin
9dbe4845b3 correctif(a11y.contact-page): #8058 (utiliser le type email sur l'input prenant l'email de l'usager), #8056 (ajuster les erreurs de contraste par l'usage des composants du DSFR) 2022-12-21 10:48:31 +01:00
Paul Chavard
17901d9be2 fix(fetch): always use post http method 2022-12-15 11:52:11 +01:00
Colin Darie
3a9a71079a
Merge branch 'main' into pj-en-construction-replace 2022-12-14 16:59:48 +01:00
Paul Chavard
1b95809f14 refactor(dossier): flatten champ attributes 2022-12-14 13:03:06 +01:00
Colin Darie
013a05f24a
feat(piece_justificative): replace with multiple attachments for dossier en_construction 2022-12-14 09:58:15 +01:00
Colin Darie
4049240c2c
feat(piece_justificative): allow user to replace a PJ for dossier en_construction 2022-12-14 09:58:15 +01:00
Colin Darie
c93eba38ea chore(turbo-poll): convert to setInterval, turbo morph compatible.
Interval is not exponential anymore, so increase max checks.
2022-12-08 20:36:15 +01:00
Colin Darie
7719ce1865 chore(attachment): increase poll antivirus timeout and make it clear it's not blocker 2022-12-08 20:36:15 +01:00
Martin
b0ae2e8a0f clean(spec): rubocopify / fix specs 2022-12-06 11:28:48 +01:00
Martin
beb39027d0 poc(batch_operation.ui): implement simple ui to trigger a batch of current page 2022-12-06 11:28:48 +01:00
Kara Diaby
f5e4c28fc1 controller 2022-12-02 11:30:48 +01:00
Christophe Robillard
7ef114c910 add debounce for date_publication autosubmit 2022-11-09 10:41:06 +01:00
Martin
95312fed47 correctif(dropdown): rend toutes les dropdown valide via le controller.js plutot que les balises html 2022-11-08 16:40:17 +01:00
Martin
9e399aa199 fix(aria-expanded): aria-expanded can be either true or false, not empty: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded 2022-11-08 16:40:17 +01:00
Christophe Robillard
e10e8f1024 autosubmit filter form 2022-10-31 16:12:02 +01:00
Christophe Robillard
9abf1c4af3 list all demarches, filtered by zones 2022-10-31 16:12:02 +01:00
Paul Chavard
7336a62637 refactor(rails/ujs): don’t use @rails/ujs in our own code 2022-10-26 23:06:10 +02:00
simon lehericey
43438f0018 fix(spec): use config debounce delay in editor
and 0 delay in spec
2022-10-26 22:38:33 +02:00
simon lehericey
cf592820c6 make linter happier 2022-10-25 14:44:43 +02:00