hlxsites / vg-macktrucks-com

Franklin site for https://www.macktrucks.com
Apache License 2.0
1 stars 27 forks source link

Task: Mack LA Export Configurator Launch Effort (Mexico test) #558

Open ZoeBeykirch opened 7 months ago

ZoeBeykirch commented 7 months ago

Description

For this ticket we will test only the Mexico market configurator.

Leveraging the work that has been done for the USA Mack truck configurator and the recent spike investigation, this ticket is a placeholder to visualize the work to be done by the Dev team for the Latin America market sites configurator launch for Anthem and Granite models.

Acceptance Criteria for Front End

Markets for configurator: Country Language Locale Emissions Options
1. Argentina Spanish es-AR Euro 3, Euro 5
2. Bahamas English en-BS Euro 3, Euro 5
3. Bolivia Spanish es-BO Euro 3, Euro 5
4. Chile Spanish es-CL Euro 5, GHG
5. Colombia Spanish es-CO Euro 5, GHG
6. Costa Rica Spanish es-CR Euro 3, Euro 5
7. Dominican Republic Spanish es-DO Euro 3, Euro 5
8. Ecuador Spanish es-EC Euro 3, Euro 5
9. El Salvador Spanish es-SV Euro 3, Euro 5
10. Guatemala Spanish es-GT Euro 3, Euro 5
11. Guyana English en-GY Euro 3, Euro 5
12. Haiti English en-HT Euro 3, Euro 5
13. Honduras Spanish es-HN Euro 3, Euro 5
14. Mexico Spanish es-MX Euro 5, GHG
15. Nicaragua Spanish es-NI Euro 3, Euro 5
16. Panama Spanish es-PA Euro 3, Euro 5
17. Peru Spanish es-PE Euro 3, Euro 5
18. Trinidad & Tobago English en-TT Euro 3, Euro 5
19. Venezuela Spanish es-VE Euro 3, Euro 5

Notes

How to test the Latin America market: If your page has a meta tag in the header with name "locale" and a value corresponding to one of the latin markets, the configurator will load Spanish localized data. You can also override it using the query parameter ?market=la Adding a query parameter ?el=euro3 will filter based on the euro3 emission standard. Other supported values are euro5 or ghg. The parameters will be cleared after they are applied. You can add this to any links into the configurator where you want to show content based on an emission level.

Main Links:

  1. Anthem link: https://truckbuilder-mack-100031.onecx.prod.rapidimages.net/#/anthem
  2. Granite link: https://truckbuilder-mack-100031.onecx.prod.rapidimages.net/#/granite
  3. Truck selector link: https://truckbuilder-mack-100031.onecx.prod.rapidimages.net/

Example of adding locale and emissions:

The bundles needed to link are called:

Some features to test:

These are the remaining changes Rapid Images should finish by August 27th:

These things are not yet included and coming soon:

Old Acceptance Criteria

BeckyMedlin commented 7 months ago

@shirin27 Please add this to the list of tickets to be refined.

cogniSyb commented 2 months ago

@ZoeBeykirch according to the code at the side of RapidImages, there’s support for translations.

My proposed solution was to depend on the page's metadata (actually site-wide). Support for this is already present for Volvo Trucks. The corresponding code will be rolled out with the helix-v5 upgrade, but we can expedite it.

I’ve checked the code I mentioned, and it doesn’t change the contents of the Truck Configurator.

A while back, Kalle wrote to me:

Not sure if we'll be able to test anyway without a test site set up for the configurator For now we will use a query parameter to force the market

I’ll send Kalle a message

ZoeBeykirch commented 2 months ago

@cogniSyb Thank you! Please include @amglebihan in your communications with Kalle too if he hasn't already been involved yet.

ZoeBeykirch commented 1 month ago

Spike has been created after conversation with Rapid Images on what will need to be done differently than the USA website: https://github.com/hlxsites/vg-macktrucks-com/issues/790

amglebihan commented 2 days ago

@ZoeBeykirch @Kannan-CM I created two pages where the configurator is set up: one for the Anthem truck and one for the Granite series truck. However, I simply copied the content from macktrucks.com, so the content and metadata will need to be updated. Additionally, Kalle will be adding an option in the configurator to set the emission level within the powertrain section. No action is required on our part, but we won't be able to test it until Kalle completes the task.

ZoeBeykirch commented 1 day ago

Metadata has been updated