Skip to content

Commit 6d800a9

Browse files
committed
fix:test and lint fix
1 parent 18045fc commit 6d800a9

8 files changed

Lines changed: 53 additions & 18 deletions

File tree

src/app/component/activity-description/activity-description.component.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ <h4 class="tool-name" [innerHTML]="implement['name']"></h4>
349349
</span>
350350
</span>
351351
<span class="ref-section" *ngIf="teamsImplemented.size === 0">
352-
<span class="ref-values">No {{ settings.getTeamLabelPlural() | lowercase }} have started this activity yet</span>
352+
<span class="ref-values"
353+
>No {{ settings.getTeamLabelPlural() | lowercase }} have started this activity
354+
yet</span
355+
>
353356
</span>
354357
</div>
355358
</mat-panel-title>
@@ -367,7 +370,10 @@ <h4 class="tool-name" [innerHTML]="implement['name']"></h4>
367370
</div>
368371
</div>
369372
<ng-template #noTeamsBlock>
370-
<p>No {{ settings.getTeamLabelPlural() | lowercase }} have started implementing this activity yet.</p>
373+
<p>
374+
No {{ settings.getTeamLabelPlural() | lowercase }} have started implementing this activity
375+
yet.
376+
</p>
371377
</ng-template>
372378
</mat-expansion-panel>
373379
</mat-accordion>

