@eeacms/volto-cca-policy 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/locales/bg/LC_MESSAGES/volto.po +35 -0
  3. package/locales/cs/LC_MESSAGES/volto.po +35 -0
  4. package/locales/da/LC_MESSAGES/volto.po +35 -0
  5. package/locales/de/LC_MESSAGES/volto.po +35 -0
  6. package/locales/el/LC_MESSAGES/volto.po +35 -0
  7. package/locales/en/LC_MESSAGES/volto.po +35 -0
  8. package/locales/es/LC_MESSAGES/volto.po +35 -0
  9. package/locales/et/LC_MESSAGES/volto.po +35 -0
  10. package/locales/fi/LC_MESSAGES/volto.po +35 -0
  11. package/locales/fr/LC_MESSAGES/volto.po +35 -0
  12. package/locales/ga/LC_MESSAGES/volto.po +35 -0
  13. package/locales/hr/LC_MESSAGES/volto.po +35 -0
  14. package/locales/hu/LC_MESSAGES/volto.po +35 -0
  15. package/locales/is/LC_MESSAGES/volto.po +35 -0
  16. package/locales/it/LC_MESSAGES/volto.po +35 -0
  17. package/locales/lt/LC_MESSAGES/volto.po +35 -0
  18. package/locales/lv/LC_MESSAGES/volto.po +35 -0
  19. package/locales/mt/LC_MESSAGES/volto.po +35 -0
  20. package/locales/nl/LC_MESSAGES/volto.po +35 -0
  21. package/locales/nn/LC_MESSAGES/volto.po +35 -0
  22. package/locales/pl/LC_MESSAGES/volto.po +35 -0
  23. package/locales/pt/LC_MESSAGES/volto.po +35 -0
  24. package/locales/ro/LC_MESSAGES/volto.po +35 -0
  25. package/locales/sk/LC_MESSAGES/volto.po +35 -0
  26. package/locales/sl/LC_MESSAGES/volto.po +35 -0
  27. package/locales/sv/LC_MESSAGES/volto.po +35 -0
  28. package/locales/tr/LC_MESSAGES/volto.po +35 -0
  29. package/locales/volto.pot +36 -1
  30. package/package.json +1 -1
  31. package/src/components/Search/NavigatorCatalogue/NavigatorCatalogueMapView.jsx +10 -2
  32. package/src/components/Search/NavigatorCatalogue/NavigatorCatalogueMapView.test.jsx +11 -16
  33. package/src/components/Search/NavigatorCatalogue/utils.js +16 -8
  34. package/theme/globals/navigator.less +4 -0
@@ -11,6 +11,11 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "4 or more"
15
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapView
16
+ msgid "4 or more"
17
+ msgstr ""
18
+
14
19
  #. Default: "A background document for the event is available"
15
20
  #: components/theme/Views/CcaEventView
16
21
  msgid "A background document for the event is available"
@@ -293,6 +298,16 @@ msgstr "Mesto:"
293
298
  msgid "Clear all"
294
299
  msgstr ""
295
300
 
301
+ #. Default: "Clear filters"
302
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
303
+ msgid "Clear filters"
304
+ msgstr ""
305
+
306
+ #. Default: "Clear other geographic coverage filters to enable the map."
307
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
308
+ msgid "Clear other geographic coverage filters to enable the map."
309
+ msgstr ""
310
+
296
311
  #. Default: "Climate Impacts"
297
312
  #: search/cca/facets
298
313
  #: search/common
@@ -949,6 +964,11 @@ msgstr "Manažment a plánovanie"
949
964
  msgid "Map view"
950
965
  msgstr ""
951
966
 
967
+ #. Default: "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
968
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
969
+ msgid "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
970
+ msgstr ""
971
+
952
972
  #. Default: "Mission story"
953
973
  #: messages
954
974
  msgid "Mission story"
