Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
cb73c03
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Dec 23, 2025
779270c
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Dec 23, 2025
3c12ed1
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Dec 23, 2025
17edfc2
unify lock account pages
jmusial Dec 23, 2025
7a332c7
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Dec 23, 2025
97b70ba
update lock account to use same component
jmusial Dec 23, 2025
396798d
fix lock account
jmusial Dec 23, 2025
ebfc482
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Jan 7, 2026
343c97e
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Jan 13, 2026
c4a5333
fix some merge issues
jmusial Jan 13, 2026
630acf1
restore AdminDetails to main
jmusial Jan 13, 2026
c28462f
fix merge issues
jmusial Jan 13, 2026
ce446ad
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Jan 14, 2026
24e932f
initial after merge cleanup
jmusial Jan 14, 2026
469e237
cleanup old member page
jmusial Jan 14, 2026
f3788c0
style
jmusial Jan 14, 2026
45650e7
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 3, 2026
9944b71
add account unlock
jmusial Feb 3, 2026
e261b76
fix lint
jmusial Feb 4, 2026
1185a6e
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 10, 2026
4841642
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 12, 2026
a510bfd
rename const
jmusial Feb 12, 2026
947c00b
fix prettier
jmusial Feb 12, 2026
3b91536
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 13, 2026
281fced
update api calls
jmusial Feb 13, 2026
c62086f
fix lint
jmusial Feb 13, 2026
9aa0b81
update translations
jmusial Feb 13, 2026
3afd5ee
add es.ts
jmusial Feb 13, 2026
4b367dd
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 16, 2026
e0b54e7
update translations
jmusial Feb 16, 2026
9021072
re add lock empty return when there is no jsonCode
jmusial Feb 16, 2026
7a5ad27
add selectors
jmusial Feb 16, 2026
ee46c1d
remove unused line
jmusial Feb 16, 2026
174a3f7
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 19, 2026
db85a8d
fix review comments
jmusial Feb 19, 2026
2020eed
Merge main
jmusial Feb 20, 2026
c13f497
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 20, 2026
ea8f5dd
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 23, 2026
e19e47e
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 24, 2026
696a56f
remove canBeMissing
jmusial Feb 24, 2026
25fa312
update bullet list styling
jmusial Feb 24, 2026
f808afa
use CONST for bullet
jmusial Feb 24, 2026
a5f6664
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 25, 2026
9744fb2
fix ts
jmusial Feb 25, 2026
534bff7
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 25, 2026
531e260
fix menu item arrows positioning
jmusial Feb 26, 2026
630bed0
fix arrows & icon
jmusial Feb 26, 2026
be65852
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 26, 2026
a3f1577
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Feb 26, 2026
b011ba2
Merge branch 'main' into feat/domain-report-sus-activity
jmusial Mar 2, 2026
06636c4
add bullet list to html renderer when link is present
jmusial Mar 2, 2026
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: 2 additions & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9025,6 +9025,8 @@ const CONST = {
DOMAIN_SECURITY_GROUP_PREFIX: 'domain_securityGroup_',
/** Onyx prefix for vacation delegate */
PRIVATE_VACATION_DELEGATE_PREFIX: 'private_vacationDelegate_',
/** Onyx prefix for lock account IDs */
PRIVATE_LOCKED_ACCOUNT_PREFIX: 'private_lockAccountDetails_',

MEMBERS: {
SECONDARY_ACTIONS: {
Expand Down
4 changes: 4 additions & 0 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3984,6 +3984,10 @@ const ROUTES = {
route: 'multifactor-authentication/authorize-transaction/:transactionID',
getRoute: (transactionID: string) => `multifactor-authentication/authorize-transaction/${transactionID}` as const,
},
DOMAIN_LOCK_ACCOUNT: {
route: 'domain/:domainAccountID/members/:accountID/lock-account',
getRoute: (domainAccountID: number, accountID: number) => `domain/${domainAccountID}/members/${accountID}/lock-account` as const,
},
} as const;

/**
Expand Down
1 change: 1 addition & 0 deletions src/SCREENS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ const SCREENS = {
GROUPS: 'Domain_Groups',
MEMBER_RESET_TWO_FACTOR_AUTH: 'Member_Reset_Two_Factor_Auth',
MEMBER_FORCE_TWO_FACTOR_AUTH: 'Member_Force_Two_Factor_Auth',
MEMBER_LOCK_ACCOUNT: 'Member_Lock_Account',
},
MULTIFACTOR_AUTHENTICATION: {
MAGIC_CODE: 'Multifactor_Authentication_Magic_Code',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
return isChildOfTaskTitle(tnode as TNode) ? {} : {...styles.blockquote, ...styles.onlyEmojisTextLineHeight};
},
}),
'bullet-list': HTMLElementModel.fromCustomModel({
tagName: 'bullet-list',
contentModel: HTMLContentModel.block,
mixedUAStyles: {marginVertical: 12},
}),
'bullet-item': HTMLElementModel.fromCustomModel({
tagName: 'bullet-item',
contentModel: HTMLContentModel.block,
}),
}),
[
styles.taskTitleMenuItem,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from 'react';
import {View} from 'react-native';
import type {CustomRendererProps, TBlock} from 'react-native-render-html';
import {TNodeChildrenRenderer} from 'react-native-render-html';
import Text from '@components/Text';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
import variables from '@styles/variables';
import CONST from '@src/CONST';

function BulletItemRenderer({tnode}: CustomRendererProps<TBlock>) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While introducing the bullet-list/bullet-item custom HTML elements and BulletItemRenderer, the case of orphaned <br/> tags inside raw <ul> containers was not handled.
So this caused Bullet lists render extra bullet from orphaned
and have suboptimal spacing

Image

const styles = useThemeStyles();
const theme = useTheme();

return (
<View style={styles.flexRow}>
<Text style={{color: theme.text, fontSize: variables.fontSizeNormal, lineHeight: variables.fontSizeNormalHeight, paddingHorizontal: 8}}>{CONST.DOT_SEPARATOR}</Text>
<View style={styles.flex1}>
<TNodeChildrenRenderer tnode={tnode} />
</View>
</View>
);
}

export default BulletItemRenderer;
2 changes: 2 additions & 0 deletions src/components/HTMLEngineProvider/HTMLRenderers/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type {CustomTagRendererRecord} from 'react-native-render-html';
import AccountManagerLinkRenderer from './AccountManagerLinkRenderer';
import AnchorRenderer from './AnchorRenderer';
import BulletItemRenderer from './BulletItemRenderer';
import CodeRenderer from './CodeRenderer';
import ConciergeLinkRenderer from './ConciergeLinkRenderer';
import CopyTextRenderer from './CopyTextRenderer';
Expand Down Expand Up @@ -34,6 +35,7 @@ const HTMLEngineProviderComponentList: CustomTagRendererRecord = {
edited: EditedRenderer,
pre: PreRenderer,
/* eslint-disable @typescript-eslint/naming-convention */
'bullet-item': BulletItemRenderer,
'task-title': TaskTitleRenderer,
rbr: RBRRenderer,
'mention-user': MentionUserRenderer,
Expand Down
7 changes: 7 additions & 0 deletions src/components/RenderHTML.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {RenderersProps} from 'react-native-render-html';
import useHasTextAncestor from '@hooks/useHasTextAncestor';
import useWindowDimensions from '@hooks/useWindowDimensions';
import Parser from '@libs/Parser';
import BulletItemRenderer from './HTMLEngineProvider/HTMLRenderers/BulletItemRenderer';

type LinkPressHandler = NonNullable<RenderersProps['a']>['onPress'];

Expand Down Expand Up @@ -49,6 +50,11 @@ function RenderHTML({html: htmlParam, onLinkPress, isSelectable}: RenderHTMLProp
};
}, [onLinkPress]);

