Commit graph

746 commits

Author SHA1 Message Date
Paul Chavard
c040cf5a65 chore(coldwired): data-turbo-force needs to be explicit 2023-06-02 08:58:52 +02:00
Eric Leroy-Terquem
526f70f9c0 add wizard 2023-05-31 11:38:16 +02:00
Lisa Durand
c6f13f63b5 remove previsualisation from procedure creation form 2023-05-31 11:33:59 +02:00
Lisa Durand
a20ec44841
Merge pull request #9074 from demarches-simplifiees/add-more-info-on-procedure-description
[Refonte page accueil demarche] Détailler la description pour plus de clarté pour l'usager
2023-05-30 09:45:32 +00:00
Lisa Durand
6fa44a4c11 remove read more function because of accordion for procedure description 2023-05-24 12:08:57 +02:00
Lisa Durand
7340206f81 rollback - add just one new field and use actual description field 2023-05-24 11:31:24 +02:00
Paul Chavard
e1a25ee0e5 chore(sentry): read sentry release information from version file 2023-05-24 09:41:39 +02:00
Lisa Durand
b6cc35df68 fix specs 2023-05-23 10:34:03 +02:00
Lisa Durand
4a51a9a351 add two more fields for procedure description what et and for_who 2023-05-22 15:36:48 +02:00
simon lehericey
9894a0f2ff ds_fr: add accordion.css 2023-05-09 14:46:14 +02:00
Paul Chavard
7f991a67e2 Revert "Revert "Merge pull request #8985 from tchak/chore-update-dependencies""
This reverts commit e744ed99d2.
2023-05-04 14:01:35 +02:00
Paul Chavard
e744ed99d2 Revert "Merge pull request #8985 from tchak/chore-update-dependencies"
This reverts commit 1e5c7516bc, reversing
changes made to 60bc6b0839.
2023-04-28 15:47:24 +02:00
Paul Chavard
ba590ff262 chore(npm): update dependencies 2023-04-27 23:02:39 +02:00
Paul Chavard
5343c229a2 chore(turbo): update coldwired and fix focus in turbo 2023-04-27 10:40:14 +02:00
Lisa Durand
402112583d fix test with good classname in js for batch 2023-04-24 10:54:53 +02:00
Paul Chavard
0912a30eb0 feat(dossier): use turbo on select with other 2023-04-18 15:24:23 +02:00
Paul Chavard
eb599394e0 feat(dossier): use turbo on linked lists 2023-04-18 15:24:23 +02:00
Lisa Durand
058f1fe6e5 add focus on button when select all 2023-04-05 10:59:59 +02:00
Paul Chavard
fce78bbf30 feat(dossier): multiselect without react 2023-04-03 16:54:50 +02:00
Lisa Durand
7351580a65
Merge pull request #8811 from demarches-simplifiees/allow-instructeur-to-delete-pj
ETQ instructeur je veux pouvoir supprimer la pj pendant l'instruction
2023-03-31 07:46:55 +00:00
Paul Chavard
3ea28b57e2 chore(npm): update dependencies 2023-03-29 16:01:56 +02:00
Lisa Durand
518d075dc9 small changes for better readability 2023-03-29 10:26:42 +02:00
Lisa Durand
044d03b524 fix button display 2023-03-29 10:26:42 +02:00
Lisa Durand
df701f2a8f fix linter 2023-03-29 10:26:42 +02:00
Lisa Durand
92bc95014a add cancel button and delete pj button in batch context 2023-03-29 10:26:42 +02:00
Lisa Durand
dc46430c40 display link to delete PJ in instruction button 2023-03-29 10:26:42 +02:00
Paul Chavard
9d26a38997 chore(champ): remove unused react code 2023-03-28 16:34:19 +02:00
Lisa Durand
d079f3ac98
Merge pull request #8770 from demarches-simplifiees/ask-question-in-avis-ux-part
[UX] améliorer UX de la demande d'avis
2023-03-24 10:50:33 +00:00
Paul Chavard
234846eb33 graphql(playground): build with vite 2023-03-22 10:19:56 +01:00
Lisa Durand
c51e6aa2e6 split form and avis answers in 2 views for experts and add sidemenu 2023-03-22 09:30:26 +01:00
Lisa Durand
a4a99a72ec first step to add question in experts avis 2023-03-16 11:32:05 +01:00
Paul Chavard
cbaa77fca7 feat(annotations): activate autosave 2023-03-14 15:22:13 +01:00
Lisa Durand
7130ea7e99 fix specs 2023-03-02 16:34:58 +01:00
Lisa Durand
a4932a749c improve UX of instruction dropdown menu 2023-03-02 16:34:58 +01:00
Lisa Durand
54f17ad3c7
Merge pull request #8630 from demarches-simplifiees/harmonize-actions-for-instructeurs
[instructeurs] Uniformiser les actions pour les instructeurs sur la page tableau et dossier
2023-03-02 13:28:23 +00:00
Colin Darie
f752dd7085
Merge pull request #8718 from tchak/feat-old-browsers-datetime
fix(datetime): improuve datetime field on old browsers
2023-03-01 11:52:11 +00:00
Paul Chavard
d3ef0fcf79 fix(datetime): improuve datetime field on old browsers 2023-03-01 12:30:25 +01:00
Paul Chavard
ef970dbfe5
Merge pull request #8716 from tchak/feat-number-input
fix(form): disable scroll wheel on number inputs
2023-03-01 10:31:38 +00:00
Paul Chavard
983c533eef fix(form): disable scroll wheel on number inputs 2023-03-01 11:11:37 +01:00
Colin Darie
3f15647b8e
refactor(a11y/combosearch): every combo with screen reader better support 2023-03-01 09:38:45 +01:00
Colin Darie
71d43e9591
feat(a11y/combosearch): translatations for screen reader 2023-03-01 09:38:44 +01:00
Colin Darie
acffd45a22
feat(a11y/combosearch): add aria-ownws props
However it may be redundant due to aria-controls presence.

