@@ -51,8 +51,6 @@ export const SunshineSelectorsBase = ({
5151 getPeerGroupLabel = ( id ) => id ,
5252 saidiSaifiType,
5353 setSaidiSaifiType,
54- complianceType,
55- complianceTypes,
5654 setComplianceType,
5755 saidiSaifiTypes,
5856 indicator,
@@ -91,8 +89,18 @@ export const SunshineSelectorsBase = ({
9189 < Combobox
9290 id = "indicator"
9391 label = { t ( { id : "selector.indicator" , message : "Indicator" } ) }
94- items = { indicatorOptions }
95- getItemLabel = { getItemLabel }
92+ items = { indicatorOptions . filter ( ( x ) => {
93+ return x !== "outageInfo" && x !== "daysInAdvanceOutageNotification" ;
94+ } ) }
95+ getItemLabel = { ( id ) => {
96+ // The client has decided for franc-rule to be directly in the indicator selector
97+ // instead of compliance, so we map it here. It should be changed if in the future,
98+ // we show more "compliance" types on the map.
99+ if ( id === "compliance" ) {
100+ return getItemLabel ( "franc-rule" ) ;
101+ }
102+ return getItemLabel ( id ) ;
103+ } }
96104 selectedItem = { indicator }
97105 setSelectedItem = { setIndicator }
98106 infoDialogSlug = "help-indicator"
@@ -108,17 +116,6 @@ export const SunshineSelectorsBase = ({
108116 infoDialogSlug = "help-saidi-saifi-type"
109117 />
110118 ) : null }
111- { indicator === "compliance" ? (
112- < Combobox < QueryStateSunshineComplianceType >
113- id = "typology"
114- label = { t ( { id : "selector.compliance-type" , message : "Typology" } ) }
115- items = { complianceTypes }
116- getItemLabel = { getItemLabel }
117- selectedItem = { complianceType }
118- setSelectedItem = { setComplianceType }
119- infoDialogSlug = "help-compliance"
120- />
121- ) : null }
122119
123120 { indicator === "networkCosts" ? (
124121 < Combobox < NetworkLevelId >
0 commit comments