From 97594deaac80e0a9626460133e00615d8192fce7 Mon Sep 17 00:00:00 2001 From: Jaryt Bustard Date: Tue, 23 Aug 2022 19:56:11 -0400 Subject: [PATCH] fix: orb import failing for orbs with default executors (#275) * fix: orb import failing for orbs with default executors * feat: lowered min zoom for big configs --- package.json | 2 +- src/components/containers/WorkflowContainer.tsx | 1 + .../menus/definitions/OrbDefinitionsMenu.tsx | 14 ++++++++++++-- yarn.lock | 8 ++++---- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index b44ab64..c0be3f5 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0-development", "homepage": "https://circleci-public.github.io/visual-config-editor/", "dependencies": { - "@circleci/circleci-config-sdk": "v0.9.0-alpha.15", + "@circleci/circleci-config-sdk": "v0.9.0-alpha.16", "@craco/craco": "^6.3.0", "@monaco-editor/react": "^4.3.1", "algoliasearch": "^4.13.1", diff --git a/src/components/containers/WorkflowContainer.tsx b/src/components/containers/WorkflowContainer.tsx index 7bd52a4..8c85f14 100644 --- a/src/components/containers/WorkflowContainer.tsx +++ b/src/components/containers/WorkflowContainer.tsx @@ -262,6 +262,7 @@ const WorkflowContainer = ({ bgClassName, className }: ElementProps) => { nodeTypes={getTypes()} edgeTypes={{ requires: Edge }} snapToGrid={true} + minZoom={0.1} connectionMode={ConnectionMode.Loose} connectionLineComponent={ ConnectionLine as React.ComponentType diff --git a/src/components/menus/definitions/OrbDefinitionsMenu.tsx b/src/components/menus/definitions/OrbDefinitionsMenu.tsx index 7dddb59..d8d6167 100644 --- a/src/components/menus/definitions/OrbDefinitionsMenu.tsx +++ b/src/components/menus/definitions/OrbDefinitionsMenu.tsx @@ -172,7 +172,13 @@ const OrbDefinitionsMenu = (props: OrbDefinitionProps) => {
- +
+ +

{props.namespace}/

@@ -250,7 +256,11 @@ const OrbDefinitionMenuNav: NavigationComponent = { return

{props.name}

; }, Icon: (props: OrbDefinitionProps) => { - return ; + return ( +
+ +
+ ); }, }; diff --git a/yarn.lock b/yarn.lock index b20593a..4a51570 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1204,10 +1204,10 @@ resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@circleci/circleci-config-sdk@v0.9.0-alpha.15": - version "0.9.0-alpha.15" - resolved "https://registry.yarnpkg.com/@circleci/circleci-config-sdk/-/circleci-config-sdk-0.9.0-alpha.15.tgz#34c124f10b27c4fadab2251171ccb3c0d615d320" - integrity sha512-8v+dKnIHWy05mdyyKd8/UQlX8cXSbYe1+F9a3yC9Jqhj8vvAwcpPRuvFCacxTguPJn5lGIMDUV3ic0pSMsjihw== +"@circleci/circleci-config-sdk@v0.9.0-alpha.16": + version "0.9.0-alpha.16" + resolved "https://registry.yarnpkg.com/@circleci/circleci-config-sdk/-/circleci-config-sdk-0.9.0-alpha.16.tgz#4a6669b8aeea5fe6f8f1fb9bebeae6fb4989f094" + integrity sha512-MKp1INEh7Rb0Mr46e6bLf+NsTyobl9IzmaQVDh7k0ul6Aez6gVE85IylY0MEsuUvyqjXZe9+99A5NGQ0K5cZnQ== dependencies: ajv "^8.8.2" ajv-merge-patch "^5.0.1"