Cf #8643
2023-03-01 09:36:08 +01:00
Colin Darie
07579c9a58
feat(a11y/combosearch): announce results to screen readers
From http://haltersweb.github.io/Accessibility/autocomplete.html

Closes #8643
2023-03-01 09:36:08 +01:00
Colin Darie
6dd7e867d2
feat(a11y/combosearch): add screen reader instructions
Cf #8643
2023-03-01 09:36:07 +01:00
Paul Chavard
97f0df0598 refactor(progress): move progress bar markup to haml 2023-02-28 16:36:18 +01:00
Paul Chavard
c339f609c0 fix(demarches): improuve turbo refresh on demarches page 2023-02-28 14:05:23 +01:00
Colin Darie
396f545cf2 fix(comboadress): provide a valid empty response 2023-02-27 18:41:02 +01:00
Colin Darie
4d1a5f230c feat(a11y/i18n): inject user locale to chat / crisp 2023-02-27 17:23:43 +01:00
Sébastien Carceles
b6c74b0e83 fetch etablissement when editing the dossier 2023-02-27 13:45:16 +01:00
Paul Chavard
68fd34a732 fix(autocomplete): avoid double escape of query params 2023-02-27 12:01:12 +01:00
Paul Chavard
bdb15aaa4a feat(apigeo): enable all zones on departements api 2023-02-23 17:28:02 +01:00
Lisa Durand
90a7ecef52 rename state button to instruction button 2023-02-23 16:05:38 +01:00
Julie Salha
6db07ca2a3 fix PR wording 2023-02-14 12:26:57 +01:00
Julie Salha
4fee6f3626 update label button 2023-02-14 12:17:44 +01:00
Martin
ddc04a03a4 amelioration(a11y): permet les interactions clavier via les touches entrée et espace pour ouvrir et fermer le menu depliant quand le focus est sur le bouton 2023-02-06 17:19:11 +01:00
Colin Darie
bfb96b6cb3 chore(sentry): sample traces JS, 0.1 for a start 2023-02-06 11:52:30 +01:00
Lisa Durand
f80fe9680f corrections from Sim review 2023-02-03 15:13:06 +01:00
Lisa Durand
f1a378bf03 dont'use DSFR component - add a line inside the table instead 2023-02-03 15:13:06 +01:00
Lisa Durand
3fdfc38faf fix linter js 2023-02-03 15:13:06 +01:00
Lisa Durand
1a79eb9717 change checkbox tag to hidden field 2023-02-03 15:13:06 +01:00
Lisa Durand
93a85ca4b0 add limit of 500 dossiers 2023-02-03 15:13:06 +01:00
Lisa Durand
5802f3f7cf injected dossier_ids in front 2023-02-03 15:13:06 +01:00
Colin Darie
d5fe29f666 chore(upload): hint about firewall blocking file upload 2023-01-31 17:09:28 +01:00
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
efea44b9ba fix(combobox): form submission when form has combobox and input file without file selected 2023-01-31 09:44:41 +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
Colin Darie
d7f170b57a fix(combobox): let direct upload finish before submitting form
Quand un form pour lequel on intercepte le submit a un direct upload,
on laisse le direct upload gérer le submit manuellement pour attendre la
fin de l'upload ; autrement le form est parfois soumis sans la référence
au fichier, ce qui provoque des erreurs rails `InvalidSignature`.
2023-01-24 09:51:05 +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
7f2a7e18d3 chore(npm): update build dependencies 2023-01-12 12:27:14 +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
Colin Darie
e501750fb4 chore(sentry): ignore error on password input with password manager 2023-01-10 16:22:43 +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
080747f60b reorganise multiple buttons on top of table from instructeur procedure view 2023-01-05 17:22:53 +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
Paul Chavard
3f0f5e381f refactor(regions): champ regions to use simple select 2022-12-21 14:03:02 +01:00
Paul Chavard
e0b0a42bc3 refactor(departements): champ departements to use simple select 2022-12-21 14:03:02 +01:00
Paul Chavard
f7c1dff22a refactor(pays): champ pays to use simple select 2022-12-21 14:03:02 +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
Colin Darie
cb2afc74b0 style(attachments): better UX when we can try to upload without network 2022-12-05 10:47:10 +01:00
Colin Darie
b13c5e56f6 refactor(piece_justificative): UX follows mockups 2022-12-05 10:47:10 +01:00
Colin Darie
6a0379086d chore(piece_justificative): continue attachments refactor 2022-12-05 10:47:10 +01:00
Colin Darie
b8296c6d4d feat(piece_justificative): supports multiple files
Closes #7924
2022-12-05 10:47:10 +01:00
Kara Diaby
f5e4c28fc1 controller 2022-12-02 11:30:48 +01:00
Paul Chavard
a53f0dee74 feat(a11y): add dsfr skiplinks 2022-11-22 12:29:39 +01:00
Paul Chavard
07173401de fix(graphql): load playground from CDN 2022-11-17 15:50:05 +01:00
Paul Chavard
8eac50f7c9 fix(turbo-stream): read delay on turbo-stream element 2022-11-16 08:49:37 +01:00
Paul Chavard
f6609d42ce chore(vitejs): update 2022-11-15 18:54:43 +01:00
Paul Chavard
6ad057dcee feat(graphql): upgrade playground version 2022-11-15 11:48:29 +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
de072c8b3d use optional chaining 2022-10-31 16:12:02 +01:00
Christophe Robillard
7441218c7f remove useless debug logs 2022-10-31 16:12:02 +01:00
Christophe Robillard
e10e8f1024 autosubmit filter form 2022-10-31 16:12:02 +01:00
Christophe Robillard
0799c40aaa add pagination for all demarches view 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
d20d9b8625 chore(manager): activate js 2022-10-31 14:06:26 +01:00
Martin
c7c46c9dff design(page de configuration de procedure): passage de la grille au DSFR 2022-10-27 14:00:44 +02: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
4e082d6424 fix(turbo morph): make the morph morph again 2022-10-26 15:20:55 +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
Colin Darie
5a50383a27 style: download links (notice & template) with expected DSFR design & details
Closes #7829
2022-10-11 09:50:21 +02:00
Colin Darie
2d7eca9dd2 feat(combo): debounce only with address / autocomplete binded on API 2022-10-10 21:09:30 +02:00
Paul Chavard
402d0dd3db
Revert "refactor(react): useDeferredValue"
This reverts commit cd4d7b5d36.
2022-10-10 17:36:33 +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
7a9c5e8d19 refactor(ujs): turbo use an id for turbo_stream.update id not a class 2022-09-29 17:04:15 +02:00
Paul Chavard
b0aa777315 refactor(ujs): france_connect controller to use turbo 2022-09-29 16:51:54 +02:00