Skip to content

Commit

Permalink
handle comments
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Jul 17, 2024
1 parent b10e6f8 commit 03863a6
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 55 deletions.
84 changes: 43 additions & 41 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5313,47 +5313,49 @@ const CONST = {
ILLUSTRATION: 'illustration',
VIDEO: 'video',
},
UPGRADE_FEATURE_INTRO_MAPPING: {
reportFields: {
id: 'reportFields',
alias: 'report-fields',
name: 'Report Fields',
title: 'workspace.upgrade.reportFields.title',
description: 'workspace.upgrade.reportFields.description',
icon: 'Pencil',
},
netSuite: {
id: 'netSuite',
alias: 'netsuite',
name: 'NetSuite',
title: 'workspace.upgrade.netSuite.title',
description: 'workspace.upgrade.netSuite.description',
icon: 'NetSuiteSquare',
},
sageIntacct: {
id: 'sageIntacct',
alias: 'sage-intacct',
name: 'Sage Intacct',
title: 'workspace.upgrade.sageIntacct.title',
description: 'workspace.upgrade.sageIntacct.description',
icon: 'IntacctSquare',
},
glCodes: {
id: 'glCodes',
alias: 'gl-codes',
name: 'GL codes',
title: 'workspace.upgrade.glCodes.title',
description: 'workspace.upgrade.glCodes.description',
icon: 'Tag',
},
glAndPayrollCodes: {
id: 'glAndPayrollCodes',
alias: 'gl-and-payroll-codes',
name: 'GL & Payroll codes',
title: 'workspace.upgrade.glAndPayrollCodes.title',
description: 'workspace.upgrade.glAndPayrollCodes.description',
icon: 'FolderOpen',
},
get UPGRADE_FEATURE_INTRO_MAPPING() {
return {
reportFields: {
id: 'reportFields' as const,
alias: 'report-fields',
name: 'Report Fields',
title: 'workspace.upgrade.reportFields.title' as const,
description: 'workspace.upgrade.reportFields.description' as const,
icon: 'Pencil',
},
[this.POLICY.CONNECTIONS.NAME.NETSUITE]: {
id: this.POLICY.CONNECTIONS.NAME.NETSUITE,
alias: 'netsuite',
name: this.POLICY.CONNECTIONS.NAME_USER_FRIENDLY.netsuite,
title: `workspace.upgrade.${this.POLICY.CONNECTIONS.NAME.NETSUITE}.title` as const,
description: `workspace.upgrade.${this.POLICY.CONNECTIONS.NAME.NETSUITE}.description` as const,
icon: 'NetSuiteSquare',
},
[this.POLICY.CONNECTIONS.NAME.SAGE_INTACCT]: {
id: this.POLICY.CONNECTIONS.NAME.SAGE_INTACCT,
alias: 'sage-intacct',
name: this.POLICY.CONNECTIONS.NAME_USER_FRIENDLY.intacct,
title: `workspace.upgrade.${this.POLICY.CONNECTIONS.NAME.SAGE_INTACCT}.title` as const,
description: `workspace.upgrade.${this.POLICY.CONNECTIONS.NAME.SAGE_INTACCT}.description` as const,
icon: 'IntacctSquare',
},
glCodes: {
id: 'glCodes' as const,
alias: 'gl-codes',
name: 'GL codes',
title: 'workspace.upgrade.glCodes.title' as const,
description: 'workspace.upgrade.glCodes.description' as const,
icon: 'Tag',
},
glAndPayrollCodes: {
id: 'glAndPayrollCodes' as const,
alias: 'gl-and-payroll-codes',
name: 'GL & Payroll codes',
title: 'workspace.upgrade.glAndPayrollCodes.title' as const,
description: 'workspace.upgrade.glAndPayrollCodes.description' as const,
icon: 'FolderOpen',
},
};
},
REPORT_FIELD_TYPES: {
TEXT: 'text',
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConnectToNetSuiteButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function ConnectToNetSuiteButton({policyID, shouldDisconnectIntegrationBeforeCon
<Button
onPress={() => {
if (!isControlPolicy(policy)) {
Navigation.navigate(ROUTES.WORKSPACE_UPGRADE.getRoute(policyID, CONST.UPGRADE_FEATURE_INTRO_MAPPING.netSuite.alias));
Navigation.navigate(ROUTES.WORKSPACE_UPGRADE.getRoute(policyID, CONST.UPGRADE_FEATURE_INTRO_MAPPING.netsuite.alias));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/ConnectToSageIntacctButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function ConnectToSageIntacctButton({policyID, shouldDisconnectIntegrationBefore
<Button
onPress={() => {
if (!isControlPolicy(policy)) {
Navigation.navigate(ROUTES.WORKSPACE_UPGRADE.getRoute(policyID, CONST.UPGRADE_FEATURE_INTRO_MAPPING.sageIntacct.alias));
Navigation.navigate(ROUTES.WORKSPACE_UPGRADE.getRoute(policyID, CONST.UPGRADE_FEATURE_INTRO_MAPPING.intacct.alias));
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3347,12 +3347,12 @@ export default {
description: `Report fields let you specify header-level details, distinct from tags that pertain to expenses on individual line items. These details can encompass specific project names, business trip information, locations, and more.`,
onlyAvailableOnPlan: 'Report fields are only available on the Control plan, starting at ',
},
netSuite: {
[CONST.POLICY.CONNECTIONS.NAME.NETSUITE]: {
title: 'NetSuite',
description: `Enjoy automated syncing and reduce manual entries with the Expensify + NetSuite integration. Gain in-depth, realtime financial insights with native and custom segment support, including project and customer mapping.`,
onlyAvailableOnPlan: 'Our NetSuite integration is only available on the Control plan, starting at ',
},
sageIntacct: {
[CONST.POLICY.CONNECTIONS.NAME.SAGE_INTACCT]: {
title: 'Sage Intacct',
description: `Enjoy automated syncing and reduce manual entries with the Expensify + Sage Intacct integration. Gain in-depth, real-time financial insights with user-defined dimensions, as well as expense coding by department, class, location, customer, and project (job).`,
onlyAvailableOnPlan: 'Our Sage Intacct integration is only available on the Control plan, starting at ',
Expand Down
4 changes: 2 additions & 2 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3401,12 +3401,12 @@ export default {
description: `Los campos de informe permiten especificar detalles a nivel de cabecera, distintos de las etiquetas que pertenecen a los gastos en partidas individuales. Estos detalles pueden incluir nombres de proyectos específicos, información sobre viajes de negocios, ubicaciones, etc.`,
onlyAvailableOnPlan: 'Los campos de informe sólo están disponibles en el plan Control, a partir de ',
},
netSuite: {
[CONST.POLICY.CONNECTIONS.NAME.NETSUITE]: {
title: 'NetSuite',
description: `Disfruta de la sincronización automática y reduce las entradas manuales con la integración Expensify + NetSuite. Obtén información financiera en profundidad y en tiempo real con la compatibilidad nativa y personalizada con segmentos, incluida la asignación de proyectos y clientes.`,
onlyAvailableOnPlan: 'Nuestra integración NetSuite sólo está disponible en el plan Control, a partir de ',
},
sageIntacct: {
[CONST.POLICY.CONNECTIONS.NAME.SAGE_INTACCT]: {
title: 'Sage Intacct',
description: `Disfruta de una sincronización automatizada y reduce las entradas manuales con la integración Expensify + Sage Intacct. Obtén información financiera en profundidad y en tiempo real con dimensiones definidas por el usuario, así como codificación de gastos por departamento, clase, ubicación, cliente y proyecto (trabajo).`,
onlyAvailableOnPlan: 'Nuestra integración Sage Intacct sólo está disponible en el plan Control, a partir de ',
Expand Down
14 changes: 6 additions & 8 deletions src/pages/workspace/upgrade/UpgradeIntro.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import {View} from 'react-native';
import type {ValueOf} from 'type-fest';
import Avatar from '@components/Avatar';
import Badge from '@components/Badge';
import Button from '@components/Button';
import Icon from '@components/Icon';
import * as Expensicon from '@components/Icon/Expensicons';
import * as Illustrations from '@components/Icon/Illustrations';
import Text from '@components/Text';
Expand All @@ -12,8 +12,7 @@ import useLocalize from '@hooks/useLocalize';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import variables from '@styles/variables';
import type CONST from '@src/CONST';
import CONST from '@src/CONST';
import ROUTES from '@src/ROUTES';

type Props = {
Expand All @@ -33,10 +32,9 @@ function UpgradeIntro({feature, onUpgrade, buttonDisabled, loading}: Props) {
<View style={styles.p5}>
<View style={styles.workspaceUpgradeIntroBox({isExtraSmallScreenWidth, isSmallScreenWidth})}>
<View style={[styles.mb3, styles.flexRow, styles.justifyContentBetween]}>
<Icon
src={iconSrc}
width={variables.iconSizeExtraLarge}
height={variables.iconSizeExtraLarge}
<Avatar
type={CONST.ICON_TYPE_AVATAR}
source={iconSrc}
/>
<Badge
icon={Expensicon.Unlock}
Expand All @@ -49,7 +47,7 @@ function UpgradeIntro({feature, onUpgrade, buttonDisabled, loading}: Props) {
<Text style={[styles.textNormal, styles.textSupporting, styles.mb4]}>{translate(feature.description)}</Text>
<Text style={[styles.textNormal, styles.textSupporting]}>
{translate(`workspace.upgrade.${feature.id}.onlyAvailableOnPlan`)}
<Text style={[styles.themeTextColor, styles.textBold]}>{translate(`workspace.upgrade.pricing.amount`)}</Text>
<Text style={[styles.textSupporting, styles.textBold]}>{translate(`workspace.upgrade.pricing.amount`)}</Text>
{translate(`workspace.upgrade.pricing.perActiveMember`)}
</Text>
</View>
Expand Down

0 comments on commit 03863a6

Please sign in to comment.