Repository navigation
[Release 3.3] [Domain Control] Report suspicious activity #78372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cb73c03
779270c
3c12ed1
17edfc2
7a332c7
97b70ba
396798d
ebfc482
343c97e
c4a5333
630acf1
c28462f
ce446ad
24e932f
469e237
f3788c0
45650e7
9944b71
e261b76
1185a6e
4841642
a510bfd
947c00b
3b91536
281fced
c62086f
9aa0b81
3afd5ee
4b367dd
e0b54e7
9021072
7a5ad27
ee46c1d
174a3f7
db85a8d
2020eed
c13f497
ea8f5dd
e19e47e
696a56f
25fa312
f808afa
a5f6664
9744fb2
534bff7
531e260
630bed0
be65852
a3f1577
b011ba2
06636c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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>) { | ||
| 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; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,7 +62,6 @@ function VacationDelegateMenuItem({vacationDelegate, errors, pendingAction, onCl | |
| numberOfLinesDescription={1} | ||
| shouldShowRightIcon | ||
| onPress={onPress} | ||
| containerStyle={styles.pr2} | ||
| /> | ||
| </OfflineWithFeedback> | ||
| </> | ||
|
|
@@ -71,7 +70,6 @@ function VacationDelegateMenuItem({vacationDelegate, errors, pendingAction, onCl | |
| description={translate('common.vacationDelegate')} | ||
| shouldShowRightIcon | ||
| onPress={onPress} | ||
| containerStyle={styles.pr2} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on the discussion on this PR I'd say the custom
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Expensify/design What do you think?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| /> | ||
| ); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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).', | ||
|
|
@@ -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>.`, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you know why it worked for
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, when you pass a link to the Before it was ok, bc the bullet list was using plain html |
||
| }, | ||
| domainMembers: 'Domain members', | ||
| members: { | ||
|
|
@@ -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.', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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', | ||
|
|
@@ -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', | ||
|
|
||







There was a problem hiding this comment.
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