src/app/component/activity-description/activity-description.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ export class ActivityDescriptionComponent implements OnInit, OnChanges {
4444

4545
@ViewChildren(MatAccordion) accordion!: QueryList<MatAccordion>;
4646

47-
constructor(
48-
private loader: LoaderService,
49-
public settings: SettingsService
50-
) {}
47+
constructor(private loader: LoaderService, public settings: SettingsService) {}
5148

5249
ngOnInit() {
5350
// Set activity data if provided

src/app/component/team-selector/team-selector.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div class="config-section">
22
<h3>{{ settings.getTeamLabelPlural() }}</h3>
3-
<p class="config-hint">Select which {{ settings.getTeamLabelPlural() | lowercase }} to include in the report.</p>
3+
<p class="config-hint">
4+
Select which {{ settings.getTeamLabelPlural() | lowercase }} to include in the report.
5+
</p>
46
<div class="select-all-actions">
57
<button mat-button color="primary" (click)="selectAllTeams()">Select All</button>
68
<button mat-button (click)="deselectAllTeams()">Deselect All</button>

src/app/component/teams-groups-editor/teams-groups-editor.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ export class TeamsGroupsEditorComponent implements OnChanges {
197197
}
198198

199199
onAddGroup() {
200-
let newName: string = this.findNextName(this.keys(this.localCopyTeamGroups), this.settings.getGroupLabel());
200+
let newName: string = this.findNextName(
201+
this.keys(this.localCopyTeamGroups),
202+
this.settings.getGroupLabel()
203+
);
201204
this.localCopyTeamGroups[newName] = [];
202205
this.onGroupSelected(newName);
203206
}

src/app/pages/circular-heatmap/circular-heatmap.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ <h2>Nothing to show</h2>
3535
</button>
3636
<div class="team-filter" [class.hidden]="!showFilters">
3737
<mat-form-field class="team-chip-list">
38-
<mat-label>{{ settings.getTeamLabel() }} {{ settings.getGroupLabel() }} Filter</mat-label>
38+
<mat-label
39+
>{{ settings.getTeamLabel() }} {{ settings.getGroupLabel() }} Filter</mat-label
40+
>
3941
<mat-chip-list selectable>
4042
<mat-chip
4143
#chip="matChip"

src/app/pages/settings/settings.component.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,26 @@
3636
</mat-card-content>
3737

3838
<mat-card-content>
39-
<div class="terminology-container" style="display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px;">
39+
<div
40+
class="terminology-container"
41+
style="display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px">
4042
<mat-form-field appearance="fill">
4143
<mat-label>Custom Team Terminology</mat-label>
42-
<input matInput placeholder="e.g. App" name="customTeamLabel" [(ngModel)]="customTeamLabel" (ngModelChange)="onTeamLabelChange()">
44+
<input
45+
matInput
46+
placeholder="e.g. App"
47+
name="customTeamLabel"
48+
[(ngModel)]="customTeamLabel"
49+
(ngModelChange)="onTeamLabelChange()" />
4350
</mat-form-field>
4451
<mat-form-field appearance="fill">
4552
<mat-label>Custom Group Terminology</mat-label>
46-
<input matInput placeholder="e.g. Portfolio" name="customGroupLabel" [(ngModel)]="customGroupLabel" (ngModelChange)="onGroupLabelChange()">
53+
<input
54+
matInput
55+
placeholder="e.g. Portfolio"
56+
name="customGroupLabel"
57+
[(ngModel)]="customGroupLabel"
58+
(ngModelChange)="onGroupLabelChange()" />
4759
</mat-form-field>
4860
</div>
4961
</mat-card-content>

src/app/pages/teams/teams.component.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<app-top-header [section]="settings.getTeamLabelPlural() + ' & ' + settings.getGroupLabelPlural()"></app-top-header>
1+
<app-top-header
2+
[section]="
3+
settings.getTeamLabelPlural() + ' & ' + settings.getGroupLabelPlural()
4+
"></app-top-header>
25
<div class="team-section">
36
<app-teams-groups-editor
47
[teams]="teams"
@@ -8,8 +11,12 @@
811
(namesChanged)="onTeamsChanged($event)"
912
(click)="$event.stopPropagation()"></app-teams-groups-editor>
1013
<div class="button-container" *ngIf="dataStore?.meta?.hasLocalStorage">
11-
<button mat-raised-button (click)="onExportTeamGroups()">Download {{ settings.getTeamLabel() | lowercase }} setup</button>
12-
<button mat-raised-button (click)="onResetTeamGroups()">Reset {{ settings.getTeamLabel() | lowercase }} setup</button>
14+
<button mat-raised-button (click)="onExportTeamGroups()">
15+
Download {{ settings.getTeamLabel() | lowercase }} setup
16+
</button>
17+
<button mat-raised-button (click)="onResetTeamGroups()">
18+
Reset {{ settings.getTeamLabel() | lowercase }} setup
19+
</button>
1320
</div>
1421

1522
<div class="team-info">
@@ -37,7 +44,9 @@ <h2>{{ infoTitle }}</h2>
3744
<h3>Activities in progress</h3>
3845
<table mat-table matSort [dataSource]="dataSource || []" class="mat-elevation-z8 teams-table">
3946
<ng-container matColumnDef="Team">
40-
<th mat-header-cell mat-sort-header *matHeaderCellDef class="table-small-width">{{ settings.getTeamLabel() }}</th>
47+
<th mat-header-cell mat-sort-header *matHeaderCellDef class="table-small-width">
48+
{{ settings.getTeamLabel() }}
49+
</th>
4150
<td mat-cell *matCellDef="let element" class="table-small-width">
4251
{{ element?.team }}
4352
</td>

src/app/pages/teams/teams.component.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ export class TeamsComponent implements OnInit, AfterViewInit {
162162
if (!yamlStr) {
163163
this.displayMessage(
164164
new DialogInfo(
165-
`No ${this.settings.getTeamLabel().toLowerCase()} and ${this.settings.getGroupLabelPlural().toLowerCase()} names stored locally in the browser`,
165+
`No ${this.settings.getTeamLabel().toLowerCase()} and ${this.settings
166+
.getGroupLabelPlural()
167+
.toLowerCase()} names stored locally in the browser`,
166168
'Export Error'
167169
)
168170
);
@@ -185,7 +187,9 @@ export class TeamsComponent implements OnInit, AfterViewInit {
185187
return new Promise((resolve, reject) => {
186188
let title: string = 'Delete local browser data';
187189
let message: string =
188-
`Do you want to reset all ${this.settings.getTeamLabel().toLowerCase()} and ${this.settings.getGroupLabel().toLowerCase()} names?` +
190+
`Do you want to reset all ${this.settings.getTeamLabel().toLowerCase()} and ${this.settings
191+
.getGroupLabel()
192+
.toLowerCase()} names?` +
189193
'\n\nThis will revert the names to the names stored in the yaml file on the server.';
190194
let buttons: string[] = ['Cancel', 'Delete'];
191195
this.modal

0 commit comments

Comments
 (0)