@@ -1060,6 +1080,11 @@ msgstr "Jazyky mimo EÚ"
1060
1080
  msgid "Not available"
1061
1081
  msgstr ""
1062
1082
 
1083
+ #. Default: "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1084
+ #: components/theme/CompareTools/CompareToolsView
1085
+ msgid "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1086
+ msgstr ""
1087
+
1063
1088
  #. Default: "Objectives of the adaptation measure"
1064
1089
  #: components/theme/Views/CaseStudyView
1065
1090
  msgid "Objectives of the adaptation measure"
@@ -1373,6 +1398,11 @@ msgstr "Pozrite si video mimo Climate-ADAPT"
1373
1398
  msgid "Select"
1374
1399
  msgstr "Vyberte"
1375
1400
 
1401
+ #. Default: "Select a country to explore the map"
1402
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
1403
+ msgid "Select a country to explore the map"
1404
+ msgstr ""
1405
+
1376
1406
  #. Default: "Select all that apply"
1377
1407
  #: components/Search/NavigatorGuide/NavigatorGuideContentView
1378
1408
  msgid "Select all that apply"
@@ -1519,6 +1549,11 @@ msgstr ""
1519
1549
  msgid "These items will have broken links"
1520
1550
  msgstr ""
1521
1551
 
1552
+ #. Default: "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1553
+ #: components/theme/CompareTools/CompareToolsView
1554
+ msgid "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1555
+ msgstr ""
1556
+
1522
1557
  #. Default: "This object has been archived because its content is outdated. You can still access it as legacy."
1523
1558
  #: components/theme/PortalMessage/PortalMessage
1524
1559
  msgid "This object has been archived because its content is outdated. You can still access it as legacy."
@@ -11,6 +11,11 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "4 or more"
15
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapView
16
+ msgid "4 or more"
17
+ msgstr ""
18
+
14
19
  #. Default: "A background document for the event is available"
15
20
  #: components/theme/Views/CcaEventView
16
21
  msgid "A background document for the event is available"
@@ -293,6 +298,16 @@ msgstr "mesto:"
293
298
  msgid "Clear all"
294
299
  msgstr ""
295
300
 
301
+ #. Default: "Clear filters"
302
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
303
+ msgid "Clear filters"
304
+ msgstr ""
305
+
306
+ #. Default: "Clear other geographic coverage filters to enable the map."
307
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
308
+ msgid "Clear other geographic coverage filters to enable the map."
309
+ msgstr ""
310
+
296
311
  #. Default: "Climate Impacts"
297
312
  #: search/cca/facets
298
313
  #: search/common
@@ -949,6 +964,11 @@ msgstr "Upravljanje in načrtovanje"
949
964
  msgid "Map view"
950
965
  msgstr ""
951
966
 
967
+ #. Default: "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
968
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
969
+ msgid "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
970
+ msgstr ""
971
+
952
972
  #. Default: "Mission story"
953
973
  #: messages
954
974
  msgid "Mission story"
@@ -1060,6 +1080,11 @@ msgstr "Ne-EU jeziki"
1060
1080
  msgid "Not available"
1061
1081
  msgstr ""
1062
1082
 
1083
+ #. Default: "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1084
+ #: components/theme/CompareTools/CompareToolsView
1085
+ msgid "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1086
+ msgstr ""
1087
+
1063
1088
  #. Default: "Objectives of the adaptation measure"
1064
1089
  #: components/theme/Views/CaseStudyView
1065
1090
  msgid "Objectives of the adaptation measure"
@@ -1373,6 +1398,11 @@ msgstr "Oglejte si video zunaj Climate-ADAPT"
1373
1398
  msgid "Select"
1374
1399
  msgstr "Izberite"
1375
1400
 
1401
+ #. Default: "Select a country to explore the map"
1402
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
1403
+ msgid "Select a country to explore the map"
1404
+ msgstr ""
1405
+
1376
1406
  #. Default: "Select all that apply"
