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

R3.2.0->master #2258

Merged
merged 38 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
66de612
Merge pull request #2257 from bcgov/master
ytqsl May 31, 2024
deb2b5d
EMBCESSMOD-5497: Make text bold
May 31, 2024
7a1adb0
EMBCESSMOD-5494: Fix spelling mistake
May 31, 2024
2f1d18c
Merge pull request #2260 from HemanthKona/stories/EMBCESSMOD-5494-fix…
ytqsl May 31, 2024
ceea88b
Merge pull request #2259 from HemanthKona/stories/EMBCESSMOD-5497-tex…
ytqsl May 31, 2024
5b793e4
EMBCESSMOD-5509: fix localize reference for datepicker
josephweinkam May 31, 2024
a93257a
linting
josephweinkam May 31, 2024
9b45d03
Merge pull request #2261 from josephweinkam/release/R3.2.0
josephweinkamgov May 31, 2024
792cb9b
EMBCESSMOD-5427 - Responder - Add/Edit Household Members - Duplicate …
May 31, 2024
f09af73
EMBCESSMOD-5485: changed overlapping supports checks to be for the en…
ytqsl May 31, 2024
133d2fd
Merge pull request #2262 from TimaQT/features/timaqt/EMBCESSMOD-5427
ytqsl May 31, 2024
e4dce7c
Merge pull request #2263 from ytqsl/release/R3.2.0
ytqsl May 31, 2024
8c103c8
EMBCESSMOD-5515: fix for removed household members still display in S…
ytqsl Jun 1, 2024
21e726a
EMBCESSMOD-5512: fix for able to add household member and receive sup…
ytqsl Jun 1, 2024
fc04f3a
EMBCESSMOD-5511: fix for Clothing & Incidentals supports being provid…
ytqsl Jun 1, 2024
5d2f7a6
Merge pull request #2264 from ytqsl/release/R3.2.0
ytqsl Jun 1, 2024
837e24a
EMBCESSMOD-5517: fix for 'Support Extensions Available' is displayed …
ytqsl Jun 3, 2024
2df3374
EMBCESSMOD-5520: fix for eligibility check loading incorrectly
ytqsl Jun 3, 2024
46a0e1e
EMBCESSMOD-5441: Responders management list checkbox color fix
Jun 3, 2024
ef1f802
Merge pull request #2266 from ytqsl/release/R3.2.0
ytqsl Jun 3, 2024
7f0e7c7
Merge pull request #2267 from HemanthKona/stories/EMBCESSMOD-5441-res…
ytqsl Jun 3, 2024
97485cf
EMBCESSMOD-5518: show go back button on the support details step
Jun 3, 2024
33ebe3e
EMBCESSMOD-5494 - View Support button fixed;
Jun 3, 2024
7f6a277
EMBCESSMOD-5481 - Update your details - CSS div Fix
Jun 3, 2024
3c1e74c
Merge pull request #2268 from HemanthKona/stories/EMBCESSMOD-5518-sel…
ytqsl Jun 3, 2024
a3388b5
EMBCESSMOD-5511, 5516 Fix showing UnavailableOneTimeuse message
Jun 3, 2024
3140e1c
Merge pull request #2276 from HemanthKona/stories/EMBCESSMOD-5511-fix…
ytqsl Jun 3, 2024
e35ada0
Merge pull request #2272 from TimaQT/features/timaqt/EMBCESSMOD-5494
ytqsl Jun 3, 2024
66f0bc6
Merge pull request #2270 from TimaQT/features/timaqt/EMBCESSMOD-5481
ytqsl Jun 3, 2024
24a255d
EMBCESSMOD-5521: duplicate supports check timezone fix
josephweinkam Jun 3, 2024
7446a58
Merge pull request #2289 from josephweinkam/release/R3.2.0
josephweinkamgov Jun 3, 2024
7bb7223
EMBCESSMOD-5519: refactor and changes to fix evacuee enters self-serv…
ytqsl Jun 4, 2024
d2464f2
nuget package updates
ytqsl Jun 4, 2024
4ba5633
EMBCESSMOD-5523: calculate check compliance flags in parallel
josephweinkam Jun 4, 2024
675b405
Merge pull request #2290 from ytqsl/release/R3.2.0
ytqsl Jun 4, 2024
97850aa
Merge pull request #2291 from josephweinkam/release/R3.2.0
josephweinkamgov Jun 4, 2024
0f3e6d2
EMBCESSMOD-5519: fixed shelter allowance and groceries date calculations
ytqsl Jun 4, 2024
6e9df12
Merge pull request #2292 from ytqsl/release/R3.2.0
ytqsl Jun 4, 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
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ private async Task<SelfServeSupportEligibility> ValidateEligibility(ValidateSelf
}

