Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -111,8 +111,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1009041602
versionName "9.4.16-2"
versionCode 1009041603
versionName "9.4.16-3"
// 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
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>9.4.16.2</string>
<string>9.4.16.3</string>
<key>FullStory</key>
<dict>
<key>OrgId</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NotificationServiceExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleShortVersionString</key>
<string>9.4.16</string>
<key>CFBundleVersion</key>
<string>9.4.16.2</string>
<string>9.4.16.3</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/ShareViewController/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleShortVersionString</key>
<string>9.4.16</string>
<key>CFBundleVersion</key>
<string>9.4.16.2</string>
<string>9.4.16.3</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</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.4.16-2",
"version": "9.4.16-3",
Comment thread
JS00001 marked this conversation as resolved.
Resolved
"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
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import SpendRuleRestrictionTypeToggle from '@components/SpendRules/SpendRuleRest
import TabSelectorBase from '@components/TabSelector/TabSelectorBase';
import Text from '@components/Text';
import useDefaultFundID from '@hooks/useDefaultFundID';
import useEnvironment from '@hooks/useEnvironment';
import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
import useOnyx from '@hooks/useOnyx';
Expand Down Expand Up @@ -45,6 +46,7 @@ type SetSpendRulesStepProps = {
function SetSpendRulesStep({policyID, stepNames, startStepIndex}: SetSpendRulesStepProps) {
const styles = useThemeStyles();
const {translate} = useLocalize();
const {isDevelopment} = useEnvironment();
const personalDetails = usePersonalDetails();
const domainAccountID = useDefaultFundID(policyID);
const icons = useMemoizedLazyExpensifyIcons(['Copy', 'Pencil']);
Expand Down Expand Up @@ -304,17 +306,19 @@ function SetSpendRulesStep({policyID, stepNames, startStepIndex}: SetSpendRulesS
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.WORKSPACE_EXPENSIFY_CARD_ISSUE_NEW_SPEND_RULE_MAX_AMOUNT.path));
}}
/>
<MenuItemWithTopDescription
description={translate('workspace.rules.spendRules.permittedCurrencies')}
onPress={() => {
setSpendRuleErrorMessage('');
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.WORKSPACE_EXPENSIFY_CARD_ISSUE_NEW_SPEND_RULE_CURRENCY.path));
}}
shouldShowRightIcon
title={currenciesTitle}
titleStyle={styles.flex1}
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.RULES.CURRENCY_SELECTOR}
/>
{isDevelopment && (
<MenuItemWithTopDescription
description={translate('workspace.rules.spendRules.permittedCurrencies')}
onPress={() => {
setSpendRuleErrorMessage('');
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.WORKSPACE_EXPENSIFY_CARD_ISSUE_NEW_SPEND_RULE_CURRENCY.path));
}}
shouldShowRightIcon
title={currenciesTitle}
titleStyle={styles.flex1}
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.RULES.CURRENCY_SELECTOR}
/>
)}

<View style={[styles.ph5, styles.pv3]}>
<SpendRuleRestrictionTypeToggle
Expand Down
23 changes: 14 additions & 9 deletions src/pages/workspace/rules/SpendRules/SpendRulePageBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import useCanWriteCardSpendRules from '@hooks/useCanWriteCardSpendRules';
import useConfirmModal from '@hooks/useConfirmModal';
import {useCurrencyListActions} from '@hooks/useCurrencyList';
import useDefaultFundID from '@hooks/useDefaultFundID';
import useEnvironment from '@hooks/useEnvironment';
import useLocalize from '@hooks/useLocalize';
import useOnyx from '@hooks/useOnyx';
import usePolicy from '@hooks/usePolicy';
Expand Down Expand Up @@ -61,6 +62,8 @@ function SpendRulePageBase({policyID, ruleID, titleKey, testID}: SpendRulePageBa
const {translate} = useLocalize();
const {showConfirmModal} = useConfirmModal();
const policy = usePolicy(policyID);
const {isDevelopment} = useEnvironment();

const {showReadOnlyModal} = usePolicyFeatureWriteAccess(policy, CONST.POLICY.POLICY_FEATURE.RULES);
const canWriteSpendRules = useCanWriteCardSpendRules(policyID);
const domainAccountID = useDefaultFundID(policyID);
Expand Down Expand Up @@ -344,15 +347,17 @@ function SpendRulePageBase({policyID, ruleID, titleKey, testID}: SpendRulePageBa
onPress={chooseCards}
/>
<Text style={[styles.textStrong, styles.ph5, styles.mt5, styles.pv2]}>{translate('workspace.rules.spendRules.spendRuleSectionTitle')}</Text>
<MenuItemWithTopDescription
titleStyle={styles.flex1}
title={currenciesMenuTitle}
description={translate('workspace.rules.spendRules.permittedCurrencies')}
interactive={canWriteSpendRules}
shouldShowRightIcon={canWriteSpendRules}
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.RULES.CURRENCY_SELECTOR}
onPress={chooseCurrencies}
/>
{isDevelopment && (
<MenuItemWithTopDescription
titleStyle={styles.flex1}
title={currenciesMenuTitle}
description={translate('workspace.rules.spendRules.permittedCurrencies')}
interactive={canWriteSpendRules}
shouldShowRightIcon={canWriteSpendRules}
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.RULES.CURRENCY_SELECTOR}
onPress={chooseCurrencies}
/>
)}
<MenuItemWithTopDescription
titleStyle={styles.flex1}
title={maxAmountMenuTitle}
Expand Down