From f452ffc1a2ced8f8c05b264744c5593389f8c5df Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Wed, 3 Dec 2025 13:09:58 -0500 Subject: [PATCH 1/5] style: by default, collapse panels in right sidebar --- web/src/store/panel.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/store/panel.ts b/web/src/store/panel.ts index b9ec1107..fc5f4394 100644 --- a/web/src/store/panel.ts +++ b/web/src/store/panel.ts @@ -40,6 +40,7 @@ function defaultPanelArrangement(): FloatingPanelConfig[] { label: "Charts", visible: true, closeable: true, + collapsed: true, dock: 'right', order: 1, }, @@ -48,6 +49,7 @@ function defaultPanelArrangement(): FloatingPanelConfig[] { label: 'Networks', visible: true, closeable: true, + collapsed: true, dock: 'right', order: 2, }, @@ -56,6 +58,7 @@ function defaultPanelArrangement(): FloatingPanelConfig[] { label: "Analytics", visible: true, closeable: true, + collapsed: true, dock: 'right', order: 3, }, From 06fe3774d442da6368a60955da3a66c69ebb0579 Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Wed, 3 Dec 2025 13:11:01 -0500 Subject: [PATCH 2/5] style: by default, close right sidebar --- web/src/store/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/store/app.ts b/web/src/store/app.ts index ff8342fc..873ae1c2 100644 --- a/web/src/store/app.ts +++ b/web/src/store/app.ts @@ -4,7 +4,7 @@ import { ref } from 'vue'; export const useAppStore = defineStore('app', () => { const theme = ref<"dark" | "light">("light"); - const openSidebars = ref<("left" | "right")[]>(["left", "right"]); + const openSidebars = ref<("left" | "right")[]>(["left"]); const currentUser = ref(); const currentError = ref(); From 45473b8bea92321890ec449e05bdf7a191a6ea25 Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Wed, 3 Dec 2025 13:24:37 -0500 Subject: [PATCH 3/5] fix: Hide analytics tasks from non-superusers for now --- geoinsight/core/rest/analytics.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/geoinsight/core/rest/analytics.py b/geoinsight/core/rest/analytics.py index cac2f8e3..229717a5 100644 --- a/geoinsight/core/rest/analytics.py +++ b/geoinsight/core/rest/analytics.py @@ -25,6 +25,10 @@ class AnalyticsViewSet(ReadOnlyModelViewSet): url_path=r'project/(?P[\d*]+)/types', ) def list_types(self, request, project_id: int, **kwargs): + # TODO: remove this when analytics are ready to be shown to all users + if not request.user.is_superuser: + return Response([], status=200) + serialized = [] for analysis_type in analysis_types: if not analysis_type.is_enabled(): From 8167271511d91055219c873e7e5e13c4bd1f5498 Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Wed, 3 Dec 2025 13:41:37 -0500 Subject: [PATCH 4/5] fix: Update analytics test --- geoinsight/core/tests/test_analytics.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/geoinsight/core/tests/test_analytics.py b/geoinsight/core/tests/test_analytics.py index 3d540704..521b6a06 100644 --- a/geoinsight/core/tests/test_analytics.py +++ b/geoinsight/core/tests/test_analytics.py @@ -5,9 +5,13 @@ @pytest.mark.django_db -def test_rest_list_analysis_types(authenticated_api_client, project): +def test_rest_list_analysis_types(user, authenticated_api_client, project): from geoinsight.core.tasks.analytics import analysis_types + # TODO: remove this when analytics are no longer hidden from non-superusers + user.is_superuser = True + user.save() + analysis_type_instances = [at() for at in analysis_types] resp = authenticated_api_client.get(f'/api/v1/analytics/project/{project.id}/types/') data = resp.json() From 8b5656cd8236966b70f90d4acade774aaa4e9846 Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Tue, 16 Dec 2025 16:04:41 -0500 Subject: [PATCH 5/5] feat: Make Analytics panel invisible by default --- web/src/store/panel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/store/panel.ts b/web/src/store/panel.ts index fc5f4394..1c93c198 100644 --- a/web/src/store/panel.ts +++ b/web/src/store/panel.ts @@ -56,7 +56,7 @@ function defaultPanelArrangement(): FloatingPanelConfig[] { { id: "analytics", label: "Analytics", - visible: true, + visible: false, closeable: true, collapsed: true, dock: 'right',