Skip to content

Commit 3e1312e

Browse files
authored
Merge pull request #89670 from Expensify/francois-revert-87948
[CP Staging] Revert #87948 "Add device management feature"
2 parents 94727c1 + 6d4b3fa commit 3e1312e

29 files changed

Lines changed: 5 additions & 407 deletions

File tree

src/CONST/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8553,7 +8553,6 @@ const CONST = {
85538553
HAS_POLICY_ADMIN_CARD_FEED_ERRORS: 'hasPolicyAdminCardFeedErrors',
85548554
HAS_DOMAIN_ERRORS: 'hasDomainErrors',
85558555
HAS_LOCKED_BANK_ACCOUNT: 'hasLockedBankAccount',
8556-
HAS_DEVICE_MANAGEMENT_ERROR: 'hasDeviceManagementError',
85578556
},
85588557

85598558
DEBUG: {
@@ -9568,7 +9567,6 @@ const CONST = {
95689567
REVOKE_MFA: 'SettingsSecurity-RevokeMFA',
95699568
MERGE_ACCOUNTS: 'SettingsSecurity-MergeAccounts',
95709569
LOCK_UNLOCK_ACCOUNT: 'SettingsSecurity-LockUnlockAccount',
9571-
DEVICE_MANAGEMENT: 'SettingsSecurity-DeviceManagement',
95729570
CLOSE_ACCOUNT: 'SettingsSecurity-CloseAccount',
95739571
ADD_COPILOT: 'SettingsSecurity-AddCopilot',
95749572
DELEGATE_ITEM: 'SettingsSecurity-DelegateItem',
@@ -9700,12 +9698,6 @@ const CONST = {
97009698
ROUTE_SOURCE: 'route-source',
97019699
ROUTE_FILL: 'route-fill',
97029700
},
9703-
9704-
PARTNER_ID: {
9705-
IPHONE: 14,
9706-
ANDROID: 16,
9707-
NEWDOT: 83,
9708-
},
97099701
} as const;
97109702

97119703
const CONTINUATION_DETECTION_SEARCH_FILTER_KEYS = [

src/ONYXKEYS.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ const ONYXKEYS = {
114114
/** Contains latitude and longitude of user's last known location */
115115
USER_LOCATION: 'userLocation',
116116

117-
/** Contains metadata (partner, login, validation date) for all of the user's logins */
118-
LOGINS: 'logins',
119-
120117
/** Contains metadata (partner, login, validation date) for all of the user's logins */
121118
LOGIN_LIST: 'loginList',
122119

@@ -1377,7 +1374,6 @@ type OnyxValuesMapping = {
13771374
[ONYXKEYS.COUNTRY_CODE]: number;
13781375
[ONYXKEYS.COUNTRY]: string;
13791376
[ONYXKEYS.USER_LOCATION]: OnyxTypes.UserLocation;
1380-
[ONYXKEYS.LOGINS]: OnyxTypes.Logins;
13811377
[ONYXKEYS.LOGIN_LIST]: OnyxTypes.LoginList;
13821378
[ONYXKEYS.PENDING_CONTACT_ACTION]: OnyxTypes.PendingContactAction;
13831379
[ONYXKEYS.VALIDATE_ACTION_CODE]: OnyxTypes.ValidateMagicCodeAction;

src/ROUTES.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ const ROUTES = {
660660
SETTINGS_PAYMENT_CURRENCY: 'setting/preferences/payment-currency',
661661
SETTINGS_THEME: 'settings/preferences/theme',
662662
SETTINGS_SECURITY: 'settings/security',
663-
SETTINGS_DEVICE_MANAGEMENT: 'settings/security/device-management',
664663
SETTINGS_CLOSE: 'settings/security/closeAccount',
665664
SETTINGS_MERGE_ACCOUNTS: {
666665
route: 'settings/security/merge-accounts',

src/SCREENS.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ const SCREENS = {
125125
UPDATE_PERSONAL_BANK_ACCOUNT: 'Settings_Update_Personal_Bank_Account',
126126
ADD_BANK_ACCOUNT_SELECT_COUNTRY_VERIFY_ACCOUNT: 'Settings_Add_Bank_Account_Select_Country_Verify_Account',
127127
BANK_ACCOUNT_PURPOSE: 'Settings_Bank_Account_Purpose',
128-
DEVICE_MANAGEMENT: 'Settings_Device_Management',
129128
CLOSE: 'Settings_Close',
130129
REPORT_CARD_LOST_OR_DAMAGED: 'Settings_ReportCardLostOrDamaged',
131130
REPORT_CARD_LOST_OR_DAMAGED_CONFIRM_MAGIC_CODE: 'Settings_ReportCardLostOrDamaged_ConfirmMagicCode',

src/hooks/useAccountIndicatorChecks.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {hasPaymentMethodError} from '@libs/actions/PaymentMethods';
22
import {hasPartiallySetupBankAccount, hasPersonalBankAccountMissingInfo} from '@libs/BankAccountUtils';
33
import {hasPendingExpensifyCardAction} from '@libs/CardUtils';
44
import {hasSubscriptionGreenDotInfo, hasSubscriptionRedDotError} from '@libs/SubscriptionUtils';
5-
import {hasDeviceManagementError, hasLoginListError, hasLoginListInfo} from '@libs/UserUtils';
5+
import {hasLoginListError, hasLoginListInfo} from '@libs/UserUtils';
66
import CONST from '@src/CONST';
77
import ONYXKEYS from '@src/ONYXKEYS';
88
import type IndicatorStatus from '@src/types/utils/IndicatorStatus';
@@ -33,7 +33,6 @@ function useAccountIndicatorChecks(): AccountIndicatorChecksResult {
3333
const [session] = useOnyx(ONYXKEYS.SESSION);
3434
const [reimbursementAccount] = useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT);
3535
const [policies] = useOnyx(ONYXKEYS.COLLECTION.POLICY);
36-
const [hasDeviceManagementErrorValue] = useOnyx(ONYXKEYS.LOGINS, {selector: hasDeviceManagementError});
3736

3837
const {
3938
companyCards: {shouldShowRBR: hasCompanyCardFeedErrors},
@@ -60,7 +59,6 @@ function useAccountIndicatorChecks(): AccountIndicatorChecksResult {
6059
[CONST.INDICATOR_STATUS.HAS_PHONE_NUMBER_ERROR]: !!privatePersonalDetails?.errorFields?.phoneNumber,
6160
[CONST.INDICATOR_STATUS.HAS_EMPLOYEE_CARD_FEED_ERRORS]: !isPolicyAdmin ? hasCompanyCardFeedErrors : false,
6261
[CONST.INDICATOR_STATUS.HAS_LOCKED_BANK_ACCOUNT]: Object.values(bankAccountList ?? {}).some((bankAccount) => bankAccount?.accountData?.state === CONST.BANK_ACCOUNT.STATE.LOCKED),
63-
[CONST.INDICATOR_STATUS.HAS_DEVICE_MANAGEMENT_ERROR]: hasDeviceManagementErrorValue,
6462
};
6563

6664
const infoChecks: Partial<Record<IndicatorStatus, boolean>> = {

src/languages/de.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,12 +2205,6 @@ const translations: TranslationDeepObject<typeof en> = {
22052205
chatToConciergeToUnlock: 'Chatte mit Concierge, um Sicherheitsbedenken zu klären und dein Konto zu entsperren.',
22062206
chatWithConcierge: 'Mit Concierge chatten',
22072207
},
2208-
deviceManagementPage: {
2209-
title: 'Geräteverwaltung',
2210-
description: 'Verwalten Sie alle Geräte, auf denen Sie sich mit Ihrem Expensify-Konto angemeldet haben.',
2211-
revoke: 'Widerrufen',
2212-
unknownDevice: 'Unbekanntes Gerät',
2213-
},
22142208
twoFactorAuth: {
22152209
headerTitle: 'Zwei-Faktor-Authentifizierung',
22162210
twoFactorAuthEnabled: 'Zwei-Faktor-Authentifizierung aktiviert',

src/languages/en.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,12 +2275,6 @@ const translations = {
22752275
chatToConciergeToUnlock: 'Chat with Concierge to resolve security concerns and unlock your account.',
22762276
chatWithConcierge: 'Chat with Concierge',
22772277
},
2278-
deviceManagementPage: {
2279-
title: 'Device management',
2280-
description: 'Manage all the devices that you have logged into with your Expensify Account.',
2281-
revoke: 'Revoke',
2282-
unknownDevice: 'Unknown Device',
2283-
},
22842278
twoFactorAuth: {
22852279
headerTitle: 'Two-factor authentication',
22862280
twoFactorAuthEnabled: 'Two-factor authentication enabled',

src/languages/es.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,12 +2109,6 @@ const translations: TranslationDeepObject<typeof en> = {
21092109
chatToConciergeToUnlock: 'Chatea con Concierge para resolver los problemas de seguridad y desbloquear tu cuenta.',
21102110
chatWithConcierge: 'Chatear con Concierge',
21112111
},
2112-
deviceManagementPage: {
2113-
title: 'Gestión de dispositivos',
2114-
description: 'Gestiona todos los dispositivos en los que has iniciado sesión con tu cuenta de Expensify.',
2115-
revoke: 'Revocar',
2116-
unknownDevice: 'Dispositivo Desconocido',
2117-
},
21182112
twoFactorAuth: {
21192113
headerTitle: 'Autenticación de dos factores',
21202114
twoFactorAuthEnabled: 'Autenticación de dos factores habilitada',

src/languages/fr.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,12 +2210,6 @@ const translations: TranslationDeepObject<typeof en> = {
22102210
chatToConciergeToUnlock: 'Discutez avec Concierge pour résoudre vos problèmes de sécurité et déverrouiller votre compte.',
22112211
chatWithConcierge: 'Discuter avec Concierge',
22122212
},
2213-
deviceManagementPage: {
2214-
title: 'Gestion des appareils',
2215-
description: 'Gérez tous les appareils sur lesquels vous vous êtes connecté avec votre compte Expensify.',
2216-
revoke: 'Révoquer',
2217-
unknownDevice: 'Appareil Inconnu',
2218-
},
22192213
twoFactorAuth: {
22202214
headerTitle: 'Authentification à deux facteurs',
22212215
twoFactorAuthEnabled: 'Authentification à deux facteurs activée',

src/languages/it.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,12 +2203,6 @@ const translations: TranslationDeepObject<typeof en> = {
22032203
chatToConciergeToUnlock: 'Chatta con Concierge per risolvere i problemi di sicurezza e sbloccare il tuo account.',
22042204
chatWithConcierge: 'Chatta con Concierge',
22052205
},
2206-
deviceManagementPage: {
2207-
title: 'Gestione dei dispositivi',
2208-
description: `Gestisci tutti i dispositivi su cui hai effettuato l'accesso con il tuo account Expensify.`,
2209-
revoke: 'Revoca',
2210-
unknownDevice: 'Dispositivo Sconosciuto',
2211-
},
22122206
twoFactorAuth: {
22132207
headerTitle: 'Autenticazione a due fattori',
22142208
twoFactorAuthEnabled: 'Autenticazione a due fattori abilitata',

0 commit comments

Comments
 (0)