Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.98k stars 2.98k forks source link

[CP Staging] Revert "Add toggle for enable/disable instead of label" + Remove usages of EMPTY_STRING #55101

Closed thienlnam closed 2 weeks ago

thienlnam commented 2 weeks ago

Reverts Expensify/App#54451

Fixes https://github.com/Expensify/App/issues/55053 and https://github.com/Expensify/App/issues/55052

PR Author Checklist

melvin-bot[bot] commented 2 weeks ago

@srikarparsi 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]

thienlnam commented 2 weeks ago

Straight revert

thienlnam commented 2 weeks ago

Looks like the typescript is failing due to EMPTY_STRING not being present while existing in other files.

Another PR started using it but it's not recommended https://expensify.slack.com/archives/C01GTK53T8Q/p1736501722079049

https://github.com/Expensify/App/commit/7850ce0227cfb98511af1e5ecf3362010d85fe48

thienlnam commented 2 weeks ago

Hmm, I'm having to fix quite a few things to remove the usage of EMPTY_STRING, but then it causes me to update more files due to Changed files ESLint check - since this is supposed to just be a revert and just handles removing the usage of EMPTY_STRING, I'm sure it's fine to skip that check

allroundexperts commented 2 weeks ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/6ee725c0-648b-4aec-b286-aa804c667cdb
Android: mWeb Chrome https://github.com/user-attachments/assets/57e33c94-2058-4aaa-8e42-9a69db8a9497
iOS: Native https://github.com/user-attachments/assets/485f5fc2-9c34-4f26-8402-447ee8f413e2
iOS: mWeb Safari https://github.com/user-attachments/assets/8bef546d-16b6-4637-b0bf-d4624c553560
MacOS: Chrome / Safari https://github.com/user-attachments/assets/28799253-197e-4ce8-b341-06a7efe26d13
MacOS: Desktop https://github.com/user-attachments/assets/266cd0f0-148a-46fc-8602-1cc78d15225c
melvin-bot[bot] commented 2 weeks ago

@srikarparsi 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]

melvin-bot[bot] commented 2 weeks ago

🎯 @allroundexperts, thanks for reviewing and testing this PR! 🎉

An E/App issue has been created to issue payment here: https://github.com/Expensify/App/issues/55107.

melvin-bot[bot] commented 2 weeks ago

@francoisl looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

thienlnam commented 2 weeks ago

https://github.com/Expensify/App/pull/55101#issuecomment-2584894125

francoisl commented 2 weeks ago

Not an emergency, see https://github.com/Expensify/App/pull/55101#issuecomment-2584894125

OSBotify commented 2 weeks ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

github-actions[bot] commented 2 weeks ago

🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.83-5 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 success ✅
🍎🔄 iOS HybridApp 🍎🔄 success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

github-actions[bot] commented 2 weeks ago

🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.83-5 🚀

platform result
🤖 android 🤖 true ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 failure ❌
🍎🔄 iOS HybridApp 🍎🔄 success ✅
github-actions[bot] commented 1 week ago

🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.83-5 🚀

platform result
🤖 android 🤖 true ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 failure ❌
🍎🔄 iOS HybridApp 🍎🔄 success ✅