From 5ad3095d9f86681940a094940be723978c964c93 Mon Sep 17 00:00:00 2001 From: Ryan Atkinson Date: Thu, 11 Mar 2021 17:53:49 -0700 Subject: [PATCH] add a build tree view and id components --- src/client/App.svelte | 83 ++++++++++++++---------- src/client/BuildId.svelte | 16 +++++ src/client/BuildName.svelte | 11 ++++ src/client/SourceId.svelte | 16 +++++ src/client/SourceMetaBuildTree.svelte | 63 ++++++++++++++++++ src/client/SourceMetaBuildsTable.svelte | 50 ++++++++------ src/client/SourceMetaExpanderItem.svelte | 13 ++-- src/client/SourceMetaRawItem.svelte | 8 ++- src/client/SourceMetaTable.svelte | 52 +++++++++------ src/client/SourceMetaTreeExplorer.svelte | 5 +- src/client/index.html | 2 +- src/client/styles.css | 7 +- 12 files changed, 240 insertions(+), 86 deletions(-) create mode 100644 src/client/BuildId.svelte create mode 100644 src/client/BuildName.svelte create mode 100644 src/client/SourceId.svelte create mode 100644 src/client/SourceMetaBuildTree.svelte diff --git a/src/client/App.svelte b/src/client/App.svelte index 7f909a4927..ef3d4bd164 100644 --- a/src/client/App.svelte +++ b/src/client/App.svelte @@ -1,6 +1,6 @@ -
-
+
+
{name} -
+ {#if showFilerVisualizer1} -
+
-
+ {/if} {#if showFilerVisualizer2} -
+
-
+ {/if} {#if showServerVisualizer} -
+
-
+ {/if} {#if showSourceTreeVisualizer} -
+
-
+ {/if} {#if showBuildTreeVisualizer} -
+
-
+ {/if} -
+
{#if showSourceMeta}
-
+ {:else}{/if} + + diff --git a/src/client/BuildId.svelte b/src/client/BuildId.svelte new file mode 100644 index 0000000000..e96fbee030 --- /dev/null +++ b/src/client/BuildId.svelte @@ -0,0 +1,16 @@ + + +
{displayed}
+ + diff --git a/src/client/BuildName.svelte b/src/client/BuildName.svelte new file mode 100644 index 0000000000..1120af1832 --- /dev/null +++ b/src/client/BuildName.svelte @@ -0,0 +1,11 @@ + + +{buildName} + + diff --git a/src/client/SourceId.svelte b/src/client/SourceId.svelte new file mode 100644 index 0000000000..331f6af2c6 --- /dev/null +++ b/src/client/SourceId.svelte @@ -0,0 +1,16 @@ + + +{displayed} + + diff --git a/src/client/SourceMetaBuildTree.svelte b/src/client/SourceMetaBuildTree.svelte new file mode 100644 index 0000000000..5aba3ca1c6 --- /dev/null +++ b/src/client/SourceMetaBuildTree.svelte @@ -0,0 +1,63 @@ + + +
+ {#each filteredSourceMetaItems as sourceMeta (sourceMeta.cacheId)} + {#each sourceMeta.buildNames as buildName (buildName)} + {#if selectedBuildNames.includes(buildName)} +
+
+ +
+
+ {#each sourceMeta.buildsByBuildName.get(buildName) as build (build.id)} +
+
+ +
+ {#if build.dependencies} +
+
+ {#each build.dependencies as dependency (dependency.buildId)} + + {/each} +
+
+ {/if} +
+ {/each} +
+
+ {/if} + {/each} + {:else}no builds selected{/each} +
+ + diff --git a/src/client/SourceMetaBuildsTable.svelte b/src/client/SourceMetaBuildsTable.svelte index 97ab12d351..55a029df57 100644 --- a/src/client/SourceMetaBuildsTable.svelte +++ b/src/client/SourceMetaBuildsTable.svelte @@ -1,4 +1,6 @@ - - - - - - - {#each filteredBuilds as build (build.id)} - - - - - - {:else}no builds selected{/each} -
build idbuild namedependencies
{build.id}{build.name} - {#if build.dependencies} - {#each build.dependencies as dependency (dependency.buildId)} -
{dependency.buildId}
- {/each} - {/if} -
+{#if filteredBuilds.length} + + + + + + + {#each filteredBuilds as build (build.id)} + + + + + + {/each} +
build idbuild namedependencies
+ + + + + {#if build.dependencies} + {#each build.dependencies as dependency (dependency.buildId)} +
+ +
+ {/each} + {/if} +
+{:else}no builds selected{/if}