1377
1407
  #: components/Search/NavigatorGuide/NavigatorGuideContentView
1378
1408
  msgid "Select all that apply"
@@ -1519,6 +1549,11 @@ msgstr ""
1519
1549
  msgid "These items will have broken links"
1520
1550
  msgstr ""
1521
1551
 
1552
+ #. Default: "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1553
+ #: components/theme/CompareTools/CompareToolsView
1554
+ msgid "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1555
+ msgstr ""
1556
+
1522
1557
  #. Default: "This object has been archived because its content is outdated. You can still access it as legacy."
1523
1558
  #: components/theme/PortalMessage/PortalMessage
1524
1559
  msgid "This object has been archived because its content is outdated. You can still access it as legacy."
@@ -11,6 +11,11 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "4 or more"
15
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapView
16
+ msgid "4 or more"
17
+ msgstr ""
18
+
14
19
  #. Default: "A background document for the event is available"
15
20
  #: components/theme/Views/CcaEventView
16
21
  msgid "A background document for the event is available"
@@ -293,6 +298,16 @@ msgstr "Stad:"
293
298
  msgid "Clear all"
294
299
  msgstr ""
295
300
 
301
+ #. Default: "Clear filters"
302
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
303
+ msgid "Clear filters"
304
+ msgstr ""
305
+
306
+ #. Default: "Clear other geographic coverage filters to enable the map."
307
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
308
+ msgid "Clear other geographic coverage filters to enable the map."
309
+ msgstr ""
310
+
296
311
  #. Default: "Climate Impacts"
297
312
  #: search/cca/facets
298
313
  #: search/common
@@ -949,6 +964,11 @@ msgstr "Ledning och planering"
949
964
  msgid "Map view"
950
965
  msgstr ""
951
966
 
967
+ #. Default: "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
968
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
969
+ msgid "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
970
+ msgstr ""
971
+
952
972
  #. Default: "Mission story"
953
973
  #: messages
954
974
  msgid "Mission story"
@@ -1060,6 +1080,11 @@ msgstr "Språk utanför EU"
1060
1080
  msgid "Not available"
1061
1081
  msgstr ""
1062
1082
 
1083
+ #. Default: "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1084
+ #: components/theme/CompareTools/CompareToolsView
1085
+ msgid "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1086
+ msgstr ""
1087
+
1063
1088
  #. Default: "Objectives of the adaptation measure"
1064
1089
  #: components/theme/Views/CaseStudyView
1065
1090
  msgid "Objectives of the adaptation measure"
@@ -1373,6 +1398,11 @@ msgstr "Se video utanför Climate-ADAPT"
1373
1398
  msgid "Select"
1374
1399
  msgstr "Välja"
1375
1400
 
1401
+ #. Default: "Select a country to explore the map"
1402
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
1403
+ msgid "Select a country to explore the map"
1404
+ msgstr ""
1405
+
1376
1406
  #. Default: "Select all that apply"
1377
1407
  #: components/Search/NavigatorGuide/NavigatorGuideContentView
1378
1408
  msgid "Select all that apply"
@@ -1519,6 +1549,11 @@ msgstr ""
1519
1549
  msgid "These items will have broken links"
1520
1550
  msgstr ""
1521
1551
 
1552
+ #. Default: "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1553
+ #: components/theme/CompareTools/CompareToolsView
1554
+ msgid "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1555
+ msgstr ""
1556
+
1522
1557
  #. Default: "This object has been archived because its content is outdated. You can still access it as legacy."
1523
1558
  #: components/theme/PortalMessage/PortalMessage
1524
1559
  msgid "This object has been archived because its content is outdated. You can still access it as legacy."
@@ -11,6 +11,11 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "4 or more"
15
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapView
16
+ msgid "4 or more"
17
+ msgstr ""
18
+
14
19
  #. Default: "A background document for the event is available"
15
20
  #: components/theme/Views/CcaEventView
16
21
  msgid "A background document for the event is available"
