Skip to content

Commit 065bc75

Browse files
Merge pull request #3075 from bcgov/dev
Dev
2 parents 64d1c66 + 1bca2c2 commit 065bc75

190 files changed

Lines changed: 4496 additions & 1423 deletions

File tree

Some content is hidden

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

‎applications/Unity.AutoUI/cypress/selectors/registry.json‎

Lines changed: 317 additions & 248 deletions
Large diffs are not rendered by default.

‎applications/Unity.AutoUI/scripts/selector-contract.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,6 @@ function runCli() {
232232
// Only run the CLI report when this file is executed directly
233233
// (`node scripts/selector-contract.mjs`) — not when imported as a module by
234234
// selector-diff-report.mjs.
235-
if (import.meta.url === `file://${process.argv[1]}`) {
235+
if (path.resolve(fileURLToPath(import.meta.url)) === path.resolve(process.argv[1] ?? "")) {
236236
runCli();
237237
}

‎applications/Unity.GrantManager/modules/Unity.AI/src/Unity.AI.Application/Unity.AI.Application.csproj‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
1111
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
1212
<PackageReference Include="NPOI" Version="2.7.5" />
13+
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.13" />
1314
<PackageReference Include="PdfPig" Version="0.1.15" />
1415
<PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="10.5.0" />
1516
<PackageReference Include="Volo.Abp.Mapperly" Version="10.5.0" />

‎applications/Unity.GrantManager/modules/Unity.AI/src/Unity.AI.Web/Menus/AIMenuContributor.cs‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
using Unity.AI.Localization;
44
using Unity.AI.Permissions;
55
using Unity.AI.Settings;
6-
using Unity.Modules.Shared.Navigation;
7-
using Unity.Modules.Shared.Specializations;
86
using Unity.Modules.Shared.Permissions;
97
using Volo.Abp.Features;
108
using Volo.Abp.Settings;
@@ -29,18 +27,6 @@ private static async Task ConfigureMainMenuAsync(MenuConfigurationContext contex
2927
var featureChecker = context.ServiceProvider.GetRequiredService<IFeatureChecker>();
3028
var settingProvider = context.ServiceProvider.GetRequiredService<ISettingProvider>();
3129

32-
var specializationChecker = context.ServiceProvider.GetRequiredService<ISpecializationChecker>();
33-
if (!await specializationChecker.IsEnabledAsync(SpecializationConsts.Onboarding))
34-
{
35-
await context.AddItemAsync(new ApplicationMenuItem(
36-
name: AIMenus.Prompts,
37-
displayName: "AI Prompts",
38-
url: "~/Prompts",
39-
icon: "fl fl-ai-prompts",
40-
order: 900
41-
).OnlyWhenInRole(IdentityConsts.ITOperationsRoleName));
42-
}
43-
4430
var currentUser = context.ServiceProvider.GetRequiredService<ICurrentUser>();
4531
var isItAdmin = currentUser.IsInRole(IdentityConsts.ITAdminRoleName);
4632

@@ -53,7 +39,6 @@ await context.AddItemAsync(new ApplicationMenuItem(
5339
name: AIMenus.Reporting,
5440
displayName: l["Menu:AIReporting"],
5541
url: "~/AIReporting",
56-
icon: "fl fl-view-dashboard",
5742
order: 9,
5843
requiredPermissionName: AIPermissions.Reporting.ReportingDefault
5944
));

‎applications/Unity.GrantManager/modules/Unity.AI/src/Unity.AI.Web/Pages/Prompts/Index.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
$(function () {
2+
if ($('#AIPromptsTable').length === 0) {
3+
return;
4+
}
5+
26
const l = abp.localization.getResource('AI');
37

48
// Prompt-level modals (create / edit prompt rows)
@@ -100,7 +104,7 @@ $(function () {
100104
reorderEnabled: false,
101105
languageSetValues: {},
102106
dataTableName: 'AIPromptsTable',
103-
dynamicButtonContainerId: 'dynamicButtonContainerId',
107+
dynamicButtonContainerId: $('#ai-prompts-dynamic-buttons').length ? 'ai-prompts-dynamic-buttons' : 'dynamicButtonContainerId',
104108
useNullPlaceholder: true,
105109
externalSearchId: 'search-prompts',
106110
fixedHeaders: true

‎applications/Unity.GrantManager/modules/Unity.AI/src/Unity.AI.Web/Views/Shared/Components/AIConfiguration/Default.cshtml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
<abp-button id="btn-save-ai-config"
1717
text="Save"
1818
icon-type="Other"
19-
icon="fl fl-save"
19+
icon="fa-regular fa-floppy-disk"
2020
class="btn unt-btn-primary btn-primary"
2121
button-type="Primary" />
2222
<abp-button id="btn-cancel-ai-config"
2323
class="btn unt-btn-outline-primary btn-outline-primary mx-1"
24-
icon-type="Other" icon="fl fl-undo"
24+
icon-type="Other" icon="fa-solid fa-arrow-rotate-left"
2525
text="Cancel"
2626
abp-tooltip="Cancel changes" />
2727
<abp-button id="btn-back-ai-config" text="Back"

‎applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Application/Domain/Scoresheets/IScoresheetRepository.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ namespace Unity.Flex.Domain.Scoresheets
77
{
88
public interface IScoresheetRepository : IBasicRepository<Scoresheet, Guid>
99
{
10+
Task<List<Scoresheet>> GetListByIdsAsync(IReadOnlyCollection<Guid> ids);
11+
Task<List<Scoresheet>> GetListByNameAsync(string filter);
1012
public Task<List<Scoresheet>> GetListWithChildrenAsync();
1113
public Task<List<Scoresheet>> GetPublishedListAsync();
1214
public Task<Scoresheet?> GetWithChildrenAsync(Guid id);

‎applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Application/EntityFrameworkCore/Repositories/ScoresheetRepository.cs‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ namespace Unity.Flex.EntityFrameworkCore.Repositories
1111
{
1212
public class ScoresheetRepository(IDbContextProvider<FlexDbContext> dbContextProvider) : EfCoreRepository<FlexDbContext, Scoresheet, Guid>(dbContextProvider), IScoresheetRepository
1313
{
14+
public async Task<List<Scoresheet>> GetListByIdsAsync(IReadOnlyCollection<Guid> ids)
15+
{
16+
var dbSet = await GetDbSetAsync();
17+
return await dbSet
18+
.Where(scoresheet => ids.Contains(scoresheet.Id))
19+
.ToListAsync();
20+
}
21+
22+
public async Task<List<Scoresheet>> GetListByNameAsync(string filter)
23+
{
24+
var dbSet = await GetDbSetAsync();
25+
return await dbSet
26+
.Where(scoresheet => scoresheet.Name.Contains(filter) || scoresheet.Title.Contains(filter))
27+
.ToListAsync();
28+
}
29+
1430
public async Task<Scoresheet> GetAsync(Guid id, bool includeDetails = true)
1531
{
1632
var dbSet = await GetDbSetAsync();

‎applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Web/Pages/Components/DataGrid/EditDataRowModal.cshtml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
{
110110
var field = entry.CustomField!;
111111
<div class="edit_row_field unity-input-group">
112-
<label class="form-label" for="@field.Name">@field.Label <i class="fl fl-pin static-field-indicator" aria-hidden="true" title="@L["DataGrids:PredefinedColumn"]"></i><span class="visually-hidden">(@L["DataGrids:PredefinedColumn"])</span></label>
112+
<label class="form-label" for="@field.Name">@field.Label <i class="fa-solid fa-thumbtack static-field-indicator" aria-hidden="true" title="@L["DataGrids:PredefinedColumn"]"></i><span class="visually-hidden">(@L["DataGrids:PredefinedColumn"])</span></label>
113113
@try
114114
{
115115
@switch (field.Type)

‎applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Web/Pages/ScoresheetConfiguration/Index.cshtml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<abp-button text="Import Scoresheet"
3535
id="scoresheet_import_upload_btn"
3636
icon-type="Other"
37-
icon="fl fl-import"
37+
icon="fa-solid fa-file-import"
3838
button-type="Light" />
3939
</form>
4040
</div>
@@ -45,7 +45,7 @@
4545
<abp-button text="@L["Scoresheet:Configuration:AddScoresheetButtonText"].Value"
4646
id="add_scoresheet_btn"
4747
icon-type="Other"
48-
icon="fl fl-plus"
48+
icon="fa-solid fa-plus"
4949
onclick="openScoresheetModal(null,'Add Scoresheet');"
5050
button-type="Light" />
5151
</div>

0 commit comments

Comments
 (0)