From f7255ca6162fdb2c024daed09fd5672956d6a109 Mon Sep 17 00:00:00 2001 From: Joe Slain Date: Tue, 3 Dec 2024 15:19:56 +0100 Subject: [PATCH] chore: remove keycloak variables --- .github/workflows/build_and_deploy.yml | 4 +--- src/api/index.ts | 1 + src/pages/Evaluations.tsx | 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index d9ef6bd..74af164 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -52,9 +52,7 @@ jobs: VITE_MODEL_MODE=${{ vars.VITE_MODEL_MODE }} VITE_MODEL_TEMPERATURE=${{ vars.VITE_MODEL_TEMPERATURE }} VITE_MATOMO_URL=${{ vars.VITE_MATOMO_URL }} - VITE_KEYCLOAK_AUTHORITY=${{ vars.VITE_KEYCLOAK_AUTHORITY }} - VITE_KEYCLOAK_CLIENT_ID=${{ vars.VITE_KEYCLOAK_CLIENT_ID }} - VITE_KEYCLOAK_REDIRECT_URL=${{ vars.VITE_KEYCLOAK_REDIRECT_URL }} + deploy-dev: name: Deploy from ${{ github.ref_name }}/${{ github.sha }} diff --git a/src/api/index.ts b/src/api/index.ts index 21b4a64..8102e7e 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -7,3 +7,4 @@ export * from './useGetChunk' export * from './useGetChatArchiveById' export * from './useGetInstitutions' export * from './useGetEvaluationQuestions' +export * from './usePostEvaluations' diff --git a/src/pages/Evaluations.tsx b/src/pages/Evaluations.tsx index ea0a2c3..867d22f 100644 --- a/src/pages/Evaluations.tsx +++ b/src/pages/Evaluations.tsx @@ -1,4 +1,4 @@ -import { chatUrl, streamUrl, useGetEvaluationQuestions } from '@api' +import { chatUrl, streamUrl } from '@api' import { Notice } from '@codegouvfr/react-dsfr/Notice' import StarIcon from '@mui/icons-material/Star' import Box from '@mui/material/Box' @@ -9,8 +9,7 @@ import { TextWithSources } from 'components/Sources/TextWithSources' import { EventSourcePolyfill } from 'event-source-polyfill' import { useCallback, useEffect, useRef, useState } from 'react' import { onCloseStream } from '../utils/eventsEmitter' -import ShowError from 'components/Error/ShowError' -import { Skeleton } from '@mui/material' +//import ShowError from 'components/Error/ShowError' const questions = [ {