Skip to content
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
3 changes: 3 additions & 0 deletions src/app/features/project/addons/addons.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
}
</p-tabpanel>
<p-tabpanel [value]="AddonTabValue.CONNECTED_ADDONS" class="flex flex-column gap-5">
<p>
{{ 'settings.addons.connectedDescription' | translate }}
</p>
<osf-search-input
class="flex-1"
[control]="searchControl"
Expand Down
18 changes: 18 additions & 0 deletions src/app/features/project/addons/addons.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,22 @@ describe('AddonsComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});

it('should render the connected description paragraph', () => {
component['selectedTab'].set(component['AddonTabValue'].ALL_ADDONS);
fixture.detectChanges();
const compiled: HTMLElement = fixture.nativeElement;
const p = compiled.querySelector('p');
expect(p).toBeTruthy();
expect(p?.textContent?.trim()).toContain('settings.addons.description');
});

it('should render the connected description paragraph', () => {
component['selectedTab'].set(component['AddonTabValue'].CONNECTED_ADDONS);
fixture.detectChanges();
const compiled: HTMLElement = fixture.nativeElement;
const p = compiled.querySelector('p');
expect(p).toBeTruthy();
expect(p?.textContent?.trim()).toContain('settings.addons.connectedDescription');
});
});
3 changes: 3 additions & 0 deletions src/app/features/settings/addons/addons.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
</p-tabpanel>

<p-tabpanel [value]="AddonTabValue.CONNECTED_ADDONS" class="flex flex-column gap-5">
<p>
{{ 'settings.addons.connectedDescription' | translate }}
</p>
<osf-search-input
class="flex-1"
[control]="searchControl"
Expand Down
18 changes: 18 additions & 0 deletions src/app/features/settings/addons/addons.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,22 @@ describe('AddonsComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});

it('should render the connected description paragraph', () => {
component['selectedTab'].set(component['AddonTabValue'].ALL_ADDONS);
fixture.detectChanges();
const compiled: HTMLElement = fixture.nativeElement;
const p = compiled.querySelector('p');
expect(p).toBeTruthy();
expect(p?.textContent?.trim()).toContain('settings.addons.description');
});

it('should render the connected description paragraph', () => {
component['selectedTab'].set(component['AddonTabValue'].CONNECTED_ADDONS);
fixture.detectChanges();
const compiled: HTMLElement = fixture.nativeElement;
const p = compiled.querySelector('p');
expect(p).toBeTruthy();
expect(p?.textContent?.trim()).toContain('settings.addons.connectedDescription');
});
});
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,7 @@
"title": "Add-ons"
},
"description": "Sync your projects with external services to help stay connected and organized. Select a category and browse the options. Add-ons can also be linked directly from Project page.",
"connectedDescription": "Manage your connected Add-ons, re-authorize, disconnect account, or disconnect project",
"tabs": {
"allAddons": "All Add-ons",
"connectedAddons": "Connected Add-ons"
Expand Down
Loading