feat(editor): Add support for schema view in the NDV output (#5688)

* feat(editor): Add support for schema view in the NDV output

* Make intercepts waiting optional in waitForLoad method

* Update RunDataSchema snapshots

* Do not reset output panel view on execution, properly key run RunDataSchemaItem to make sure they are unique across panels

* Update snapshot tests

* Make adding of schema view button option more readable
This commit is contained in:
OlegIvaniv
2023-03-16 10:19:12 +01:00
committed by GitHub
parent 58232bec61
commit 541850f95f
11 changed files with 202 additions and 45 deletions

View File

@@ -9,6 +9,7 @@ type Props = {
level: number;
parent: Schema | null;
subKey: string;
paneType: 'input' | 'output';
mappingEnabled: boolean;
draggingPath: string;
distanceFromActive: number;
@@ -72,7 +73,7 @@ const getIconBySchemaType = (type: Schema['type']): string => {
</script>
<template>
<div :class="$style.item">
<div :class="$style.item" data-test-id="run-data-schema-item">
<div
v-if="level > 0 || (level === 0 && !isSchemaValueArray)"
:title="schema.type"
@@ -107,7 +108,8 @@ const getIconBySchemaType = (type: Schema['type']): string => {
:schema="s"
:level="level + 1"
:parent="schema"
:subKey="`${s.type}-${level}-${i}`"
:paneType="paneType"
:subKey="`${paneType}_${s.type}-${level}-${i}`"
:mappingEnabled="mappingEnabled"
:draggingPath="draggingPath"
:distanceFromActive="distanceFromActive"