Commit graph

17084 commits

Author SHA1 Message Date
Colin Darie
784b0458fe feat(dolist): consolidate dispatched events with delivered emails 2023-01-18 09:56:40 +01:00
Sébastien Carceles
5c7b2ba1f3
feat(dossier): prefill drop down list champ (#8361)
* feat(dossier): prefill drop down list champ

* decorate the types de champ to avoid if / else

In order to avoid doing if this a drop down ? / else at several places,
we decorate the types de champ and let the decorator give the possible
and example values.

* show all possible values when there are too many

* allow to prefill 'other' option

* review: remove duplicate

* review: refactor for readability

* validate that value is in options

* review: exclude disabled options
2023-01-18 09:47:22 +01:00
Paul Chavard
91117fe97f
Merge pull request #8441 from tchak/fix-and-improuve-autosubmit
feat(autosubmit): data-no-autosubmit can disable only some event types
2023-01-18 09:34:17 +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
424301376f
Merge pull request #8452 from colinux/fix-rails-cve 2023-01-18 09:15:26 +01:00
Colin Darie
e02ba7b07d chore(bundle): rails 6.1.7.1
https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released
2023-01-17 22:29:20 +01:00
Paul Chavard
4a78df87e8
Merge pull request #8446 from demarches-simplifiees/fix_instructeur_dossier_send
restreint le nombre d'instructeur invitable
2023-01-17 17:07:36 +01:00
simon lehericey
8e75b6ff77 fix(send_dossier): avoid leaking instructeur emails 2023-01-17 16:57:56 +01:00
Paul Chavard
ae3fb19c0e
Merge pull request #8447 from colinux/fix-email-event-wo-subject
fix(email-event): apparently mail subject could be null
2023-01-17 16:57:27 +01:00
Colin Darie
ef3546e9f1 fix(email-event): apparently mail subject could be null 2023-01-17 16:46:54 +01:00
Paul Chavard
bb6c53abaa fix(after_party): BatchUpdateDatetimeValueJob -> BatchUpdateDatetimeValuesJob 2023-01-17 16:40:34 +01:00
Paul Chavard
736527b946
Merge pull request #8443 from tchak/fix-after-party
fix(after_party): DateTimeChamp -> DatetimeChamp
2023-01-17 16:22:10 +01:00
Paul Chavard
cd22f106be fix(after_party): DateTimeChamp -> DatetimeChamp 2023-01-17 16:13:59 +01:00
Paul Chavard
a349893530
Merge pull request #8444 from colinux/fix-admin-procedure-detail
Fix: affichage du nombre d'admins d'une démarche sur la page "toutes les démarches"
2023-01-17 16:13:34 +01:00
Colin Darie
13479fc88e
fix(admin): display of procedure admins count 2023-01-17 16:02:08 +01:00
Colin Darie
dcd377b00b
Merge pull request #8435 from colinux/email-error-retry
fix(email): ré-essai si une erreur intervient à l'envoi
2023-01-17 14:32:05 +01:00
Colin Darie
6615165b2e refactor(mailer): extract dolist logic into its concern 2023-01-17 14:26:11 +01:00
Colin Darie
ae7e3cf887 fix: indentation 2023-01-17 14:26:11 +01:00
Colin Darie
ce7e674159 feat(mailer): make errors interceptable by jobs so they will retry
Comme on intercepte chaque `StandardError` pour le monitoring des mails
en erreur, l'erreur n'était plus visible par le job, et les emails
étaient perdus.

A la place on re-raise une autre erreur pour que le job échoue afin de
retry plus tard. Pour ne pas être "avalée" par le rescue_from,
cette erreur doit héritée d'`Exception` plutôt que `StandardError`.

NB: il faudrait parvenir à écrire un test pour vérifier ce comportement.

Pour être vérifié en dev, il faut activer `raise_delivery_errors`
comme en production.
2023-01-17 14:26:11 +01:00
Paul Chavard
1f31a6197e
Merge pull request #8438 from tchak/chore-remove-columns
chore(db): remove unused columns
2023-01-17 12:55:19 +01:00
Paul Chavard
dad393355b chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
Colin Darie
30899803ae
Merge pull request #8373 from demarches-simplifiees/8205-home-remove-tags-presentation
8205 home remove tags presentation
2023-01-17 12:48:15 +01:00
Julie Salha
a2fe2bf4c6 fix error linter continous integration(2) 2023-01-17 12:41:29 +01:00
Julie Salha
fb09c49871 fix error linter continous integration 2023-01-17 12:41:29 +01:00
Julie Salha
96fbf70696 update styles number label 2023-01-17 12:41:29 +01:00
Julie Salha
deddd1fcbe update styles hero text responsive 2023-01-17 12:41:29 +01:00
Julie Salha
15f3fd4e73 remove br tags 2023-01-17 12:41:29 +01:00
Paul Chavard
ca4f597c13
Merge pull request #8439 from tchak/fix-graphql-dossier-n+1
fix(graphql): n+1 on single dossier loading
2023-01-17 11:43:23 +01:00
Paul Chavard
b5c189de63 fix(graphql): n+1 on single dossier loading 2023-01-17 11:23:21 +01:00
Paul Chavard
9db84cfd25
Merge pull request #8377 from tchak/use-coldwired
refactor(turbo): use @coldwired/actions
2023-01-16 21:48:14 +01:00
Paul Chavard
7f9414012e refactor(turbo): use @coldwired/actions 2023-01-16 21:40:10 +01:00
Paul Chavard
0d2da7bac9
Merge pull request #8429 from tchak/refactor-normalize-controller
refactor(js): add generic "format" controller
2023-01-16 21:31:11 +01:00
Paul Chavard
5f192f93e0 refactor(js): make generic format controller 2023-01-16 21:23:33 +01:00
Paul Chavard
bdd0ab0a22
Merge pull request #8430 from tchak/refactor-on-with-target
feat(stimulus): allow `on` with target
2023-01-16 16:55:16 +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
ab9f269c06
Merge pull request #8428 from tchak/refactor-more-autosave
refactor(js): more forms to use autosubmit controller
2023-01-16 16:07:56 +01:00
Paul Chavard
a0878ffde5 feat(turbo): prevent scroll on form submits 2023-01-16 15:59:43 +01:00
Paul Chavard
a9d4ff85e6 refactor(js): more autosubmit controllers 2023-01-16 15:59:43 +01:00
Paul Chavard
3ea02b182a
Merge pull request #8432 from tchak/feat-better-filters
feat(dossier): use select in filters by groupe instructeur
2023-01-16 15:59:10 +01:00
Paul Chavard
44488c7014 feat(dossier): use select in filters bygroupe instructeur 2023-01-16 14:00:08 +01:00
Colin Darie
dc222dc6be
Merge pull request #7484 from hadrienblanc/feat/6775
Chaque lien est-il explicite (hors cas particuliers) ?
2023-01-16 13:25:01 +01:00
Colin Darie
f02f9a13a8 fix(i18n): fix same typo with missing a word 2023-01-16 13:19:11 +01:00
Hadrien Blanc
2d19444b93
add 'pas' on the link title 2023-01-16 13:15:04 +01:00
Lisa Durand
eadd84bfb4 authorize follow and unfollow for all dossier states 2023-01-16 11:14:29 +01:00
Martin
0aba708b34 correctif(spec): associe le dossier suivis a l'instructeur du batch operation. sinon c'est un autre instructeur qui est crée 2023-01-16 11:14:29 +01:00
Lisa Durand
8fbb866aba fix component spec 2023-01-16 11:14:29 +01:00
Lisa Durand
db3085fa33 design : make filter buttons tertiary and dropdown secondary 2023-01-16 11:14:29 +01:00
Lisa Durand
06c6a4ab0c add action 'unfollow' to page 'suivis' 2023-01-16 11:14:29 +01:00