@@ -293,6 +298,16 @@ msgstr "Şehir:"
293
298
  msgid "Clear all"
294
299
  msgstr ""
295
300
 
301
+ #. Default: "Clear filters"
302
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
303
+ msgid "Clear filters"
304
+ msgstr ""
305
+
306
+ #. Default: "Clear other geographic coverage filters to enable the map."
307
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
308
+ msgid "Clear other geographic coverage filters to enable the map."
309
+ msgstr ""
310
+
296
311
  #. Default: "Climate Impacts"
297
312
  #: search/cca/facets
298
313
  #: search/common
@@ -949,6 +964,11 @@ msgstr "Yönetim ve planlama"
949
964
  msgid "Map view"
950
965
  msgstr ""
951
966
 
967
+ #. Default: "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
968
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
969
+ msgid "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
970
+ msgstr ""
971
+
952
972
  #. Default: "Mission story"
953
973
  #: messages
954
974
  msgid "Mission story"
@@ -1060,6 +1080,11 @@ msgstr "AB Dışı Diller"
1060
1080
  msgid "Not available"
1061
1081
  msgstr ""
1062
1082
 
1083
+ #. Default: "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1084
+ #: components/theme/CompareTools/CompareToolsView
1085
+ msgid "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1086
+ msgstr ""
1087
+
1063
1088
  #. Default: "Objectives of the adaptation measure"
1064
1089
  #: components/theme/Views/CaseStudyView
1065
1090
  msgid "Objectives of the adaptation measure"
@@ -1373,6 +1398,11 @@ msgstr "Climate-ADAPT dışındaki videoyu izleyin"
1373
1398
  msgid "Select"
1374
1399
  msgstr "Seçme"
1375
1400
 
1401
+ #. Default: "Select a country to explore the map"
1402
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
1403
+ msgid "Select a country to explore the map"
1404
+ msgstr ""
1405
+
1376
1406
  #. Default: "Select all that apply"
1377
1407
  #: components/Search/NavigatorGuide/NavigatorGuideContentView
1378
1408
  msgid "Select all that apply"
@@ -1519,6 +1549,11 @@ msgstr ""
1519
1549
  msgid "These items will have broken links"
1520
1550
  msgstr ""
1521
1551
 
1552
+ #. Default: "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1553
+ #: components/theme/CompareTools/CompareToolsView
1554
+ msgid "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1555
+ msgstr ""
1556
+
1522
1557
  #. Default: "This object has been archived because its content is outdated. You can still access it as legacy."
1523
1558
  #: components/theme/PortalMessage/PortalMessage
1524
1559
  msgid "This object has been archived because its content is outdated. You can still access it as legacy."
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2026-10-06T09:46:21.313Z\n"
4
+ "POT-Creation-Date: 2026-10-12T08:25:29.939Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "Content-Type: text/plain; charset=utf-8\n"
@@ -13,6 +13,11 @@ msgstr ""
13
13
  "Preferred-Encodings: utf-8\n"
14
14
  "Domain: volto\n"
15
15
 
16
+ #. Default: "4 or more"
17
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapView
18
+ msgid "4 or more"
19
+ msgstr ""
20
+
16
21
  #. Default: "A background document for the event is available"
17
22
  #: components/theme/Views/CcaEventView
18
23
  msgid "A background document for the event is available"
@@ -295,6 +300,16 @@ msgstr ""
295
300
  msgid "Clear all"
296
301
  msgstr ""
297
302
 
303
+ #. Default: "Clear filters"
304
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
305
+ msgid "Clear filters"
306
+ msgstr ""
307
+
308
+ #. Default: "Clear other geographic coverage filters to enable the map."
309
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
310
+ msgid "Clear other geographic coverage filters to enable the map."
311
+ msgstr ""
312
+
298
313
  #. Default: "Climate Impacts"
299
314
  #: search/cca/facets
300
315
  #: search/common
