Skip to content
Merged

Dev #1972

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5f17bd3
AB#31104: Add RelatedEntitySubType to Contacts Table
aurelio-aot Jan 29, 2026
7573601
Merge branch 'dev' into feature/AB#31104-Add-Contacts-Table
aurelio-aot Jan 29, 2026
7b46fb9
AB#8721: Applicant Profile Submissions Tab Initial Draft
aurelio-aot Jan 30, 2026
8394674
AB#31104 - update contacts to linking table
AndreGAot Jan 30, 2026
b1306d7
Update applications/Unity.GrantManager/src/Unity.GrantManager.EntityF…
AndreGAot Jan 30, 2026
ba85439
AB#31149 add migration and updated get_formversion_data.sql
AndreGAot Jan 31, 2026
11ed262
AB#31104 remove the user secrets id
AndreGAot Jan 31, 2026
50f1d51
AB#8721: Fix layout issue and FILTER button bug and sonarqube issues
aurelio-aot Jan 31, 2026
5710263
AB#8721: Make data mapping identical to GrantApplications page
aurelio-aot Feb 1, 2026
f6bc955
Merge pull request #1961 from bcgov/feature/AB#31104-Add-Contacts-Table
JamesPasta Feb 3, 2026
d621a6f
Merge pull request #1962 from bcgov/feature/AB#8721-ApplicantProfile-…
JamesPasta Feb 3, 2026
63f6d38
Merge pull request #1963 from bcgov/bugfix/AB#31149-submission-incorr…
JamesPasta Feb 3, 2026
197c7c2
AB#31140 - Bugfix - Reset to default ordering on Clear Filter
plavoie-BC Feb 3, 2026
f7fb806
AB#31140 - Bugfix - SonarQube cleanup
plavoie-BC Feb 3, 2026
e6a480b
Merge pull request #1968 from bcgov/bugfix/AB#31140-default-ordering-…
JamesPasta Feb 4, 2026
95d0901
feature/AB#Cypress-e2e-basicEmail-configuration
Stephan-McColm Feb 4, 2026
a6a90dd
Merge pull request #1969 from bcgov/feature/AB#Cypress-e2e-basicEmail…
DarylTodosichuk Feb 4, 2026
2fe1959
AB#30735 - Add Unity Application ID email template variable and updat…
plavoie-BC Feb 4, 2026
6f4d6ed
feature/AB#31786-Fix-ChefsData-Cypress-Spec-and-update-cypress-pipeli…
Stephan-McColm Feb 4, 2026
e60671d
Merge pull request #1971 from bcgov/feature/AB#31786-Fix-ChefsData-Cy…
DarylTodosichuk Feb 4, 2026
6bd48be
Merge branch 'dev' into feature/AB#30735-UAID-template-variable
plavoie-BC Feb 4, 2026
ac2b07e
Merge pull request #1970 from bcgov/feature/AB#30735-UAID-template-va…
JamesPasta Feb 5, 2026
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
5 changes: 4 additions & 1 deletion applications/Unity.AutoUI/cypress.pipeline.env.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"test1username": "{{test1username}}",
"test1password": "{{test1password}}",
"test2username": "{{test2username}}",
"test2password": "{{test2password}}"
"test2password": "{{test2password}}",
"TEST_EMAIL_TO": "{{test_email_to}}",
"TEST_EMAIL_CC": "{{test_email_CC}}",
"TEST_EMAIL_BCC": "{{test_email_BCC}}"
}
6 changes: 3 additions & 3 deletions applications/Unity.AutoUI/cypress/e2e/basicEmail.cy.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// cypress/e2e/basicEmail.cy.ts

