From cae7e236b6502824104f6afc559037881d83d95f Mon Sep 17 00:00:00 2001 From: akhuoa Date: Wed, 1 Apr 2026 16:42:49 +1300 Subject: [PATCH 01/25] Add cell cards api --- .env | 1 + src/App.vue | 1 + src/components/MapContent.vue | 1 + src/components/SplitFlow.vue | 1 + src/stores/settings.js | 4 ++++ 5 files changed, 8 insertions(+) diff --git a/.env b/.env index d616f95f..dedacd3d 100644 --- a/.env +++ b/.env @@ -6,3 +6,4 @@ //VITE_PENNSIEVE_API_LOCATION=https://api.pennsieve.io #VITE_API_LOCATION=https://sparc-api.herokuapp.com/ VITE_SPARC_API=https://alan-wu-portal-api.herokuapp.com/ +VITE_APP_CELL_CARDS_API=http://localhost:8787/cellCardsData.json diff --git a/src/App.vue b/src/App.vue index 3977e04e..1211f6e3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -177,6 +177,7 @@ export default { algoliaId: import.meta.env.VITE_ALGOLIA_ID, pennsieveApi: import.meta.env.VITE_PENNSIEVE_API_LOCATION, flatmapAPI: this.$route.query.flatmapserver ? this.$route.query.flatmapserver : import.meta.env.VITE_FLATMAPAPI_LOCATION, + cellCardsApi: import.meta.env.VITE_APP_CELL_CARDS_API, rootUrl: import.meta.env.VITE_ROOT_URL, } } diff --git a/src/components/MapContent.vue b/src/components/MapContent.vue index 79b078e5..f326a55b 100644 --- a/src/components/MapContent.vue +++ b/src/components/MapContent.vue @@ -411,6 +411,7 @@ export default { this.options.algoliaId ? this.settingsStore.updateAlgoliaId(this.options.algoliaId) : null; this.options.pennsieveApi ? this.settingsStore.updatePennsieveApi(this.options.pennsieveApi) : null; this.options.flatmapAPI ? this.settingsStore.updateFlatmapAPI(this.options.flatmapAPI) : null; + this.options.cellCardsApi ? this.settingsStore.updateCellCardsApi(this.options.cellCardsApi) : null; this.options.rootUrl ? this.settingsStore.updateRootUrl(this.options.rootUrl) : null; } this.settingsStore.updateAllClosable(this.allClosable); diff --git a/src/components/SplitFlow.vue b/src/components/SplitFlow.vue index c4c1352c..f8deb381 100644 --- a/src/components/SplitFlow.vue +++ b/src/components/SplitFlow.vue @@ -1082,6 +1082,7 @@ export default { PENNSIEVE_API_LOCATION: this.settingsStore.pennsieveApi, ROOT_URL: this.settingsStore.rootUrl, FLATMAPAPI_LOCATION: this.settingsStore.flatmapAPI, + CELL_CARDS_API: this.settingsStore.cellCardsApi, }; }, entries: function() { diff --git a/src/stores/settings.js b/src/stores/settings.js index 510ee4b7..0d0a1acd 100644 --- a/src/stores/settings.js +++ b/src/stores/settings.js @@ -12,6 +12,7 @@ export const useSettingsStore = defineStore('settings', { algoliaId: undefined, pennsieveApi: undefined, flatmapAPI: undefined, + cellCardsApi: undefined, mapManager: undefined, rootUrl: undefined, facets: { species: [], gender: [], organ: [] }, @@ -110,6 +111,9 @@ export const useSettingsStore = defineStore('settings', { updateFlatmapAPI(flatmapAPI) { this.flatmapAPI = flatmapAPI; }, + updateCellCardsApi(cellCardsApi) { + this.cellCardsApi = cellCardsApi; + }, updateMapManager(mapManager) { this.mapManager = mapManager; }, From 7cec10816d3e6b737e2007b5f1e0afb6481c8d48 Mon Sep 17 00:00:00 2001 From: akhuoa Date: Wed, 6 May 2026 19:29:30 +1200 Subject: [PATCH 02/25] Add cell cards explorer show hide toggle --- src/App.vue | 6 ++++++ src/components/MapContent.vue | 8 ++++++++ src/components/SplitFlow.vue | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/src/App.vue b/src/App.vue index 1211f6e3..06fc87f3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,6 +25,7 @@ Set Flatmap Set Search Toggle Long Label + Toggle Cell Cards