From 78313720f8ea7d4f765c6b51931e4855e205680f Mon Sep 17 00:00:00 2001 From: Tykayn Date: Fri, 17 Oct 2025 16:24:28 +0200 Subject: [PATCH] csc up sizes of filters --- sae-csc/package-lock.json | 23 +++++++++++ sae-csc/package.json | 11 ++--- sae-csc/src/app/app.config.ts | 27 +++++++++---- sae-csc/src/app/auth/auth.config.ts | 15 +++++++ .../pages/similar-cases/similar-cases.html | 14 ++++--- .../pages/similar-cases/similar-cases.scss | 3 +- sae-csc/src/main.ts | 7 ++-- sae-csc/src/public/chatbot.png | Bin 0 -> 3481 bytes .../app/styles/pages/_similar-cases.scss | 38 ++++++++++++++++-- 9 files changed, 112 insertions(+), 26 deletions(-) create mode 100644 sae-csc/src/app/auth/auth.config.ts create mode 100644 sae-csc/src/public/chatbot.png diff --git a/sae-csc/package-lock.json b/sae-csc/package-lock.json index 7a29466..c731b63 100644 --- a/sae-csc/package-lock.json +++ b/sae-csc/package-lock.json @@ -15,6 +15,7 @@ "@angular/platform-browser": "^20.1.0", "@angular/router": "^20.1.0", "@ngrx/store": "^20.0.0", + "angular-auth-oidc-client": "20.0.2", "aws-amplify": "^6.0.0", "remixicon": "^4.6.0", "rxjs": "~7.8.0", @@ -9066,6 +9067,22 @@ "node": ">= 14.0.0" } }, + "node_modules/angular-auth-oidc-client": { + "version": "20.0.2", + "resolved": "https://registry.npmjs.org/angular-auth-oidc-client/-/angular-auth-oidc-client-20.0.2.tgz", + "integrity": "sha512-zU+5h8LRB+NDIwmI/AUfE1BC67wb1N877RyVAgKrAIg0DTbUbfK7cZl3XBpYOd5vDoRBzROU0t3UnQ/Farjn4w==", + "license": "MIT", + "dependencies": { + "rfc4648": "^1.5.0", + "tslib": "^2.3.0" + }, + "peerDependencies": { + "@angular/common": ">=20.0.0", + "@angular/core": ">=20.0.0", + "@angular/router": ">=20.0.0", + "rxjs": "^6.5.3 || ^7.4.0" + } + }, "node_modules/ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", @@ -17495,6 +17512,12 @@ "node": ">=0.10.0" } }, + "node_modules/rfc4648": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/rfc4648/-/rfc4648-1.5.4.tgz", + "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==", + "license": "MIT" + }, "node_modules/rfdc": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", diff --git a/sae-csc/package.json b/sae-csc/package.json index 91859a1..043e044 100644 --- a/sae-csc/package.json +++ b/sae-csc/package.json @@ -29,12 +29,13 @@ "@angular/platform-browser": "^20.1.0", "@angular/router": "^20.1.0", "@ngrx/store": "^20.0.0", + "angular-auth-oidc-client": "20.0.2", + "aws-amplify": "^6.0.0", "remixicon": "^4.6.0", "rxjs": "~7.8.0", - "tslib": "^2.3.0", - "shepherd.js": "^14.5.1", "sae-lib": "file:../my-workspace/dist/sae-lib", - "aws-amplify": "^6.0.0", + "shepherd.js": "^14.5.1", + "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { @@ -53,8 +54,8 @@ "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", + "remixicon": "^4.6.0", "storybook": "^9.1.1", - "typescript": "~5.8.2", - "remixicon": "^4.6.0" + "typescript": "~5.8.2" } } diff --git a/sae-csc/src/app/app.config.ts b/sae-csc/src/app/app.config.ts index b48b0c7..ddd86ee 100644 --- a/sae-csc/src/app/app.config.ts +++ b/sae-csc/src/app/app.config.ts @@ -1,15 +1,28 @@ -import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core'; -import { provideRouter } from '@angular/router'; -import { provideStore } from '@ngrx/store'; +import {ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection} from '@angular/core'; +import {provideRouter} from '@angular/router'; +import {provideStore} from '@ngrx/store'; + +import {routes} from './app.routes'; +import {metaReducers, reducers} from './redux/reducers'; +import {authConfig} from './auth/auth.config'; +import {provideAuth} from 'angular-auth-oidc-client'; -import { routes } from './app.routes'; -import { reducers, metaReducers } from './redux/reducers'; export const appConfig: ApplicationConfig = { + providers: [ + provideAuth({ + config: { + authority: 'https://cognito-idp.eu-west-3.amazonaws.com/eu-west-3_SN5gwjvkW', + redirectUrl: 'https://devops-labs-dev.aircraft-engines.safran/', + clientId: 'abcd_test_to_replace', + scope: 'email openid profile', + responseType: 'code' + }, + }), provideBrowserGlobalErrorListeners(), - provideZoneChangeDetection({ eventCoalescing: true }), + provideZoneChangeDetection({eventCoalescing: true}), provideRouter(routes), - provideStore(reducers, { metaReducers }) + provideStore(reducers, {metaReducers}), provideAuth(authConfig) ] }; diff --git a/sae-csc/src/app/auth/auth.config.ts b/sae-csc/src/app/auth/auth.config.ts new file mode 100644 index 0000000..1450958 --- /dev/null +++ b/sae-csc/src/app/auth/auth.config.ts @@ -0,0 +1,15 @@ +import { PassedInitialConfig } from 'angular-auth-oidc-client'; + +export const authConfig: PassedInitialConfig = { + config: { + authority: 'https://cognito-idp.eu-west-3.amazonaws.com/eu-west-3_SN5gwjvkW', + redirectUrl: window.location.origin, + postLogoutRedirectUri: window.location.origin, + clientId: 'please-enter-clientId', + scope: 'please-enter-scopes', // 'openid profile offline_access ' + your scopes + responseType: 'code', + silentRenew: true, + useRefreshToken: true, + renewTimeBeforeTokenExpiresInSeconds: 30, + } +} diff --git a/sae-csc/src/app/pages/similar-cases/similar-cases.html b/sae-csc/src/app/pages/similar-cases/similar-cases.html index 9aaa20b..d2eacfc 100644 --- a/sae-csc/src/app/pages/similar-cases/similar-cases.html +++ b/sae-csc/src/app/pages/similar-cases/similar-cases.html @@ -1,7 +1,7 @@
-
+
{{ appState.resumeTitle }} @@ -21,6 +21,8 @@
+ +
@if (displayHeaderTabs) {
@@ -46,17 +48,17 @@
} - -
-
- -
+
+ +
+ +
console.error(err)); diff --git a/sae-csc/src/public/chatbot.png b/sae-csc/src/public/chatbot.png new file mode 100644 index 0000000000000000000000000000000000000000..22cf4088fb6c204b7a74292bbcd22c2a5d356c34 GIT binary patch literal 3481 zcmV;K4QBF*P)eAy6ty-5JTZ(N(>jv1xRumU1o+4JO zwrZ_X7p$!XQBg#|1Q$e>BqU+7ZzP%Z-WlKbn6|Y~(&c`?pMQ$+{X#jdt(^X@uvjdIBHxfg|FpHWrI}2o<@E1Tj0`;HcDq-m zr>D2`3qb^vpsMN?S(c|^WTBkMIG4$g`4wBj2qb|~8r%ht$Qp|2MI}ZsNH-S9X0v%Y zMmTg`|A9=Np%fz=Bnyiqhr{8=C?I1L0;5C(F-k-bqeKL8LWuDDV_iRSx~(9=(0zUw zpoOfcVf@Cov1jZp`}fN+bs!V%w|8vWB?ONR1_B)G4l^7+&z0h|nZ9N~0%X^|>k-)P69fAQg9rG~UmN#H%pVzz5{ zC&tgHqd`<;XC;mV25ZUKY=y>_kvpvhJIlN2norCn8hG(c!m^czu(PZg9@U7QhZrvSXo1tFnsLpo9a#Tj3(X}k zr@mkdDEp!rFTdu;ZFjq2R1H!4i+Q_ksS=E4?y3Lcm}P@O#zSlDc;qP;N{WpbMh?PY z>nJ97yK1cytJXA#Mf;+N5*Y*(lZ4ci*!$-g+-LvBZjTS|ZtlcW&yz>UQ^JDC+poRD zhqiVN?DqYMaQ(FS)HDSdX$G+^`E_oNf~WrGMp0oi7GIhHImTTd2yw>|E^?3i54Pjx z+q*Gka*riQv~oMSxrdhx^Twn zM&#!t2@e(z;v#|r9#-fdUhkyHuSXL&>T7A&abSB99S3NzSP~bo^0u5eD;*Wv$Kdn@ zwMb8w;UoR?lVzMrbGqp2c2w+04Qkl2XAlE^k~{a)M)U@i*6Y#m;G@+@NtGi=0KPfk z#+O?P(ADKiCNyhB6GGI2vw2@=9N8O^PT^y0~9YH{8i3Df7a;@$^q zQ1*TStjV!OG-_no)#ahPYoz$#AolJzi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-ztt5 zZrWZSZ*Rt)eR{7PsHVn?B{${cUvG8ez~{MG^I#Ee32neLkYhUF;eBN^8pQd)BWvw= z^=(Ob4F-$Q-u)ifzZge(ga=lu3Bv&{%y3O2`;!d4G{u+N)HHs*S(Sn0B8EurRf3c-doEsPiQ9O+YoQ;|(lAOk+x->cL)>&r{ zQ)yuTj&ULx?3)J-gt(9VxF%U^@51a$TB&+vi71~-l=^zGZj}{hmf8Z7NI>zHJ=%vK zH{(|;eI(w7aH*UH^4o9R*t8)T6UV2Kr-)Ct;wFLxip_1qJ1w~T_f8b#stCy^TSg0I zr5#7~KzfX!Mc~xjPgX$X{M4QT5$j(qS;FcEQgG3EHj#J4i@00x0u|bGS1rn>OtTK_ zUi45>6d;2m=X9!b@=u}>NrIg`!!6etarq_bgFZqS^l5lVFV;TWgg-yy>Q%HEF0chw zRC#dkQY&uxah539D9Yd-0y?h80@zGB=D6}FwUjT&u@bw4fDe?u+T+5TFQikdo+2z^ zup}^!tKu38uPdwBonlzPqS!$7jhrkRcSo+Mn+zr_?~CK=flaZlu2U3p80;zR^%`Ag z(bO=Mk3F##w2~0p>ohu6RPezYg;0&M2>gZu$3=ur>bUl~W)$Ws!hgG*IzE1D47RFTXDhS z4lG(oXCRj=ROB5iLTwIq*n_Zze7nCDZ~UhVo3|$tp%Zlvn%g-Em3pDh@{uvjd` zvZ|^d&{^bT7@^R0{c)0qL*XyUn@pzn>E99cWmqzR-Bzo00TB`Sl01J~p1(Cek}QKQ zAw&Yd?ibHGoz7w+WI26+t>b%TA?zX9IS>hN*le~fk?(y64MEb header { + background: white; + padding-top: 42px; + padding-bottom: 42px; + } + + .similar-cases-header, + .post-tabs, + .filters-row, + > main, > footer { + margin: 0 auto; + max-width: 1312px; + } + + .similar-cases-header { + padding-top: 40px; + padding-bottom: 35px; + display: flex; + justify-content: space-between; + align-items: center; + flex-direction: row; + } + .padded-section { padding: 0 64px; } .filters-row { - padding: 0 64px 0; - background: white; + .selectors { gap: 12px; @@ -20,4 +41,15 @@ padding: 64px; margin-top: 100px; } + + sae-multi-selector { + + .input-box { + width: 214.5px !important; + } + } + + .bot-avatar { + background: transparent url('/public/chatbot.png') center center no-repeat; + } }