Skip to content

Commit

Permalink
Merge pull request #3261 from betagouv/retours-ux-dila-global
Browse files Browse the repository at this point in the history
Améliorations UX - site actuel
  • Loading branch information
LucienMLD authored Dec 13, 2023
2 parents 08fae7e + f439dd2 commit 672eba8
Show file tree
Hide file tree
Showing 44 changed files with 720 additions and 497 deletions.
201 changes: 201 additions & 0 deletions app/assets/images/je-donne-mon-avis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion app/assets/images/lightbulb-flash-fill.svg

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/images/pointbetagouvfr.svg

This file was deleted.

12 changes: 6 additions & 6 deletions app/controllers/solicitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def search_company
if siret_is_set?
update_step_company_method
elsif siren_is_set?
redirect_path = { controller: "/solicitations", action: "search_facility", uuid: @solicitation.uuid, anchor: 'section-formulaire' }.merge(search_params)
redirect_path = { controller: "/solicitations", action: "search_facility", uuid: @solicitation.uuid, anchor: 'section-breadcrumbs' }.merge(search_params)
redirect_to redirect_path and return
else
result = SearchFacility::Diffusable.new(search_params).from_full_text_or_siren
Expand Down Expand Up @@ -109,7 +109,7 @@ def update_step_company_method
@solicitation.go_to_step_description if @solicitation.may_go_to_step_description?
sanitized_params = sanitize_params(solicitation_params)
if @solicitation.update(sanitized_params)
redirect_to step_description_solicitation_path(@solicitation.uuid, anchor: 'section-formulaire')
redirect_to step_description_solicitation_path(@solicitation.uuid, anchor: 'section-breadcrumbs')
else
flash.alert = @solicitation.errors.full_messages.to_sentence
render :step_company
Expand Down Expand Up @@ -151,12 +151,12 @@ def redirect_to_solicitation_step
solicitation.update(relaunch: params.require(:relaunch)) if params[:relaunch].present?
case solicitation.status
when 'step_company'
redirect_to step_company_search_solicitation_path(solicitation.uuid, anchor: 'section-formulaire')
redirect_to step_company_search_solicitation_path(solicitation.uuid, anchor: 'section-breadcrumbs')
# canceled : mail mauvaise qualité à modifier
when 'step_description','canceled'
redirect_to step_description_solicitation_path(solicitation.uuid, anchor: 'section-formulaire')
redirect_to step_description_solicitation_path(solicitation.uuid, anchor: 'section-breadcrumbs')
else
redirect_to step_contact_solicitation_path(solicitation.uuid, anchor: 'section-formulaire')
redirect_to step_contact_solicitation_path(solicitation.uuid, anchor: 'section-breadcrumbs')
end
end

Expand All @@ -181,7 +181,7 @@ def build_institution_filters

# on dirige vers la recherche de siret si le champs "company" est le siret
def retrieve_company_step_path
@solicitation.company_step_is_siret? ? step_company_search_solicitation_path(@solicitation.uuid, anchor: 'section-formulaire') : step_company_solicitation_path(@solicitation.uuid, anchor: 'section-formulaire')
@solicitation.company_step_is_siret? ? step_company_search_solicitation_path(@solicitation.uuid, anchor: 'section-breadcrumbs') : step_company_solicitation_path(@solicitation.uuid, anchor: 'section-breadcrumbs')
end

def siret_is_set?
Expand Down
1 change: 1 addition & 0 deletions app/front/packs/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import "@hotwired/turbo-rails";

require("@rails/ujs").start();
require('remixicon/fonts/remixicon.css');
require('@gouvfr/dsfr/dist/utility/icons/icons-communication/icons-communication.css')
require('@gouvfr/dsfr/dist/dsfr/dsfr.css')
require('stylesheets/pages.sass')

Expand Down
13 changes: 13 additions & 0 deletions app/front/stylesheets/components/cards-landing.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Carte landings
.landing-card.fr-enlarge-link
border: 2px solid transparent
&:hover
border: 2px solid $blue
.fr-card__title
font-size: 1.5rem
line-height: 2rem
.fr-card__desc
font-size: 1rem
line-height: 1.5rem
margin-top: 1rem
6 changes: 0 additions & 6 deletions app/front/stylesheets/components/tiles.sass
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
.landing
.fr-tile
flex-direction: column !important
box-shadow: none
border: 2px solid transparent
&:hover
border: 2px solid $blue
.landing-subject
background: #f9fafc
box-shadow: none
Expand Down
1 change: 1 addition & 0 deletions app/front/stylesheets/pages.sass
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import 'components/tiles'
@import 'components/charts'
@import 'components/skeleton_card'
@import 'components/cards-landing'

//pages
@import "pages/home"
Expand Down
2 changes: 1 addition & 1 deletion app/front/stylesheets/pages/home.sass
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
margin-right: 0.5rem
.contact-us
font-size: 1.2rem
margin: 2rem 0 0 0
margin: 3rem 0 2rem
a
color: $blue
Loading

0 comments on commit 672eba8

Please sign in to comment.