Skip to content

Commit d3a7597

Browse files
fix: remove AppCues (#1043)
1 parent c7bc14b commit d3a7597

File tree

5 files changed

+0
-110
lines changed

5 files changed

+0
-110
lines changed

src/app/core/services/integration/appcues.service.spec.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/app/core/services/integration/appcues.service.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/app/integrations/intacct/intacct.component.spec.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { IntacctComponent } from './intacct.component';
55
import { HelperService } from 'src/app/core/services/common/helper.service';
66
import { StorageService } from 'src/app/core/services/common/storage.service';
77
import { WindowService } from 'src/app/core/services/common/window.service';
8-
import { AppcuesService } from 'src/app/core/services/integration/appcues.service';
98
import { UserService } from 'src/app/core/services/misc/user.service';
109
import { SiWorkspaceService } from 'src/app/core/services/si/si-core/si-workspace.service';
1110
import { AppUrl, IntacctOnboardingState } from 'src/app/core/models/enum/enum.model';
@@ -22,15 +21,13 @@ describe('IntacctComponent', () => {
2221
let helperServiceSpy: jasmine.SpyObj<HelperService>;
2322
let storageServiceSpy: jasmine.SpyObj<StorageService>;
2423
let windowServiceMock: Partial<WindowService>;
25-
let appcuesServiceSpy: jasmine.SpyObj<AppcuesService>;
2624
let router: Router;
2725

2826
beforeEach(async () => {
2927
const userSpy = jasmine.createSpyObj('UserService', ['getUserProfile']);
3028
const workspaceSpy = jasmine.createSpyObj('SiWorkspaceService', ['getWorkspace', 'postWorkspace', 'syncFyleDimensions', 'syncIntacctDimensions']);
3129
const helperSpy = jasmine.createSpyObj('HelperService', ['setBaseApiURL']);
3230
const storageSpy = jasmine.createSpyObj('StorageService', ['set']);
33-
const appcuesSpy = jasmine.createSpyObj('AppcuesService', ['initialiseAppcues']);
3431

3532
windowServiceMock = {
3633
get nativeWindow() {
@@ -47,7 +44,6 @@ describe('IntacctComponent', () => {
4744
imports: [SharedModule, HttpClientTestingModule],
4845
providers: [
4946
{ provide: HelperService, useValue: helperSpy },
50-
{ provide: AppcuesService, useValue: appcuesSpy },
5147
{ provide: StorageService, useValue: storageSpy },
5248
{ provide: UserService, useValue: userSpy },
5349
{ provide: SiWorkspaceService, useValue: workspaceSpy },
@@ -61,7 +57,6 @@ describe('IntacctComponent', () => {
6157
helperServiceSpy = TestBed.inject(HelperService) as jasmine.SpyObj<HelperService>;
6258
storageServiceSpy = TestBed.inject(StorageService) as jasmine.SpyObj<StorageService>;
6359
router = TestBed.inject(Router);
64-
appcuesServiceSpy = TestBed.inject(AppcuesService) as jasmine.SpyObj<AppcuesService>;
6560

6661
spyOn(router, 'navigateByUrl');
6762
spyOnProperty(router, 'events').and.returnValue(of(new NavigationEnd(0, '', '')));
@@ -122,15 +117,4 @@ describe('IntacctComponent', () => {
122117

123118
expect(router.navigateByUrl).not.toHaveBeenCalled();
124119
});
125-
126-
it('should initialise Appcues', () => {
127-
(window as any).Appcues = {
128-
page: jasmine.createSpy('Appcues.page')
129-
};
130-
131-
fixture.detectChanges();
132-
133-
expect(appcuesServiceSpy.initialiseAppcues).toHaveBeenCalled();
134-
expect((window as any).Appcues.page).toHaveBeenCalled();
135-
});
136120
});

src/app/integrations/intacct/intacct.component.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { IntacctWorkspace } from 'src/app/core/models/intacct/db/workspaces.mode
66
import { HelperService } from 'src/app/core/services/common/helper.service';
77
import { StorageService } from 'src/app/core/services/common/storage.service';
88
import { WindowService } from 'src/app/core/services/common/window.service';
9-
import { AppcuesService } from 'src/app/core/services/integration/appcues.service';
109
import { UserService } from 'src/app/core/services/misc/user.service';
1110
import { SiWorkspaceService } from 'src/app/core/services/si/si-core/si-workspace.service';
1211
import { SiAuthService } from 'src/app/core/services/si/si-core/si-auth.service';
@@ -27,7 +26,6 @@ export class IntacctComponent implements OnInit {
2726
windowReference: Window;
2827

2928
constructor(
30-
private appcuesService: AppcuesService,
3129
private helperService: HelperService,
3230
private router: Router,
3331
private route: ActivatedRoute,
@@ -59,7 +57,6 @@ export class IntacctComponent implements OnInit {
5957
this.workspace = workspace;
6058
this.storageService.set('workspaceId', this.workspace.id);
6159
this.storageService.set('onboarding-state', this.workspace.onboarding_state);
62-
this.appcuesService.initialiseAppcues(AppName.INTACCT, this.workspace.created_at);
6360
this.workspaceService.syncFyleDimensions().subscribe();
6461
this.workspaceService.syncIntacctDimensions().subscribe();
6562
this.isLoading = false;
@@ -94,11 +91,6 @@ export class IntacctComponent implements OnInit {
9491
}
9592

9693
ngOnInit(): void {
97-
this.router.events.subscribe((event) => {
98-
if (event instanceof NavigationEnd) {
99-
(window as any).Appcues && (window as any).Appcues.page();
100-
}
101-
});
10294
this.handleAuthParameters();
10395
}
10496

src/index.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
}
2626
</script>
2727

28-
<!-- appcues -->
29-
<script type="text/javascript">
30-
window.AppcuesSettings = {
31-
enableURLDetection: true
32-
};
33-
</script>
34-
<script src="https://fast.appcues.com/71692.js"></script>
35-
3628
<!-- refiner.io -->
3729
<script type="text/javascript">
3830
if (window.location.hostname !== "localhost") {

0 commit comments

Comments
 (0)