Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated sidebar navigation #287

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/atomicui/organisms/Explore/Explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ const {
AWS_LOCATION_RETAILS_URL,
AWS_LOCATION_TRAVEL_AND_HOSPITALITY_URL,
AWS_LOCATION_CUSTOMERS_URL,
AMAZON_LOCATION_DOCUMENTATION_URL
AMAZON_LOCATION_DOCUMENTATION_URL,
AWS_INDUSTRY_OVERVIEW_URL
}
} = appConfig;

Expand Down Expand Up @@ -604,6 +605,23 @@ const Explore: FC<ExploreProps> = ({
onClickHandler: () => setIsMenuExpanded(s => ({ ...s, "industry.text": !s["industry.text"] })),
isEnabled: true,
subMenu: [
{
title: "industry_overview.text",
description: "new_industry_desc.text",
onClickHandler: () => window.open(AWS_INDUSTRY_OVERVIEW_URL, "_self"),
isEnabled: true,
iconComponent: (
<IconGlobe
style={{
alignSelf: "flex-start",
margin: "0.15rem 0rem 0rem 0.8rem",
fill: "var(--primary-color)"
}}
width={18}
height={18}
/>
)
},
{
title: "transportation_and_logistics.text",
description: "new_transportation_logistics_desc.text",
Expand Down
3 changes: 2 additions & 1 deletion src/core/constants/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ const appConfig = {
AWS_LOCATION_PRODUCT_RESOURCES_URL: "https://aws.amazon.com/location/resources/product-resources/",
AWS_LOCATION_DEVELOPER_RESOURCES_URL: "https://aws.amazon.com/location/resources/developer-resources/",
AMAZON_LOCATION_AUTH_SDK_IOS_URL: "https://github.com/aws-geospatial/amazon-location-mobile-auth-sdk-ios",
AMAZON_LOCATION_DOCUMENTATION_URL: "https://docs.aws.amazon.com/location/"
AMAZON_LOCATION_DOCUMENTATION_URL: "https://docs.aws.amazon.com/location/",
AWS_INDUSTRY_OVERVIEW_URL: "https://aws.amazon.com/location/industry/"
}
};

Expand Down
8 changes: 7 additions & 1 deletion src/core/constants/marketingMenuOptionsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const {
AWS_LOCATION_TRAVEL_AND_HOSPITALITY_URL,
AWS_LOCATION_RESOURCES_URL,
AWS_LOCATION_CUSTOMERS_URL,
AMAZON_LOCATION_DOCUMENTATION_URL
AMAZON_LOCATION_DOCUMENTATION_URL,
AWS_INDUSTRY_OVERVIEW_URL
}
} = appConfig;

Expand Down Expand Up @@ -199,6 +200,11 @@ if (!SHOW_NEW_NAVIGATION) {
iconContainerClass: "menu-item-icon",
isExternalLink: false,
subMenu: [
{
label: "industry_overview.text",
link: AWS_INDUSTRY_OVERVIEW_URL,
isExternalLink: false
},
{
label: "transportation_and_logistics.text",
link: AWS_LOCATION_TRANSPORTATION_AND_LOGISTICS_URL,
Expand Down
3 changes: 3 additions & 0 deletions src/locales/ar/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "غير متوفر في عرض القمر الصناعي"
},
"industry_overview": {
"text": "نظرة عامة على الصناعة"
}
}
3 changes: 3 additions & 0 deletions src/locales/de/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "In der Satellitenansicht nicht verfügbar"
},
"industry_overview": {
"text": "Überblick über die Branche"
}
}
3 changes: 3 additions & 0 deletions src/locales/en/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "Not available in Satellite view"
},
"industry_overview": {
"text": "Industry overview"
}
}
3 changes: 3 additions & 0 deletions src/locales/es/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "No disponible en vista de satélite"
},
"industry_overview": {
"text": "Descripción general de la industria"
}
}
3 changes: 3 additions & 0 deletions src/locales/fr/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "Non disponible en vue satellite"
},
"industry_overview": {
"text": "Vue d'ensemble du secteur"
}
}
3 changes: 3 additions & 0 deletions src/locales/he/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "לא זמין בתצוגת לוויין"
},
"industry_overview": {
"text": "סקירה כללית של התעשייה"
}
}
3 changes: 3 additions & 0 deletions src/locales/hi/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "सैटेलाइट दृश्य में उपलब्ध नहीं"
},
"industry_overview": {
"text": "उद्योग का अवलोकन"
}
}
3 changes: 3 additions & 0 deletions src/locales/it/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "Non disponibile nella visualizzazione satellitare"
},
"industry_overview": {
"text": "Panoramica del settore"
}
}
3 changes: 3 additions & 0 deletions src/locales/ja/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "サテライトビューでは使用できません"
},
"industry_overview": {
"text": "業界概要"
}
}
3 changes: 3 additions & 0 deletions src/locales/ko/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "위성 보기에서는 사용할 수 없습니다."
},
"industry_overview": {
"text": "업계 개요"
}
}
3 changes: 3 additions & 0 deletions src/locales/pt-BR/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "Não disponível na visualização de satélite"
},
"industry_overview": {
"text": "Visão geral do setor"
}
}
3 changes: 3 additions & 0 deletions src/locales/zh-CN/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3858,5 +3858,8 @@
},
"political_view_satellite_disclaimer": {
"text": "在卫星视图中不可用"
},
"industry_overview": {
"text": "行业概述"
}
}
3 changes: 3 additions & 0 deletions src/locales/zh-TW/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,5 +3862,8 @@
},
"political_view_satellite_disclaimer": {
"text": "在衛星視圖中不可用"
},
"industry_overview": {
"text": "產業概述"
}
}
3 changes: 2 additions & 1 deletion src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ jest.mock("@demo/core/constants/appConfig", () => ({
AWS_LOCATION_PRODUCT_RESOURCES_URL: "https://aws.amazon.com/location/resources/product-resources/",
AWS_LOCATION_DEVELOPER_RESOURCES_URL: "https://aws.amazon.com/location/resources/developer-resources/",
AMAZON_LOCATION_AUTH_SDK_IOS_URL: "https://github.com/aws-geospatial/amazon-location-mobile-auth-sdk-ios",
AMAZON_LOCATION_DOCUMENTATION_URL: "https://docs.aws.amazon.com/location/"
AMAZON_LOCATION_DOCUMENTATION_URL: "https://docs.aws.amazon.com/location/",
AWS_INDUSTRY_OVERVIEW_URL: "https://aws.amazon.com/location/industry/"
}
}));

Expand Down
Loading