@@ -181,6 +181,51 @@ const setupCategoriesTask: OnboardingTask = {
181181 `` ,
182182} ;
183183
184+ const inviteAccountantTask : OnboardingTask = {
185+ type : 'inviteAccountant' ,
186+ autoCompleted : false ,
187+ mediaAttributes : { } ,
188+ title : ( { workspaceMembersLink} ) => `Invite your [accountant](${ workspaceMembersLink } )` ,
189+ description : ( { workspaceMembersLink} ) =>
190+ '*Invite your accountant* to collaborate on your workspace and manage your business expenses.\n' +
191+ '\n' +
192+ '1. Click *Workspaces*.\n' +
193+ '2. Select your workspace.\n' +
194+ '3. Click *Members*.\n' +
195+ '4. Click *Invite member*.\n' +
196+ "5. Enter your accountant's email address.\n" +
197+ '\n' +
198+ `[Invite your accountant now](${ workspaceMembersLink } ).` ,
199+ } ;
200+
201+ const reviewWorkspaceSettingsTask : OnboardingTask = {
202+ type : 'reviewWorkspaceSettings' ,
203+ autoCompleted : false ,
204+ mediaAttributes : { } ,
205+ title : ( { workspaceSettingsLink} ) => `Review your [workspace settings](${ workspaceSettingsLink } )` ,
206+ description : ( { workspaceSettingsLink} ) =>
207+ "Here's how to review and update your workspace settings:\n" +
208+ '1. Click the settings tab.\n' +
209+ '2. Click *Workspaces* > [Your workspace].\n' +
210+ `[Go to your workspace](${ workspaceSettingsLink } ). We'll track them in the #admins room.` ,
211+ } ;
212+
213+ const createReportTask : OnboardingTask = {
214+ type : 'createReport' ,
215+ autoCompleted : false ,
216+ mediaAttributes : { } ,
217+ title : 'Create a report' ,
218+ description :
219+ 'Here’s how to create a report:\n' +
220+ '\n' +
221+ '1. Click the green *+* button.\n' +
222+ '2. Choose *Create report*.\n' +
223+ '3. Click *Add expense*.\n' +
224+ '4. Add your first expense.\n' +
225+ '\n' +
226+ 'And you’re done!' ,
227+ } ;
228+
184229const onboardingEmployerOrSubmitMessage : OnboardingMessage = {
185230 message : 'Getting paid back is as easy as sending a message. Let’s go over the basics.' ,
186231 tasks : [
@@ -5640,25 +5685,7 @@ const CONST = {
56405685 width : 1280 ,
56415686 height : 960 ,
56425687 } ,
5643- tasks : [
5644- createWorkspaceTask ,
5645- testDriveAdminTask ,
5646- {
5647- type : 'createReport' ,
5648- autoCompleted : false ,
5649- mediaAttributes : { } ,
5650- title : 'Create your first report' ,
5651- description :
5652- 'Here’s how to create a report:\n' +
5653- '\n' +
5654- '1. Click the green *+* button.\n' +
5655- '2. Choose *Create report*.\n' +
5656- '3. Click *Add expense*.\n' +
5657- '4. Add your first expense.\n' +
5658- '\n' +
5659- 'And you’re done!' ,
5660- } ,
5661- ] ,
5688+ tasks : [ createWorkspaceTask , testDriveAdminTask , createReportTask , setupCategoriesTask , inviteAccountantTask , reviewWorkspaceSettingsTask ] ,
56625689 } ,
56635690 [ onboardingChoices . PERSONAL_SPEND ] : onboardingPersonalSpendMessage ,
56645691 [ onboardingChoices . CHAT_SPLIT ] : {
@@ -5702,17 +5729,7 @@ const CONST = {
57025729 [ onboardingChoices . ADMIN ] : {
57035730 message : "As an admin, learn how to manage your team's workspace and submit expenses yourself." ,
57045731 tasks : [
5705- {
5706- type : 'reviewWorkspaceSettings' ,
5707- autoCompleted : false ,
5708- mediaAttributes : { } ,
5709- title : ( { workspaceSettingsLink} ) => `Review your [workspace settings](${ workspaceSettingsLink } )` ,
5710- description : ( { workspaceSettingsLink} ) =>
5711- "Here's how to review and update your workspace settings:\n" +
5712- '1. Click the settings tab.\n' +
5713- '2. Click *Workspaces* > [Your workspace].\n' +
5714- `[Go to your workspace](${ workspaceSettingsLink } ). We'll track them in the #admins room.` ,
5715- } ,
5732+ reviewWorkspaceSettingsTask ,
57165733 {
57175734 type : 'submitExpense' ,
57185735 autoCompleted : false ,
0 commit comments