Commit graph

11309 commits

Author SHA1 Message Date
Colin Darie
39d00c81de
feat(attestation): show template schema 2024-01-31 17:04:01 +01:00
Colin Darie
89a62bacbb
feat(attestation): intitules & footer limit of rows 2024-01-31 17:04:00 +01:00
Colin Darie
1123222b36
chore(schema): add version to attestation_templates 2024-01-31 17:03:59 +01:00
Colin Darie
dfa07c1c5d
style(attestation): editor sections border instead of background 2024-01-31 17:03:58 +01:00
Colin Darie
3391d75633
style(attestation): cap logo size in free layout 2024-01-31 17:03:56 +01:00
Colin Darie
1c3254755d
chore(schema): add official layout to attestation templates 2024-01-31 17:03:55 +01:00
Colin Darie
8ba78d1cfe
feat(attestation): conditional official layout & logo (start) 2024-01-31 17:03:54 +01:00
Colin Darie
9c9daf162d
feat(attestation): render signature 2024-01-31 17:03:53 +01:00
Colin Darie
3b70b36d2d
feat(attestation): footer save, preview 2024-01-31 17:03:52 +01:00
Colin Darie
e19780445b
feat(attestation): upload de logo and signature 2024-01-31 17:03:51 +01:00
Colin Darie
bb19674339
feat(attestation): improve tags suggestion UX, can validate on click 2024-01-31 17:03:50 +01:00
Colin Darie
277b4f4ec8
style(attestation): improve rendering with almost all nodes 2024-01-31 17:03:48 +01:00
Colin Darie
16cdff8425
feat(tiptap): detect first body paragraph for spacing, handle empty nodes 2024-01-31 17:03:47 +01:00
Colin Darie
eaf4e24a55
feat(attestation): v2 edit form and tags style 2024-01-31 17:03:46 +01:00
Colin Darie
84b8fe4b64
style(attestation): add missing remix icons 2024-01-31 17:03:44 +01:00
Colin Darie
3aae580e26
fix(editor): don't labellize tags with double dash 2024-01-31 17:03:43 +01:00
Colin Darie
d01dc82e8c
refactor(attestation): remove footer from doc structure 2024-01-31 17:03:41 +01:00
Colin Darie
45071b7bb6
fix(tiptap): don't fail on node without content 2024-01-31 17:03:40 +01:00
mfo
fcb2d93056
Merge pull request #9954 from mfo/US/procedure-logo-size
ETQ admin les logos de démarches gardent une résolution convenable
2024-01-31 16:01:07 +00:00
Martin
b964ac6a7a perf(rebase): includes champs.types de champs instead of n+1 on this one 2024-01-31 16:20:50 +01:00
Eric Leroy-Terquem
b04f152733 fix(routing): can create simple routing with communes and epci tdc 2024-01-31 15:27:45 +01:00
Martin
6360ae25b0 feat(procedure.logo): avoid to resize logo to the smallest scale otherwise it gets pixelated 2024-01-31 14:33:28 +01:00
Kara Diaby
17a471e880
Merge pull request #9939 from demarches-simplifiees/feat/9937
ETQ Super-Admin, je souhaite marquer une démarche comme modèle
2024-01-31 10:21:30 +00:00
Lisa Durand
3c57b64b1c
Merge pull request #9950 from demarches-simplifiees/fix-duplication-text-for-tiers-in-instructeur-table
Instructeur: corrige une redondance de texte dans le tableau quand un dossier est pour un tiers
2024-01-31 10:18:27 +00:00
Kara Diaby
46748091a6 Permet au Support de marquer une démarche comme modèle et de filtrer dans toutes les démarches 2024-01-31 09:30:14 +00:00
Kara Diaby
94389bb66d layout 2024-01-31 09:30:14 +00:00
Kara Diaby
53372edd02 back 2024-01-31 09:30:14 +00:00
Martin
0650598706 fix(archive.content): include infos administratives in pj generation 2024-01-31 10:22:07 +01:00
Colin Darie
3ea718a3f5
Merge pull request #9664 from adullact/feature-ouidou/admin_creation_delegation_follow_commentaire
ETQ gestionnaire, j'ai un suivi des messages au sein de mes groupes
2024-01-31 08:56:29 +00:00
Lisa Durand
bb236f6c0d fix duplication text for tiers in instructeur table 2024-01-31 09:38:26 +01:00
Colin Darie
df1dd19eac
Merge pull request #9946 from colinux/fix-procedure-external-url
Tech: fix le job de vérification des liens externes des procédures lorsqu'un autre attribut est en erreur
2024-01-29 17:31:38 +00:00
seb-by-ouidou
86c1e1136d feat: for administrateur on cards, replace label edit by see 2024-01-29 18:23:39 +01:00
seb-by-ouidou
6cd8b6d2df feat: for gestionnaire highlight card and commentaires if any unread 2024-01-29 18:23:39 +01:00
seb-by-ouidou
a5d95b2d9d fix: fix activate gestionnaire and activate administrateur 2024-01-29 18:23:39 +01:00
Colin Darie
533ce8d7ba fix(procedure-url-check): don't fail when other attribute have an error 2024-01-29 15:42:35 +01:00
Eric Leroy-Terquem
6203b1fd05
Merge pull request #9879 from demarches-simplifiees/cleaning-conditional-and-routing-code
Tech : nettoyage du code conditionnel et routage
2024-01-29 13:43:52 +00:00
Lisa Durand
173e7d3226 remove hard coded color for better dark mode display 2024-01-29 14:19:50 +01:00
mfo
77ca3dd28a
Merge pull request #9922 from mfo/US/nplus_one_in_summary
perf(TypeDeChampEditor): faster
2024-01-29 10:58:05 +00:00
Colin Darie
a2c43f7fcc
Merge pull request #9941 from colinux/warn-usager-transfer-email
ETQ usager je suis mieux prévenu lors de la suppression d'un dossier en attente de transfert
2024-01-29 10:48:50 +00:00
Colin Darie
5671e9ab19
Merge pull request #9942 from mfo/US/i18n/users/confirmations/new
ETQ usager, la page de confirmation de compte est lisible en anglais
2024-01-29 10:41:24 +00:00
Martin
f1f471a020 feat(ProcedureRevisionPreloader): find PRTDCs and children first, then dispatch on all revision. Apply to admin/procedure/:id/modifications 2024-01-29 11:38:36 +01:00
Martin
0643d15196 i18n(users/confirmations#new): i18n this page 2024-01-29 11:25:18 +01:00
Colin Darie
a582fef1e5
Merge pull request #9934 from colinux/fix-export-link-witout-file
ETQ instructeur, n'affiche pas encore de lien vers un export quand le fichier n'est pas encore disponible
2024-01-29 10:11:33 +00:00
Colin Darie
531a4cb0c4
fix(usager): warn transfered dossier deletion with email 2024-01-29 10:57:45 +01:00
simon lehericey
df031a7563 feat(api): add a curl example to the api_token creation 2024-01-29 10:44:20 +01:00
simon lehericey
d4322bf947 feat(clipboard): can temporary hide for nicer animation 2024-01-29 10:44:20 +01:00
LeSim
e12c663d21
Merge pull request #9940 from demarches-simplifiees/can_edit_again_a_token
Admin: je peux modifier le nom et les réseaux d'un jeton d'API
2024-01-29 09:21:21 +00:00
simon lehericey
5eaa957c31 can edit api_token to change networks and name 2024-01-29 10:09:55 +01:00
simon lehericey
35e9a6e905 delete api token : remove unused template and use turbo 2024-01-29 10:09:55 +01:00
Colin Darie
c02171ede7
Merge pull request #9936 from colinux/badge-corrige
ETQ instructeur, je vois un badge Corrigé lorsque le dossier a été corrigé
2024-01-29 08:57:54 +00:00
Colin Darie
b64a32444c
Merge pull request #9935 from colinux/transfer-empty-no-fail
Tech: plus d'erreur lorsque l'email de transfert n'a plus de dossier associé
2024-01-29 08:43:50 +00:00
Martin
b9bbe70ec5 perf(Administrateurs::ConditionsController#*): better perfs 2024-01-26 15:09:55 +01:00
Martin
01752bc2e8 perf(ProcedureRevisionPreloader): preload revision quickly 2024-01-26 14:47:44 +01:00
Martin
ecc83edf4f wip 2024-01-26 13:43:10 +01:00
simon lehericey
97f335c36a add a cron job to send expiration notice 2024-01-26 10:18:16 +01:00
simon lehericey
6353c10955 add APIToken expiration mailer 2024-01-26 10:18:16 +01:00
simon lehericey
d909e2c8ea add various expiring scopes to APIToken 2024-01-26 10:15:37 +01:00
Martin
0e5768ec5b fixup! perf(editor): better perf to add, destroy, update, move up, move down and move with number 2024-01-26 09:45:59 +01:00
Martin
aae26a863a perf(admin#dashboard): skip validation of PJ 2024-01-25 17:29:39 +01:00
Martin
271ac14fad perf(draft_changed?): do not try to compare revisoin if they are not loaded 2024-01-25 17:20:30 +01:00
Martin
60800b6113 perf(editor): better perf to add, destroy, update, move up, move down and move with number 2024-01-25 15:49:44 +01:00
Martin
4f0e247883 perf(types_de_champs_controller): avoid n+1 query in select_champ_template_position_component 2024-01-25 14:19:55 +01:00
Martin
50d148d412 perf(types_de_champs_controller): preload procedure to avoid n+1 query in champs_summary 2024-01-25 14:19:55 +01:00
Colin Darie
50b9813b4d
Merge pull request #9932 from colinux/lock-submit-fork
Correctif: ETQ usager, je ne peux pas soumettre 2x mes modifications en parallèle
2024-01-25 11:37:56 +00:00
Colin Darie
4aa1306536
feat(transfer): make it silent in case dossier had been destroyed between queuing and processing
Co-authored-by: mfo <mfo@users.noreply.github.com>
2024-01-25 11:31:12 +01:00
simon lehericey
588e58195c move api_tokens to admin module 2024-01-25 11:27:15 +01:00
simon lehericey
3ded9a2a57 feat(api): add some turbo when possible 2024-01-25 11:17:44 +01:00
simon lehericey
9a0dd45385 feat(api): add invalid ip addr error 2024-01-25 11:17:44 +01:00
simon lehericey
eae07cab8c refactor(api): use the new api token creation wizard 2024-01-25 11:17:44 +01:00
simon lehericey
852eedbc50 refactor(api): create api_token with validity and network filtering 2024-01-25 11:17:44 +01:00
simon lehericey
943368c68f feature(api): setup securite 2024-01-25 11:17:44 +01:00
simon lehericey
8a9e5754a1 feature(api): setup autorizations 2024-01-25 11:17:44 +01:00
simon lehericey
1d7b6a6a54 feature(api): setup name 2024-01-25 11:17:44 +01:00
simon lehericey
47076063bb feature(api): remove update 2024-01-25 11:17:44 +01:00
simon lehericey
b635c940ae refactor(UI api token): add more information to api token list
- network filtering
- validity
- last used

remove creation logic
2024-01-25 11:17:43 +01:00
Colin Darie
27cfae8c6a
chore(dossier): warn user that deletion also means transfer cancellation 2024-01-25 11:03:54 +01:00
simon lehericey
a23eb80d22 fix(profil): use fr-container 2024-01-25 10:51:58 +01:00
simon lehericey
7e8555923f feature(api): add ensure_token_is_not_expired to api_controller v1 and v2 2024-01-25 10:51:58 +01:00
simon lehericey
d8bc38bc69 feature(api): add ensure_authorized_network for api_controller v1 and v2 2024-01-25 10:51:58 +01:00
simon lehericey
6e5678d1c2 feature(api): add forbidden_network? to api_token 2024-01-25 10:51:58 +01:00
simon lehericey
4c94eca7c0 clean(ui): remove useless warning 2024-01-25 10:51:58 +01:00
Colin Darie
8e6a1c58b2 feat(correction): badge Corrigé when a correction has been resolved
Closes #9928
2024-01-24 17:26:34 +01:00
Kara Diaby
261932b56f
Merge pull request #9890 from demarches-simplifiees/feat/9725
ETQ expert, je souhaite être notifié des nouveaux messages
2024-01-24 13:17:57 +00:00
Colin Darie
520a7c4402
fix(exports): don't try to link to an export when file is not yet attached 2024-01-24 13:36:25 +01:00
Raphaël Dubigny
7584c17342
Remove user_email input autofocus on agent page
This avoid automatic scroll on page load so the AgentConnect button is visible.
2024-01-24 12:00:32 +01:00
Kara Diaby
ac29cfbfdb Envoie un email à l'expert en cas de nouveau commentaire de l'usager dans la messagerie 2024-01-24 10:48:17 +00:00
Colin Darie
56f8b61866
feat(dossiers): lock submit en construction to avoid merge collisions with double submits 2024-01-24 10:58:40 +01:00
Martin
2952987ad8 refactor(spec): stop using procedure type de champs traits as :with_datetime, :with_xxx in favor of :types_de_champ_public which keeps position in check 2024-01-23 17:30:22 +01:00
Colin Darie
716e4bbe5d
Merge pull request #9645 from adullact/feature-ouidou/admin_creation_delegation_gestionnaire_answer_administrateur
Feature ouidou/admin creation delegation gestionnaire answer administrateur
2024-01-22 15:45:58 +00:00
Martin
0f194a5e8e refactor(procedure_revision): without renumber, use types_de_champ_public factory for ordered champs 2024-01-22 14:57:04 +01:00
mfo
89d2c57cb2 review(sim): some review suggestions
Co-authored-by: LeSim <mail@simon.lehericey.net>
2024-01-22 14:57:04 +01:00
Martin
5c049a1c0f feat(update_draft_revision_type_de_champs_task): force to use real position otherwise have to process parent_coordinates... 2024-01-22 14:57:04 +01:00
Martin
434cd77030 poc(spec): renumber only at one point 2024-01-22 14:57:04 +01:00
Martin
a9c0d3e7e9 tech(clean): avoid useless indirection, cleanup some code complexity, rubocopify 2024-01-22 14:57:04 +01:00
Martin
a78a6b6f34 feat(remove_type_de_champ): stop renumbering all procedure_revision_type_de_champ on remove_type_de_champ 2024-01-22 14:57:04 +01:00
Martin
4d97c5bc8a feat(move_type_de_champ): stop renumbering all procedure_revision_type_de_champ on move_type_de_champ 2024-01-22 14:57:04 +01:00
Martin
4b57ed871a feat(add_type_de_champ): stop renumbering all procedure_revision_type_de_champ 2024-01-22 14:57:04 +01:00
seb-by-ouidou
0bb189d027 feat: replace fail by flast alert 2024-01-22 14:36:38 +01:00
seb-by-ouidou
a6ca4b668e feat: answer message to administrateur as gestionnaire 2024-01-22 14:36:38 +01:00
seb-by-ouidou
b19413643c feat: write message to gestionnaires as administrateur 2024-01-22 14:36:38 +01:00
seb-by-ouidou
9ff1e57feb feat: US5.1 US5.2 administrateur in admin 2024-01-22 14:36:38 +01:00
seb-by-ouidou
e6474f0d14 feat: US4.3.9 children management 2024-01-22 14:36:38 +01:00
seb-by-ouidou
96dd6bec52 feat: US4.3 update and delete groupe gestionnaire 2024-01-22 14:36:38 +01:00
Colin Darie
2f53a017b4
Merge pull request #9886 from colinux/export-ff-active-revision-first
Tech exports: feature flat pour trier les colonnes par révision récente puis position plutôt que mélanger les révisions entre elles
2024-01-22 12:21:32 +00:00
Colin Darie
58c00b2d4e
feat(export): can sort by revision first, instead of mixing revisions 2024-01-22 12:03:30 +01:00
Colin Darie
7892b54aa6 fix(discarded-dossiers): don't crash whole job when a single dossier causes an error 2024-01-17 13:15:42 +01:00
Colin Darie
1a8f839a7e
Merge pull request #9915 from colinux/fix-admin-memory-leak
Perf: remplace les `OpenStruct` par des objets plus performants
2024-01-17 08:59:01 +00:00
Colin Darie
a4db911585
perf(admin): remove 2 useless zones queries on each admin page due to navigation 2024-01-16 19:43:58 +01:00
Colin Darie
e1102ed993
perf(admin): fix N+1 on procedures zones on every admin page 2024-01-16 19:43:56 +01:00
Colin Darie
4408f0f4fb
perf(zone): replace OpenStruct by a Struct label model 2024-01-16 19:43:25 +01:00
Colin Darie
e807752a78
perf(type-de-champ): replace stable_self OpenStruct by Struct model 2024-01-16 19:43:23 +01:00
Colin Darie
fa74cdb4c7
perf(null-zone): replace open struct by struct 2024-01-16 19:43:22 +01:00
Colin Darie
461e311d3d
perf(admin): replace ProcedureDetail open struct with proper struct 2024-01-16 19:43:19 +01:00
Lisa Durand
42d91c1eee correction from PR reviews 2024-01-16 11:23:17 +01:00
Lisa Durand
6773843d52 add clickable summary in champ editor view for admin 2024-01-16 11:23:14 +01:00
Lisa Durand
d9b75ce0a2
Merge pull request #9882 from demarches-simplifiees/add-dossier-reference-in-transfer-email
Je veux que le numéro du dossier apparaisse dans l'email de demande de transfert
2024-01-15 15:39:09 +00:00
mfo
0328446bee
Merge pull request #9861 from demarches-simplifiees/US/move-type-de-champ-with-select
ETQ administrateur, je peux deplacer un champ via un select
2024-01-15 13:09:56 +00:00
Martin
68e9d3513d tech(clean): drop drag and drop champs in editor, ux not ok 2024-01-12 11:00:29 +01:00
Martin
69346ad41f tech(review): implement some pair review suggestions 2024-01-12 11:00:29 +01:00
Colin Darie
8a83fd2ce0
fix(recherche): show notification indicator for instructeurs 2024-01-12 10:09:34 +01:00
Martin
e7eee7ba72 spec(move_and_morph): add some spec and lint with rubocop/haml/eslint 2024-01-11 16:12:09 +01:00
Martin
857a1fc496 fix(select_champ_position): rewire for more robust and easier implementation which work with repetition avoiding double submit 2024-01-11 16:01:24 +01:00
Martin
b4d32e656f feat(ChampComponent): add procedure_revision_type_de_champ.position to ui 2024-01-11 16:01:24 +01:00
Martin
dce06f22a0 feat(type_de_champ_editor): add SelectChampTemplatePosition which feeds SelectChampPositionComponent options 2024-01-11 16:01:24 +01:00
Martin
11de4bdfb6 feat(types_de_champ_editor.ts): wires move_and_morph with type de champs editor [for now, the select is empty and will be synced] 2024-01-11 16:01:24 +01:00
simon lehericey
586e4ed613 to be sure, delete possible email_merge_token if correct password merge 2024-01-11 11:33:38 +01:00
simon lehericey
e12dbe7aad use email_merge_token in email merge 2024-01-11 11:33:38 +01:00
simon lehericey
ca08b80c3e use email_merge_token in mailer 2024-01-11 11:33:38 +01:00
simon lehericey
fca28a3ebd use email_merge_token in mail_merge_with_existing_account route 2024-01-11 11:33:38 +01:00
simon lehericey
90f145e17a add email_merge_token to france connect information 2024-01-11 11:33:38 +01:00
simon lehericey
4c7b494c9d be consistent in france_connect_email sanitation 2024-01-11 11:33:38 +01:00
simon lehericey
6bad272825 style 2024-01-11 11:33:38 +01:00
Colin Darie
0dd3b16d10
Merge pull request #9637 from adullact/feature-ouidou/admin_creation_delegation_administrateur_contact_gestionnaire
Delégation de compte admin: ETQ admin je peux contacter mon/mes gestionnaires de groupe
2024-01-11 09:04:34 +00:00
mfo
e2cb833a51
Merge pull request #9896 from mfo/US/fix-combobox-with-not-trimmed-option
fix(combobox): some old procedure still have options with trailing white spaces. ensure to trim selected value as well as options.value for better comparison
2024-01-11 08:40:11 +00:00
seb-by-ouidou
c45e2eaccc feat: write message to gestionnaires as administrateur 2024-01-09 13:25:04 +01:00
seb-by-ouidou
07dd7a1283 feat: US4.3.8 administrateur management 2024-01-09 13:25:04 +01:00
Colin Darie
103e39159b style(admin): fix alignement in editor with type de champ used by routing 2024-01-08 18:13:33 +01:00
Colin Darie
bdff9a6064 style(admin): improve dark theme on editor section titles & borders 2024-01-08 18:03:07 +01:00
simon lehericey
560c2d763c fix(view_component): use new slot name 2024-01-08 11:57:47 +01:00
mfo
a0248bf08b
Merge pull request #9888 from mfo/US/validate-epci-by-code
Correctif: Le noms des EPCIs changent, ce qui bloque la validation et ou demande a resaisir le champs
2024-01-08 09:56:09 +00:00
Martin
6c5f6dd6f6 fix(combobox): some old procedure still have options with trailing white spaces. ensure to trim selected value as well as options.value for better comparison 2024-01-08 10:29:43 +01:00
Martin
fa07c21ec3 fix(champs.epci): epci names change over time. remap when it occurs 2024-01-04 07:17:15 +01:00
mfo
9df978f6fa
Merge pull request #9887 from mfo/US/fix-fci-missing-device-callback
Correctif: ETQ usager invité, lorsque je crée mon compte via FC, je ne retrouve pas mes invitations
2024-01-04 06:15:14 +00:00
Martin
4073804b00 feat(administrateurs/types_de_champ_controller#move_and_morph): add action to move and morph fields between two coordinates 2024-01-03 11:08:53 +01:00
mfo
e076de2f12
Merge pull request #9889 from mfo/US/allow-dossier-link-in-repetitions
amelioration: ETQ admin je peux utiliser les champs de type dossier dans les répétitions
2024-01-02 08:47:55 +00:00
mfo
002a14188d
Merge pull request #9875 from mfo/US/hint-regexp
ETQ admin, quand je configure un type de champ regexp, j'ai une petite mention sur le bornage de celle ci
2023-12-27 09:43:05 +00:00
Martin
7c5a297bc7 feat(repetitions): allow dossiers links in repetitions 2023-12-26 17:39:01 +01:00
Martin
92730e266b fix(FranceConnect): missing after_confirmation callback, leading to invalites invitations when user france connect 2023-12-26 15:00:15 +01:00
LeSim
d4b4274d26
Merge pull request #9885 from demarches-simplifiees/fix-a-few-typos
Corrections de typos
2023-12-22 22:48:11 +00:00
Eric Leroy-Terquem
a56fa60c78 fix typos 2023-12-22 11:39:09 +01:00