Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment PR - 1225 #1748

Merged
merged 131 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
670d3c3
Filter draft NOI's from search view
trslater Jun 6, 2024
454849e
Merge pull request #1747 from bcgov/bugfix/ALCS-2027
trslater Jun 6, 2024
8115f44
Merge pull request #1751 from bcgov/main
trslater Jun 10, 2024
491d67c
Fix public search not scrolling to results after spinner is gone
Abradat Jun 10, 2024
6f92c1a
Merge pull request #1752 from bcgov/bugfix/ALCS-1981
Abradat Jun 10, 2024
a16c4cc
Remove underline from mention list items
trslater Jun 10, 2024
bbb08e3
Change comment box display to outline
trslater Jun 10, 2024
11b5607
Add space between input and buttons
trslater Jun 10, 2024
4e1f4d1
Add '-' for NOIs not being retroactive
Abradat Jun 10, 2024
b69031c
Remove bottom border line from ng-select in fill mode
Abradat Jun 10, 2024
b3246b5
Fix sticky board header
trslater Jun 10, 2024
94b8fac
Change staff journal input to outline
trslater Jun 10, 2024
a16ca37
Merge pull request #1753 from bcgov/feature/ALCS-1958
trslater Jun 11, 2024
54ea3df
Fix active days and assignee columns
Abradat Jun 11, 2024
1718132
Merge pull request #1755 from bcgov/feature/ALCS-1959
Abradat Jun 11, 2024
a8b78c5
Fix fields getting cleared after hitting enter in public search
Abradat Jun 11, 2024
3b55559
Merge pull request #1756 from bcgov/bugfix/ALCS-1994
Abradat Jun 11, 2024
c082152
Make sure `selectedThirdPartyAgent` syncs with toggle
trslater Jun 11, 2024
574043b
Fix the type column width
Abradat Jun 11, 2024
af28aca
Apply previous change to NOI's
trslater Jun 11, 2024
aa30173
Merge pull request #1757 from bcgov/bugfix/ALCS-2024
trslater Jun 11, 2024
c2c3871
Add '-' placeholder to non-retroactive NOIs in "Cards Assigned to Me"
Abradat Jun 11, 2024
3bcf0ae
Merge pull request #1758 from bcgov/feature/ALCS-1959-2
Abradat Jun 11, 2024
751d5b1
Fix UI/UX bugs for Application Info Request
Abradat Jun 13, 2024
54e72fa
Fix indentation
Abradat Jun 13, 2024
17e31d7
Fix UI/UX bugs for NOI Info Request dialog
Abradat Jun 13, 2024
8710998
Fix margin
Abradat Jun 13, 2024
ad3d4fd
Merge pull request #1759 from bcgov/feature/ALCS-1961
Abradat Jun 13, 2024
d043bbc
Fallback to existing component value if not being updated
trslater Jun 13, 2024
caf4843
Merge pull request #1760 from bcgov/bugfix/ALCS-2009
trslater Jun 13, 2024
b867eb8
Add message to confirmation of NOI, Application, and SRW
Abradat Jun 14, 2024
e354ad1
Fix Decision component empty value fields error for NOI
Abradat Jun 14, 2024
0edb6e6
Fix Decision component empty value fields error for Applications
Abradat Jun 14, 2024
dacb617
Merge pull request #1761 from bcgov/feature/ALCS-1894
Abradat Jun 17, 2024
674695d
Merge pull request #1762 from bcgov/bugfix/ALCS-2000
Abradat Jun 17, 2024
9443863
Set ALR area to accept max 5 decimal places
trslater Jun 17, 2024
73410ab
Fix TUR, COV, SUB ALR area mask to show all decimals
trslater Jun 17, 2024
9b29c3f
Merge pull request #1763 from bcgov/bugfix/ALCS-1998
trslater Jun 17, 2024
568fafc
Fix other text input underline not showing up
Abradat Jun 17, 2024
da4bb8e
Merge pull request #1765 from bcgov/bugfix/ALCS-2045
Abradat Jun 17, 2024
88eacb0
Merge pull request #1766 from bcgov/main
trslater Jun 17, 2024
09d881a
Restyle all portal/public tabs
trslater Jun 18, 2024
2456bc5
Fix applications decision component not changing after empty value
Abradat Jun 19, 2024
6565a3f
Move custom tab styles into app-wide styles
trslater Jun 19, 2024
e2a971c
Add missing left border from inactive tab
trslater Jun 19, 2024
2718762
Move styles into own SCSS file and apply globally
trslater Jun 19, 2024
e1f2c7e
Merge pull request #1767 from bcgov/feature/ALCS-1897
trslater Jun 19, 2024
817e92c
Fix file path
Abradat Jun 19, 2024
6c6234b
Add unit test for inline path request
Abradat Jun 19, 2024
650db03
Merge pull request #1768 from bcgov/bugfix/ALCS-2064
Abradat Jun 19, 2024
ff854b9
Clean up redundant tab formatting
trslater Jun 20, 2024
c4aa727
Set correct sizes and weight for all tabs
trslater Jun 20, 2024
6d5340a
Add padding between view page return button and tabs
trslater Jun 20, 2024
023ea23
Add padding between tabs and tab content
trslater Jun 20, 2024
ddd7848
Fix padding around public search results heading
trslater Jun 20, 2024
7840699
Merge pull request #1769 from bcgov/feature/ALCS-1897-QA
trslater Jun 20, 2024
f6c14db
Set number of workers to one
Abradat Jun 24, 2024
c3b38f2
Add retries for dev, timeout, and actionTimeout to config to help sta…
Abradat Jun 24, 2024
80ffff8
Fix e2e map area text validation
Abradat Jun 24, 2024
32abaa6
Fix calendar button falling out of viewport in application portal page
Abradat Jun 24, 2024
fc5bbd7
Fix code style
Abradat Jun 24, 2024
9e89fe9
Change actionTimeout to default
Abradat Jun 25, 2024
4bd93a9
Merge pull request #1770 from bcgov/feature/ALCS-1687
Abradat Jun 25, 2024
1a21ece
Set trigger status for notification email statuses
trslater Jun 25, 2024
d08d08f
Update existing data with SUBM trigger status
trslater Jun 25, 2024
ccb0eb0
Fix security vulnerabilities
Abradat Jun 25, 2024
39d0455
Merge pull request #1771 from bcgov/feature/ALCS-2013
trslater Jun 25, 2024
f104458
Change ALCS login to use BCEID in E2E testing
Abradat Jun 26, 2024
49c612e
Add ALCS Base URL to E2E workflow
Abradat Jun 26, 2024
93427d3
Add branch input to manual trigger
Abradat Jun 26, 2024
c568e53
Merge pull request #1772 from bcgov/bugfix/ALCS-2088
Abradat Jun 26, 2024
b24276b
Merge pull request #1773 from bcgov/bugfix/ALCS-1940
Abradat Jun 27, 2024
d17ebe3
Install validator and type defs for portal
trslater Jun 27, 2024
efe994c
Create custom stricter email validator
trslater Jun 27, 2024
f10df0c
Update all portal email validators with strict one
trslater Jun 27, 2024
574e779
Consider empty emails valid
trslater Jun 27, 2024
7cf346d
Install validator and type defs
trslater Jun 27, 2024
ee23efa
Add stricter email validator to ALCS
trslater Jun 27, 2024
9934bfe
Update Angular form validator to strict version in ALCS
trslater Jun 27, 2024
d53aac2
Add `isEmail` option to `app-inline-text`
trslater Jun 27, 2024
aafa32f
Fix portal inbox table ID columns from plural to singular
Abradat Jun 27, 2024
60b724b
Make email inline fields email fields
trslater Jun 27, 2024
6af1630
Add `OnInit` interface to inline text component
trslater Jun 27, 2024
4435293
Merge pull request #1774 from bcgov/bugfix/ALCS-2062
Abradat Jun 27, 2024
0086def
Stop auto creation of GIS subtasks on notification submission
Abradat Jun 28, 2024
f418e38
Fix UI/UX bugs on applicants info for applications, NOIs, and notific…
Abradat Jun 28, 2024
819762c
Add margin for warning banners in applications LFNG
Abradat Jun 28, 2024
8087f71
Remove '2' from field in NOI Prep
Abradat Jun 28, 2024
50ecc3b
Fix typo
Abradat Jun 28, 2024
814645f
Fix file extension issue for files without extension
Abradat Jun 29, 2024
009146d
Add truncate pipe for strings
Abradat Jun 29, 2024
2a0e802
Add constant for truncating file names in documents tables
Abradat Jun 29, 2024
4e95eda
Add Truncate pipe to shared module
Abradat Jun 29, 2024
48d44b2
Add truncate pipe to documents tables for long file names
Abradat Jun 29, 2024
ce95b3a
Fix redundant condition for matTooltip in documents tables
Abradat Jul 2, 2024
9efe7ce
Merge pull request #1776 from bcgov/feature/ALCS-1960
Abradat Jul 2, 2024
6623933
Merge pull request #1775 from bcgov/feature/ALCS-2016
Abradat Jul 2, 2024
1525b60
Validate email chips and show warning if invalid
trslater Jul 2, 2024
504d9c7
Merge pull request #1777 from bcgov/bugfix/ALCS-1962
Abradat Jul 3, 2024
575262f
Fix validator imports
trslater Jul 3, 2024
f29cd9b
Fix imports for portal as well
trslater Jul 3, 2024
9af7db2
Improve formatting
trslater Jul 3, 2024
a513d40
Merge pull request #1778 from bcgov/feature/ALCS-2084
trslater Jul 3, 2024
1031c48
Add optional validation for basic component on zero and empty values
Abradat Jul 4, 2024
e1334c0
Move non zero validator to the shared module
Abradat Jul 4, 2024
5dcf14c
Add non empty and required validators to released decisions' componen…
Abradat Jul 4, 2024
fff49f6
Add non empty and zero validation inline edit of ALR area for release…
Abradat Jul 4, 2024
7843888
Change variable name for NOI basic component
Abradat Jul 4, 2024
bf5ce6f
Merge pull request #1780 from bcgov/bugfix/ALCS-2065
Abradat Jul 4, 2024
49ccba3
Remove top margin of applicant info title in applications, NOIs, and …
Abradat Jul 4, 2024
3332dc0
Remove logger from inline number component
Abradat Jul 4, 2024
08b91e7
Merge pull request #1781 from bcgov/feature/ALCS-1960-2
Abradat Jul 4, 2024
b42a7d8
Merge pull request #1782 from bcgov/bugfix/ALCS-2065-2
Abradat Jul 4, 2024
219fd20
Add fixed width to action columns in documents table
Abradat Jul 8, 2024
4f3e80f
Fix error on creating admin L/FNG government
Abradat Jul 8, 2024
7d16b70
Add toast on successful create and update of L/FNG admin
Abradat Jul 8, 2024
3504d60
Merge pull request #1783 from bcgov/feature/ALCS-1962-2
Abradat Jul 8, 2024
f1501d2
Merge pull request #1784 from bcgov/bugfix/ALCS-2133
Abradat Jul 8, 2024
4b7de21
Prevent user to submit form by enter key when inline number is invalid
Abradat Jul 8, 2024
ea3eb25
Merge pull request #1785 from bcgov/bugfix/ALCS-2065-3
Abradat Jul 8, 2024
e9dd0e1
Make applicant editible in header
trslater Jul 9, 2024
ae237c2
Add fixed height option to inline text field
trslater Jul 10, 2024
fabfb0e
Restyle detail header with inline editor
trslater Jul 10, 2024
4ebee27
Update app sub table as well as app table
trslater Jul 10, 2024
2f62398
Fix public date status date showing the date in the future instead of…
Abradat Jul 10, 2024
1e33aad
Rename applicant to 'Name'
trslater Jul 10, 2024
9bc3799
Update migration file
Abradat Jul 10, 2024
ef0ad2a
Merge pull request #1786 from bcgov/feature/ALCS-2126
Abradat Jul 10, 2024
13e3e5c
Merge pull request #1787 from bcgov/feature/ALCS-2043
trslater Jul 10, 2024
0a4a8ac
Fix status date not matching the status in portal inbox for applicati…
Abradat Jul 10, 2024
c168dc7
Merge pull request #1788 from bcgov/feature/ALCS-2126-2
Abradat Jul 10, 2024
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
13 changes: 12 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ on:
options:
- https://alcs-dev-portal.apps.silver.devops.gov.bc.ca
- https://alcs-test-portal.apps.silver.devops.gov.bc.ca
alcsBaseUrl:
type: choice
description: ALCS Base URL
options:
- https://alcs-dev.apps.silver.devops.gov.bc.ca
- https://alcs-test.apps.silver.devops.gov.bc.ca
branch:
type: string
description: 'Branch to checkout'
default: 'develop'
schedule:
# 5:23 am daily
- cron: "23 5 * * *"
Expand All @@ -19,7 +29,7 @@ jobs:
- uses: actions/checkout@v4
with:
# This does not need to align with URL
ref: develop
ref: ${{ inputs.branch || 'develop' }}
- uses: actions/setup-node@v4
- name: Install dependencies
working-directory: ./e2e
Expand All @@ -32,6 +42,7 @@ jobs:
env:
# Default to dev
PORTAL_BASE_URL: ${{ inputs.portalBaseUrl || 'https://alcs-dev-portal.apps.silver.devops.gov.bc.ca' }}
ALCS_BASE_URL: ${{ inputs.alcsBaseUrl || 'https://alcs-dev.apps.silver.devops.gov.bc.ca' }}
BCEID_BASIC_USERNAME: ${{ secrets.BCEID_BASIC_USERNAME }}
BCEID_BASIC_PASSWORD: ${{ secrets.BCEID_BASIC_PASSWORD }}
run: npx playwright test
Expand Down
41 changes: 28 additions & 13 deletions alcs-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions alcs-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@bcgov/bc-sans": "^2.1.0",
"@ng-matero/extensions": "^17.2.0",
"@ng-select/ng-option-highlight": "^12.0.6",
"@types/validator": "^13.12.0",
"angular-mentions": "^1.5.0",
"jwt-decode": "^4.0.0",
"moment": "^2.30.1",
Expand All @@ -38,6 +39,7 @@
"rxjs": "~7.8.1",
"source-map-support": "^0.5.21",
"tslib": "^2.6.2",
"validator": "^13.12.0",
"zone.js": "~0.14.4"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ <h4>{{ title }} Government</h4>
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
[matChipInputAddOnBlur]="true"
(matChipInputTokenEnd)="addEmail($event)"
[formControl]="email"
/>
</mat-form-field>
<mat-error *ngIf="email.invalid"><mat-icon>warning</mat-icon>&nbsp;Please type a valid email address</mat-error>
</div>

