Commit graph

11038 commits

Author SHA1 Message Date
Pierre de La Morinerie
b9779174b8
Merge pull request #5353 from betagouv/dev 2020-07-08 11:32:26 +02:00
dependabot[bot]
2abc8a0d28
build(deps): bump rack from 2.0.9 to 2.2.3
Bumps [rack](https://github.com/rack/rack) from 2.0.9 to 2.2.3.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/2.0.9...2.2.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-08 09:11:55 +00:00
Pierre de La Morinerie
b50a4947e3
Merge pull request #5293 from betagouv/rails6-with-gems
Mise à jour de Rails vers la version 6
2020-07-08 11:10:56 +02:00
clemkeirua
68b37cf6aa config: make default Rails 5 config explicit 2020-07-08 11:00:12 +02:00
Pierre de La Morinerie
cd65dc14dd models: fix ProcedurePresentation#sorted_ids
The `Dossier#with_notifications` scope needs to be composed with an
`instructeurs` scope. But it seems Rails 6 will only generate proper
SQL if the `instructeurs` scope is merged before filtering on
`with_notifications`.
2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
2f7fbc8474 specs: fix shared/attachement/_update.html.haml spec
Avoid purging a non-saved file.
2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
4aeb8c392f bill_signature: fix reading unsaved attachments
Since Rails 6, an unsaved attachment_changes can contain either
a Tempfile, or an hash with an :io key.

squash! bill_signature: fix reading unsaved attachments
2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
e2b8545222 config: fix missing default list of allowed HTML tags
See https://github.com/rails/rails/issues/39586
2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
a4ed845e43 models: fix attestation template rendering on Rails 6 2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
04a6862fa6 spec: fix application_controller_spec
Rails controllers now looks for `media_type` rather than `content_type`.
2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
0a3b4f7476 specs: fix some test helpers 2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
2261c6c5d2 specs: refactor dossiers_controller_spec 2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
b8706757e3 controllers: disable explicit purge of invalid file 2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
719915e69f attestations: fix test of the logo preview
Now that attaching the logo doesn't save it, we can safely display the
preview without saving the logo first.
2020-07-07 18:03:56 +02:00
Pierre de La Morinerie
35240e2219 lint: fix Rubocop warnings
The Rails/UniqueValidationWithoutIndex rule is disabled for now, but
we'll need to re-enable it (and fix the underlying issues) after the
migration to Rails 6.
2020-07-07 18:03:56 +02:00
Paul Chavard
6cc76cdf05 WIP 2020-07-07 18:03:56 +02:00
Paul Chavard
04feada77e Use respond_to 2020-07-07 18:03:56 +02:00
Paul Chavard
f558b61298 Update schema.rb comment 2020-07-07 18:03:56 +02:00
Paul Chavard
c9ab80c880 WIP 2020-07-07 18:03:56 +02:00
Paul Chavard
13c21d89af Fix attestation_template spec 2020-07-07 18:03:56 +02:00
Paul Chavard
6a24c3f812 Rails app:update 2020-07-07 18:03:56 +02:00
Paul Chavard
fc3aece318 Rails 6 2020-07-07 18:03:56 +02:00
jpoulvel
bb1ae34ffd
Merge pull request #5346 from betagouv/dev
2020-07-07-03
2020-07-07 17:51:32 +02:00
Pierre de La Morinerie
40f78114ad
Merge pull request #5344 from betagouv/fix_instructeur_procedure_path
Instructeur : correction de l'affichage des pages de notification et de statistiques de la démarche
2020-07-07 17:37:20 +02:00
Judith
927a3b3efd fix all instructeur procedure_path into instructeur_procedure_path 2020-07-07 17:11:46 +02:00
Judith
060022df78 fix instructeur_mail_notifications 2020-07-07 17:11:46 +02:00
jpoulvel
90f04124b8
Merge pull request #5343 from betagouv/dev
2020-07-07-02
2020-07-07 17:03:48 +02:00
Pierre de La Morinerie
448df0ae5f
Merge pull request #5341 from betagouv/fix_apercu
Administrateur : correction d'une erreur sur la page "Nouvelle démarche"
2020-07-07 16:52:21 +02:00
Judith
2adb854bf8 new_from_existing : added new route for 'Consulter' 2020-07-07 14:51:08 +00:00
jpoulvel
acdf059139
Merge pull request #5340 from betagouv/dev
2020-07-07-01
2020-07-07 16:25:07 +02:00
jpoulvel
192a2e795d
Merge pull request #5327 from betagouv/new_url_for_new_administrateur
Nettoyage des routes /admin
2020-07-07 16:15:47 +02:00
Judith
9793128f61 'Services' routes moved under 'new_administrateur' scope and '/admn' added in their url 2020-07-07 14:08:01 +00:00
Judith
782706537d Changed the routes to pass all new design admin pages under
'new_administrateur' scope, except 'services'.
As a result, the url of these pages will all include '/admin'.
2020-07-07 14:08:01 +00:00
Pierre de La Morinerie
9a89b3d2f0
Merge pull request #5336 from betagouv/tabs-more-visible
Amélioration de la visibilité des onglets de l'interface
2020-07-07 11:15:08 +02:00
Pierre de La Morinerie
f5f7a47de3 stylesheet: make the selected tab more visible
Tabs are notoriously hard to notice. Make them stand out more.
2020-07-07 11:02:15 +02:00
Pierre de La Morinerie
38bc85d8d4
Merge pull request #5335 from betagouv/fix-disclosure-indicator
Usager : le triangle à côté de la date de clôture de la démarche est maintenant correctement masqué
2020-07-07 10:37:24 +02:00
Pierre de La Morinerie
c3b648f975 stylesheets: hide summary details marker on procedure summary
Chrome needs a specific syntax, but other browsers use the standard way.

See developer.mozilla.org/fr/docs/Web/HTML/Element/details#Personnaliser_le_marqueur_de_r%C3%A9v%C3%A9lation
2020-07-07 10:20:01 +02:00
Pierre de La Morinerie
b6fbf9bd4b gems: update scss_lint
Fix false-positive on pseudo-elements.
2020-07-07 10:20:01 +02:00
Keirua
6c841cba12
Merge pull request #5338 from betagouv/fix-bill-dashboard
Fix broken bill dashboard page
2020-07-07 10:17:48 +02:00
clemkeirua
90efbe66a9 define SHOW_PAGE_ATTRIBUTES for bill dashboard 2020-07-07 08:06:37 +00:00
Keirua
11b9847a33
Merge pull request #5337 from betagouv/fix-broken-empty-demandes-screen
fix demandes adapter when no demandes
2020-07-07 10:04:41 +02:00
clemkeirua
d5c955080b fix demandes adapter when no demandes 2020-07-07 09:24:23 +02:00
Pierre de La Morinerie
b5ce7e5324
Merge pull request #5334 from betagouv/improve-synthese-badges
Instructeur : amélioration de l'apparence des badges de synthèse des dossiers
2020-07-06 17:56:11 +02:00
Pierre de La Morinerie
5f1d38a555 stylesheets: improve procedure synthese badges
- Align with baseline
- More padding
- More margin
- Use constants for colors and margins
2020-07-06 15:11:45 +02:00
Pierre de La Morinerie
71c59c1085
Merge pull request #5332 from betagouv/dev 2020-07-06 12:12:09 +02:00
Pierre de La Morinerie
612c826d04
Merge pull request #5331 from betagouv/fix-numbers-rendering
Correction des exports PDF des dossiers, dans le cas où l'effectif mensuel était présent
2020-07-06 11:52:12 +02:00
Pierre de La Morinerie
975d1648d5 dossier: fix PDF rendering of effectif_mensuel
The effectif_mensuel was a number, it needs to be converted explicitely
into a string.

As a bonus, `nil.to_s` is `""`, so we can remove the special case for
nil.
2020-07-06 11:41:25 +02:00
Pierre de La Morinerie
060bf1f9ca factories: flesh out the default etablissement for a dossier 2020-07-06 11:41:25 +02:00
Pierre de La Morinerie
a78c0441d6
Merge pull request #5328 from betagouv/fix-select-width
Usager : correction de la largeur maximale des menus déroulants
2020-07-06 10:59:30 +02:00
Pierre de La Morinerie
a810daeb0c stylesheets: fix with of large select elements
Select elements with very long options would overflow the form
width, and create a disgraceful scroller bar on the bottom of the
screen.
2020-07-06 10:55:34 +02:00