From 15a4198f5eabcaa6838924a23c04e15cbfc8edaa Mon Sep 17 00:00:00 2001 From: Bruce Schultz Date: Mon, 15 Jun 2026 09:16:18 +0200 Subject: [PATCH 1/2] feat(hub): show new display_name parameter --- app/components/analysis/AnalysesTable.vue | 16 +- app/components/data-stores/DataStoreList.vue | 8 +- .../create/DataStoreProjectInitializer.vue | 9 +- .../projects/ProjectProposalTable.vue | 12 +- app/composables/useDataStoreList.ts | 2 +- app/services/Api.ts | 182 +++++- app/services/hub_adapter_swagger.json | 609 ++++++++++++++++-- .../components/analysis/AnalysisTable.spec.ts | 2 +- test/components/analysis/constants.ts | 8 + .../DataStoreProjectInitializer.spec.ts | 2 +- test/components/projects/constants.ts | 1 + test/composables/useDataStoreList.test.ts | 8 +- 12 files changed, 775 insertions(+), 84 deletions(-) diff --git a/app/components/analysis/AnalysesTable.vue b/app/components/analysis/AnalysesTable.vue index 28bc6f9..adfc600 100644 --- a/app/components/analysis/AnalysesTable.vue +++ b/app/components/analysis/AnalysesTable.vue @@ -93,7 +93,7 @@ async function getProjects() { method: "GET", query: { sort: "-updated_at", - fields: "id,name", + fields: "id,display_name", }, }) .catch(() => undefined)) as Project[]; @@ -132,8 +132,8 @@ async function parseProjects() { } if (projData) { projData.forEach((proj: Project) => { - if (proj.name) { - projMap.set(proj.id!, proj.name); + if (proj.display_name) { + projMap.set(proj.id!, proj.display_name); } }); } @@ -493,7 +493,11 @@ const onCloseNavToast = () => { { > - + diff --git a/app/components/data-stores/DataStoreList.vue b/app/components/data-stores/DataStoreList.vue index 0175699..78b4668 100644 --- a/app/components/data-stores/DataStoreList.vue +++ b/app/components/data-stores/DataStoreList.vue @@ -2,7 +2,8 @@ import { useDataStoreList } from "~/composables/useDataStoreList"; import DetailedDataStoreTable from "~/components/data-stores/DetailedDataStoreTable.vue"; -const { dataStores, projectNameMap, loading, refresh } = await useDataStoreList(); +const { dataStores, projectNameMap, loading, refresh } = + await useDataStoreList(); function onDeleteDataStore(dsName: string) { dataStores.value = dataStores.value.filter((store) => store.name !== dsName); @@ -41,3 +42,8 @@ function onDeleteDataStore(dsName: string) { + diff --git a/app/components/data-stores/create/DataStoreProjectInitializer.vue b/app/components/data-stores/create/DataStoreProjectInitializer.vue index 49f3884..38a0bd9 100644 --- a/app/components/data-stores/create/DataStoreProjectInitializer.vue +++ b/app/components/data-stores/create/DataStoreProjectInitializer.vue @@ -1,5 +1,5 @@