<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@
.mat-mdc-form-field-infix {
display: flex;
}

mat-error {
display: flex;
font-size: 15px;
font-weight: bold;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { LocalGovernmentDto } from '../../../../services/admin-local-government/
import { AdminLocalGovernmentService } from '../../../../services/admin-local-government/admin-local-government.service';
import { ApplicationRegionDto } from '../../../../services/application/application-code.dto';
import { ApplicationService } from '../../../../services/application/application.service';
import { FormControl } from '@angular/forms';
import { strictEmailValidator } from '../../../../shared/validators/email-validator';

@Component({
selector: 'app-admin-local-government-dialog',
Expand All @@ -29,6 +31,8 @@ export class LocalGovernmentDialogComponent implements OnInit, OnDestroy {
};
regions: ApplicationRegionDto[] = [];

email = new FormControl<string | null>(null, [strictEmailValidator]);

isLoading = false;

constructor(
Expand All @@ -48,7 +52,7 @@ export class LocalGovernmentDialogComponent implements OnInit, OnDestroy {
}

ngOnInit(): void {
if (this.data) {
if (Object.keys(this.data).length !== 0) {
this.model = {
...this.data,
isFirstNation: this.data.isFirstNation ? 'true' : 'false',
Expand Down Expand Up @@ -100,6 +104,10 @@ export class LocalGovernmentDialogComponent implements OnInit, OnDestroy {
}

addEmail(event: MatChipInputEvent): void {
if (this.email.invalid) {
return;
}

const value = (event.value || '').trim();
if (value) {
this.model.emails.push(value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<div class="applicant-info">
<div *ngIf="application && submission">
<div *ngIf="submission.returnedComment" class="comment-container">
<div><strong>Comment for Applicant</strong></div>
{{ submission.returnedComment }}
</div>

<app-application-details
[submission]="submission"
[fileNumber]="fileNumber"
[applicationType]="application.type.code"
[isSubmittedToAlc]="isSubmittedToAlc"
[wasSubmittedToLfng]="wasSubmittedToLfng"
[showEdit]="true"
></app-application-details>
</div>
<div class="center">
<mat-spinner *ngIf="!application || !submission"></mat-spinner>
<div *ngIf="application && submission">
<div *ngIf="submission.returnedComment" class="comment-container">
<div><strong>Comment for Applicant</strong></div>
{{ submission.returnedComment }}
</div>
<app-application-details
[submission]="submission"
[fileNumber]="fileNumber"
[applicationType]="application.type.code"
[isSubmittedToAlc]="isSubmittedToAlc"
[wasSubmittedToLfng]="wasSubmittedToLfng"
[showEdit]="true"
></app-application-details>
</div>
<div class="center">
<mat-spinner *ngIf="!application || !submission"></mat-spinner>
</div>
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@use '../../../../styles/colors';

.applicant-info {
& > div {
margin: 12px 0;
}
}

.subheading1 {
margin-bottom: 4px !important;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<div class="split header">
<h3>Applicant Info</h3>
</div>
<section>
<app-parcel *ngIf="submission" [application]="submission"></app-parcel>
<div class="review-table edit-section">
Expand All @@ -9,7 +12,7 @@
</div>
</section>
<section>
<h3>Other Owned Parcels</h3>
<h4>Other Owned Parcels</h4>
<div *ngIf="submission" class="review-table">
<div class="subheading2 grid-1">
Do any of the land owners added previously own or lease other parcels that might inform this application process?
Expand Down Expand Up @@ -39,7 +42,7 @@ <h3>Other Owned Parcels</h3>
</div>
</section>
<section>
<h3>Primary Contact Information</h3>
<h4>Primary Contact Information</h4>
<div *ngIf="submission" class="review-table">
<div class="subheading2 grid-1">Type</div>
<div class="grid-double" data-testid="primary-contact-type">
Expand Down Expand Up @@ -93,10 +96,10 @@ <h3>Primary Contact Information</h3>
</div>
</section>
<section *ngIf="showFullApp">
<h3>Land Use</h3>
<h4>Land Use</h4>
<div *ngIf="submission" class="review-table">
<div class="full-width">
<h4>Land Use of Parcel(s) under Application</h4>
<h5>Land Use of Parcel(s) under Application</h5>
</div>
<div class="subheading2 grid-1">Describe all agriculture that currently takes place on the parcel(s).</div>
<div class="grid-double" data-testid="parcels-agriculture-description">
Expand All @@ -111,7 +114,7 @@ <h4>Land Use of Parcel(s) under Application</h4>
{{ submission.parcelsNonAgricultureUseDescription }}
</div>
<div class="full-width">
<h4>Land Use of Adjacent Parcels</h4>
<h5>Land Use of Adjacent Parcels</h5>
</div>
<div class="adjacent-parcels full-width">
<div class="grid-1 subheading2"></div>
Expand Down Expand Up @@ -154,7 +157,7 @@ <h4>Land Use of Adjacent Parcels</h4>
</div>
</section>
<section *ngIf="showFullApp">
<h3>Proposal</h3>
<h4>Proposal</h4>
<app-nfu-details
*ngIf="submission && applicationType === 'NFUP'"
[applicationSubmission]="submission"
Expand Down Expand Up @@ -217,7 +220,7 @@ <h3>Proposal</h3>
</div>
</section>
<section *ngIf="showFullApp">
<h3>Optional Documents</h3>
<h4>Optional Documents</h4>
<div *ngIf="submission" class="review-table">
<div class="other-attachments full-width">
<div class="grid-1 subheading2">File Name</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
.adjacent-parcels {
display: grid;
grid-template-columns: 1fr 1fr 2fr;
overflow-x: auto;
grid-column-gap: 36px;
grid-row-gap: 12px;

Expand Down Expand Up @@ -118,3 +117,7 @@
.edit-section {
margin-top: -40px;
}

.header {
margin-bottom: 42px;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h3 class="flex-item">
<h4 class="flex-item">
{{ pageTitle }}
</h3>
</h4>

<div class="review-table">
<div *ngIf="!parcels" class="center full-width">
Expand All @@ -9,7 +9,7 @@ <h3 class="flex-item">

<ng-container *ngFor="let parcel of parcels; let parcelInd = index">
<div class="full-width flex-space-between-wrap">
<h4 [id]="parcel.uuid">Parcel #{{ parcelInd + 1 }}</h4>
<h5 [id]="parcel.uuid">Parcel #{{ parcelInd + 1 }}</h5>
</div>
<div class="subheading2 grid-1">Ownership Type</div>
<div class="grid-double" [attr.data-testid]="'parcel-' + (parcelInd + 1) + '-type'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
[reconsiderations]="reconsiderations"
[showStatus]="true"
[submissionStatusService]="applicationStatusService"
[applicationDetailService]="applicationDetailService"
[applicationSubmissionService]="applicationSubmissionService"
days="Business Days"
heading="Application"
></app-details-header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export class ApplicationComponent implements OnInit, OnDestroy {
showSubmittedToLfngMenuItems = false;

constructor(
private applicationDetailService: ApplicationDetailService,
private applicationSubmissionService: ApplicationSubmissionService,
public applicationDetailService: ApplicationDetailService,
public applicationSubmissionService: ApplicationSubmissionService,
private reconsiderationService: ApplicationReconsiderationService,
private modificationService: ApplicationModificationService,
private route: ActivatedRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
[value]="component.alrArea?.toString()"
(save)="onSaveAlrArea($event)"
[decimals]="5"
[nonZeroEmptyValidation]="nonZeroEmptyValidation"
></app-inline-number>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ApplicationDecisionComponentDto } from '../../../../../../services/appl
export class BasicComponent {
@Input() component!: ApplicationDecisionComponentDto;
@Input() fillRow = false;
@Input() nonZeroEmptyValidation = false;
@Output() saveAlrArea = new EventEmitter<string | null>();

constructor() {}
Expand Down
Loading
Loading