diff --git a/implem/src/app/pages/similar-cases/case-result/case-result.html b/implem/src/app/pages/similar-cases/case-result/case-result.html new file mode 100644 index 0000000..9e8d7d2 --- /dev/null +++ b/implem/src/app/pages/similar-cases/case-result/case-result.html @@ -0,0 +1,34 @@ +
+ + +
+ -7B / 72-21-02 / Booster blades stg 3 / LPC STG.3 BLADES DISLOCATION / 894773 + +
v
+
+
+
+ +
+ Information +
+
+ +
+
+ AI’s summary : Work stoppage case for CFM56-7B engine (ESN: 894773) at MTU Zhuhai. LPC Stage 3 blade platform + dislocation detected during shop visit BSI. Maximum dislocation: 1.22mm axial, 0.63mm radial. Customer requests + evaluation, acceptance criteria, or DICA for further action. No corresponding limits in AMM 72-00-00 BSI inspection + chapter. +
+
+
+ Date : + 2023-12-12 +
+
+ Chrono ID : + CSC/CFM/2023-10/00446-A +
+
+
diff --git a/implem/src/app/pages/similar-cases/case-result/case-result.scss b/implem/src/app/pages/similar-cases/case-result/case-result.scss new file mode 100644 index 0000000..e69de29 diff --git a/implem/src/app/pages/similar-cases/case-result/case-result.spec.ts b/implem/src/app/pages/similar-cases/case-result/case-result.spec.ts new file mode 100644 index 0000000..2d0011f --- /dev/null +++ b/implem/src/app/pages/similar-cases/case-result/case-result.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CaseResult } from './case-result'; + +describe('CaseResult', () => { + let component: CaseResult; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [CaseResult] + }) + .compileComponents(); + + fixture = TestBed.createComponent(CaseResult); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/implem/src/app/pages/similar-cases/case-result/case-result.ts b/implem/src/app/pages/similar-cases/case-result/case-result.ts new file mode 100644 index 0000000..549589c --- /dev/null +++ b/implem/src/app/pages/similar-cases/case-result/case-result.ts @@ -0,0 +1,17 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-case-result', + imports: [], + templateUrl: './case-result.html', + styleUrl: './case-result.scss' +}) +export class CaseResult { + + + public activeTab:string = '' + selectCaseTab(activeTab: string) { + console.log('todo') + this.activeTab = activeTab + } +} diff --git a/implem/src/app/pages/similar-cases/similar-cases.html b/implem/src/app/pages/similar-cases/similar-cases.html index 79f4933..f811fdf 100644 --- a/implem/src/app/pages/similar-cases/similar-cases.html +++ b/implem/src/app/pages/similar-cases/similar-cases.html @@ -1 +1,96 @@ -

similar-cases works!

+
+ +
+
+ + +
+ Work stoppage case for CFM56-7B engine (ESN: 802379)... + +
+
+ + +
+
+
+ +
+
+
+ +
+ + +
+
+
+ +
+
+
+ Similar cases +
+
+
+
+ Technical manual +
+
+
+
+
+ + + @if (displayedTab == 'similar-cases') { +
+
+ +
+ + +
+
+
+
+
+ 24 cases found, 3 cases suggested by AI +
+
+ AI suggestions + + +
+
+
+
+ + + + +
+
+ + + } @else { + +
+ +
+ } +
+
+
+
+ +
+
diff --git a/implem/src/app/pages/similar-cases/similar-cases.scss b/implem/src/app/pages/similar-cases/similar-cases.scss index e69de29..956326f 100644 --- a/implem/src/app/pages/similar-cases/similar-cases.scss +++ b/implem/src/app/pages/similar-cases/similar-cases.scss @@ -0,0 +1,3 @@ +.toggle-ai-suggestion{ + color: #FEAD02; +} diff --git a/implem/src/app/pages/similar-cases/similar-cases.ts b/implem/src/app/pages/similar-cases/similar-cases.ts index 422dd73..87ccfeb 100644 --- a/implem/src/app/pages/similar-cases/similar-cases.ts +++ b/implem/src/app/pages/similar-cases/similar-cases.ts @@ -1,11 +1,24 @@ import { Component } from '@angular/core'; +import {FiltersGroup} from '../../../../../my-workspace/projects/my-lib/filters/filters-group/filters-group'; +import {BotTalks} from '../../../../../my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks'; +import {FormsModule} from '@angular/forms'; +import {CaseResult} from './case-result/case-result'; +import {BottomNavigation} from '../../shared/navigation/bottom-navigation/bottom-navigation'; @Component({ selector: 'app-similar-cases', - imports: [], + imports: [ + FiltersGroup, + BotTalks, + FormsModule, + CaseResult, + BottomNavigation + ], templateUrl: './similar-cases.html', styleUrl: './similar-cases.scss' }) export class SimilarCases { + public searchInput: string = ''; + public displayedTab: 'similar-cases' | 'technical-manual' = 'similar-cases'; } diff --git a/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.css b/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.css new file mode 100644 index 0000000..e69de29 diff --git a/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.html b/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.html new file mode 100644 index 0000000..143c933 --- /dev/null +++ b/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.html @@ -0,0 +1,20 @@ +
+ +
+ {{message}} +
+ @for (link of links; track link.title) { + + + {{link.title}} + + + + + {{link.label}} + + + + } +
+
diff --git a/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.spec.ts b/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.spec.ts new file mode 100644 index 0000000..e98416d --- /dev/null +++ b/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { BotTalks } from './bot-talks'; + +describe('BotTalks', () => { + let component: BotTalks; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [BotTalks] + }) + .compileComponents(); + + fixture = TestBed.createComponent(BotTalks); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.ts b/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.ts new file mode 100644 index 0000000..d584403 --- /dev/null +++ b/my-workspace/projects/my-lib/chatbot/bot-talks/bot-talks.ts @@ -0,0 +1,17 @@ +import {Component} from '@angular/core'; + +@Component({ + selector: 'lib-bot-talks', + imports: [], + templateUrl: './bot-talks.html', + styleUrl: './bot-talks.css' +}) +export class BotTalks { + public message = 'I found useful document(s) which can help to answer to this question ! Check if these documents are applied to similar cases'; + public links: any = [ + { + title: 'Refusal notice :', + label: 'DMP-00051341: Avis de refus', + url: 'https://www.cipherbliss.com/fake-link', + }] +}