Commit graph

93 commits

Author SHA1 Message Date
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
simon lehericey
dbb5b7deec clean(js): remove unused autosave:reset 2022-10-25 14:44:43 +02:00
simon lehericey
5cadb70d3a refactor(js): add 'debounced-empty' when there are no more debouncing call 2022-10-25 14:44:43 +02:00
simon lehericey
f4f40ded6c refactor(js): send 'autosave:end' when there are no more pending promises 2022-10-25 14:44:43 +02:00
Paul Chavard
85581e72e9 refactor(turbo): simplify custom actions implementation now that turbo has support for it 2022-10-21 10:24:00 +02:00
Paul Chavard
78a1323fc2 refactor(dossier): move dossier submit action in to a new form 2022-10-13 14:44:46 +02:00
Paul Chavard
dd38fa4458 refactor(spec): add wait_for_autosave helper 2022-10-13 14:44:46 +02:00
Paul Chavard
78d4abfb3d chore(js): remove CheckConditionsController 2022-10-04 10:59:23 +02:00
Martin
aceb8996c1 feat(instructeur/procedure#show): enhance sort by notifications as planned by UX
Update app/javascript/controllers/checkbox_controller.ts

Co-authored-by: Paul Chavard <github@paul.chavard.net>
2022-09-30 10:29:51 +02:00
Paul Chavard
462cc41caa refactor(block): use block? instead of repetition? 2022-09-29 17:49:14 +02:00
simon lehericey
7d547e5e11 fix(linked_drop_down): in repetiton the second choice is saved
the filter was not applied in repetition block so an additional empty input was send which overrided the real value
2022-09-29 14:50:02 +02:00
Martin
ba6c5b4db7 feat(instructeur/procedure#index): enhance filter to support processed_at and state [plus en_instruction_at/since]
feat(filter): enable filter on dossiers.state, dossiers.processed_at(since), dossiers.en_instruction_at(since)
2022-09-27 17:19:54 +02:00