From 07779777b3208563bb01f49f8d1216c508f625ae Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Fri, 10 Apr 2020 08:33:27 -0500 Subject: [PATCH 01/11] Update categories for Indian demo Hindi translations still need to be done. --- config/connect_categories.yml | 272 ++++++++++++++-------------------- 1 file changed, 113 insertions(+), 159 deletions(-) diff --git a/config/connect_categories.yml b/config/connect_categories.yml index 4bbe2c6..095887a 100644 --- a/config/connect_categories.yml +++ b/config/connect_categories.yml @@ -1,167 +1,121 @@ default: &default categories: - - labor: - - muck: - - trash: - - clean: - - shop: - - laundry: - - cook: - - sit: - - medical: - - equipment: - - construction: - - power_tools: - - tools: - - water_pump: - - protective_gear: - - generator: - - dehumidifier: - - appliances: - - supplies: - - construction: - - home_repair: - - cleaning_supplies: - - household_items: - - personal_care: - - baby_and_child_care: - - clothes: - - medicine: - - furniture: - - fuel: - - transportation: - - pickup_truck: - - bus_or_van: - - tow_truck: - - boat_motor: - - boat_no_motor: - - car: - - housing: - - family: - - individual: - - pets: - - food: - - ready_to_eat: - - baby_formula: - - drinking_water: - - canned_food: - - dry_foods: - - basic_staples: + - groceries: + - flour: + - 5kg: + - 10kg: + - rice: + - 1kg: + - 2kg: + - 5kg: + - lentil: + - 500g: + - 1kg: + - 2kg: + - 5kg: + - oil: + - 500ml: + - 1L: + - 2L: + - sugar: + - 1kg: + - 2kg: + - 5kg: + - tea_leaves: + - 250g: + - 500g: + - 1kg: + - potato: + - 1kg: + - 2kg: + - 5kg: + - onion: + - 1kg: + - 2kg: + - 5kg: + - milk_powder: + - 200g: + - 500g: + - soap: + - 1qty: + - 2qty: + - 5qty: + - salt: + - 1kg: + - 2kg: + - chilli_powder: + - 200g: + - turmeric: + - 200g: + - coriander_powder: + - 200g: + - garam_masala: + - 200g: icons: - # Category keys that need icons will have their - # corresponding icon key listed here - labor: user-md - equipment: wrench - supplies: shopping-basket - transportation: car - housing: bed - food: cutlery + groceries: cutlery en: categories: I need help with - labor: Labor - muck: Mucking - trash: Hauling Heavy Trash - clean: Cleaning - shop: Shopping - laundry: Laundry - cook: Cooking - sit: Baby Sitting - medical: Healthcare - home_repair: Home Repair - electrician: Electrical Issues - legal: Legal Issues - pest_control: Pest or Animal Control - counselor: Counseling - equipment: Equipment - construction: Construction - power_tools: Power Tools - tools: Tools - water_pump: Water Pumps - protective_gear: Protective Gear - generator: Generators - dehumidifier: Dehumidifiers - appliances: Appliances - other_equipment: Other Equipment - supplies: Supplies - cleaning_supplies: Cleaning Supplies - household_items: Household Items - personal_care: Personal Care - baby_and_child_care: Baby & Child Care - clothes: Clothes - medicine: Medicine - furniture: Furniture - fuel: Fuel - transportation: Transportation - pickup_truck: Pickup Truck - bus_or_van: Bus or Van - tow_truck: Tow Truck - boat_motor: Boat (motor) - boat_no_motor: Boat (no motor) - car: Car - housing: Housing - family: Family Housing - individual: Individual Housing - pets: Pet Housing - food: Food - ready_to_eat: Ready to Eat Food - baby_formula: Baby Formula - drinking_water: Drinking Water - canned_food: Canned Food - dry_foods: Dry Foods - basic_staples: Basic Staples - es: - categories: Necesito ayuda con - labor: Labor - muck: Limpieza - trash: Retirar escombros/basura - clean: Limpiar - shop: Comprar - laundry: Lavar - cook: Cocinar - sit: Cuidar niños - medical: Ayuda medica - home_repair: Reparaciones - electrician: Problemas electricos - legal: Problemas legales - pest_control: Control de animales/pestes - counselor: Terapia - equipment: Equipo - construction: Construccion - power_tools: Herramientas electricas - tools: Herramientas - water_pump: Bomba de agua - protective_gear: Equipo de protección - generator: Generadores - dehumidifier: Deshumidificadores - appliances: Aparatos del hogar - other_equipment: Equipo en general - supplies: Suministros - cleaning_supplies: Suministros de limpieza - household_items: Articulos del hogar - personal_care: Cuidado personal - baby_and_child_care: Cuidado de niños/bebes - clothes: Ropa - medicine: Medicina - furniture: Muebles - fuel: Combustible - transportation: Transportacion - pickup_truck: Camioneta - bus_or_van: Camion - tow_truck: Remolque - boat_motor: Barco (motor) - boat_no_motor: Barco (sin motor) - car: Coche - housing: Hospedaje - family: Hospedaje familiar - individual: Hospedaje individual - pets: Hospedaje para mascotas - food: Alimento - ready_to_eat: Alimentos rapidos - baby_formula: Alimentos para bebe - drinking_water: Agua potable - canned_food: Comida enlatada - dry_foods: Comida seca - basic_staples: Comida basica + 10kg: 10 kg + 1kg: 1 kg + 1L: 1 L + 1qty: 1 qty + 200g: 200 g + 250g: 250 g + 2kg: 2 kg + 2L: 2 L + 2qty: 2 qty + 500g: 500 g + 500ml: 500 ml + 5kg: 5 kg + 5qty: 5 qty + chilli_powder: Red chilli powder + coriander_powder: Dhaniya (Coriander) powder + flour: Wheat flour + garam_masala: Garam masala + lentil: Lentil + milk_powder: Milk powder + oil: Edible oil + onion: Onion + potato: Potato + rice: Rice + salt: Salt + soap: Soap + sugar: Sugar + tea_leaves: Tea leaves + turmeric: Turmeric + groceries: Groceries + hi: + # These keys need to be translated into Hindi + categories: I need help with + 10kg: 10 kg + 1kg: 1 kg + 1L: 1 L + 1qty: 1 qty + 200g: 200 g + 250g: 250 g + 2kg: 2 kg + 2L: 2 L + 2qty: 2 qty + 500g: 500 g + 500ml: 500 ml + 5kg: 5 kg + 5qty: 5 qty + chilli_powder: Red chilli powder + coriander_powder: Dhaniya (Coriander) powder + flour: Wheat flour + garam_masala: Garam masala + lentil: Lentil + milk_powder: Milk powder + oil: Edible oil + onion: Onion + potato: Potato + rice: Rice + salt: Salt + soap: Soap + sugar: Sugar + tea_leaves: Tea leaves + turmeric: Turmeric + groceries: Groceries development: <<: *default From f0b2f354d39cd6a66f6cfd996f6961957d30be26 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Sat, 11 Apr 2020 08:03:51 -0500 Subject: [PATCH 02/11] Keep categories at two levels deep --- config/connect_categories.yml | 109 +++++++++++++++++----------------- 1 file changed, 53 insertions(+), 56 deletions(-) diff --git a/config/connect_categories.yml b/config/connect_categories.yml index 095887a..759635c 100644 --- a/config/connect_categories.yml +++ b/config/connect_categories.yml @@ -1,60 +1,59 @@ default: &default categories: - - groceries: - - flour: - - 5kg: - - 10kg: - - rice: - - 1kg: - - 2kg: - - 5kg: - - lentil: - - 500g: - - 1kg: - - 2kg: - - 5kg: - - oil: - - 500ml: - - 1L: - - 2L: - - sugar: - - 1kg: - - 2kg: - - 5kg: - - tea_leaves: - - 250g: - - 500g: - - 1kg: - - potato: - - 1kg: - - 2kg: - - 5kg: - - onion: - - 1kg: - - 2kg: - - 5kg: - - milk_powder: - - 200g: - - 500g: - - soap: - - 1qty: - - 2qty: - - 5qty: - - salt: - - 1kg: - - 2kg: - - chilli_powder: - - 200g: - - turmeric: - - 200g: - - coriander_powder: - - 200g: - - garam_masala: - - 200g: + - flour: + - 5kg: + - 10kg: + - rice: + - 1kg: + - 2kg: + - 5kg: + - lentil: + - 500g: + - 1kg: + - 2kg: + - 5kg: + - oil: + - 500ml: + - 1L: + - 2L: + - sugar: + - 1kg: + - 2kg: + - 5kg: + - tea_leaves: + - 250g: + - 500g: + - 1kg: + - potato: + - 1kg: + - 2kg: + - 5kg: + - onion: + - 1kg: + - 2kg: + - 5kg: + - milk_powder: + - 200g: + - 500g: + - soap: + - 1qty: + - 2qty: + - 5qty: + - salt: + - 1kg: + - 2kg: + - chilli_powder: + - 200g: + - turmeric: + - 200g: + - coriander_powder: + - 200g: + - garam_masala: + - 200g: icons: - groceries: cutlery + categories: cutlery en: - categories: I need help with + categories: Groceries needed 10kg: 10 kg 1kg: 1 kg 1L: 1 L @@ -83,10 +82,9 @@ default: &default sugar: Sugar tea_leaves: Tea leaves turmeric: Turmeric - groceries: Groceries hi: # These keys need to be translated into Hindi - categories: I need help with + categories: Groceries needed 10kg: 10 kg 1kg: 1 kg 1L: 1 L @@ -115,7 +113,6 @@ default: &default sugar: Sugar tea_leaves: Tea leaves turmeric: Turmeric - groceries: Groceries development: <<: *default From 06154e909862d893539eed8883ae78c501e70b98 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Sun, 12 Apr 2020 08:40:56 -0500 Subject: [PATCH 03/11] Hindi translations added Courtesy of Susmitha Anandarao --- config/connect_categories.yml | 58 +++++++++++++++++------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/config/connect_categories.yml b/config/connect_categories.yml index 759635c..d2b9ab7 100644 --- a/config/connect_categories.yml +++ b/config/connect_categories.yml @@ -84,35 +84,35 @@ default: &default turmeric: Turmeric hi: # These keys need to be translated into Hindi - categories: Groceries needed - 10kg: 10 kg - 1kg: 1 kg - 1L: 1 L - 1qty: 1 qty - 200g: 200 g - 250g: 250 g - 2kg: 2 kg - 2L: 2 L - 2qty: 2 qty - 500g: 500 g - 500ml: 500 ml - 5kg: 5 kg - 5qty: 5 qty - chilli_powder: Red chilli powder - coriander_powder: Dhaniya (Coriander) powder - flour: Wheat flour - garam_masala: Garam masala - lentil: Lentil - milk_powder: Milk powder - oil: Edible oil - onion: Onion - potato: Potato - rice: Rice - salt: Salt - soap: Soap - sugar: Sugar - tea_leaves: Tea leaves - turmeric: Turmeric + categories: किराने का सामान की जरूरत + 10kg: 10 किग्रा + 1kg: 1 किग्रा + 1L: 1 ली + 1qty: 1 मात्रा + 200g: 200 ग्रा + 250g: 250 ग्रा + 2kg: 2 किग्रा + 2L: 2 ली + 2qty: 2 मात्रा + 500g: 500 ग्रा + 500ml: 500 मिली + 5kg: 5 किग्रा + 5qty: 5 मात्रा + chilli_powder: लाल मिर्च + coriander_powder: धनिया पाउडर + flour: आटा + garam_masala: गरम मसाला + lentil: दाल + milk_powder: दूध पाउडर + oil: खाद्य तेल + onion: प्याज + potato: आलू + rice: चावल + salt: नमक + soap: साबुन + sugar: शक्कर + tea_leaves: चाय पत्ती + turmeric: हल्दी development: <<: *default From 012a82302b7b433358ad49035d2298087da42165 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Mon, 13 Apr 2020 18:32:45 -0500 Subject: [PATCH 04/11] Upgrade geocoder to 1.6.2 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9b6fa53..a58fc42 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -81,7 +81,7 @@ GEM faraday (0.13.1) multipart-post (>= 1.2, < 3) ffi (1.9.18) - geocoder (1.4.4) + geocoder (1.6.2) globalid (0.4.0) activesupport (>= 4.2.0) google-api-client (0.13.4) From c9c2fb9afb99664526ba9ff8221de62ec7bc7fb8 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Tue, 14 Apr 2020 05:46:24 -0500 Subject: [PATCH 05/11] Hide features that don't relate to Connect --- app/views/layouts/application.html.erb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 52f57c2..c123a75 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -28,17 +28,18 @@