describe('Send an email', () => {
const TEST_EMAIL_TO = 'grantmanagementsupport@gov.bc.ca'
const TEST_EMAIL_CC = 'UnitySupport@gov.bc.ca'
const TEST_EMAIL_BCC = 'UNITYSUP@Victoria1.gov.bc.ca'
const TEST_EMAIL_TO = Cypress.env('TEST_EMAIL_TO') as string
const TEST_EMAIL_CC = Cypress.env('TEST_EMAIL_CC') as string
const TEST_EMAIL_BCC = Cypress.env('TEST_EMAIL_BCC') as string
const TEMPLATE_NAME = 'Test Case 1'
const STANDARD_TIMEOUT = 20000

Expand Down
368 changes: 172 additions & 196 deletions applications/Unity.AutoUI/cypress/e2e/chefsdata.cy.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public async Task SeedAsync(DataSeedContext context)
new EmailTempateVariableDto { Name = "Signing Authority Title", Token = "signing_authority_title", MapTo = "signingAuthorityTitle" },
new EmailTempateVariableDto { Name = "Applicant ID", Token = "applicant_id", MapTo = "applicant.unityApplicantId" },
new EmailTempateVariableDto { Name = "Requested Amount", Token = "requested_amount", MapTo = "requestedAmount" },
new EmailTempateVariableDto { Name = "Recommended Amount", Token = "recommended_amount", MapTo = "recommendedAmount" }
new EmailTempateVariableDto { Name = "Recommended Amount", Token = "recommended_amount", MapTo = "recommendedAmount" },
new EmailTempateVariableDto { Name = "Unity Application ID", Token = "unity_application_id", MapTo = "unityApplicationId" }
};

try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@
*/
clearFilters: function () {
let dt = this.s.dt;
let externalSearchId = dt.init().externalSearchInputId;
let dtInit = dt.init();
let externalSearchId = dtInit.externalSearchInputId;
let initialSortOrder = (dtInit && dtInit.order) ? dtInit.order : [];

// Clear external search
if (externalSearchId) {
Expand All @@ -391,10 +393,10 @@
$('.custom-filter-input').val('');

// Clear DataTable searches
dt.search('').columns().search('').draw();
dt.search('').columns().search('');

// Clear order
dt.order([]).draw();
dt.order(initialSortOrder);

// Reload data
dt.ajax.reload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
"Summary:Application.ProjectBudget": "Total Project Budget",
"Summary:Application.Sector": "Sector",
"Summary:Application.Owner": "Owner",
"Summary:Application.UnityApplicationId": "Unity Application Id",
"Summary:Application.UnityApplicationId": "Unity Application ID",
"Summary:Application.Assignees": "Assignees",
"Summary:Assessment.Status": "Status",
"Summary:Assessment.LikelihoodOfFunding": "Likelihood Of Funding",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ Task<List<Application>> WithFullDetailsAsync(
DateTime? submittedToDate = null,
string? searchTerm = null // optional search filter
);

// Get applications by applicant ID
Task<List<Application>> GetByApplicantIdAsync(Guid applicantId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ namespace Unity.GrantManager.Contacts;

public class Contact : AuditedAggregateRoot<Guid>, IMultiTenant
{
public bool IsPrimary { get; set; } = false;
public string RelatedEntityType { get; set; } = string.Empty;
public Guid RelatedEntityId { get; set; }
public string Name { get; set; } = string.Empty;
public string? Title { get; set; }
public string? Email { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Unity.GrantManager.Contacts;

public class ContactLink : AuditedAggregateRoot<Guid>, IMultiTenant
{
public Guid ContactId { get; set; }
public string RelatedEntityType { get; set; } = string.Empty;
public Guid RelatedEntityId { get; set; }
public string? Role { get; set; }
public bool IsPrimary { get; set; } = false;
public bool IsActive { get; set; } = true;
public Guid? TenantId { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;
using Volo.Abp.Domain.Repositories;

namespace Unity.GrantManager.Contacts;

public interface IContactLinkRepository : IRepository<ContactLink, Guid>
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;
using Volo.Abp.Domain.Repositories;

namespace Unity.GrantManager.Contacts;

public interface IContactRepository : IRepository<Contact, Guid>
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class GrantTenantDbContext : AbpDbContext<GrantTenantDbContext>
public DbSet<ApplicationLink> ApplicationLinks { get; set; }
public DbSet<Tag> Tags { get; set; }
public DbSet<Contact> Contacts { get; set; }
public DbSet<ContactLink> ContactLinks { get; set; }
#endregion

public GrantTenantDbContext(DbContextOptions<GrantTenantDbContext> options) : base(options)
Expand Down Expand Up @@ -330,6 +331,22 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
b.Property(x => x.WorkPhoneExtension).HasMaxLength(50);
});

modelBuilder.Entity<ContactLink>(b =>
{
b.ToTable(GrantManagerConsts.TenantTablePrefix + "ContactLinks",
GrantManagerConsts.DbSchema);

b.ConfigureByConvention();

b.HasOne<Contact>().WithMany().HasForeignKey(x => x.ContactId).IsRequired();

b.Property(x => x.RelatedEntityType).IsRequired().HasMaxLength(100);
b.Property(x => x.Role).HasMaxLength(100);

b.HasIndex(x => new { x.ContactId, x.RelatedEntityType, x.RelatedEntityId });
b.HasIndex(x => new { x.RelatedEntityType, x.RelatedEntityId });
});

var allEntityTypes = modelBuilder.Model.GetEntityTypes();
foreach (var type in allEntityTypes.Where(t => t.ClrType != typeof(ExtraPropertyDictionary)).Select(t => t.ClrType))
{
Expand Down
Loading
Loading