const renderers = {
/* eslint-disable @typescript-eslint/naming-convention */
'bullet-item': BulletItemRenderer,
};

const htmlSource = (
<RenderHTMLSource
contentWidth={windowWidth * 0.8}
Expand All @@ -60,6 +66,7 @@ function RenderHTML({html: htmlParam, onLinkPress, isSelectable}: RenderHTMLProp
<RenderHTMLConfigProvider
defaultTextProps={{selectable: isSelectable ?? true, allowFontScaling: false}}
renderersProps={renderersProps}
renderers={renderers}
>
{htmlSource}
</RenderHTMLConfigProvider>
Expand Down
2 changes: 0 additions & 2 deletions src/components/VacationDelegateMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ function VacationDelegateMenuItem({vacationDelegate, errors, pendingAction, onCl
numberOfLinesDescription={1}
shouldShowRightIcon
onPress={onPress}
containerStyle={styles.pr2}
/>
</OfflineWithFeedback>
</>
Expand All @@ -71,7 +70,6 @@ function VacationDelegateMenuItem({vacationDelegate, errors, pendingAction, onCl
description={translate('common.vacationDelegate')}
shouldShowRightIcon
onPress={onPress}
containerStyle={styles.pr2}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes regression

Image

staging:

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the discussion on this PR I'd say the custom mr on Clear after should be adjusted instead ? cc. @Expensify/design

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Expensify/design What do you think?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The staging screenshot looks more correct to me - but maybe I've missed a discussion somewhere? Let's see what the rest of @Expensify/design thinks.

/>
);
}
Expand Down
12 changes: 9 additions & 3 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,8 @@ const translations: TranslationDeepObject<typeof en> = {
domainAdminsDescription: 'Für Domain-Admins: Dadurch werden auch alle Aktivitäten der Expensify Karte und alle Administratoraktionen in Ihrer/Ihren Domain(s) pausiert.',
areYouSure: 'Möchtest du dein Expensify-Konto wirklich sperren?',
onceLocked: 'Sobald Ihr Konto gesperrt ist, wird es eingeschränkt, bis eine Entsperrungsanfrage gestellt und eine Sicherheitsprüfung durchgeführt wurde',
unlockTitle: 'Wir haben Ihre Anfrage erhalten',
unlockDescription: 'Wir überprüfen das Konto, um sicherzustellen, dass es sicher entsperrt werden kann, und melden uns bei Fragen über Concierge.',
},
failedToLockAccountPage: {
failedToLockAccount: 'Konto konnte nicht gesperrt werden',
Expand Down Expand Up @@ -8541,7 +8543,7 @@ Hier ist ein *Testbeleg*, um dir zu zeigen, wie es funktioniert:`,
resetDomain: 'Domain zurücksetzen',
resetDomainExplanation: ({domainName}: {domainName?: string}) => `Bitte gib zur Bestätigung des Zurücksetzens der Domain <strong>${domainName}</strong> ein.`,
enterDomainName: 'Gib hier deinen Domainnamen ein',
resetDomainInfo: `Diese Aktion ist <strong>dauerhaft</strong> und die folgenden Daten werden gelöscht: <br/> <ul><li>Firmenkartenzugänge und alle nicht eingereichten Ausgaben dieser Karten</li> <li>SAML- und Gruppeneinstellungen</li> </ul> Alle Konten, Workspaces, Berichte, Ausgaben und andere Daten bleiben erhalten. <br/><br/>Hinweis: Sie können diese Domain aus Ihrer Domainliste entfernen, indem Sie die zugehörige E-Mail aus Ihren <a href="#">Kontaktmethoden</a> entfernen.`,
resetDomainInfo: `Diese Aktion ist <strong>dauerhaft</strong> und die folgenden Daten werden gelöscht: <br/> <bullet-list><bullet-item>Firmenkartenzugänge und alle nicht eingereichten Ausgaben dieser Karten</bullet-item><bullet-item>SAML- und Gruppeneinstellungen</bullet-item></bullet-list> Alle Konten, Workspaces, Berichte, Ausgaben und andere Daten bleiben erhalten. <br/><br/>Hinweis: Sie können diese Domain aus Ihrer Domainliste entfernen, indem Sie die zugehörige E-Mail aus Ihren <a href="#">Kontaktmethoden</a> entfernen.`,
},
domainMembers: 'Domänenmitglieder',
members: {
Expand All @@ -8560,14 +8562,18 @@ Hier ist ein *Testbeleg*, um dir zu zeigen, wie es funktioniert:`,
other: 'Konten sicher schließen',
}),
closeAccountInfo: () => ({
one: 'Wir empfehlen, das Konto sicher zu schließen, um das Schließen zu überspringen, falls Folgendes vorliegt: <ul><li>Ausstehende Genehmigungen</li><li>Aktive Erstattungen</li><li>Keine alternativen Anmeldemethoden</li></ul>Andernfalls können Sie die oben genannten Sicherheitsvorkehrungen ignorieren und das ausgewählte Konto zwangsweise schließen.',
other: 'Wir empfehlen, die Konten sicher zu schließen, um das Schließen zu überspringen, falls Folgendes vorliegt: <ul><li>Ausstehende Genehmigungen</li><li>Aktive Erstattungen</li><li>Keine alternativen Anmeldemethoden</li></ul>Andernfalls können Sie die oben genannten Sicherheitsvorkehrungen ignorieren und die ausgewählten Konten zwangsweise schließen.',
one: 'Wir empfehlen, das Konto sicher zu schließen, um das Schließen zu überspringen, falls Folgendes vorliegt: <bullet-list><bullet-item>Ausstehende Genehmigungen</bullet-item><bullet-item>Aktive Erstattungen</bullet-item><bullet-item>Keine alternativen Anmeldemethoden</bullet-item></bullet-list>Andernfalls können Sie die oben genannten Sicherheitsvorkehrungen ignorieren und das ausgewählte Konto zwangsweise schließen.',
other: 'Wir empfehlen, die Konten sicher zu schließen, um das Schließen zu überspringen, falls Folgendes vorliegt: <bullet-list><bullet-item>Ausstehende Genehmigungen</bullet-item><bullet-item>Aktive Erstattungen</bullet-item><bullet-item>Keine alternativen Anmeldemethoden</bullet-item></bullet-list>Andernfalls können Sie die oben genannten Sicherheitsvorkehrungen ignorieren und die ausgewählten Konten zwangsweise schließen.',
}),
error: {
removeMember: 'Dieser Benutzer kann nicht entfernt werden. Bitte versuche es erneut.',
addMember: 'Dieses Mitglied kann nicht hinzugefügt werden. Bitte versuche es erneut.',
vacationDelegate: 'Dieser Benutzer kann nicht als Urlaubsvertretung festgelegt werden. Bitte versuche es erneut.',
},

reportSuspiciousActivityPrompt: (email: string) =>
`Bist du sicher? Dadurch wird das Konto von <strong>${email}</strong> gesperrt. <br /><br /> Unser Team wird das Konto anschließend überprüfen und unbefugten Zugriff entfernen. Um den Zugriff wiederherzustellen, muss die Person mit Concierge zusammenarbeiten.`,
reportSuspiciousActivityConfirmationPrompt: 'Wir überprüfen das Konto, um sicherzustellen, dass es sicher entsperrt werden kann, und melden uns bei Fragen über Concierge.',
cannotSetVacationDelegateForMember: (email: string) => `Du kannst keine Urlaubsvertretung für ${email} festlegen, weil sie derzeit die Vertretung für folgende Mitglieder sind:`,
},
common: {
Expand Down
12 changes: 9 additions & 3 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,8 @@ const translations = {
reportSuspiciousActivity: 'Report suspicious activity',
lockAccount: 'Lock account',
unlockAccount: 'Unlock account',
unlockTitle: 'We’ve received your request',
unlockDescription: 'We’ll review the account to verify it’s safe to unlock and reach out via Concierge with any questions.',
compromisedDescription:
'Notice something off with your account? Reporting it will immediately lock your account, block new Expensify Card transactions, and prevent any account changes.',
domainAdminsDescription: 'For domain admins: This also pauses all Expensify Card activity and admin actions across your domain(s).',
Expand Down Expand Up @@ -8494,7 +8496,7 @@ const translations = {
resetDomain: 'Reset domain',
resetDomainExplanation: ({domainName}: {domainName?: string}) => `Please type <strong>${domainName}</strong> to confirm the domain reset.`,
enterDomainName: 'Enter your domain name here',
resetDomainInfo: `This action is <strong>permanent</strong> and the following data will be deleted: <br/> <ul><li>Company card connections and any unreported expenses from those cards</li> <li>SAML and group settings</li> </ul> All accounts, workspaces, reports, expenses, and other data will remain. <br/><br/>Note: You can clear this domain from your domains list by removing the associated email from your <a href="#">contact methods</a>.`,
resetDomainInfo: `This action is <strong>permanent</strong> and the following data will be deleted: <br/> <bullet-list><bullet-item>Company card connections and any unreported expenses from those cards</bullet-item><bullet-item>SAML and group settings</bullet-item></bullet-list> All accounts, workspaces, reports, expenses, and other data will remain. <br/><br/>Note: You can clear this domain from your domains list by removing the associated email from your <a href="#">contact methods</a>.`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems not working as expected. No longer list type:

Image

staging:

Image

@jmusial jmusial Mar 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why it worked for closeAccountInfo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, when you pass a link to the RenderHTML it is using a different RenderHTMLConfigProvider. It does not have custom rendereres passed to it.

Before it was ok, bc the bullet list was using plain html

},
domainMembers: 'Domain members',
members: {
Expand All @@ -8509,8 +8511,8 @@ const translations = {
other: 'Close accounts safely',
}),
closeAccountInfo: () => ({
one: 'We recommend closing the account safely to skip closing it in case there are: <ul><li>Pending approvals</li><li>Active reimbursements</li><li>No alternative login methods</li></ul>Otherwise, you can ignore the safety precautions above and force close the selected account.',
other: 'We recommend closing the accounts safely to skip closing it in case there are: <ul><li>Pending approvals</li><li>Active reimbursements</li><li>No alternative login methods</li></ul>Otherwise, you can ignore the safety precautions above and force close the selected accounts.',
one: 'We recommend closing the account safely to skip closing it in case there are: <bullet-list><bullet-item>Pending approvals</bullet-item><bullet-item>Active reimbursements</bullet-item><bullet-item>No alternative login methods</bullet-item></bullet-list>Otherwise, you can ignore the safety precautions above and force close the selected account.',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw was this change requested? Please share discussion link for context.

Before:

Image

After:

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other: 'We recommend closing the accounts safely to skip closing it in case there are: <bullet-list><bullet-item>Pending approvals</bullet-item><bullet-item>Active reimbursements</bullet-item><bullet-item>No alternative login methods</bullet-item></bullet-list>Otherwise, you can ignore the safety precautions above and force close the selected accounts.',
}),
closeAccount: () => ({
one: 'Close account',
Expand All @@ -8522,6 +8524,10 @@ const translations = {
vacationDelegate: 'Unable to set this user as a vacation delegate. Please try again.',
},
cannotSetVacationDelegateForMember: (email: string) => `You can't set a vacation delegate for ${email} because they're currently the delegate for the following members:`,

reportSuspiciousActivityPrompt: (email: string) =>
`Are you sure? This will lock <strong>${email}'s</strong> account. <br /><br /> Our team will then review the account and remove any unauthorized access. To regain access, they'll need to work with Concierge.`,
reportSuspiciousActivityConfirmationPrompt: 'We’ll review the account to verify it’s safe to unlock and reach out via Concierge with any questions.',
},
common: {
settings: 'Settings',
Expand Down
Loading
Loading