Skip to content

Commit ba80725

Browse files
authored
Merge pull request Expensify#71677 from Expensify/revert-70766-revert-70053-revert-69438-issue68607
[CP Staging] Revert "Feature: Display Custom Tag Name on Tags Page for Single-Level Tags"
2 parents f75b2b3 + dceab52 commit ba80725

14 files changed

Lines changed: 20 additions & 77 deletions

File tree

src/components/ImportedFromAccountingSoftware.tsx

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import CONST from '@src/CONST';
1010
import ROUTES from '@src/ROUTES';
1111
import type {ConnectionName} from '@src/types/onyx/Policy';
1212
import Icon from './Icon';
13-
import RenderHTML from './RenderHTML';
1413
import Text from './Text';
1514
import TextBlock from './TextBlock';
1615
import TextLinkBlock from './TextLinkBlock';
@@ -27,32 +26,15 @@ type ImportedFromAccountingSoftwareProps = {
2726

2827
/** The translated text for the "imported from" message */
2928
translatedText: string;
30-
31-
/** The custom tag name */
32-
customTagName?: string;
33-
34-
/** Whether we are displaying the tags */
35-
isDisplayingTags?: boolean;
3629
};
3730

38-
function ImportedFromAccountingSoftware({
39-
policyID,
40-
currentConnectionName,
41-
translatedText,
42-
connectedIntegration,
43-
customTagName,
44-
isDisplayingTags = false,
45-
}: ImportedFromAccountingSoftwareProps) {
31+
function ImportedFromAccountingSoftware({policyID, currentConnectionName, translatedText, connectedIntegration}: ImportedFromAccountingSoftwareProps) {
4632
const styles = useThemeStyles();
4733
const StyleUtils = useStyleUtils();
4834
const {translate} = useLocalize();
4935
const {environmentURL} = useEnvironment();
5036
const icon = getIntegrationIcon(connectedIntegration);
5137

52-
if (!customTagName && isDisplayingTags) {
53-
return null;
54-
}
55-
5638
return (
5739
<View style={[styles.alignItemsCenter, styles.flexRow, styles.flexWrap]}>
5840
<TextBlock
@@ -74,12 +56,7 @@ function ImportedFromAccountingSoftware({
7456
) : undefined
7557
}
7658
/>
77-
<Text style={[styles.textNormal, styles.colorMuted]}>. </Text>
78-
{isDisplayingTags && !!customTagName && (
79-
<View style={[styles.renderHTML]}>
80-
<RenderHTML html={translate('workspace.tags.employeesSeeTagsAs', {customTagName})} />
81-
</View>
82-
)}
59+
<Text style={[styles.textNormal, styles.colorMuted]}>.</Text>
8360
</View>
8461
);
8562
}

src/languages/de.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ import type {
103103
EditDestinationSubtitleParams,
104104
ElectronicFundsParams,
105105
EmployeeInviteMessageParams,
106-
EmployeesSeeTagsAsParams,
107106
EmptyCategoriesSubtitleWithAccountingParams,
108107
EmptyTagsSubtitleWithAccountingParams,
109108
EnableContinuousReconciliationParams,
@@ -4882,8 +4881,7 @@ const translations = {
48824881
existingTagError: 'Ein Tag mit diesem Namen existiert bereits',
48834882
invalidTagNameError: 'Der Tag-Name darf nicht 0 sein. Bitte wählen Sie einen anderen Wert.',
48844883
genericFailureMessage: 'Beim Aktualisieren des Tags ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.',
4885-
importedFromAccountingSoftware: 'Tags werden in deiner',
4886-
employeesSeeTagsAs: ({customTagName}: EmployeesSeeTagsAsParams) => ` <muted-text>Mitarbeiter sehen Tags als <strong>${customTagName}</strong>.</muted-text>`,
4884+
importedFromAccountingSoftware: 'Die unten stehenden Tags werden aus Ihrem',
48874885
glCode: 'GL-Code',
48884886
updateGLCodeFailureMessage: 'Beim Aktualisieren des GL-Codes ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.',
48894887
tagRules: 'Tag-Regeln',

src/languages/en.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ import type {
9292
EditDestinationSubtitleParams,
9393
ElectronicFundsParams,
9494
EmployeeInviteMessageParams,
95-
EmployeesSeeTagsAsParams,
9695
EmptyCategoriesSubtitleWithAccountingParams,
9796
EmptyTagsSubtitleWithAccountingParams,
9897
EnableContinuousReconciliationParams,
@@ -4855,8 +4854,7 @@ const translations = {
48554854
existingTagError: 'A tag with this name already exists',
48564855
invalidTagNameError: 'Tag name cannot be 0. Please choose a different value.',
48574856
genericFailureMessage: 'An error occurred while updating the tag, please try again',
4858-
importedFromAccountingSoftware: 'Tags are managed in your',
4859-
employeesSeeTagsAs: ({customTagName}: EmployeesSeeTagsAsParams) => `<muted-text>Employees see tags as <strong>${customTagName}</strong>.</muted-text>`,
4857+
importedFromAccountingSoftware: 'The tags below are imported from your',
48604858
glCode: 'GL code',
48614859
updateGLCodeFailureMessage: 'An error occurred while updating the GL code, please try again',
48624860
tagRules: 'Tag rules',

src/languages/es.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ import type {
9090
EditDestinationSubtitleParams,
9191
ElectronicFundsParams,
9292
EmployeeInviteMessageParams,
93-
EmployeesSeeTagsAsParams,
9493
EmptyCategoriesSubtitleWithAccountingParams,
9594
EmptyTagsSubtitleWithAccountingParams,
9695
EnableContinuousReconciliationParams,
@@ -4863,8 +4862,7 @@ const translations = {
48634862
existingTagError: 'Ya existe una etiqueta con este nombre',
48644863
invalidTagNameError: 'El nombre de la etiqueta no puede ser 0. Por favor, elige un valor diferente.',
48654864
genericFailureMessage: 'Se ha producido un error al actualizar la etiqueta. Por favor, inténtelo nuevamente.',
4866-
importedFromAccountingSoftware: 'Las etiquetas se gestionan en tu',
4867-
employeesSeeTagsAs: ({customTagName}: EmployeesSeeTagsAsParams) => ` <muted-text>Los empleados ven las etiquetas como <strong>${customTagName}</strong>.</muted-text>`,
4865+
importedFromAccountingSoftware: 'Etiquetas importadas desde',
48684866
glCode: 'Código de Libro Mayor',
48694867
updateGLCodeFailureMessage: 'Se produjo un error al actualizar el código de Libro Mayor. Por favor, inténtelo nuevamente.',
48704868
tagRules: 'Reglas de etiquetas',

src/languages/fr.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ import type {
103103
EditDestinationSubtitleParams,
104104
ElectronicFundsParams,
105105
EmployeeInviteMessageParams,
106-
EmployeesSeeTagsAsParams,
107106
EmptyCategoriesSubtitleWithAccountingParams,
108107
EmptyTagsSubtitleWithAccountingParams,
109108
EnableContinuousReconciliationParams,
@@ -4894,8 +4893,7 @@ const translations = {
48944893
existingTagError: 'Un tag avec ce nom existe déjà',
48954894
invalidTagNameError: 'Le nom de la balise ne peut pas être 0. Veuillez choisir une autre valeur.',
48964895
genericFailureMessage: "Une erreur s'est produite lors de la mise à jour du tag, veuillez réessayer.",
4897-
importedFromAccountingSoftware: 'Les étiquettes sont gérées dans votre',
4898-
employeesSeeTagsAs: ({customTagName}: EmployeesSeeTagsAsParams) => ` <muted-text>Les employés voient les étiquettes comme <strong>${customTagName}</strong>.</muted-text>`,
4896+
importedFromAccountingSoftware: 'Les balises ci-dessous sont importées de votre',
48994897
glCode: 'Code GL',
49004898
updateGLCodeFailureMessage: "Une erreur s'est produite lors de la mise à jour du code GL, veuillez réessayer.",
49014899
tagRules: 'Règles de balise',

src/languages/it.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ import type {
103103
EditDestinationSubtitleParams,
104104
ElectronicFundsParams,
105105
EmployeeInviteMessageParams,
106-
EmployeesSeeTagsAsParams,
107106
EmptyCategoriesSubtitleWithAccountingParams,
108107
EmptyTagsSubtitleWithAccountingParams,
109108
EnableContinuousReconciliationParams,
@@ -4896,8 +4895,7 @@ const translations = {
48964895
existingTagError: 'Un tag con questo nome esiste già',
48974896
invalidTagNameError: 'Il nome del tag non può essere 0. Si prega di scegliere un valore diverso.',
48984897
genericFailureMessage: "Si è verificato un errore durante l'aggiornamento del tag, riprova.",
4899-
importedFromAccountingSoftware: 'I tag sono gestiti nel tuo',
4900-
employeesSeeTagsAs: ({customTagName}: EmployeesSeeTagsAsParams) => ` <muted-text>I dipendenti vedono i tag come <strong>${customTagName}</strong>.</muted-text>`,
4898+
importedFromAccountingSoftware: 'I tag qui sotto sono importati dal tuo',
49014899
glCode: 'Codice GL',
49024900
updateGLCodeFailureMessage: "Si è verificato un errore durante l'aggiornamento del codice GL, riprova.",
49034901
tagRules: 'Regole dei tag',

src/languages/ja.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ import type {
103103
EditDestinationSubtitleParams,
104104
ElectronicFundsParams,
105105
EmployeeInviteMessageParams,
106-
EmployeesSeeTagsAsParams,
107106
EmptyCategoriesSubtitleWithAccountingParams,
108107
EmptyTagsSubtitleWithAccountingParams,
109108
EnableContinuousReconciliationParams,
@@ -4856,8 +4855,7 @@ const translations = {
48564855
existingTagError: 'この名前のタグはすでに存在します',
48574856
invalidTagNameError: 'タグ名は0にできません。別の値を選んでください。',
48584857
genericFailureMessage: 'タグの更新中にエラーが発生しました。もう一度お試しください。',
4859-
importedFromAccountingSoftware: 'タグは次で管理されています:',
4860-
employeesSeeTagsAs: ({customTagName}: EmployeesSeeTagsAsParams) => ` <muted-text>従業員にはタグが次のように表示されます: <strong>${customTagName}</strong>.</muted-text>`,
4858+
importedFromAccountingSoftware: '以下のタグはあなたのからインポートされます',
48614859
glCode: 'GLコード',
48624860
updateGLCodeFailureMessage: 'GLコードの更新中にエラーが発生しました。もう一度お試しください。',
48634861
tagRules: 'タグルール',

src/languages/nl.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ import type {
103103
EditDestinationSubtitleParams,
104104
ElectronicFundsParams,
105105
EmployeeInviteMessageParams,
106-
EmployeesSeeTagsAsParams,
107106
EmptyCategoriesSubtitleWithAccountingParams,
108107
EmptyTagsSubtitleWithAccountingParams,
109108
EnableContinuousReconciliationParams,
@@ -4889,8 +4888,7 @@ const translations = {
48894888
existingTagError: 'Er bestaat al een tag met deze naam.',
48904889
invalidTagNameError: 'Tagnaam kan niet 0 zijn. Kies een andere waarde.',
48914890
genericFailureMessage: 'Er is een fout opgetreden bij het bijwerken van de tag, probeer het alstublieft opnieuw.',
4892-
importedFromAccountingSoftware: 'Tags worden beheerd in je',
4893-
employeesSeeTagsAs: ({customTagName}: EmployeesSeeTagsAsParams) => `<muted-text>Werknemers zien tags als <strong>${customTagName}</strong>.</muted-text>`,
4891+
importedFromAccountingSoftware: 'De onderstaande labels zijn geïmporteerd uit uw',
48944892
glCode: 'GL-code',
48954893
updateGLCodeFailureMessage: 'Er is een fout opgetreden bij het bijwerken van de GL-code, probeer het alstublieft opnieuw.',
48964894
tagRules: 'Tagregels',

src/languages/params.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ type AddressLineParams = {
99
lineNumber: number;
1010
};
1111

12-
type EmployeesSeeTagsAsParams = {
13-
customTagName: string;
14-
};
15-
1612
type CharacterLimitParams = {
1713
limit: number | string;
1814
};
@@ -1245,7 +1241,6 @@ export type {
12451241
BusinessRegistrationNumberParams,
12461242
DependentMultiLevelTagsSubtitleParams,
12471243
PayAndDowngradeDescriptionParams,
1248-
EmployeesSeeTagsAsParams,
12491244
DisconnectYourBankAccountParams,
12501245
MergeAccountIntoParams,
12511246
};

src/languages/pl.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ import type {
103103
EditDestinationSubtitleParams,
104104
ElectronicFundsParams,
105105
EmployeeInviteMessageParams,
106-
EmployeesSeeTagsAsParams,
107106
EmptyCategoriesSubtitleWithAccountingParams,
108107
EmptyTagsSubtitleWithAccountingParams,
109108
EnableContinuousReconciliationParams,
@@ -4879,8 +4878,7 @@ const translations = {
48794878
existingTagError: 'Tag o tej nazwie już istnieje',
48804879
invalidTagNameError: 'Nazwa tagu nie może być 0. Proszę wybrać inną wartość.',
48814880
genericFailureMessage: 'Wystąpił błąd podczas aktualizacji tagu, spróbuj ponownie.',
4882-
importedFromAccountingSoftware: 'Tagi są zarządzane w Twoim',
4883-
employeesSeeTagsAs: ({customTagName}: EmployeesSeeTagsAsParams) => `<muted-text>Pracownicy widzą tagi jako <strong>${customTagName}</strong>.</muted-text>`,
4881+
importedFromAccountingSoftware: 'Tagi poniżej są importowane z twojego',
48844882
glCode: 'Kod GL',
48854883
updateGLCodeFailureMessage: 'Wystąpił błąd podczas aktualizacji kodu GL, spróbuj ponownie.',
48864884
tagRules: 'Zasady tagów',

0 commit comments

Comments
 (0)