diff --git a/.gitignore b/.gitignore index 3a13977e..d8dd4bd7 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ testmerge.json .env.test.local* .env.production.local* .DS_Store +package-lock.json.scripting diff --git a/agent/package.json b/agent/package.json index 7a961fc3..efe4dc70 100644 --- a/agent/package.json +++ b/agent/package.json @@ -1,6 +1,6 @@ { "name": "@fs/ppaas-agent", - "version": "3.3.3", + "version": "3.3.4", "description": "Agent Service for running pewpew tests", "main": "dist/src/app.js", "scripts": { diff --git a/common/package.json b/common/package.json index 408b1eb4..c00ecbf1 100644 --- a/common/package.json +++ b/common/package.json @@ -1,6 +1,6 @@ { "name": "@fs/ppaas-common", - "version": "3.3.3", + "version": "3.3.4", "description": "Common Code for the PewPewController and PewPewAgent", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/controller/.storybook/main.ts b/controller/.storybook/main.ts index 0e7745f0..7400b6d4 100644 --- a/controller/.storybook/main.ts +++ b/controller/.storybook/main.ts @@ -1,3 +1,4 @@ +import type { Configuration } from "webpack"; import type { StorybookConfig } from "@storybook/nextjs"; const config: StorybookConfig = { @@ -19,7 +20,7 @@ const config: StorybookConfig = { propFilter: prop => prop.parent ? !/node_modules/.test(prop.parent.fileName) : true } }, - webpackFinal: (config) => { + webpackFinal: (config: Configuration) => { if (!config.resolve) { config.resolve = {}; } config.resolve.fallback = { ...(config.resolve.fallback || {}), diff --git a/controller/components/YamlEndpoints/index.tsx b/controller/components/YamlEndpoints/index.tsx index b4b28079..fd0e2a6b 100644 --- a/controller/components/YamlEndpoints/index.tsx +++ b/controller/components/YamlEndpoints/index.tsx @@ -17,7 +17,7 @@ import { PewPewHeader } from "../../types/yamlwriter"; import { LogLevel, log } from "../../pages/api/util/log"; -import React, { useEffect, useState } from "react"; +import React, { useEffect, useRef, useState } from "react"; import { QuestionBubble } from "../YamlQuestionBubble"; import styled from "styled-components"; import { uniqueId } from "../../pages/api/util/clientutil"; @@ -142,6 +142,10 @@ export const Endpoints = ({ urls, ...props }: EndpointsProps) => { const invalidHitRate = !HIT_RATE_REGEX.test(state.hitRate); const hitRateStyle: React.CSSProperties = getHitRateStyle(invalidHitRate); const hitRateTitle: string | undefined = state.hitRate === "" ? "Please enter a Hit Rate" : (getHitRateTitle(invalidHitRate) || "Update all hit rates"); + + // https://github.com/reactjs/react-transition-group/issues/904 + // http://reactcommunity.org/react-transition-group/transition#Transition-prop-nodeRef + const nodeRef = useRef(null); return ( - + {Array.from(urlsMap.values()).map((url) => ( - + - + {Array.from(urlsMap.values()).map((url) => ( - +