Skip to content

Commit 3d3b507

Browse files
authored
Merge pull request #10270 from Expensify/OSBotify-cherry-pick-staging-10266
🍒 Cherry pick PR #10266 to staging 🍒
2 parents 0fb412f + 4601509 commit 3d3b507

23 files changed

+266
-141
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ For an M1 Mac, read this [SO](https://stackoverflow.com/c/expensify/questions/11
6565
1. If you are having issues with **_Getting Started_**, please reference [React Native's Documentation](https://reactnative.dev/docs/environment-setup)
6666
2. If you are running into CORS errors like (in the browser dev console)
6767
```sh
68-
Access to fetch at 'https://www.expensify.com/api?command=BeginSignIn' from origin 'http://localhost:8080' has been blocked by CORS policy
68+
Access to fetch at 'https://www.expensify.com/api?command=GetAccountStatus' from origin 'http://localhost:8080' has been blocked by CORS policy
6969
```
7070
You probably have a misconfigured `.env` file - remove it (`rm .env`) and try again
7171

@@ -164,7 +164,7 @@ That action will then call `Onyx.merge()` to [set default data and a loading sta
164164

165165
```js
166166
function signIn(password, twoFactorAuthCode) {
167-
Onyx.merge(ONYXKEYS.ACCOUNT, {isLoading: true});
167+
Onyx.merge(ONYXKEYS.ACCOUNT, {loading: true});
168168
Authentication.Authenticate({
169169
...defaultParams,
170170
password,
@@ -177,7 +177,7 @@ function signIn(password, twoFactorAuthCode) {
177177
Onyx.merge(ONYXKEYS.ACCOUNT, {error: error.message});
178178
})
179179
.finally(() => {
180-
Onyx.merge(ONYXKEYS.ACCOUNT, {isLoading: false});
180+
Onyx.merge(ONYXKEYS.ACCOUNT, {loading: false});
181181
});
182182
}
183183
```
@@ -188,7 +188,7 @@ Keeping our `Onyx.merge()` out of the view layer and in actions helps organize t
188188
// Bad
189189
validateAndSubmitForm() {
190190
// validate...
191-
this.setState({isLoading: true});
191+
this.setState({loading: true});
192192
signIn()
193193
.then((response) => {
194194
if (result.jsonCode === 200) {
@@ -198,7 +198,7 @@ validateAndSubmitForm() {
198198
this.setState({error: response.message});
199199
})
200200
.finally(() => {
201-
this.setState({isLoading: false});
201+
this.setState({loading: false});
202202
});
203203
}
204204

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ android {
152152
minSdkVersion rootProject.ext.minSdkVersion
153153
targetSdkVersion rootProject.ext.targetSdkVersion
154154
multiDexEnabled rootProject.ext.multiDexEnabled
155-
versionCode 1001018801
156-
versionName "1.1.88-1"
155+
versionCode 1001018802
156+
versionName "1.1.88-2"
157157
}
158158
splits {
159159
abi {

ios/NewExpensify/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</dict>
3131
</array>
3232
<key>CFBundleVersion</key>
33-
<string>1.1.88.1</string>
33+
<string>1.1.88.2</string>
3434
<key>ITSAppUsesNonExemptEncryption</key>
3535
<false/>
3636
<key>LSApplicationQueriesSchemes</key>

ios/NewExpensifyTests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>1.1.88.1</string>
22+
<string>1.1.88.2</string>
2323
</dict>
2424
</plist>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "1.1.88-1",
3+
"version": "1.1.88-2",
44
"author": "Expensify, Inc.",
55
"homepage": "https://new.expensify.com",
66
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",

src/ONYXKEYS.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ export default {
186186
// The policyID of the last workspace whose settings were accessed by the user
187187
LAST_ACCESSED_WORKSPACE_POLICY_ID: 'lastAccessedWorkspacePolicyID',
188188

189+
// Validating Email?
190+
USER_SIGN_UP: 'userSignUp',
191+
189192
// List of Form ids
190193
FORMS: {
191194
ADD_DEBIT_CARD_FORM: 'addDebitCardForm',

src/languages/en.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,11 @@ export default {
497497
},
498498
resendValidationForm: {
499499
linkHasBeenResent: 'Link has been re-sent',
500-
weSentYouMagicSignInLink: ({login, loginType}) => `I've sent a magic sign-in link to ${login}. Please check your ${loginType} to sign in.`,
500+
weSentYouMagicSignInLink: ({login}) => `We've sent a magic sign in link to ${login}. Check your Inbox and your Spam folder and wait 5-10 minutes before trying again.`,
501501
resendLink: 'Resend link',
502502
validationCodeFailedMessage: 'It looks like there was an error with your validation link or it has expired.',
503+
unvalidatedAccount: 'This account exists but isn\'t validated, please check your inbox for your magic link.',
504+
newAccount: ({login, loginType}) => `Welcome ${login}, it's always great to see a new face around here! Please check your ${loginType} for a magic link to validate your account.`,
503505
},
504506
detailsPage: {
505507
localTime: 'Local time',
@@ -521,7 +523,7 @@ export default {
521523
passwordFormTitle: 'Welcome back to the New Expensify! Please set your password.',
522524
passwordNotSet: 'We were unable to set your new password. We have sent you a new password link to try again.',
523525
setPasswordLinkInvalid: 'This set password link is invalid or has expired. A new one is waiting for you in your email inbox!',
524-
validatingAccount: 'Verifying account',
526+
verifyingAccount: 'Verifying account',
525527
},
526528
stepCounter: ({step, total}) => `Step ${step} of ${total}`,
527529
bankAccount: {

src/languages/es.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,11 @@ export default {
497497
},
498498
resendValidationForm: {
499499
linkHasBeenResent: 'El enlace se ha reenviado',
500-
weSentYouMagicSignInLink: ({login, loginType}) => `Te he enviado un hiperenlace mágico para iniciar sesión a ${login}. Por favor revisa tu ${loginType}`,
500+
weSentYouMagicSignInLink: ({login}) => `Hemos enviado un enlace mágico de inicio de sesión a ${login}. Verifica tu bandeja de entrada y tu carpeta de correo no deseado y espera de 5 a 10 minutos antes de intentarlo de nuevo.`,
501501
resendLink: 'Reenviar enlace',
502502
validationCodeFailedMessage: 'Parece que hubo un error con el enlace de validación o ha caducado.',
503+
unvalidatedAccount: 'Esta cuenta existe pero no está validada, por favor busca el enlace mágico en tu bandeja de entrada',
504+
newAccount: ({login, loginType}) => `¡Bienvenido ${login}, es genial ver una cara nueva por aquí! En tu ${loginType} encontrarás un enlace para validar tu cuenta, por favor, revísalo`,
503505
},
504506
detailsPage: {
505507
localTime: 'Hora local',
@@ -521,7 +523,7 @@ export default {
521523
passwordFormTitle: '¡Bienvenido de vuelta al Nuevo Expensify! Por favor, elige una contraseña.',
522524
passwordNotSet: 'No pudimos cambiar tu clave. Te hemos enviado un nuevo enlace para que intentes cambiar la clave nuevamente.',
523525
setPasswordLinkInvalid: 'El enlace para configurar tu contraseña ha expirado. Te hemos enviado un nuevo enlace a tu correo.',
524-
validatingAccount: 'Verificando cuenta',
526+
verifyingAccount: 'Verificando cuenta',
525527
},
526528
stepCounter: ({step, total}) => `Paso ${step} de ${total}`,
527529
bankAccount: {

src/libs/Network/MainQueue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let networkRequestQueue = [];
1919
* @return {Boolean}
2020
*/
2121
function canMakeRequest(request) {
22-
// Some requests are always made even when we are in the process of authenticating (typically because they require no authToken e.g. Log, BeginSignIn)
22+
// Some requests are always made even when we are in the process of authenticating (typically because they require no authToken e.g. Log, GetAccountStatus)
2323
// However, if we are in the process of authenticating we always want to queue requests until we are no longer authenticating.
2424
return request.data.forceNetworkRequest === true || (!NetworkStore.isAuthenticating() && !SequentialQueue.isRunning());
2525
}

src/libs/Network/enhanceParameters.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ function isAuthTokenRequired(command) {
1515
'Log',
1616
'Graphite_Timer',
1717
'Authenticate',
18-
'BeginSignIn',
18+
'GetAccountStatus',
1919
'SetPassword',
2020
'User_SignUp',
2121
'ResendValidateCode',
22+
'User_ReopenAccount',
2223
'ValidateEmail',
2324
], command);
2425
}

0 commit comments

Comments
 (0)