From b095e1ab65fd508ad8e1b965847bec2a170791e9 Mon Sep 17 00:00:00 2001 From: ebrockainq <112428189+ebrockainq@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:31:24 -0400 Subject: [PATCH] Add B1 Tab * Changes from SITE-3986 * Update B1Tab.tsx * Create SMTPTestCases.tsx * Remove duplicate files * Add env variables and move API calls to ServerActions * Improve environment variable name * Remove env variables * Add Loading Button, Remove Default Profile Values * add IMAP/POP3 manual validation, attachment type field * Fix tab data carryover, fix include filter * Add XDR endpoint fields * Add XDR DocumentSelector handling * Fix incorrect emails * Fix missing doc select on XDR 3 * Add logs formatting * Fix reversed IMAP and POP3 icons * Add tooltip * Fix XDR logs and missing manual validations * Add attachment type tooltip * Remove Tooltips add XDR API call * Add error condition, add clear button * Fix more info sections, censor profile password * Add clear selected document * Remove accept/reject on API error * Fix XDR more info page * add tooltip and pop over for endpoint copy * Fix incorrect xdr email addresses * Replace popover system and fix error handling * Language improvements and fix clear button visibility trigger * Fix language errors * Add clear button to XDR send * Basic xdr functionality * Add manual validation, request/response, remining request fields, * add xdr document selector * Add XDR Document Select test functionality, add colorized XML display * Correct document selection per sub criteria * Fix failure detection on empty responses * Banish type errors * Less restrictive clear button * Fix CORS issue with document select * Update DocumentSelector.tsx * add prettier ignore to bugged line * Add improved warning triggers * Add backup content, fix criteriaMet icon on non manual tests * Language fix and null value handling * Update replacement values * Modify jessionid formation * Update ServerActions.ts * Alternative auth method * Improve error handling --- .../direct/test-by-criteria/ServerActions.ts | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/direct/test-by-criteria/ServerActions.ts b/src/components/direct/test-by-criteria/ServerActions.ts index 9bacb774..b581907b 100644 --- a/src/components/direct/test-by-criteria/ServerActions.ts +++ b/src/components/direct/test-by-criteria/ServerActions.ts @@ -1,7 +1,6 @@ 'use server' import axios from 'axios' import { authOptions } from '@/lib/auth' -import { NextRequest, NextResponse } from 'next/server' import _ from 'lodash' import { getServerSession } from 'next-auth' @@ -135,10 +134,9 @@ export async function handleXDRAPICall(data: XDRAPICallData): Promise