Skip to content

Commit

Permalink
Merge branch 'main' into e2e/money-request-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Jan 7, 2025
2 parents 6c69904 + 96280b8 commit 7bc9f08
Show file tree
Hide file tree
Showing 84 changed files with 1,165 additions and 662 deletions.
2 changes: 1 addition & 1 deletion Mobile-Expensify
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1009008006
versionName "9.0.80-6"
versionCode 1009008101
versionName "9.0.81-1"
// Supported language variants must be declared here to avoid from being removed during the compilation.
// This also helps us to not include unnecessary language variants in the APK.
resConfigs "en", "es"
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>9.0.80</string>
<string>9.0.81</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -40,7 +40,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>9.0.80.6</string>
<string>9.0.81.1</string>
<key>FullStory</key>
<dict>
<key>OrgId</key>
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>9.0.80</string>
<string>9.0.81</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>9.0.80.6</string>
<string>9.0.81.1</string>
</dict>
</plist>
4 changes: 2 additions & 2 deletions ios/NotificationServiceExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundleShortVersionString</key>
<string>9.0.80</string>
<string>9.0.81</string>
<key>CFBundleVersion</key>
<string>9.0.80.6</string>
<string>9.0.81.1</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "9.0.80-6",
"version": "9.0.81-1",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
151 changes: 57 additions & 94 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,6 @@ const onboardingEmployerOrSubmitMessage: OnboardingMessage = {
'\n' +
'Then, send your request and wait for that sweet “Cha-ching!” when it’s complete.',
},
{
type: 'addBankAccount',
autoCompleted: false,
title: 'Add personal bank account',
description:
'You’ll need to add your personal bank account to get paid back. Don’t worry, it’s easy!\n' +
'\n' +
'Here’s how to set up your bank account:\n' +
'\n' +
'1. Click the settings tab.\n' +
'2. Click *Wallet* > *Bank accounts* > *+ Add bank account*.\n' +
'3. Connect your bank account.\n' +
'\n' +
'Once that’s done, you can request money from anyone and get paid back right into your personal bank account.',
},
],
};

Expand All @@ -164,21 +149,6 @@ const combinedTrackSubmitOnboardingEmployerOrSubmitMessage: OnboardingMessage =
'\n' +
'And you’re done! Now wait for that sweet “Cha-ching!” when it’s complete.',
},
{
type: 'addBankAccount',
autoCompleted: false,
title: 'Add personal bank account',
description:
'You’ll need to add your personal bank account to get paid back. Don’t worry, it’s easy!\n' +
'\n' +
'Here’s how to set up your bank account:\n' +
'\n' +
'1. Click the settings tab.\n' +
'2. Click *Wallet* > *Bank accounts* > *+ Add bank account*.\n' +
'3. Connect your bank account.\n' +
'\n' +
'Once that’s done, you can request money from anyone and get paid back right into your personal bank account.',
},
],
};

