File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,7 @@ type OnboardingTask = {
274
274
workspaceMembersLink : string ;
275
275
integrationName : string ;
276
276
workspaceAccountingLink : string ;
277
+ workspaceSettingsLink : string ;
277
278
navatticURL : string ;
278
279
} > ,
279
280
) => string ) ;
@@ -4911,6 +4912,15 @@ const CONST = {
4911
4912
'\n' +
4912
4913
`Chat with the specialist in your [#admins room](${ adminsRoomLink } ).` ,
4913
4914
} ,
4915
+ {
4916
+ type : 'setupCategoriesAndTags' ,
4917
+ autoCompleted : false ,
4918
+ title : 'Set up categories and tags' ,
4919
+ description : ( { workspaceSettingsLink, workspaceAccountingLink} ) =>
4920
+ '*Set up categories and tags* so your team can code expenses for easy reporting.\n' +
4921
+ '\n' +
4922
+ `Import them automatically by [connecting your accounting software](${ workspaceAccountingLink } ), or set them up manually in your [workspace settings](${ workspaceSettingsLink } ).` ,
4923
+ } ,
4914
4924
{
4915
4925
type : 'setupCategories' ,
4916
4926
autoCompleted : false ,
Original file line number Diff line number Diff line change @@ -3528,7 +3528,11 @@ function prepareOnboardingOptimisticData(
3528
3528
}
3529
3529
const tasksData = data . tasks
3530
3530
. filter ( ( task ) => {
3531
- if ( task . type === 'addAccountingIntegration' && ! userReportedIntegration ) {
3531
+ if ( [ 'setupCategories' , 'setupTags' ] . includes ( task . type ) && userReportedIntegration ) {
3532
+ return false ;
3533
+ }
3534
+
3535
+ if ( [ 'addAccountingIntegration' , 'setupCategoriesAndTags' ] . includes ( task . type ) && ! userReportedIntegration ) {
3532
3536
return false ;
3533
3537
}
3534
3538
return true ;
@@ -3544,6 +3548,7 @@ function prepareOnboardingOptimisticData(
3544
3548
navatticURL : getNavatticURL ( environment , engagementChoice ) ,
3545
3549
integrationName,
3546
3550
workspaceAccountingLink : `${ environmentURL } /${ ROUTES . POLICY_ACCOUNTING . getRoute ( onboardingPolicyID ?? '-1' ) } ` ,
3551
+ workspaceSettingsLink : `${ environmentURL } /${ ROUTES . WORKSPACE_INITIAL . getRoute ( onboardingPolicyID ?? '-1' ) } ` ,
3547
3552
} )
3548
3553
: task . description ;
3549
3554
const taskTitle =
You can’t perform that action at this time.
0 commit comments