@@ -951,6 +966,11 @@ msgstr ""
951
966
  msgid "Map view"
952
967
  msgstr ""
953
968
 
969
+ #. Default: "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
970
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
971
+ msgid "Map view is only applicable when countries are selected in the <strong>Geographic coverage</strong>."
972
+ msgstr ""
973
+
954
974
  #. Default: "Mission story"
955
975
  #: messages
956
976
  msgid "Mission story"
@@ -1062,6 +1082,11 @@ msgstr ""
1062
1082
  msgid "Not available"
1063
1083
  msgstr ""
1064
1084
 
1085
+ #. Default: "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1086
+ #: components/theme/CompareTools/CompareToolsView
1087
+ msgid "Number of adaptation support cycle steps supported, from 1 to 6 steps."
1088
+ msgstr ""
1089
+
1065
1090
  #. Default: "Objectives of the adaptation measure"
1066
1091
  #: components/theme/Views/CaseStudyView
1067
1092
  msgid "Objectives of the adaptation measure"
@@ -1375,6 +1400,11 @@ msgstr ""
1375
1400
  msgid "Select"
1376
1401
  msgstr ""
1377
1402
 
1403
+ #. Default: "Select a country to explore the map"
1404
+ #: components/Search/NavigatorCatalogue/NavigatorCatalogueMapState
1405
+ msgid "Select a country to explore the map"
1406
+ msgstr ""
1407
+
1378
1408
  #. Default: "Select all that apply"
1379
1409
  #: components/Search/NavigatorGuide/NavigatorGuideContentView
1380
1410
  msgid "Select all that apply"
@@ -1521,6 +1551,11 @@ msgstr ""
1521
1551
  msgid "These items will have broken links"
1522
1552
  msgstr ""
1523
1553
 
1554
+ #. Default: "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1555
+ #: components/theme/CompareTools/CompareToolsView
1556
+ msgid "This indicates how easy the tool and its outputs are to understand and interpret, with low = high-level expertise needed, moderate = some prior technical/scientific knowledge needed, high = general user-friendly, minimal technical knowledge needed."
1557
+ msgstr ""
1558
+
1524
1559
  #. Default: "This object has been archived because its content is outdated. You can still access it as legacy."
1525
1560
  #: components/theme/PortalMessage/PortalMessage
1526
1561
  msgid "This object has been archived because its content is outdated. You can still access it as legacy."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -44,6 +44,10 @@ const messages = defineMessages({
44
44
  id: 'Tools per country',
45
45
  defaultMessage: 'Tools per country',
46
46
  },
47
+ fourOrMore: {
48
+ id: '4 or more',
49
+ defaultMessage: '4 or more',
50
+ },
47
51
  close: {
48
52
  id: 'Close',
49
53
  defaultMessage: 'Close',
@@ -263,9 +267,13 @@ const NavigatorCatalogueCountryMap = (props) => {
263
267
  <div key={item.label} className="legend-item">
264
268
  <span
265
269
  className="legend-color"
266
- style={{ backgroundColor: item.color }}
270
+ style={{ '--legend-color': item.color }}
267
271
  />
268
- <span>{item.label}</span>
272
+ <span>
273
+ {item.messageKey
274
+ ? intl.formatMessage(messages[item.messageKey])
275
+ : item.label}
276
+ </span>
269
277
  </div>
270
278
  ))}
271
279
  </aside>
@@ -11,28 +11,23 @@ import {
11
11
  } from './utils';
12
12
 