Expand Down Expand Up @@ -2038,76 +2008,82 @@ const CONST = {
* Should mirror the list on the OldDot.
*/
NETSUITE_TAX_COUNTRIES: [
'_canada',
'_unitedKingdomGB',
'_unitedKingdom',
'_argentina',
'_australia',
'_southAfrica',
'_india',
'_france',
'_netherlands',
'_germany',
'_singapore',
'_spain',
'_ireland',
'_denmark',
'_austria',
'_azerbaijan',
'_belgium',
'_brazil',
'_japan',
'_philippines',
'_bulgaria',
'_canada',
'_china',
'_argentina',
'_newZealand',
'_switzerland',
'_sweden',
'_portugal',
'_mexico',
'_israel',
'_thailand',
'_costaRica',
'_croatia',
'_croatiaHrvatska',
'_cyprus',
'_czechRepublic',
'_denmark',
'_egypt',
'_estonia',
'_finland',
'_france',
'_georgia',
'_germany',
'_ghana',
'_greece',
'_hongKong',
'_hungary',
'_india',
'_indonesia',
'_iranIslamicRepublicOf',
'_ireland',
'_israel',
'_italy',
'_japan',
'_jordan',
'_kenya',
'_koreaRepublicOf',
'_koreaTheRepublicOf',
'_kuwait',
'_latvia',
'_lebanon',
'_lithuania',
'_luxembourg',
'_malaysia',
'_malta',
'_mexico',
'_morocco',
'_myanmar',
'_netherlands',
'_newZealand',
'_nigeria',
'_norway',
'_pakistan',
'_philippines',
'_poland',
'_portugal',
'_romania',
'_saudiArabia',
'_serbia',
'_singapore',
'_slovakRepublic',
'_slovakia',
'_slovenia',
'_southAfrica',
'_spain',
'_sriLanka',
'_sweden',
'_switzerland',
'_taiwan',
'_thailand',
'_turkey',
'_turkiye',
'_ukraine',
'_unitedArabEmirates',
'_unitedKingdom',
'_unitedKingdomGB',
'_vietnam',
'_austria',
'_bulgaria',
'_greece',
'_cyprus',
'_norway',
'_romania',
'_poland',
'_hongKong',
'_luxembourg',
'_lithuania',
'_malta',
'_finland',
'_koreaRepublicOf',
'_italy',
'_georgia',
'_hungary',
'_latvia',
'_estonia',
'_slovenia',
'_serbia',
'_croatiaHrvatska',
'_belgium',
'_turkey',
'_taiwan',
'_azerbaijan',
'_slovakRepublic',
'_costaRica',
'_vietNam',
] as string[],

QUICKBOOKS_EXPORT_DATE: {
Expand Down Expand Up @@ -3252,6 +3228,7 @@ const CONST = {
CANCEL_PAYMENT: 'cancelPayment',
UNAPPROVE: 'unapprove',
DEBUG: 'debug',
GO_TO_WORKSPACE: 'goToWorkspace',
},
EDIT_REQUEST_FIELD: {
AMOUNT: 'amount',
Expand Down Expand Up @@ -5189,21 +5166,6 @@ const CONST = {
'\n' +
'Feel free to add more details if you want, or just send it off. Let’s get you paid back!',
},
{
type: 'addBankAccount',
autoCompleted: false,
title: 'Add personal bank account',
description:
'You’ll need to add your personal bank account to get paid back. Don’t worry, it’s easy!\n' +
'\n' +
'Here’s how to set up your bank account:\n' +
'\n' +
'1. Click the settings tab.\n' +
'2. Click *Wallet* > *Bank accounts* > *+ Add bank account*.\n' +
'3. Connect your bank account.\n' +
'\n' +
'Once that’s done, you can request money from anyone and get paid back right into your personal bank account.',
},
],
},
[onboardingChoices.ADMIN]: {
Expand Down Expand Up @@ -6496,6 +6458,7 @@ const CONST = {

MIGRATED_USER_WELCOME_MODAL: 'migratedUserWelcomeModal',

BASE_LIST_ITEM_TEST_ID: 'base-list-item-',
PRODUCT_TRAINING_TOOLTIP_NAMES: {
CONCEIRGE_LHN_GBR: 'conciergeLHNGBR',
RENAME_SAVED_SEARCH: 'renameSavedSearch',
Expand Down
11 changes: 6 additions & 5 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ const ROUTES = {
},
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORT: {
route: 'settings/workspaces/:policyID/accounting/quickbooks-online/export',
getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/export` as const,
getRoute: (policyID: string, backTo?: string) => getUrlWithBackToParam(`settings/workspaces/${policyID}/accounting/quickbooks-online/export` as const, backTo),
},
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT: {
route: 'settings/workspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account',
Expand Down Expand Up @@ -1245,7 +1245,8 @@ const ROUTES = {
},
WORKSPACE_COMPANY_CARD_EXPORT: {
route: 'settings/workspaces/:policyID/company-cards/:bank/:cardID/edit/export',
getRoute: (policyID: string, cardID: string, bank: string) => `settings/workspaces/${policyID}/company-cards/${bank}/${cardID}/edit/export` as const,
getRoute: (policyID: string, cardID: string, bank: string, backTo?: string) =>
getUrlWithBackToParam(`settings/workspaces/${policyID}/company-cards/${bank}/${cardID}/edit/export`, backTo),
},
WORKSPACE_EXPENSIFY_CARD: {
route: 'settings/workspaces/:policyID/expensify-card',
Expand Down Expand Up @@ -1537,7 +1538,7 @@ const ROUTES = {
},
POLICY_ACCOUNTING_XERO_EXPORT: {
route: 'settings/workspaces/:policyID/accounting/xero/export',
getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/xero/export` as const,
getRoute: (policyID: string, backTo?: string) => getUrlWithBackToParam(`settings/workspaces/${policyID}/accounting/xero/export` as const, backTo),
},
POLICY_ACCOUNTING_XERO_PREFERRED_EXPORTER_SELECT: {
route: 'settings/workspaces/:policyID/connections/xero/export/preferred-exporter/select',
Expand Down Expand Up @@ -1662,7 +1663,7 @@ const ROUTES = {
},
POLICY_ACCOUNTING_NETSUITE_EXPORT: {
route: 'settings/workspaces/:policyID/connections/netsuite/export/',
getRoute: (policyID: string) => `settings/workspaces/${policyID}/connections/netsuite/export/` as const,
getRoute: (policyID: string, backTo?: string) => getUrlWithBackToParam(`settings/workspaces/${policyID}/connections/netsuite/export/` as const, backTo),
},
POLICY_ACCOUNTING_NETSUITE_PREFERRED_EXPORTER_SELECT: {
route: 'settings/workspaces/:policyID/connections/netsuite/export/preferred-exporter/select',
Expand Down Expand Up @@ -1800,7 +1801,7 @@ const ROUTES = {
},
POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT: {
route: 'settings/workspaces/:policyID/accounting/sage-intacct/export',
getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/sage-intacct/export` as const,
getRoute: (policyID: string, backTo?: string) => getUrlWithBackToParam(`settings/workspaces/${policyID}/accounting/sage-intacct/export`, backTo),
},
POLICY_ACCOUNTING_SAGE_INTACCT_PREFERRED_EXPORTER: {
route: 'settings/workspaces/:policyID/accounting/sage-intacct/export/preferred-exporter',
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConnectionLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type ConnectionLayoutProps = {
title?: TranslationPaths;

/** The current policyID */
policyID: string;
policyID?: string;

/** Defines which types of access should be verified */
accessVariants?: AccessVariant[];
Expand Down
9 changes: 6 additions & 3 deletions src/components/FloatingActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {useOnyx} from 'react-native-onyx';
import Animated, {createAnimatedPropAdapter, Easing, interpolateColor, processColor, useAnimatedProps, useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated';
import Svg, {Path} from 'react-native-svg';
import useBottomTabIsFocused from '@hooks/useBottomTabIsFocused';
import useIsCurrentRouteHome from '@hooks/useIsCurrentRouteHome';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
Expand Down Expand Up @@ -69,9 +70,11 @@ function FloatingActionButton({onPress, isActive, accessibilityLabel, role}: Flo
const isNarrowScreenOnWeb = shouldUseNarrowLayout && platform === CONST.PLATFORM.WEB;
const isFocused = useBottomTabIsFocused();
const [isSidebarLoaded] = useOnyx(ONYXKEYS.IS_SIDEBAR_LOADED, {initialValue: false});
const isActiveRouteHome = useIsCurrentRouteHome();
const {renderProductTrainingTooltip, shouldShowProductTrainingTooltip, hideProductTrainingTooltip} = useProductTrainingContext(
CONST.PRODUCT_TRAINING_TOOLTIP_NAMES.GLOBAL_CREATE_TOOLTIP,
isFocused && isSidebarLoaded,
// On Home screen, We need to wait for the sidebar to load before showing the tooltip because there is the Concierge tooltip which is higher priority
isFocused && (!isActiveRouteHome || isSidebarLoaded),
);
const sharedValue = useSharedValue(isActive ? 1 : 0);
const buttonRef = ref;
Expand Down Expand Up @@ -108,6 +111,7 @@ function FloatingActionButton({onPress, isActive, accessibilityLabel, role}: Flo
);

const toggleFabAction = (event: GestureResponderEvent | KeyboardEvent | undefined) => {
hideProductTrainingTooltip();
// Drop focus to avoid blue focus ring.
fabPressable.current?.blur();
onPress(event);
Expand All @@ -120,11 +124,10 @@ function FloatingActionButton({onPress, isActive, accessibilityLabel, role}: Flo
horizontal: isNarrowScreenOnWeb ? CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.CENTER : CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM,
}}
shouldUseOverlay
shiftHorizontal={isNarrowScreenOnWeb ? 0 : variables.fabTooltipShiftHorizontal}
renderTooltipContent={renderProductTrainingTooltip}
wrapperStyle={styles.productTrainingTooltipWrapper}
onHideTooltip={hideProductTrainingTooltip}
shouldHideOnNavigate={false}
testID="floating-action-button"

Check failure on line 131 in src/components/FloatingActionButton.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Type '{ children: Element; shouldRender: boolean; anchorAlignment: { horizontal: "center" | "right"; vertical: "bottom"; }; shiftHorizontal: number; renderTooltipContent: () => Element; wrapperStyle: { ...; }; shouldHideOnNavigate: false; testID: string; }' is not assignable to type 'IntrinsicAttributes & TooltipExtendedProps'.
>
<PressableWithoutFeedback
Expand Down
Loading

0 comments on commit 7bc9f08

Please sign in to comment.