Skip to content
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

[CP Staging] Fix markdown rendering for task descriptions, fix onboarding task descriptions #41436

Merged
merged 2 commits into from
May 1, 2024
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
66 changes: 33 additions & 33 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3722,12 +3722,12 @@ const CONST = {
autoCompleted: false,
title: 'Submit an expense',
description:
'<strong>Submit an expense</strong> by entering an amount or scanning a receipt.\n' +
'*Submit an expense* by entering an amount or scanning a receipt.\n' +
'\n' +
'Here’s how to submit an expense:\n' +
'\n' +
'1. Click the green <strong>+</strong> button.\n' +
'2. Choose <strong>Submit expense</strong>.\n' +
'1. Click the green *+* button.\n' +
'2. Choose *Submit expense*.\n' +
'3. Enter an amount or scan a receipt.\n' +
'4. Add your reimburser to the request.\n' +
'\n' +
Expand All @@ -3738,12 +3738,12 @@ const CONST = {
autoCompleted: false,
title: 'Enable your wallet',
description:
'You’ll need to <strong>enable your Expensify Wallet</strong> to get paid back. Don’t worry, it’s easy!\n' +
'You’ll need to *enable your Expensify Wallet* to get paid back. Don’t worry, it’s easy!\n' +
'\n' +
'Here’s how to set up your wallet:\n' +
'\n' +
'1. Click your profile picture.\n' +
'2. Click <strong>Wallet</strong> > <strong>Enable wallet</strong>.\n' +
'2. Click *Wallet* > *Enable wallet*.\n' +
'3. Connect your bank account.\n' +
'\n' +
'Once that’s done, you can request money from anyone and get paid back right into your personal bank account.',
Expand All @@ -3765,14 +3765,14 @@ const CONST = {
autoCompleted: true,
title: 'Create a workspace',
description:
'<strong>Create a workspace</strong> to track expenses, scan receipts, chat, and more.\n' +
'*Create a workspace* to track expenses, scan receipts, chat, and more.\n' +
'\n' +
'Here’s how to create a workspace:\n' +
'\n' +
'1. Click your profile picture.\n' +
'2. Click <strong>Workspaces<strong> > <strong>New workspace<strong>.\n' +
'2. Click *Workspaces* > *New workspace*.\n' +
'\n' +
'<strong>Your new workspace is ready! It’ll keep all of your spend (and chats) in one place.</strong>',
'*Your new workspace is ready! It’ll keep all of your spend (and chats) in one place.*',
},
{
type: 'meetGuide',
Expand All @@ -3788,32 +3788,32 @@ const CONST = {
autoCompleted: false,
title: 'Set up categories',
description:
'<strong>Set up categories</strong> so your team can code expenses for easy reporting.\n' +
'*Set up categories* so your team can code expenses for easy reporting.\n' +
'\n' +
'Here’s how to set up categories:\n' +
'\n' +
'1. Click your profile picture.\n' +
'2. Go to <strong>Workspaces</strong> > [your workspace].\n' +
'3. Click <strong>Categories</strong>.\n' +
'2. Go to *Workspaces* > [your workspace].\n' +
'3. Click *Categories*.\n' +
'4. Enable and disable default categories.\n' +
'5. Click <strong>Add categories</strong> to make your own.\n' +
'5. Click *Add categories* to make your own.\n' +
'\n' +
'For more controls like requiring a category for every expense, click <strong>Settings</strong>.',
'For more controls like requiring a category for every expense, click *Settings*.',
},
{
type: 'addExpenseApprovals',
autoCompleted: false,
title: 'Add expense approvals',
description:
'<strong>Add expense approvals</strong> to review your team’s spend and keep it under control.\n' +
'*Add expense approvals* to review your team’s spend and keep it under control.\n' +
'\n' +
'Here’s how to add expense approvals:\n' +
'\n' +
'1. Click your profile picture.\n' +
'2. Go to <strong>Workspaces</strong> > [your workspace].\n' +
'3. Click <strong>More features</strong>.\n' +
'4. Enable <strong>Workflows</strong>.\n' +
'5. In <strong>Workflows</strong>, enable <strong>Add approvals</strong>.\n' +
'2. Go to *Workspaces* > [your workspace].\n' +
'3. Click *More features*.\n' +
'4. Enable *Workflows*.\n' +
'5. In *Workflows*, enable *Add approvals*.\n' +
'\n' +
'You’ll be set as the expense approver. You can change this to any admin once you invite your team.',
},
Expand All @@ -3822,13 +3822,13 @@ const CONST = {
autoCompleted: false,
title: 'Invite your team',
description:
'<strong>Invite your team</strong> to Expensify so they can start tracking expenses today.\n' +
'*Invite your team* to Expensify so they can start tracking expenses today.\n' +
'\n' +
'Here’s how to invite your team:\n' +
'\n' +
'1. Click your profile picture.\n' +
'2. Go to <strong>Workspaces</strong> > [your workspace].\n' +
'3. Click <strong>Members</strong> > <strong>Invite member</strong>.\n' +
'2. Go to *Workspaces* > [your workspace].\n' +
'3. Click *Members* > *Invite member*.\n' +
'4. Enter emails or phone numbers. \n' +
'5. Add an invite message if you want.\n' +
'\n' +
Expand All @@ -3851,14 +3851,14 @@ const CONST = {
autoCompleted: false,
title: 'Track an expense',
description:
'<strong>Track an expense</strong> in any currency, whether you have a receipt or not.\n' +
'*Track an expense* in any currency, whether you have a receipt or not.\n' +
'\n' +
'Here’s how to track an expense:\n' +
'\n' +
'1. Click the green <strong>+</strong> button.\n' +
'2. Choose <strong>Track expense</strong>.\n' +
'1. Click the green *+* button.\n' +
'2. Choose *Track expense*.\n' +
'3. Enter an amount or scan a receipt.\n' +
'4. Click <strong>Track</strong>.\n' +
'4. Click *Track*.\n' +
'\n' +
'And you’re done! Yep, it’s that easy.',
},
Expand All @@ -3879,12 +3879,12 @@ const CONST = {
autoCompleted: false,
title: 'Start a chat',
description:
'<strong>Start a chat</strong> with a friend or group using their email or phone number.\n' +
'*Start a chat* with a friend or group using their email or phone number.\n' +
'\n' +
'Here’s how to start a chat:\n' +
'\n' +
'1. Click the green <strong>+</strong> button.\n' +
'2. Choose <strong>Start chat</strong>.\n' +
'1. Click the green *+* button.\n' +
'2. Choose *Start chat*.\n' +
'3. Enter emails or phone numbers.\n' +
'\n' +
'If any of your friends aren’t using Expensify already, they’ll be invited automatically.\n' +
Expand All @@ -3896,12 +3896,12 @@ const CONST = {
autoCompleted: false,
title: 'Split an expense',
description:
'<strong>Split an expense</strong> right in your chat with one or more friends.\n' +
'*Split an expense* right in your chat with one or more friends.\n' +
'\n' +
'Here’s how to request money:\n' +
'\n' +
'1. Click the green <strong>+</strong> button.\n' +
'2. Choose <strong>Split expense</strong>.\n' +
'1. Click the green *+* button.\n' +
'2. Choose *Split expense*.\n' +
'3. Scan a receipt or enter an amount.\n' +
'4. Add your friend(s) to the request.\n' +
'\n' +
Expand All @@ -3912,12 +3912,12 @@ const CONST = {
autoCompleted: false,
title: 'Enable your wallet',
description:
'You’ll need to <strong>enable your Expensify Wallet</strong> to get paid back. Don’t worry, it’s easy!\n' +
'You’ll need to *enable your Expensify Wallet* to get paid back. Don’t worry, it’s easy!\n' +
'\n' +
'Here’s how to enable your wallet:\n' +
'\n' +
'1. Click your profile picture.\n' +
'2. <strong>Click Wallet</strong> > <strong>Enable wallet</strong>.\n' +
'2. *Click Wallet* > *Enable wallet*.\n' +
'3. Add your bank account.\n' +
'\n' +
'Once that’s done, you can request money from anyone and get paid right into your personal bank account.',
Expand Down
3 changes: 0 additions & 3 deletions src/components/ReportActionItem/TaskView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import getButtonState from '@libs/getButtonState';
import Navigation from '@libs/Navigation/Navigation';
import * as OptionsListUtils from '@libs/OptionsListUtils';
import * as ReportUtils from '@libs/ReportUtils';
import * as Url from '@libs/Url';
import * as Session from '@userActions/Session';
import * as Task from '@userActions/Task';
import CONST from '@src/CONST';
Expand Down Expand Up @@ -146,8 +145,6 @@ function TaskView({report, ...props}: TaskViewProps) {
shouldGreyOutWhenDisabled={false}
numberOfLinesTitle={0}
interactive={!isDisableInteractive}
shouldRenderAsHTML
shouldEscapeText={Url.hasURL(report.description ?? '') ? undefined : false}
/>
</OfflineWithFeedback>
<OfflineWithFeedback pendingAction={report.pendingFields?.managerID}>
Expand Down
Loading