Skip to content

Commit 4d5c831

Browse files
committed
update activities icon mapping
these changes make icons more like previous surveys and are more precise
1 parent 49227d2 commit 4d5c831

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

packages/evolution-common/src/services/questionnaire/sections/visitedPlaces/activityIconMapping.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,19 @@ const activityToIconPathMapping: Record<ActivityCategory | Activity | 'default',
1818

1919
// Home activities
2020
home: '/dist/icons/activities/home/home',
21-
otherParentHome: '/dist/icons/activities/home/home',
22-
// FIXME Validate this icon, it's using the 2 persons icon, as in the previous surveys, but its name is accompany_someone
23-
visiting: '/dist/icons/activities/accompany_drop_fetch_someone/accompany_someone',
21+
otherParentHome: '/dist/icons/activities/home/home_secondary',
22+
visiting: '/dist/icons/activities/other/two_persons',
2423
secondaryHome: '/dist/icons/activities/home/home_secondary',
2524

2625
// Work/school related activities
2726
work: '/dist/icons/activities/work/briefcase',
2827
school: '/dist/icons/activities/school/graduation_cap',
2928
workUsual: '/dist/icons/activities/work/briefcase',
30-
workNotUsual: '/dist/icons/activities/work/building_office',
31-
workOnTheRoad: '/dist/icons/activities/work/truck_with_road',
29+
workNotUsual: '/dist/icons/activities/work/worker_with_necktie',
30+
workOnTheRoad: '/dist/icons/activities/work/truck',
3231
schoolUsual: '/dist/icons/activities/school/graduation_cap',
33-
schoolNotUsual: '/dist/icons/activities/school/school_building_small',
34-
schoolNotStudent: '/dist/icons/activities/school/graduation_cap',
32+
schoolNotUsual: '/dist/icons/activities/school/school_building_large',
33+
schoolNotStudent: '/dist/icons/activities/school/school_building_large',
3534

3635
// Service and leisure activities
3736
shoppingServiceRestaurant: '/dist/icons/activities/shopping/shopping_cart',
@@ -56,7 +55,7 @@ const activityToIconPathMapping: Record<ActivityCategory | Activity | 'default',
5655
volunteering: '/dist/icons/activities/other/volunteering',
5756
carElectricChargingStation: '/dist/icons/activities/other/electric_charging_station',
5857
carsharingStation: '/dist/icons/activities/other/carsharing_station',
59-
pickClassifiedPurchase: '/dist/icons/activities/shopping/shopping_basket',
58+
pickClassifiedPurchase: '/dist/icons/activities/shopping/shopping_basket_with_home',
6059

6160
// Other options
6261
other: '/dist/icons/activities/other/question_mark',

packages/evolution-frontend/src/components/survey/sectionTemplates/__tests__/__snapshots__/TripsAndSegmentsSection.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ exports[`SegmentsSection UI display SegmentsSection with trips and visited place
453453
>
454454
<img
455455
alt="visitedPlaces/activities/workOnTheRoad"
456-
src="/dist/icons/activities/work/truck_with_road-marker_round.svg"
456+
src="/dist/icons/activities/work/truck-marker_round.svg"
457457
style="height: 4rem;"
458458
/>
459459
<span>
@@ -634,7 +634,7 @@ exports[`SegmentsSection UI display SegmentsSection with trips and visited place
634634
>
635635
<img
636636
alt="visitedPlaces/activities/workOnTheRoad"
637-
src="/dist/icons/activities/work/truck_with_road-marker_round.svg"
637+
src="/dist/icons/activities/work/truck-marker_round.svg"
638638
style="height: 4rem;"
639639
/>
640640
<span>

0 commit comments

Comments
 (0)