Repository navigation
Show ADHOC with a tooltip and add a switch to hide the environment badge - #107183
Conversation
|
@abdulrahuman5196 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] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🦜 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 83a6197c..c6bacebd 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -2547,7 +2547,7 @@ const translations: TranslationDeepObject<typeof en> = {
sentryHighlightedSpanOps: 'Hervorgehobene Spannen-Namen',
sentryHighlightedSpanOpsPlaceholder: 'ui.interaktion.klick, navigation, ui.laden',
showBranchNameInTitle: 'Branch-Namen im Browser-Titel anzeigen',
- hideEnvironmentBadge: 'Umgebungsabzeichen ausblenden',
+ hideEnvironmentBadge: 'Umgebungs-Badge ausblenden',
betaOverrides: 'Beta-Überschreibungen',
betaOverridesDescription:
'Überschreibungen gelten nur für dieses Gerät und wirken sich nur auf Frontend-Prüfungen aus. Eine Beta behält eine Überschreibung nur so lange, wie sie von den Betas Ihres Kontos abweicht; schalten Sie sie zurück, wird die Überschreibung entfernt. „Alle Überschreibungen zurücksetzen“ stellt die Werte Ihres Kontos wieder her. Einige Betas werden zusätzlich vom Backend gesteuert und können daher weiterhin auf Anfrageebene fehlschlagen.',
diff --git a/src/languages/es.ts b/src/languages/es.ts
index 84cd4f88..4137d2b3 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -2528,7 +2528,7 @@ const translations: TranslationDeepObject<typeof en> = {
sentryHighlightedSpanOps: 'Nombres de spans resaltados',
sentryHighlightedSpanOpsPlaceholder: 'ui.interaction.click, navigation, ui.load',
showBranchNameInTitle: 'Mostrar nombre de rama en el título del navegador',
- hideEnvironmentBadge: 'Ocultar insignia de entorno',
+ hideEnvironmentBadge: 'Ocultar distintivo de entorno',
betaOverrides: 'Anulaciones de betas',
betaOverridesDescription:
'Las anulaciones solo se aplican a este dispositivo y solo afectan a las comprobaciones del frontend. Una beta conserva una anulación solo mientras difiere de las betas de tu cuenta, por lo que al volver a cambiarla se elimina la anulación. «Restablecer todas las anulaciones» recupera los valores de tu cuenta. Algunas betas también están controladas por el backend, así que pueden fallar a nivel de solicitud.',
diff --git a/src/languages/it.ts b/src/languages/it.ts
index 5995097b..1d6b890c 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -2541,7 +2541,7 @@ const translations: TranslationDeepObject<typeof en> = {
sentryHighlightedSpanOps: 'Nomi degli intervalli evidenziati',
sentryHighlightedSpanOpsPlaceholder: 'ui.interaction.click, navigazione, ui.load',
showBranchNameInTitle: 'Mostra nome del ramo nel titolo del browser',
- hideEnvironmentBadge: 'Nascondi badge dell’ambiente',
+ hideEnvironmentBadge: 'Nascondi badge ambiente',
betaOverrides: 'Sostituzioni delle beta',
betaOverridesDescription:
'Le sostituzioni si applicano solo a questo dispositivo e influiscono solo sui controlli del frontend. Una beta mantiene una sostituzione solo finché differisce dalle beta del tuo account, quindi riportandola indietro la sostituzione viene rimossa. «Reimposta tutte le sostituzioni» ripristina i valori del tuo account. Alcune beta sono controllate anche dal backend, quindi possono comunque fallire a livello di richiesta.',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index fd3e54c6..308ea81b 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -2579,7 +2579,7 @@ const translations: TranslationDeepObject<typeof en> = {
sentryHighlightedSpanOps: 'Wyróżnione nazwy zakresów',
sentryHighlightedSpanOpsPlaceholder: 'kliknięcie interfejsu, nawigacja, ładowanie interfejsu',
showBranchNameInTitle: 'Pokaż nazwę gałęzi w tytule przeglądarki',
- hideEnvironmentBadge: 'Ukryj znaczek środowiska',
+ hideEnvironmentBadge: 'Ukryj odznakę środowiska',
betaOverrides: 'Nadpisywanie bet',
betaOverridesDescription:
'Nadpisywanie działa tylko na tym urządzeniu i tylko po stronie frontendu. Beta zachowuje nadpisanie tylko wtedy, gdy różni się od bet z Twojego konta, więc przełączenie jej z powrotem usuwa nadpisanie. „Zresetuj wszystkie nadpisania” przywraca wartości z Twojego konta. Niektóre bety są też kontrolowane przez backend, więc mogą w pełni nie działać zwłaszcza przy żądaniach wysyłanych do backendu.',
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c57f66f009
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| textStyles={styles.headerEnvBadgeText} | ||
| environment={environment} | ||
| /> | ||
| <Tooltip text={tooltipText}> |
There was a problem hiding this comment.
Make the build-details tooltip accessible on touch devices
On native iOS/Android ad hoc builds, Tooltip/BaseTooltip/index.native.tsx simply returns its children, and the web implementation also skips tooltips on devices without hover support. Moving the version and PR number exclusively into this tooltip therefore removes access to those details from the badge on all those platforms; users only see ADHOC, with no interaction that reveals which build they are testing. Keep the compact label, but provide a tap/press disclosure or another non-hover fallback for the build details.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not worth it IMO, on touch devices the full version and PR number are still in Account > About, which is where people looked before anyway.
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
Thank you! |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
|
@iwiznia Can i start reviewing this PR? |
|
Yes please |
|
checking on this |
|
@MelvinBot could you add the adhoc build label to generate builds for this PR? |
|
There’s no ad-hoc build label in this repository. Builds are generated through the Build and deploy apps for testing workflow, which requires an employee to confirm they’ve reviewed the code. I haven’t triggered a build. |
@iwiznia could you kindly trigger adhoc build for this PR? It would be better to check this case. |
|
🚧 JmillsExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
Done. |
This comment has been minimized.
This comment has been minimized.
Reviewer Checklist
Screenshots/VideosiOS: HybridAppMacOS: Chrome / SafarimacOS-0-Screen_Recording_2026-11-24_at_12.05.13.AM.mov |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours.
🎀 👀 🎀
C+ Reviewed
|
@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] |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 MonilBhavsar has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.5.53-0 🚀
|
|
No help site update needed — these changes only affect environment badges and testing controls outside production, so they don’t change customer workflows or make any existing article incorrect. |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |



Explanation of Change
Follow up to #106695 with the changes asked there:
ADHOCin the badge like before, and the version and PR number in a tooltip on hover, sincev<version> PR:<number>did not fit next to the logoHide environment badgeswitch to the Troubleshoot page (and the test tools modal), so the badge can be hidden when taking screenshots. It's only shown outside production, same as the badgeFixed Issues
$ #107182
PROPOSAL:
Tests
DEVbadge shows next to the logoHide environment badgeTo check the ad hoc tooltip I temporarily forced the tooltip on locally (the label is
DEVsince the environment is still dev, and the PR number is empty in dev):Switch off:

Switch on:

Offline tests
Same as tests, the switch is local only
QA Steps
STGbadge shows next to the logo (wide) or the top bar title (narrow)Hide environment badgeHide environment badgeswitch and no badge on productionPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari