Skip to content

Commit 6533086

Browse files
committed
Revert "MMI-3387 Add AI report summary (bcgov#2541)"
This reverts commit 4971757.
1 parent 4971757 commit 6533086

File tree

56 files changed

+218
-9713
lines changed

Some content is hidden

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

56 files changed

+218
-9713
lines changed

api/net/TNO.API.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@
1515
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
1616
<PackageReference Include="Microsoft.AspnetCore.Authentication.jwtBearer" Version="9.0.0" />
1717
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.1.0" />
18-
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Core" Version="2.3.9" />
1918
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.1" />
2019
<!-- <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.2.1" /> -->
2120
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="7.0.0" />
2221
<PackageReference Include="prometheus-net.AspNetCore" Version="8.2.1" />
2322
<PackageReference Include="FTTLib.dll" Version="1.1.7" />
2423
<PackageReference Include="SSH.NET" Version="2024.2.0" />
25-
<PackageReference Include="System.Formats.Asn1" Version="10.0.1" />
24+
2625
</ItemGroup>
2726

2827
<ItemGroup>

api/net/appsettings.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,5 @@
117117
"Watch": {
118118
"IsEnabled": false,
119119
"SendTo": ""
120-
},
121-
"Azure": {
122-
"AI": {
123-
"ProjectEndpoint": "",
124-
"ModelDeploymentName": ""
125-
}
126120
}
127121
}

app/editor/.yarn/cache/tno-core-npm-1.0.31-a8a0b59ae3-57f0f47bb6.zip renamed to app/editor/.yarn/cache/tno-core-npm-1.0.29-b0ccc3fe82-277dacbb50.zip

2.03 MB
Binary file not shown.

app/editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"redux-logger": "3.0.6",
6161
"styled-components": "6.1.11",
6262
"stylis": "4.3.2",
63-
"tno-core": "1.0.31"
63+
"tno-core": "1.0.29"
6464
},
6565
"devDependencies": {
6666
"@simbathesailor/use-what-changed": "2.0.0",

app/editor/src/features/admin/report-templates/templates/body/CustomReport.cshtml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,14 +364,6 @@
364364
@(section.Value.Data)
365365
</div>
366366
}
367-
else if (section.Value.SectionType == ReportSectionType.AI)
368-
{
369-
@* AI SECTION *@
370-
var alt = section.Value.Settings.Label;
371-
<div>
372-
@(section.Value.Data)
373-
</div>
374-
}
375367

376368
@if (!horizontalCharts && !endChartGroup)
377369
{

app/editor/src/features/admin/reports/ReportFormSections.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
ReportContentOptions,
2020
ReportHeadlineOptions,
2121
ReportOptions,
22-
ReportSectionAI,
2322
ReportSectionContent,
2423
ReportSectionData,
2524
ReportSectionGallery,
@@ -161,12 +160,6 @@ export const ReportFormSections = () => {
161160
>
162161
Text
163162
</Button>
164-
<Button
165-
variant={ButtonVariant.secondary}
166-
onClick={() => handleAddSection(ReportSectionTypeName.AI)}
167-
>
168-
AI
169-
</Button>
170163
<Button
171164
variant={ButtonVariant.secondary}
172165
onClick={() => handleAddSection(ReportSectionTypeName.Content)}
@@ -284,9 +277,6 @@ export const ReportFormSections = () => {
284277
<Show visible={section.sectionType === ReportSectionTypeName.Data}>
285278
<ReportSectionData index={index} />
286279
</Show>
287-
<Show visible={section.sectionType === ReportSectionTypeName.AI}>
288-
<ReportSectionAI index={index} />
289-
</Show>
290280
</>
291281
)}
292282
</React.Fragment>

app/editor/src/features/admin/reports/components/ReportSectionAI.tsx

Lines changed: 0 additions & 92 deletions
This file was deleted.

app/editor/src/features/admin/reports/components/SectionIcon.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BiSolidFileJson } from 'react-icons/bi';
2-
import { FaAlignJustify, FaBrain, FaChartPie, FaImage, FaList, FaNewspaper } from 'react-icons/fa6';
2+
import { FaAlignJustify, FaChartPie, FaImage, FaList, FaNewspaper } from 'react-icons/fa6';
33
import { ReportSectionTypeName } from 'tno-core';
44

55
export interface ISectionIconProps {
@@ -21,7 +21,5 @@ export const SectionIcon = ({ type }: ISectionIconProps) => {
2121
return <FaImage />;
2222
} else if (type === ReportSectionTypeName.Data) {
2323
return <BiSolidFileJson />;
24-
} else if (type === ReportSectionTypeName.AI) {
25-
return <FaBrain />;
2624
} else return null;
2725
};

app/editor/src/features/admin/reports/components/SectionLabel.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,5 @@ export const SectionLabel = ({ section }: ISectionLabelProps) => {
5656
Data: {section.settings.label}
5757
</Row>
5858
);
59-
} else if (section.sectionType === ReportSectionTypeName.AI) {
60-
return (
61-
<Row gap="0.25rem" alignItems="center">
62-
<SectionIcon type={section.sectionType} />
63-
AI: {section.settings.label}
64-
</Row>
65-
);
6659
} else return <>Unknown</>;
6760
};

app/editor/src/features/admin/reports/components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export * from './ReportContentOptions';
22
export * from './ReportHeadlineOptions';
33
export * from './ReportOptions';
4-
export * from './ReportSectionAI';
54
export * from './ReportSectionContent';
65
export * from './ReportSectionData';
76
export * from './ReportSectionGallery';

0 commit comments

Comments
 (0)