diff --git a/src/components/ContentComponents/Konnector/KonnectorResult.tsx b/src/components/ContentComponents/Konnector/KonnectorResult.tsx index 53971d5c1faf6ed6b5a7799f2db957ea4d452399..408d6969c6bd2eb2c7915f9fdf53511c0e2e518a 100644 --- a/src/components/ContentComponents/Konnector/KonnectorResult.tsx +++ b/src/components/ContentComponents/Konnector/KonnectorResult.tsx @@ -25,7 +25,11 @@ const KonnectorResult: React.FC<KonnectorResultProps> = ({ <div> <div className="accordion-update"> <div - className={errored ? 'accordion-caption-red' : 'accordion-caption'} + className={ + errored + ? 'accordion-caption-red text-16-normal' + : 'accordion-caption text-16-normal' + } > {t('KONNECTORCONFIG.LABEL_UPDATEDAT')} </div> diff --git a/src/components/ContentComponents/KonnectorViewer/KonnectorViewerCard.tsx b/src/components/ContentComponents/KonnectorViewer/KonnectorViewerCard.tsx index 7b657dc3ddebb3086bde3a9d22a6d0c6f8ca5d34..707c4c27ee7a936fcff69781cb949238fed64f76 100644 --- a/src/components/ContentComponents/KonnectorViewer/KonnectorViewerCard.tsx +++ b/src/components/ContentComponents/KonnectorViewer/KonnectorViewerCard.tsx @@ -18,10 +18,7 @@ import chevronUp from 'assets/icons/ico/chevron-up.svg' import StyledIcon from 'components/CommonKit/Icon/StyledIcon' import StyledIconButton from 'components/CommonKit/IconButton/StyledIconButton' -import failurePicto from '../KonnectorViewer/picto-failure.png' -import successPicto from '../KonnectorViewer/picto-success.png' -import pendingPicto from '../KonnectorViewer/picto-pending.png' -import KonnectorService from 'services/konnectorService' +import failurePicto from 'components/ContentComponents/KonnectorViewer/picto-failure.png' import KonnectorStatusService from 'services/konnectorStatusService' import IFluidConfig from 'services/IFluidConfig' @@ -30,7 +27,7 @@ import KonnectorOAuthForm from 'components/ContentComponents/Konnector/Konnector import KonnectorLoading from 'components/ContentComponents/Konnector/KonnectorLoading' import KonnectorResult from 'components/ContentComponents/Konnector/KonnectorResult' -import { Account, Konnector, Trigger } from 'doctypes' +import { Konnector, Trigger } from 'doctypes' interface KonnectorViewerCardProps { fluidConfig: IFluidConfig @@ -182,16 +179,13 @@ const KonnectorViewerCard: React.FC<KonnectorViewerCardProps> = ({ } const initOauthAccount = async (oauthAccountId: string) => { - console.log('initOauthAccount', oauthAccountId) setError('') setJobState('') setLoading(true) try { const account = await AccountService.getAccount(client, oauthAccountId) - console.log(konnector) const triggersServices = new TriggerService(client, account, konnector) const trigger: Trigger = await triggersServices.createTrigger() - console.log(trigger) if (!trigger) { throw new Error(`Error during trigger creation`) } @@ -200,14 +194,12 @@ const KonnectorViewerCard: React.FC<KonnectorViewerCardProps> = ({ if (!job) { throw new Error(`Error during trigger launching`) } - console.log(job) setUpdateTrigger(trigger) setlaunchedJob(job) setUpdateDate(new Date(job.queued_at).toDateString()) setAccountId(job.message.account) setError('Connected') setAccount(true) - // await context.refreshFluidTypes() } catch (error) { setLoading(false) setError(error.message) @@ -234,7 +226,6 @@ const KonnectorViewerCard: React.FC<KonnectorViewerCardProps> = ({ } const jobStateCallBack = async (state: string) => { - console.log('JobCallBack', state) setJobState(state) if (state !== JobState.Running) { setLoading(false) diff --git a/src/components/ContentComponents/KonnectorViewer/picto-pending.png b/src/components/ContentComponents/KonnectorViewer/picto-pending.png deleted file mode 100644 index ed0000cc26ba09494a399dc48b20d02e1710fcbe..0000000000000000000000000000000000000000 Binary files a/src/components/ContentComponents/KonnectorViewer/picto-pending.png and /dev/null differ diff --git a/src/components/ContentComponents/KonnectorViewer/picto-success.png b/src/components/ContentComponents/KonnectorViewer/picto-success.png deleted file mode 100644 index 7cc8e017b34afc4e706f1a8153483f040e75da0f..0000000000000000000000000000000000000000 Binary files a/src/components/ContentComponents/KonnectorViewer/picto-success.png and /dev/null differ diff --git a/src/services/accountService.ts b/src/services/accountService.ts index 09dd90174bca79365cbc7f1ae393328c5ce9f512..8dad62c3d5c803113603908f8acc787aa6409b23 100644 --- a/src/services/accountService.ts +++ b/src/services/accountService.ts @@ -82,7 +82,6 @@ export class AccountService { static getAccount = async (client: Client, id: string) => { try { - console.log('id account : ', id) const account: Account = await accountsMutations(client).findAccount(id) return account } catch (error) { diff --git a/src/services/konnectorService.ts b/src/services/konnectorService.ts index 3f9b739869994b67d005060d4f6f7231175260a8..b2521df2e609aac2e7a7176becb204ced0021d12 100644 --- a/src/services/konnectorService.ts +++ b/src/services/konnectorService.ts @@ -21,13 +21,11 @@ export default class KonnectorService { ) } try { - console.log('my id in service : ', this._konnectorId) const { data } = await this._client.query( this._client.find(KONNECTORS_DOCTYPE).where({ _id: KONNECTORS_DOCTYPE + '/' + this._konnectorId, }) ) - console.log('!!!!!!!!!!!!konnector service : ', data) const konnector: Konnector = data && data[0] this._konnector = konnector return konnector