Repository navigation
Add location services check - GPS trip - #79488
AndrewGable merged 9 commits into
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
|
|
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
🦜 Polyglot Parrot! 🦜Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues: View the translation diffdiff --git a/src/languages/de.ts b/src/languages/de.ts
index bf0e5c45..e34dde3e 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -7989,14 +7989,11 @@ Hier ist ein *Testbeleg*, um dir zu zeigen, wie es funktioniert:`,
subtitle: 'Protokolliere Meilen oder Kilometer automatisch mit GPS und verwandle Fahrten sofort in Ausgaben.',
button: 'App herunterladen',
},
- notification: {
- title: 'GPS tracking in progress',
- body: 'Go to the app to finish',
- },
+ notification: {title: 'GPS-Tracking läuft', body: 'Gehe zur App, um abzuschließen'},
locationServicesRequiredModal: {
- title: 'Location access required',
- confirm: 'Open settings',
- prompt: 'Please allow location access in your device settings to start GPS distance tracking.',
+ title: 'Standortzugriff erforderlich',
+ confirm: 'Einstellungen öffnen',
+ prompt: 'Bitte erlaube den Standortzugriff in den Einstellungen deines Geräts, um die GPS-Distanzverfolgung zu starten.',
},
},
};
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 1b15f174..908477a4 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -7994,14 +7994,11 @@ Voici un *reçu test* pour vous montrer comment cela fonctionne :`,
subtitle: 'Enregistrez automatiquement les miles ou kilomètres avec le GPS et transformez instantanément vos trajets en dépenses.',
button: 'Télécharger l’application',
},
- notification: {
- title: 'GPS tracking in progress',
- body: 'Go to the app to finish',
- },
+ notification: {title: 'Suivi GPS en cours', body: 'Aller dans l’application pour terminer'},
locationServicesRequiredModal: {
- title: 'Location access required',
- confirm: 'Open settings',
- prompt: 'Please allow location access in your device settings to start GPS distance tracking.',
+ title: 'Accès à la localisation requis',
+ confirm: 'Ouvrir les paramètres',
+ prompt: 'Veuillez autoriser l’accès à la localisation dans les réglages de votre appareil pour lancer le suivi de distance GPS.',
},
},
};
diff --git a/src/languages/it.ts b/src/languages/it.ts
index c0309c13..407b6ee6 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -7971,14 +7971,11 @@ Ecco una *ricevuta di prova* per mostrarti come funziona:`,
subtitle: 'Registra automaticamente miglia o chilometri con il GPS e trasforma i viaggi in spese all’istante.',
button: 'Scarica l’app',
},
- notification: {
- title: 'GPS tracking in progress',
- body: 'Go to the app to finish',
- },
+ notification: {title: 'Monitoraggio GPS in corso', body: "Vai all'app per completare"},
locationServicesRequiredModal: {
- title: 'Location access required',
- confirm: 'Open settings',
- prompt: 'Please allow location access in your device settings to start GPS distance tracking.',
+ title: 'È necessario l’accesso alla posizione',
+ confirm: 'Apri impostazioni',
+ prompt: 'Consenti l’accesso alla posizione nelle impostazioni del dispositivo per avviare il tracciamento della distanza tramite GPS.',
},
},
};
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 452b1ec7..c43fadb4 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -7890,14 +7890,11 @@ Expensify の使い方をお見せするための*テストレシート*がこ
},
preciseLocationRequiredModal: {title: '正確な位置情報が必要です', prompt: 'GPS距離の追跡を開始するには、デバイスの設定で「正確な位置情報」を有効にしてください。'},
desktop: {title: 'スマートフォンで距離を記録する', subtitle: 'GPS で自動的にマイルまたはキロメートルを記録し、移動をすぐに経費に変換します。', button: 'アプリをダウンロード'},
- notification: {
- title: 'GPS tracking in progress',
- body: 'Go to the app to finish',
- },
+ notification: {title: 'GPS追跡を実行中', body: 'アプリに移動して完了してください'},
locationServicesRequiredModal: {
- title: 'Location access required',
- confirm: 'Open settings',
- prompt: 'Please allow location access in your device settings to start GPS distance tracking.',
+ title: '位置情報へのアクセスが必要です',
+ confirm: '設定を開く',
+ prompt: 'GPS距離の追跡を開始するには、デバイスの設定で位置情報へのアクセスを許可してください。',
},
},
};
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index 701b823d..37652a19 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -7942,7 +7942,6 @@ Hier is een *testbon* om je te laten zien hoe het werkt:`,
confirm: 'Afstandstracking negeren',
},
zeroDistanceTripModal: {title: 'Kan geen uitgave aanmaken', prompt: 'Je kunt geen uitgave aanmaken met dezelfde begin- en eindlocatie.'},
-
locationRequiredModal: {
title: 'Locatietoegang vereist',
prompt: 'Sta locatietoegang toe in de instellingen van je apparaat om GPS-afstandsregistratie te starten.',
@@ -7954,14 +7953,11 @@ Hier is een *testbon* om je te laten zien hoe het werkt:`,
},
preciseLocationRequiredModal: {title: 'Precieze locatie vereist', prompt: 'Schakel "precieze locatie" in de instellingen van je apparaat in om GPS-afstandsregistratie te starten.'},
desktop: {title: 'Volg afstand op je telefoon', subtitle: 'Leg kilometers of mijlen automatisch vast met GPS en zet ritten direct om in uitgaven.', button: 'Download de app'},
- notification: {
- title: 'GPS tracking in progress',
- body: 'Go to the app to finish',
- },
+ notification: {title: 'GPS-tracking bezig', body: 'Ga naar de app om af te ronden'},
locationServicesRequiredModal: {
- title: 'Location access required',
- confirm: 'Open settings',
- prompt: 'Please allow location access in your device settings to start GPS distance tracking.',
+ title: 'Locatietoegang vereist',
+ confirm: 'Instellingen openen',
+ prompt: 'Sta locatietoegang toe in de instellingen van je apparaat om het bijhouden van GPS-afstand te starten.',
},
},
};
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 6036f8ca..df1f78cd 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -7917,7 +7917,6 @@ Oto *paragon testowy*, który pokazuje, jak to działa:`,
confirm: 'Odrzuć śledzenie dystansu',
},
zeroDistanceTripModal: {title: 'Nie można utworzyć wydatku', prompt: 'Nie możesz utworzyć wydatku z tym samym miejscem początkowym i końcowym.'},
-
locationRequiredModal: {
title: 'Wymagany dostęp do lokalizacji',
prompt: 'Aby rozpocząć śledzenie dystansu GPS, zezwól na dostęp do lokalizacji w ustawieniach swojego urządzenia.',
@@ -7936,14 +7935,11 @@ Oto *paragon testowy*, który pokazuje, jak to działa:`,
subtitle: 'Automatycznie rejestruj mile lub kilometry za pomocą GPS i natychmiast zamieniaj podróże w wydatki.',
button: 'Pobierz aplikację',
},
- notification: {
- title: 'GPS tracking in progress',
- body: 'Go to the app to finish',
- },
+ notification: {title: 'Trwa śledzenie GPS', body: 'Przejdź do aplikacji, aby zakończyć'},
locationServicesRequiredModal: {
- title: 'Location access required',
- confirm: 'Open settings',
- prompt: 'Please allow location access in your device settings to start GPS distance tracking.',
+ title: 'Wymagany dostęp do lokalizacji',
+ confirm: 'Otwórz ustawienia',
+ prompt: 'Zezwól na dostęp do lokalizacji w ustawieniach urządzenia, aby rozpocząć śledzenie dystansu za pomocą GPS.',
},
},
};
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index efeab42f..39ed3a14 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -7929,7 +7929,6 @@ Aqui está um *recibo de teste* para mostrar como funciona:`,
confirm: 'Descartar rastreamento de distância',
},
zeroDistanceTripModal: {title: 'Não é possível criar a despesa', prompt: 'Você não pode criar uma despesa com o mesmo local de partida e de chegada.'},
-
locationRequiredModal: {
title: 'Acesso à localização necessário',
prompt: 'Permita o acesso à localização nas configurações do seu dispositivo para iniciar o rastreamento de distância por GPS.',
@@ -7948,14 +7947,11 @@ Aqui está um *recibo de teste* para mostrar como funciona:`,
subtitle: 'Registre milhas ou quilômetros automaticamente com o GPS e transforme viagens em despesas instantaneamente.',
button: 'Baixar o app',
},
- notification: {
- title: 'GPS tracking in progress',
- body: 'Go to the app to finish',
- },
+ notification: {title: 'Rastreamento por GPS em andamento', body: 'Vá para o app para finalizar'},
locationServicesRequiredModal: {
- title: 'Location access required',
- confirm: 'Open settings',
- prompt: 'Please allow location access in your device settings to start GPS distance tracking.',
+ title: 'Acesso à localização obrigatório',
+ confirm: 'Abrir configurações',
+ prompt: 'Permita o acesso à localização nas configurações do seu dispositivo para iniciar o rastreamento de distância por GPS.',
},
},
};
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 3e3a2cd3..490bdd9f 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -7741,15 +7741,8 @@ ${reportName}
androidBackgroundLocationRequiredModal: {title: '需要后台位置访问权限', prompt: '请在设备设置中允许应用使用“始终允许”位置访问权限,以开始 GPS 距离跟踪。'},
preciseLocationRequiredModal: {title: '需要精确位置', prompt: '请在设备设置中启用“精确位置”以开始 GPS 距离跟踪。'},
desktop: {title: '在手机上跟踪距离', subtitle: '使用 GPS 自动记录英里或公里,并将行程即时转换为报销费用。', button: '下载应用程序'},
- notification: {
- title: 'GPS tracking in progress',
- body: 'Go to the app to finish',
- },
- locationServicesRequiredModal: {
- title: 'Location access required',
- confirm: 'Open settings',
- prompt: 'Please allow location access in your device settings to start GPS distance tracking.',
- },
+ notification: {title: '正在进行 GPS 跟踪', body: '前往应用完成操作'},
+ locationServicesRequiredModal: {title: '需要访问位置信息', confirm: '打开设置', prompt: '请在设备设置中允许位置访问,以开始 GPS 距离跟踪。'},
},
};
// IMPORTANT: This line is manually replaced in generate translation files by scripts/generateTranslations.ts,
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
|
@MonilBhavsar Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@trjExpensify please ignore, @AndrewGable will review |
|
@GCyganek Do we need to add the |
Absolutely not, sorry, must've been added with merge from main |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-20.at.22.27.34.movAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-01-20.at.22.30.13.moviOS: mWeb SafariMacOS: Chrome / Safari |
|
🎯 @dukenv0307, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #80001. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/AndrewGable in version: 9.3.6-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.6-4 🚀
|
Explanation of Change
Adding a check if location services are enabled on a device after user taps
Starton the GPS screenFixed Issues
$ #77217
PROPOSAL: N/A
Tests
Startwith disabled location services on your deviceOpen settingsStartstarts the trip (or starts location permissions flow)Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2026-01-13.at.16.06.25.mov
iOS: Native
Screen.Recording.2026-01-13.at.16.12.41.mov