13
13
  describe('getColorForCount', () => {
14
- it('returns darkest green for 10+ tools', () => {
14
+ it('returns darkest green for 4 or more tools', () => {
15
+ expect(getColorForCount(4)).toBe('#0F6B3F');
15
16
  expect(getColorForCount(10)).toBe('#0F6B3F');
16
17
  expect(getColorForCount(15)).toBe('#0F6B3F');
17
18
  expect(getColorForCount(100)).toBe('#0F6B3F');
18
19
  });
19
20
 
20
- it('returns dark green for 7-9 tools', () => {
21
- expect(getColorForCount(7)).toBe('#007B6C');
22
- expect(getColorForCount(8)).toBe('#007B6C');
23
- expect(getColorForCount(9)).toBe('#007B6C');
21
+ it('returns dark green for 3 tools', () => {
22
+ expect(getColorForCount(3)).toBe('#007B6C');
24
23
  });
25
24
 
26
- it('returns base accent green for 4-6 tools', () => {
27
- expect(getColorForCount(4)).toBe('#84C79A');
28
- expect(getColorForCount(5)).toBe('#84C79A');
29
- expect(getColorForCount(6)).toBe('#84C79A');
25
+ it('returns base accent green for 2 tools', () => {
26
+ expect(getColorForCount(2)).toBe('#84C79A');
30
27
  });
31
28
 
32
- it('returns light green for 1-3 tools', () => {
29
+ it('returns light green for 1 tool', () => {
33
30
  expect(getColorForCount(1)).toBe('#C2E3CD');
34
- expect(getColorForCount(2)).toBe('#C2E3CD');
35
- expect(getColorForCount(3)).toBe('#C2E3CD');
36
31
  });
37
32
 
38
33
  it('returns lightest gray-green for 0 or falsy counts', () => {
@@ -288,10 +283,10 @@ describe('mapLegendItems', () => {
288
283
 
289
284
  it('has correct labels', () => {
290
285
  expect(mapLegendItems.map((item) => item.label)).toEqual([
291
- '10 or more',
292
- '7 - 9',
293
- '4 - 6',
294
- '1 - 3',
286
+ '4 or more',
287
+ '3',
288
+ '2',
289
+ '1',
295
290
  'None',
296
291
  ]);
297
292
  });
@@ -3,10 +3,15 @@
3
3
  * Used by the map view to color-code countries
4
4
  */
5
5
  export const mapColorScale = [
6
- { minimum: 10, label: '10 or more', color: '#0F6B3F' },
7
- { minimum: 7, label: '7 - 9', color: '#007B6C' },
8
- { minimum: 4, label: '4 - 6', color: '#84C79A' },
9
- { minimum: 1, label: '1 - 3', color: '#C2E3CD' },
6
+ {
7
+ minimum: 4,
8
+ label: '4 or more',
9
+ messageKey: 'fourOrMore',
10
+ color: '#0F6B3F',
11
+ },
12
+ { minimum: 3, label: '3', color: '#007B6C' },
13
+ { minimum: 2, label: '2', color: '#84C79A' },
14
+ { minimum: 1, label: '1', color: '#C2E3CD' },
10
15
  { minimum: 0, label: 'None', color: '#E1E7DF' },
11
16
  ];
12
17
 
@@ -96,10 +101,13 @@ export const setCountryFilter = (searchContext, countryName) => {
96
101
  /**
97
102
  * Legend items for the map view
98
103
  */
99
- export const mapLegendItems = mapColorScale.map(({ label, color }) => ({
100
- label,
101
- color,
102
- }));
104
+ export const mapLegendItems = mapColorScale.map(
105
+ ({ label, messageKey, color }) => ({
106
+ label,
107
+ messageKey,
108
+ color,
109
+ }),
110
+ );
103
111
 
104
112
  const unwrapRawValue = (value) =>
105
113
  value?.raw === undefined ? value : value.raw;
@@ -756,7 +756,11 @@
756
756
  display: inline-block;
757
757
  width: 16px;
758
758
  height: 16px;
759
+ box-sizing: border-box;
759
760
  flex-shrink: 0;
761
+ border: 1px solid color-mix(in srgb, var(--legend-color) 92%, black 8%);
762
+ border-radius: 2px;
763
+ background-color: var(--legend-color);
760
764
  }
761
765
  }
762
766
  }