// check if household member composition changed from the last needs assessment
var previousNeedsAssessment = ctx.era_needassessments
var initialNeedsAssessment = ctx.era_needassessments
.Expand(na => na.era_era_householdmember_era_needassessment)
.Where(na => na.era_needassessmentid != currentNeedsAssessment.era_needassessmentid && na.era_EvacuationFile.era_evacuationfileid == file.era_evacuationfileid).OrderByDescending(na => na.createdon).FirstOrDefault();
if (previousNeedsAssessment != null)
.Where(na => na.era_needassessmentid != currentNeedsAssessment.era_needassessmentid && na.era_EvacuationFile.era_evacuationfileid == file.era_evacuationfileid).OrderBy(na => na.createdon).FirstOrDefault();
if (initialNeedsAssessment != null)
{
if (previousNeedsAssessment.era_era_householdmember_era_needassessment.Count < currentNeedsAssessment.era_era_householdmember_era_needassessment.Count)
if (initialNeedsAssessment.era_era_householdmember_era_needassessment.Count < currentNeedsAssessment.era_era_householdmember_era_needassessment.Count)
{
// current needs assessment has more household members than previous needs assessment
return NotEligible("Current needs assessment has more household members from the previous needs asessment",
Expand All @@ -134,7 +134,7 @@ private async Task<SelfServeSupportEligibility> ValidateEligibility(ValidateSelf
#pragma warning disable S3267 // Loops should be simplified with "LINQ" expressions
foreach (var householdMember in currentNeedsAssessment.era_era_householdmember_era_needassessment)
{
var previouseHouseholdMember = previousNeedsAssessment.era_era_householdmember_era_needassessment.SingleOrDefault(hm => hm.era_householdmemberid == householdMember.era_householdmemberid);
var previouseHouseholdMember = initialNeedsAssessment.era_era_householdmember_era_needassessment.SingleOrDefault(hm => hm.era_householdmemberid == householdMember.era_householdmemberid);
if (previouseHouseholdMember == null)
{
// not found in previous needs assessment
Expand Down Expand Up @@ -314,6 +314,8 @@ private static SelfServeSupportType MapSupportTypeToSelfServeSupportType(Support

private static async Task<IEnumerable<era_evacueesupport>> GetDuplicateSupportsForHouseholdMember(EssContext ctx, era_householdmember hm, int[] similarSupportTypes, DateTimeOffset eligibleFrom, DateTimeOffset eligibleTo, CancellationToken ct)
{
eligibleFrom = eligibleFrom.Date;
eligibleTo = eligibleTo.Date;
return await ctx.era_evacueesupports
.WhereNotIn(s => s.statuscode.Value, [(int)Resources.Supports.SupportStatus.Cancelled, (int)Resources.Supports.SupportStatus.Void])
.WhereIn(s => s.era_supporttype.Value, similarSupportTypes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,14 @@ public async Task<DraftSelfServeSupportQueryResponse> Handle(DraftSelfServeSuppo
IEnumerable<SelfServeSupport> supports;
if (query.Items == null)
{
//generate the supports based on the file
//generate the supports based on the needs assessment
var response = (GenerateSelfServeSupportsResponse)await supportingEngine.Generate(new GenerateSelfServeSupports(
mapper.Map<IEnumerable<SelfServeSupportType>>(file.NeedsAssessment.EligibilityCheck.SupportSettings.Select(s => s.Type)),
mapper.Map<IEnumerable<SelfServeSupportType>>(file.NeedsAssessment.EligibilityCheck.SupportSettings.Where(s => s.State == Resources.Evacuations.SelfServeSupportEligibilityState.Available).Select(s => s.Type)),
task.StartDate.ToPST(),
task.EndDate.ToPST(),
file.NeedsAssessment.EligibilityCheck.From.Value.ToPST(),
file.NeedsAssessment.EligibilityCheck.To.Value.ToPST(),
file.HouseholdMembers.Select(hm => new SelfServeHouseholdMember(hm.Id, hm.IsMinor)).ToList()));
file.NeedsAssessment.HouseholdMembers.Select(hm => new SelfServeHouseholdMember(hm.Id, hm.IsMinor)).ToList()));
supports = response.Supports;
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public async Task CheckSupportComplianceRequest_OneDuplicate_FlagReturned(Suppor
{
var fileId = TestData.EvacuationFileId;
var householdMembers = TestData.HouseholdMemberIds;
//var initialSupport = new ShelterHotelSupport { FileId = fileId, SupportDelivery = new Referral(), NumberOfNights = 3, NumberOfRooms = 3 };
//var duplicatedSupport = new ShelterAllowanceSupport { FileId = fileId, SupportDelivery = new Interac(), TotalAmount = 100m };
await DuplicateCheck(fileId, householdMembers, initialSupport, duplicatedSupport, TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(5));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,20 @@ public async Task ValidateEligibility_DuplicateSupports_False()
await RunEligibilityTest(file2.Id, false, "Overlapping supports found");
}

[Fact]
public async Task ValidateEligibility_DuplicateSupportsSameDay_False()
{
var (file1, registrant) = await CreateTestSubjects(taskNumber: TestData.SelfServeActiveTaskId, homeAddress: TestHelper.CreateSelfServeEligibleAddress());
var previousSupports = new[]
{
new ShelterAllowanceSupport{FileId = file1.Id, From = DateTime.Now.AddHours(-72), To = DateTime.Now.AddMinutes(30), IncludedHouseholdMembers = file1.NeedsAssessment.HouseholdMembers.Select(hm=>hm.Id), SupportDelivery = new Referral() }
};
await SaveSupports(file1.Id, previousSupports);

var (file2, _) = await CreateTestSubjects(taskNumber: TestData.SelfServeActiveTaskId, homeAddress: TestHelper.CreateSelfServeEligibleAddress(), existingRegistrant: registrant);
await RunEligibilityTest(file2.Id, false, "Overlapping supports found");
}

[Fact]
public async Task ValidateEligibility_NotDuplicateSupport_True()
{
Expand Down Expand Up @@ -206,13 +220,30 @@ public async Task ValidateExtensionEligibility_NonExtensibleSupport_True()
};
await SaveSupports(file.Id, previousSupports);

await Task.Delay(1000);
await UpdateTestFile(file);

var eligibility2 = await RunEligibilityTest(file.Id, true);
eligibility2.EligibleSupportTypes.ShouldNotContain(SelfServeSupportType.Incidentals);
eligibility2.OneTimePastSupportTypes.ShouldBe([SelfServeSupportType.Incidentals]);
}

[Fact]
public async Task ValidateExtensionEligibility_FileUpdatedTwiceWithMoreHouseholdMembers_False()
{
var (file, _) = await CreateTestSubjects(numberOfHoldholdMembers: 2, needs: [IdentifiedNeed.Food], homeAddress: TestHelper.CreateSelfServeEligibleAddress());

var newHouseholdMember = file.HouseholdMembers.Last() with { Id = null, IsPrimaryRegistrant = false, DateOfBirth = "1/19/2002" };
await UpdateTestFile(file, householdMembers: file.NeedsAssessment.HouseholdMembers.Append(newHouseholdMember));
await RunEligibilityTest(file.Id, false, "Current needs assessment has more household members from the previous needs asessment");

await Task.Delay(1000);

await UpdateTestFile(file);

await RunEligibilityTest(file.Id, false, "Current needs assessment has more household members from the previous needs asessment");
}

[Fact]
public async Task ValidateEligibility_PreviousOnetimeSupports_TrueWithoutOneTimeSupports()
{
Expand All @@ -222,8 +253,8 @@ public async Task ValidateEligibility_PreviousOnetimeSupports_TrueWithoutOneTime
new ClothingSupport
{
FileId = file1.Id,
From = DateTime.Now.AddDays(-3).AddHours(-3),
To = DateTime.Now.AddHours(-3),
From = DateTime.Now.AddDays(-4).AddHours(-3),
To = DateTime.Now.AddDays(-1).AddHours(-3),
IncludedHouseholdMembers = file1.NeedsAssessment.HouseholdMembers.Select(hm=>hm.Id),
SupportDelivery = new Referral()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ public async System.Threading.Tasks.Task CanGetTaskWithSelfServeSupports()
task.Id.ShouldBe(TestData.SelfServeActiveTaskId);
task.Status.ShouldBe(EMBC.ESS.Resources.Tasks.TaskStatus.Active);
task.EnabledSupports.ShouldNotBeEmpty();
task.SelfServeEnabled.ShouldBeTrue();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ public record EvacuationFile
public string? SecretPhrase { get; set; }
public bool? SecretPhraseEdited { get; set; }
public DateTime LastModified { get; set; }
public IEnumerable<Support> Supports { get; set; } = Array.Empty<Support>();
public IEnumerable<Support> Supports { get; set; } = [];
public string? ManualFileId { get; set; }
public bool? IsPaper { get; set; }
public bool SelfServeEnabled { get; set; }
}

/// <summary>
Expand All @@ -179,10 +180,10 @@ public record NeedsAssessment
[Required]
public InsuranceOption Insurance { get; set; }

public IEnumerable<HouseholdMember> HouseholdMembers { get; set; } = Array.Empty<HouseholdMember>();
public IEnumerable<Pet> Pets { get; set; } = Array.Empty<Pet>();
public IEnumerable<HouseholdMember> HouseholdMembers { get; set; } = [];
public IEnumerable<Pet> Pets { get; set; } = [];
public NeedsAssessmentType Type { get; set; }
public IEnumerable<IdentifiedNeed> Needs { get; set; } = Array.Empty<IdentifiedNeed>();
public IEnumerable<IdentifiedNeed> Needs { get; set; } = [];
}

[JsonConverter(typeof(JsonStringEnumConverter))]
Expand Down Expand Up @@ -321,7 +322,7 @@ public abstract record Support

public abstract SupportSubCategory SubCategory { get; }

public IEnumerable<string> IncludedHouseholdMembers { get; set; } = Array.Empty<string>();
public IEnumerable<string> IncludedHouseholdMembers { get; set; } = [];
public string? ManualReferralId { get; set; }

public SupportMethod Method { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public Mappings()
.ForMember(d => d.SecretPhrase, opts => opts.MapFrom(s => s.SecurityPhrase))
.ForMember(d => d.SecretPhraseEdited, opts => opts.MapFrom(s => false))
.ForMember(d => d.LastModified, opts => opts.MapFrom(s => s.NeedsAssessment.CompletedOn))
.ForMember(d => d.SelfServeEnabled, opts => opts.MapFrom(s => s.RelatedTask != null && s.RelatedTask.SelfServeEnabled))
;

CreateMap<ESS.Shared.Contracts.Events.Support, Support>()
Expand Down
8 changes: 6 additions & 2 deletions registrants/src/UI/embc-registrant/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@
"proxyConfig": "proxy.conf.json",
"buildTarget": "embc-registrant:build:local"
},
"dev": {
"proxyConfig": "proxy.dev.conf.json",
"dev-prj": {
"proxyConfig": "proxy.dev-prj.conf.json",
"buildTarget": "embc-registrant:build:local"
},
"dev-sup": {
"proxyConfig": "proxy.dev-sup.conf.json",
"buildTarget": "embc-registrant:build:local"
},
"production": {
Expand Down
10 changes: 6 additions & 4 deletions registrants/src/UI/embc-registrant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --port 5200 --configuration=dev",
"startlocal": "npm run gen-api-local && ng serve --port 5200 --configuration=local",
"start-prj": "ng serve --port 5200 --configuration=dev-prj",
"start-sup": "ng serve --port 5200 --configuration=dev-sup",
"start": "ng serve --port 5200 --configuration=local",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"format:write": "prettier . --write",
"e2e": "ng e2e",
"gen-api": "ng-openapi-gen -i https://dev-era-evacuees.apps.silver.devops.gov.bc.ca/api/openapi/v1/openapi.json -o ./src/app/core/api --ignoreUnusedModels false && npm run format:write",
"gen-api-local": "ng-openapi-gen -i http://localhost:5020/api/openapi/v1/openapi.json -o ./src/app/core/api --ignoreUnusedModels false"
"gen-api-prj": "ng-openapi-gen -i https://dev-prj-era-evacuees.apps.silver.devops.gov.bc.ca/api/openapi/v1/openapi.json -o ./src/app/core/api --ignoreUnusedModels false && npm run format:write",
"gen-api-sup": "ng-openapi-gen -i https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca/api/openapi/v1/openapi.json -o ./src/app/core/api --ignoreUnusedModels false && npm run format:write",
"gen-api-local": "ng-openapi-gen -i http://localhost:5020/api/openapi/v1/openapi.json -o ./src/app/core/api --ignoreUnusedModels false && npm run format:write"
Dismissed Show dismissed Hide dismissed
},
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion registrants/src/UI/embc-registrant/proxy.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"logLevel": "debug"
},
"/env/info.json": {
"target": "https://dev-era-evacuees.apps.silver.devops.gov.bc.ca",
"target": "https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
{
"/api": {
"target": "https://dev-era-evacuees.apps.silver.devops.gov.bc.ca",
"target": "https://dev-prj-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/login": {
"target": "https://dev-era-evacuees.apps.silver.devops.gov.bc.ca",
"target": "https://dev-prj-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/token": {
"target": "https://dev-era-evacuees.apps.silver.devops.gov.bc.ca",
"target": "https://dev-prj-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/signin-oidc": {
"target": "https://dev-era-evacuees.apps.silver.devops.gov.bc.ca",
"target": "https://dev-prj-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/join": {
"target": "https://dev-era-evacuees.apps.silver.devops.gov.bc.ca",
"target": "https://dev-prj-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"logLevel": "debug"
},
"/env/info.json": {
"target": "https://dev-era-evacuees.apps.silver.devops.gov.bc.ca",
"target": "https://dev-prj-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/version": {
"target": "https://dev-era-evacuees.apps.silver.devops.gov.bc.ca",
"target": "https://dev-prj-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
Expand Down
43 changes: 43 additions & 0 deletions registrants/src/UI/embc-registrant/proxy.dev-sup.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"/api": {
"target": "https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/login": {
"target": "https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/token": {
"target": "https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/signin-oidc": {
"target": "https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/join": {
"target": "https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"logLevel": "debug"
},
"/env/info.json": {
"target": "https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/version": {
"target": "https://dev-sup-era-evacuees.apps.silver.devops.gov.bc.ca",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface EvacuationFile {
needsAssessment: NeedsAssessment;
secretPhrase?: string | null;
secretPhraseEdited?: boolean | null;
selfServeEnabled?: boolean;
status?: EvacuationFileStatus;
supports?: Array<
| ClothingSupport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div style="text-align: center; padding: 0 var(--size-2)">
<h1 mat-dialog-title>Revised Needs Assessment Submitted</h1>
<p class="card-heading">
For {{ supportType }}, please connect with an ESS Responder or proceed to your closet Reception Center.
For {{ supportType }}, please connect with an ESS Responder or proceed to your closest Reception Center.
</p>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<mat-dialog-content>
<h1 mat-dialog-title>ESS File Successfully Updated</h1>
<p class="card-heading">
For Supports, please connect with an ESS Responder or proceed to your closet Reception Center.
For Supports, please connect with an ESS Responder or proceed to your closest Reception Center.
</p>
</mat-dialog-content>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
<span class="evacuatedSecondary">Evacuated From</span>
<mat-card-title class="evacuatedTitle">
{{ evacuationFileCard?.evacuatedAddress?.community?.name }}
@if ([EvacuationFileStatus.Active].includes(evacuationFileCard?.status) && hasNoSupports) {
@if ([EvacuationFileStatus.Active].includes(evacuationFileCard?.status) && hasNoSupports && canExtendSupports) {
<mat-chip disabled>Supports available</mat-chip>
} @else if ([EvacuationFileStatus.Active].includes(evacuationFileCard?.status) && !hasActiveSupports) {
} @else if (
[EvacuationFileStatus.Active].includes(evacuationFileCard?.status) && !hasActiveSupports && canExtendSupports
) {
<mat-chip disabled> Support extensions available</mat-chip>
}
</mat-card-title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class EvacuationCardComponent implements OnInit {

hasActiveSupports: boolean = false;
hasNoSupports: boolean = false;
canExtendSupports: boolean = false;

constructor(
private router: Router,
Expand All @@ -41,6 +42,8 @@ export class EvacuationCardComponent implements OnInit {
this.hasActiveSupports = this.evacuationFileDataService.hasActiveSupports(this.evacuationFileCard.supports);

this.hasNoSupports = this.evacuationFileDataService.hasNoSupports(this.evacuationFileCard.supports);

this.canExtendSupports = this.evacuationFileCard?.selfServeEnabled ?? false;
}

changeStatusColor(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</div>
<div style="flex: 1; color: #333">
<h2>Ensure Your Evacuation Details are Up-to-Date</h2>
<p>Verify the information provided below and update your ESS File if required.</p>
<p><b>Verify the information provided below and update your ESS File if required.</b></p>
</div>
<button style="width: 240px" mat-button class="button-p" (click)="gotoUpdateDetails()">
Update your Details
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,4 +643,11 @@ export const incidentalsNeedDialog: DialogContent = {
text: 'Incidentals could include items such as personal hygiene products like toothpaste, laundry soap and/or pet food.'
};

export const duplicateHouseholdMemberWarning: DialogContent = {
title: '<b>Duplicate Household Member Detected</b>',
text: `<p>It looks like the member you are trying to add already exists in the household.</p>
<p>Please review the existing members before proceeding.</p>`,
cancelButton: 'Close'
};

export const noAssistanceRequired = 'Household currently does not require assistance.';
Loading