Skip to content

Commit 63d4a98

Browse files
authored
Merge pull request #2297 from bcgov/develop
Deployment PR - 1609
2 parents 42e512a + 3a1abdb commit 63d4a98

File tree

340 files changed

+3716
-1234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+3716
-1234
lines changed

alcs-frontend/package-lock.json

Lines changed: 54 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

alcs-frontend/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@bcgov/bc-sans": "^2.1.0",
3131
"@ng-matero/extensions": "^17.3.8",
3232
"@ng-select/ng-option-highlight": "^12.0.6",
33-
"@types/validator": "^13.12.3",
33+
"@types/validator": "^13.15.0",
3434
"angular-mentions": "^1.5.0",
3535
"jwt-decode": "^4.0.0",
3636
"moment": "^2.30.1",
@@ -44,15 +44,15 @@
4444
},
4545
"devDependencies": {
4646
"@angular-builders/jest": "^17.0.3",
47-
"@angular-devkit/build-angular": "^17.3.16",
47+
"@angular-devkit/build-angular": "^17.3.17",
4848
"@angular-eslint/builder": "^17.5.3",
4949
"@angular-eslint/eslint-plugin": "^17.5.3",
5050
"@angular-eslint/eslint-plugin-template": "^17.5.3",
5151
"@angular-eslint/schematics": "^17.5.3",
5252
"@angular-eslint/template-parser": "^17.5.3",
53-
"@angular/cli": "~17.3.14",
53+
"@angular/cli": "~17.3.17",
5454
"@angular/compiler-cli": "^17.3.3",
55-
"@golevelup/ts-jest": "^0.6.2",
55+
"@golevelup/ts-jest": "^0.7.0",
5656
"@types/jest": "^29.5.14",
5757
"@typescript-eslint/eslint-plugin": "7.18.0",
5858
"@typescript-eslint/parser": "7.18.0",

alcs-frontend/src/app/app-routing.module.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@ import { ProvisionComponent } from './features/provision/provision.component';
77
import { AuthGuard } from './services/authentication/auth.guard';
88
import { ALL_ROLES, ROLES } from './services/authentication/authentication.service';
99
import { HasRolesGuard } from './services/authentication/hasRoles.guard';
10+
import { DocumentFileLoader } from './shared/document-file-loader/document-file-loader.component';
1011

1112
export const ROLES_ALLOWED_APPLICATIONS = [ROLES.ADMIN, ROLES.LUP, ROLES.APP_SPECIALIST, ROLES.GIS, ROLES.SOIL_OFFICER];
1213
export const ROLES_ALLOWED_BOARDS = ROLES_ALLOWED_APPLICATIONS;
1314

1415
const routes: Routes = [
16+
{
17+
path: 'document/:uuid',
18+
canActivate: [HasRolesGuard],
19+
data: {
20+
roles: ALL_ROLES,
21+
},
22+
component: DocumentFileLoader,
23+
},
1524
{
1625
path: 'board',
1726
canActivate: [HasRolesGuard],

alcs-frontend/src/app/features/admin/board-management/board-management-dialog/board-management-dialog.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ <h4>{{ isEdit ? 'Edit' : 'Create' }} Board</h4>
4141
</mat-button-toggle-group>
4242
</div>
4343

44+
<div class="full-width">
45+
<mat-label>Include filtering by assignee</mat-label>
46+
<mat-button-toggle-group [formControl]="hasAssigneeFilter">
47+
<mat-button-toggle [value]="true">Yes</mat-button-toggle>
48+
<mat-button-toggle [value]="false">No</mat-button-toggle>
49+
</mat-button-toggle-group>
50+
</div>
51+
4452
<div>
4553
<div>Click to add columns*</div>
4654
<div class="subtext">Disabled columns have cards and cannot be removed from the board</div>

alcs-frontend/src/app/features/admin/board-management/board-management-dialog/board-management-dialog.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export class BoardManagementDialogComponent implements OnInit {
3434
permittedCardTypes = new FormControl<CardType[]>([], [Validators.required]);
3535
createCardTypes = new FormControl<CardType[]>([]);
3636
showOnSchedule = new FormControl<string>('true', [Validators.required]);
37+
hasAssigneeFilter = new FormControl<boolean>(false, [Validators.required]);
3738

3839
step = 1;
3940

@@ -43,6 +44,7 @@ export class BoardManagementDialogComponent implements OnInit {
4344
permittedCardTypes: this.permittedCardTypes,
4445
createCardTypes: this.createCardTypes,
4546
showOnSchedule: this.showOnSchedule,
47+
hasAssigneeFilter: this.hasAssigneeFilter,
4648
});
4749

4850
isLoading = false;
@@ -101,6 +103,7 @@ export class BoardManagementDialogComponent implements OnInit {
101103
createCardTypes: board.createCardTypes,
102104
permittedCardTypes: board.allowedCardTypes,
103105
showOnSchedule: board.showOnSchedule ? 'true' : 'false',
106+
hasAssigneeFilter: board.hasAssigneeFilter,
104107
});
105108

106109
await this.loadCardStatuses(board);
@@ -158,6 +161,7 @@ export class BoardManagementDialogComponent implements OnInit {
158161
allowedCardTypes: this.permittedCardTypes.value ?? [],
159162
createCardTypes: this.createCardTypes.value ?? [],
160163
showOnSchedule: this.showOnSchedule.value === 'true',
164+
hasAssigneeFilter: this.hasAssigneeFilter.value ?? false,
161165
};
162166

163167
if (this.isEdit) {

alcs-frontend/src/app/features/application/applicant-info/application-details/application-details.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ <h4>Primary Contact Information</h4>
8484
<div class="subheading2 grid-1">Authorization Letter(s)</div>
8585
<div class="grid-double">
8686
<div *ngFor="let file of authorizationLetters">
87-
<a (click)="openFile(file)" data-testid="authorization-letter">{{ file.fileName }}</a>
87+
<a routerLink="/document/{{ file.documentUuid }}" target="_blank" data-testid="authorization-letter">{{
88+
file.fileName
89+
}}</a>
8890
</div>
8991
</div>
9092
</ng-container>
@@ -229,7 +231,7 @@ <h4>Optional Documents</h4>
229231

230232
<ng-container *ngFor="let file of otherFiles">
231233
<div class="grid-1" data-testid="optional-document-file-name">
232-
<a (click)="openFile(file)">{{ file.fileName }}</a>
234+
<a routerLink="/document/{{ file.documentUuid }}" target="_blank">{{ file.fileName }}</a>
233235
</div>
234236
<div class="grid-2" data-testid="optional-document-type">
235237
{{ file.type?.label }}

alcs-frontend/src/app/features/application/applicant-info/application-details/application-details.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { RosoDetailsComponent } from './roso-details/roso-details.component';
1313
import { SubdDetailsComponent } from './subd-details/subd-details.component';
1414
import { TurDetailsComponent } from './tur-details/tur-details.component';
1515
import { ExclDetailsComponent } from './excl-details/excl-details.component';
16+
import { RouterModule } from '@angular/router';
1617

1718
@NgModule({
1819
declarations: [
@@ -29,7 +30,7 @@ import { ExclDetailsComponent } from './excl-details/excl-details.component';
2930
InclDetailsComponent,
3031
CoveDetailsComponent,
3132
],
32-
imports: [CommonModule, SharedModule],
33+
imports: [CommonModule, SharedModule, RouterModule],
3334
exports: [ApplicationDetailsComponent],
3435
})
3536
export class ApplicationDetailsModule {}

alcs-frontend/src/app/features/application/applicant-info/application-details/cove-details/cove-details.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
<div class="subheading2 grid-1">Proposal Map / Site Plan</div>
4747
<div class="grid-double">
48-
<a *ngFor="let map of proposalMap" (click)="openFile(map)">
48+
<a *ngFor="let map of proposalMap" routerLink="/document/{{ map.documentUuid }}" target="_blank">
4949
{{ map.fileName }}
5050
</a>
5151
<app-no-data *ngIf="proposalMap.length === 0"></app-no-data>
@@ -62,7 +62,7 @@
6262
<div class="subheading2 grid-1">Draft Covenant</div>
6363
<div class="grid-double">
6464
<div *ngFor="let file of srwTerms">
65-
<a (click)="openFile(file)">
65+
<a routerLink="/document/{{ file.documentUuid }}" target="_blank">
6666
{{ file.fileName }}
6767
</a>
6868
</div>

0 commit comments

Comments
 (0)