From 96ebd07e3b0f0a9ab98b841ba5ece2bb9eab7f0c Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Fri, 27 Sep 2024 12:10:11 +0200 Subject: [PATCH 01/11] mmissing tech name for bleaching --- public/data/textile/processes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/data/textile/processes.json b/public/data/textile/processes.json index 05b556354..706dbda98 100644 --- a/public/data/textile/processes.json +++ b/public/data/textile/processes.json @@ -2964,7 +2964,7 @@ "alias": "dyeing-cellulosic-fiber" }, { - "name": "Blanchiment", + "name": "bleaching, textile//[RoW] bleaching, textile", "displayName": "Blanchiment", "info": "Textile > Ennoblissement > Blanchiment", "unit": "kg", From 84cca880417de2399b6eb78ac82bfe0abcc54118 Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 10:17:53 +0200 Subject: [PATCH 02/11] =?UTF-8?q?Sc.=20Imp.=20=E2=86=92=20Co=C3=BBt=20Evt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Page/Explore/Impacts.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Page/Explore/Impacts.elm b/src/Page/Explore/Impacts.elm index fde85a3ff..468b998f8 100644 --- a/src/Page/Explore/Impacts.elm +++ b/src/Page/Explore/Impacts.elm @@ -61,7 +61,7 @@ table { detailed, scope } = >> Maybe.withDefault 0 , toCell = .pefData >> Maybe.map (.weighting >> Format.splitAsPercentage 2) >> Maybe.withDefault (text "N/A") } - , { label = "Normalisation (Sc. Imp.)" + , { label = "Normalisation (Coût Evt)" , toValue = Table.FloatValue <| .ecoscoreData @@ -73,7 +73,7 @@ table { detailed, scope } = |> Maybe.map (.normalization >> Unit.impactToFloat >> Format.formatRichFloat 2 def.unit) |> Maybe.withDefault (text "N/A") } - , { label = "Pondération (Sc. Imp.)" + , { label = "Pondération (Coût Evt)" , toValue = Table.FloatValue <| .ecoscoreData From 3b503ff42aa552b62a795b996710ca434547544f Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 10:19:12 +0200 Subject: [PATCH 03/11] =?UTF-8?q?Co=C3=BBt=20evt=20before=20PEF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Page/Explore/Impacts.elm | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Page/Explore/Impacts.elm b/src/Page/Explore/Impacts.elm index 468b998f8..06d9c0189 100644 --- a/src/Page/Explore/Impacts.elm +++ b/src/Page/Explore/Impacts.elm @@ -41,45 +41,45 @@ table { detailed, scope } = , toValue = Table.StringValue <| .unit , toCell = \def -> code [] [ text def.unit ] } - , { label = "Normalisation (PEF)" + , { label = "Normalisation (Coût Evt)" , toValue = Table.FloatValue <| - .pefData + .ecoscoreData >> Maybe.map (.normalization >> Unit.impactToFloat) >> Maybe.withDefault 0 , toCell = \def -> - def.pefData + def.ecoscoreData |> Maybe.map (.normalization >> Unit.impactToFloat >> Format.formatRichFloat 2 def.unit) |> Maybe.withDefault (text "N/A") } - , { label = "Pondération (PEF)" + , { label = "Pondération (Coût Evt)" , toValue = Table.FloatValue <| - .pefData + .ecoscoreData >> Maybe.map (.weighting >> Split.toFloat) >> Maybe.withDefault 0 - , toCell = .pefData >> Maybe.map (.weighting >> Format.splitAsPercentage 2) >> Maybe.withDefault (text "N/A") + , toCell = .ecoscoreData >> Maybe.map (.weighting >> Format.splitAsPercentage 2) >> Maybe.withDefault (text "N/A") } - , { label = "Normalisation (Coût Evt)" + , { label = "Normalisation (PEF)" , toValue = Table.FloatValue <| - .ecoscoreData + .pefData >> Maybe.map (.normalization >> Unit.impactToFloat) >> Maybe.withDefault 0 , toCell = \def -> - def.ecoscoreData + def.pefData |> Maybe.map (.normalization >> Unit.impactToFloat >> Format.formatRichFloat 2 def.unit) |> Maybe.withDefault (text "N/A") } - , { label = "Pondération (Coût Evt)" + , { label = "Pondération (PEF)" , toValue = Table.FloatValue <| - .ecoscoreData + .pefData >> Maybe.map (.weighting >> Split.toFloat) >> Maybe.withDefault 0 - , toCell = .ecoscoreData >> Maybe.map (.weighting >> Format.splitAsPercentage 2) >> Maybe.withDefault (text "N/A") + , toCell = .pefData >> Maybe.map (.weighting >> Format.splitAsPercentage 2) >> Maybe.withDefault (text "N/A") } , { label = "Description" , toValue = Table.StringValue .description From 1e002eba72f59d255a43838a45d116f7e5c6271c Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 10:38:58 +0200 Subject: [PATCH 04/11] "Domaines" does not need to be displayed. It show "Textile" in "Food" and "Food" in "Textile" --- src/Page/Explore/Countries.elm | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Page/Explore/Countries.elm b/src/Page/Explore/Countries.elm index 59d27e9a1..4c640feb1 100644 --- a/src/Page/Explore/Countries.elm +++ b/src/Page/Explore/Countries.elm @@ -9,7 +9,6 @@ import Data.Transport as Transport import Dict.Any as Dict import Html exposing (..) import Html.Attributes exposing (..) -import Page.Explore.Common as Common import Page.Explore.Table as Table exposing (Table) import Route import Views.Format as Format @@ -68,11 +67,6 @@ table distances countries { detailed, scope } = else Nothing - , Just - { label = "Domaines" - , toValue = Table.StringValue <| .scopes >> List.map Scope.toLabel >> String.join "/" - , toCell = Common.scopesView - } , if detailed then Just { label = "Distances" From 138d43d9e0b78b73fcd8a6dcac52d4036793401d Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 11:47:05 +0200 Subject: [PATCH 05/11] Added links to the doc --- src/Data/Gitbook.elm | 10 ++++++++- src/Page/Explore/TextileMaterials.elm | 31 ++++++++++++++++++++++----- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/Data/Gitbook.elm b/src/Data/Gitbook.elm index 52ed7febe..ff4448c72 100644 --- a/src/Data/Gitbook.elm +++ b/src/Data/Gitbook.elm @@ -16,6 +16,8 @@ type Path | FoodTransformation -- Transformation des ingrédients | FoodTransport -- Transport entre étapes | FoodUse -- Consommation + | TextileCircularFootprintFormula -- Circular Footprint Formula (CFF) + | TextileCircularFootprintFormula2 -- Circular Footprint Formula (CFF) | TextileComplementMicrofibers -- Complément textile microfibres | TextileDistribution -- Distribution textile | TextileDurability -- Durabilité textile @@ -69,6 +71,12 @@ pathToString path = FoodUse -> "alimentaire/etapes-du-cycles-de-vie/consommation" + TextileCircularFootprintFormula -> + "textile/cycle-de-vie-des-produits-textiles/circular-footpring-formula-cff" + + TextileCircularFootprintFormula2 -> + "textile/cycle-de-vie-des-produits-textiles/etape-1-matieres/calcul-de-limpact-matiere-circular-footprint-formula-cff" + TextileComplementMicrofibers -> "textile/complements-hors-acv/microfibres" @@ -124,7 +132,7 @@ pathToString path = "textile/etapes-du-cycle-de-vie/etape-1-matieres" TextileSpinning -> - "textile/etapes-du-cycle-de-vie/etape-2-fabrication-du-fil-new" + "textile/cycle-de-vie-des-produits-textiles/etape-2-fabrication-du-fil" TextileTransport -> "textile/parametres-transverses/transport" diff --git a/src/Page/Explore/TextileMaterials.elm b/src/Page/Explore/TextileMaterials.elm index 0ac362b89..31f20edb6 100644 --- a/src/Page/Explore/TextileMaterials.elm +++ b/src/Page/Explore/TextileMaterials.elm @@ -2,6 +2,7 @@ module Page.Explore.TextileMaterials exposing (table) import Data.Country as Country import Data.Dataset as Dataset +import Data.Gitbook as Gitbook import Data.Scope exposing (Scope) import Data.Split as Split import Data.Textile.Material as Material exposing (Material) @@ -14,6 +15,8 @@ import Route import Static.Db exposing (Db) import Views.Alert as Alert import Views.Format as Format +import Views.Icon as Icon +import Views.Link as Link recycledToString : Maybe Material.Id -> String @@ -69,11 +72,21 @@ table db { detailed, scope } = [ Origin.toMicrofibersComplement origin |> Unit.impactToFloat |> Format.formatImpactFloat { unit = "\u{202F}Pts/kg", decimals = 2 } + , Link.smallPillExternal + [ href (Gitbook.publicUrlFromPath Gitbook.TextileComplementMicrofibers) ] + [ Icon.question ] ] } , { label = "Procédé de fabrication du fil" , toValue = Table.StringValue <| .origin >> Origin.threadProcess - , toCell = .origin >> Origin.threadProcess >> text + , toCell = + \{ origin } -> + div [ classList [ ( "text-center", not detailed ) ] ] + [ Origin.threadProcess origin |> text + , Link.smallPillExternal + [ href (Gitbook.publicUrlFromPath Gitbook.TextileSpinning) ] + [ Icon.question ] + ] } , { label = "Procédé de recyclage" , toValue = Table.StringValue <| .recycledProcess >> Maybe.map .name >> Maybe.withDefault "N/A" @@ -115,8 +128,12 @@ table db { detailed, scope } = \{ cffData } -> case cffData of Just { manufacturerAllocation } -> - manufacturerAllocation - |> Format.splitAsFloat 1 + div [ classList [ ( "text-center", not detailed ) ] ] + [ manufacturerAllocation |> Format.splitAsFloat 1 + , Link.smallPillExternal + [ href (Gitbook.publicUrlFromPath Gitbook.TextileCircularFootprintFormula) ] + [ Icon.question ] + ] Nothing -> text "N/A" @@ -131,8 +148,12 @@ table db { detailed, scope } = \{ cffData } -> case cffData of Just { recycledQualityRatio } -> - recycledQualityRatio - |> Format.splitAsFloat 1 + div [ classList [ ( "text-center", not detailed ) ] ] + [ recycledQualityRatio |> Format.splitAsFloat 1 + , Link.smallPillExternal + [ href (Gitbook.publicUrlFromPath Gitbook.TextileCircularFootprintFormula2) ] + [ Icon.question ] + ] Nothing -> text "N/A" From d9dba100000735a554fc9cc7ff4676c2686c9554 Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 11:59:16 +0200 Subject: [PATCH 06/11] =?UTF-8?q?Removed=20"mise=20en=20d=C3=A9charge"=20a?= =?UTF-8?q?s=20the=20used=20process=20is=20"end-of-life"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/data/textile/processes.json | 38 ------------------------------ 1 file changed, 38 deletions(-) diff --git a/public/data/textile/processes.json b/public/data/textile/processes.json index 706dbda98..c6d290386 100644 --- a/public/data/textile/processes.json +++ b/public/data/textile/processes.json @@ -2583,44 +2583,6 @@ "waste": 0, "alias": "passenger-car" }, - { - "name": "Mise en décharge de textiles, FR", - "displayName": "Mise en décharge de textiles, FR", - "info": "Traitement de fin de vie > Mise en décharge > Fractions de déchets", - "unit": "kg", - "source": "Ecobalyse", - "correctif": "Précalcul Ecobalyse à partir de Base Impacts", - "step_usage": "Utilisation", - "uuid": "9adaf403-4eda-4d9c-80c3-f231754644ca", - "impacts": { - "acd": 0, - "cch": 0, - "etf": 0, - "etf-c": 0, - "fru": 0, - "fwe": 0, - "htc": 0, - "htc-c": 0, - "htn": 0, - "htn-c": 0, - "ior": 0, - "ldu": 0, - "mru": 0, - "ozd": 0, - "pco": 0, - "pma": 0, - "swe": 0, - "tre": 0, - "wtu": 0, - "ecs": 66.8698252969278, - "pef": 68.14941102161761 - }, - "heat_MJ": 0, - "elec_pppm": 0, - "elec_MJ": 0, - "waste": 0, - "alias": null - }, { "name": "Fin de vie hors voiture (transport en camion, incinération, mise en décharge)", "displayName": "Fin de vie hors voiture (transport en camion, incinération, mise en décharge)", From 75ffc91a3949f5520a5d1d1a6dbf12be3c2d4aff Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 12:20:10 +0200 Subject: [PATCH 07/11] unused function --- src/Page/Explore/Common.elm | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Page/Explore/Common.elm b/src/Page/Explore/Common.elm index 1a3ea90fd..a097ae159 100644 --- a/src/Page/Explore/Common.elm +++ b/src/Page/Explore/Common.elm @@ -1,10 +1,8 @@ module Page.Explore.Common exposing ( boolText , impactBarGraph - , scopesView ) -import Data.Scope as Scope exposing (Scope) import Html exposing (..) import Html.Attributes exposing (..) import Views.Format as Format @@ -19,17 +17,6 @@ boolText bool = "non" -scopesView : { a | scopes : List Scope } -> Html msg -scopesView = - .scopes - >> List.map - (\scope -> - span [ class "badge badge-success" ] - [ text <| Scope.toLabel scope ] - ) - >> div [ class "d-flex gap-1" ] - - impactBarGraph : Bool -> Float -> Float -> Html msg impactBarGraph detailed max score = let From 4c92dd1f90159f237f68247f305caa3c6a4c7b19 Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 16:46:34 +0200 Subject: [PATCH 08/11] renamed one of the CFF pages --- src/Data/Gitbook.elm | 4 ++-- src/Page/Explore/TextileMaterials.elm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Data/Gitbook.elm b/src/Data/Gitbook.elm index ff4448c72..d0cfe4bc9 100644 --- a/src/Data/Gitbook.elm +++ b/src/Data/Gitbook.elm @@ -17,7 +17,7 @@ type Path | FoodTransport -- Transport entre étapes | FoodUse -- Consommation | TextileCircularFootprintFormula -- Circular Footprint Formula (CFF) - | TextileCircularFootprintFormula2 -- Circular Footprint Formula (CFF) + | TextileMaterialCFF -- Circular Footprint Formula (CFF) | TextileComplementMicrofibers -- Complément textile microfibres | TextileDistribution -- Distribution textile | TextileDurability -- Durabilité textile @@ -74,7 +74,7 @@ pathToString path = TextileCircularFootprintFormula -> "textile/cycle-de-vie-des-produits-textiles/circular-footpring-formula-cff" - TextileCircularFootprintFormula2 -> + TextileMaterialCFF -> "textile/cycle-de-vie-des-produits-textiles/etape-1-matieres/calcul-de-limpact-matiere-circular-footprint-formula-cff" TextileComplementMicrofibers -> diff --git a/src/Page/Explore/TextileMaterials.elm b/src/Page/Explore/TextileMaterials.elm index 31f20edb6..35908f02b 100644 --- a/src/Page/Explore/TextileMaterials.elm +++ b/src/Page/Explore/TextileMaterials.elm @@ -151,7 +151,7 @@ table db { detailed, scope } = div [ classList [ ( "text-center", not detailed ) ] ] [ recycledQualityRatio |> Format.splitAsFloat 1 , Link.smallPillExternal - [ href (Gitbook.publicUrlFromPath Gitbook.TextileCircularFootprintFormula2) ] + [ href (Gitbook.publicUrlFromPath Gitbook.TextileMaterialCFF) ] [ Icon.question ] ] From 14e060194afad1dc01058ab89da3b95ad809ac9b Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 17:11:11 +0200 Subject: [PATCH 09/11] refactored 4 patterns into a function --- src/Page/Explore/TextileMaterials.elm | 69 +++++++++++---------------- 1 file changed, 29 insertions(+), 40 deletions(-) diff --git a/src/Page/Explore/TextileMaterials.elm b/src/Page/Explore/TextileMaterials.elm index 35908f02b..c631278a9 100644 --- a/src/Page/Explore/TextileMaterials.elm +++ b/src/Page/Explore/TextileMaterials.elm @@ -28,6 +28,12 @@ recycledToString maybeMaterialID = table : Db -> { detailed : Bool, scope : Scope } -> Table Material String msg table db { detailed, scope } = + let + withPill url content = + div + [ classList [ ( "text-center", not detailed ) ] ] + [ content, Link.smallPillExternal [ href (Gitbook.publicUrlFromPath url) ] [ Icon.question ] ] + in { filename = "materials" , toId = .id >> Material.idToString , toRoute = .id >> Just >> Dataset.TextileMaterials >> Route.Explore scope @@ -67,26 +73,19 @@ table db { detailed, scope } = , { label = "Complément Microfibres" , toValue = Table.FloatValue <| .origin >> Origin.toMicrofibersComplement >> Unit.impactToFloat , toCell = - \{ origin } -> - div [ classList [ ( "text-center", not detailed ) ] ] - [ Origin.toMicrofibersComplement origin - |> Unit.impactToFloat - |> Format.formatImpactFloat { unit = "\u{202F}Pts/kg", decimals = 2 } - , Link.smallPillExternal - [ href (Gitbook.publicUrlFromPath Gitbook.TextileComplementMicrofibers) ] - [ Icon.question ] - ] + .origin + >> Origin.toMicrofibersComplement + >> Unit.impactToFloat + >> Format.formatImpactFloat { unit = "\u{202F}Pts/kg", decimals = 2 } + >> withPill Gitbook.TextileComplementMicrofibers } , { label = "Procédé de fabrication du fil" , toValue = Table.StringValue <| .origin >> Origin.threadProcess , toCell = - \{ origin } -> - div [ classList [ ( "text-center", not detailed ) ] ] - [ Origin.threadProcess origin |> text - , Link.smallPillExternal - [ href (Gitbook.publicUrlFromPath Gitbook.TextileSpinning) ] - [ Icon.question ] - ] + .origin + >> Origin.threadProcess + >> text + >> withPill Gitbook.TextileSpinning } , { label = "Procédé de recyclage" , toValue = Table.StringValue <| .recycledProcess >> Maybe.map .name >> Maybe.withDefault "N/A" @@ -125,18 +124,13 @@ table db { detailed, scope } = >> Maybe.map (.manufacturerAllocation >> Split.toFloat) >> Maybe.withDefault 0 , toCell = - \{ cffData } -> - case cffData of - Just { manufacturerAllocation } -> - div [ classList [ ( "text-center", not detailed ) ] ] - [ manufacturerAllocation |> Format.splitAsFloat 1 - , Link.smallPillExternal - [ href (Gitbook.publicUrlFromPath Gitbook.TextileCircularFootprintFormula) ] - [ Icon.question ] - ] - - Nothing -> - text "N/A" + .cffData + >> Maybe.map + (.manufacturerAllocation + >> Format.splitAsFloat 1 + >> withPill Gitbook.TextileCircularFootprintFormula + ) + >> Maybe.withDefault (text "N/A") } , { label = "CFF: Rapport de qualité" , toValue = @@ -145,18 +139,13 @@ table db { detailed, scope } = >> Maybe.map (.recycledQualityRatio >> Split.toFloat) >> Maybe.withDefault 0 , toCell = - \{ cffData } -> - case cffData of - Just { recycledQualityRatio } -> - div [ classList [ ( "text-center", not detailed ) ] ] - [ recycledQualityRatio |> Format.splitAsFloat 1 - , Link.smallPillExternal - [ href (Gitbook.publicUrlFromPath Gitbook.TextileMaterialCFF) ] - [ Icon.question ] - ] - - Nothing -> - text "N/A" + .cffData + >> Maybe.map + (.recycledQualityRatio + >> Format.splitAsFloat 1 + >> withPill Gitbook.TextileCircularFootprintFormula + ) + >> Maybe.withDefault (text "N/A") } ] } From 5509d369b06ee6f5e9a8da7a0c25a1288f278466 Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Wed, 2 Oct 2024 23:26:36 +0200 Subject: [PATCH 10/11] elm-review --- src/Data/Gitbook.elm | 8 ++++---- src/Page/Explore/TextileMaterials.elm | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Data/Gitbook.elm b/src/Data/Gitbook.elm index d0cfe4bc9..c0b89266c 100644 --- a/src/Data/Gitbook.elm +++ b/src/Data/Gitbook.elm @@ -17,7 +17,6 @@ type Path | FoodTransport -- Transport entre étapes | FoodUse -- Consommation | TextileCircularFootprintFormula -- Circular Footprint Formula (CFF) - | TextileMaterialCFF -- Circular Footprint Formula (CFF) | TextileComplementMicrofibers -- Complément textile microfibres | TextileDistribution -- Distribution textile | TextileDurability -- Durabilité textile @@ -36,6 +35,7 @@ type Path | TextileMakingDeadStock -- Deadstock lors de la confection textile | TextileMakingWaste -- Taux de perte en confection textile | TextileMaterial -- Matière textile + | TextileMaterialCFF -- Circular Footprint Formula (CFF) | TextileSpinning -- Filature textile | TextileTransport -- Transport textile | TextileUse -- Utilisation textile @@ -74,9 +74,6 @@ pathToString path = TextileCircularFootprintFormula -> "textile/cycle-de-vie-des-produits-textiles/circular-footpring-formula-cff" - TextileMaterialCFF -> - "textile/cycle-de-vie-des-produits-textiles/etape-1-matieres/calcul-de-limpact-matiere-circular-footprint-formula-cff" - TextileComplementMicrofibers -> "textile/complements-hors-acv/microfibres" @@ -131,6 +128,9 @@ pathToString path = TextileMaterial -> "textile/etapes-du-cycle-de-vie/etape-1-matieres" + TextileMaterialCFF -> + "textile/cycle-de-vie-des-produits-textiles/etape-1-matieres/calcul-de-limpact-matiere-circular-footprint-formula-cff" + TextileSpinning -> "textile/cycle-de-vie-des-produits-textiles/etape-2-fabrication-du-fil" diff --git a/src/Page/Explore/TextileMaterials.elm b/src/Page/Explore/TextileMaterials.elm index c631278a9..672e7d079 100644 --- a/src/Page/Explore/TextileMaterials.elm +++ b/src/Page/Explore/TextileMaterials.elm @@ -143,7 +143,7 @@ table db { detailed, scope } = >> Maybe.map (.recycledQualityRatio >> Format.splitAsFloat 1 - >> withPill Gitbook.TextileCircularFootprintFormula + >> withPill Gitbook.TextileMaterialCFF ) >> Maybe.withDefault (text "N/A") } From cfbc6b533366b1a51fda21f59d69e3a23d5b53c2 Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Thu, 3 Oct 2024 11:07:12 +0200 Subject: [PATCH 11/11] keep only one link for the CFF --- src/Data/Gitbook.elm | 4 ---- src/Page/Explore/TextileMaterials.elm | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Data/Gitbook.elm b/src/Data/Gitbook.elm index c0b89266c..71b4e2e2e 100644 --- a/src/Data/Gitbook.elm +++ b/src/Data/Gitbook.elm @@ -35,7 +35,6 @@ type Path | TextileMakingDeadStock -- Deadstock lors de la confection textile | TextileMakingWaste -- Taux de perte en confection textile | TextileMaterial -- Matière textile - | TextileMaterialCFF -- Circular Footprint Formula (CFF) | TextileSpinning -- Filature textile | TextileTransport -- Transport textile | TextileUse -- Utilisation textile @@ -128,9 +127,6 @@ pathToString path = TextileMaterial -> "textile/etapes-du-cycle-de-vie/etape-1-matieres" - TextileMaterialCFF -> - "textile/cycle-de-vie-des-produits-textiles/etape-1-matieres/calcul-de-limpact-matiere-circular-footprint-formula-cff" - TextileSpinning -> "textile/cycle-de-vie-des-produits-textiles/etape-2-fabrication-du-fil" diff --git a/src/Page/Explore/TextileMaterials.elm b/src/Page/Explore/TextileMaterials.elm index 672e7d079..c631278a9 100644 --- a/src/Page/Explore/TextileMaterials.elm +++ b/src/Page/Explore/TextileMaterials.elm @@ -143,7 +143,7 @@ table db { detailed, scope } = >> Maybe.map (.recycledQualityRatio >> Format.splitAsFloat 1 - >> withPill Gitbook.TextileMaterialCFF + >> withPill Gitbook.TextileCircularFootprintFormula ) >> Maybe.withDefault (text "N/A") }