From 65726a02117b3828ca6aae1f40330ae36e8c4b8c Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Fri, 19 Jun 2026 17:48:30 +0200 Subject: [PATCH] refactor(layout): rename view-only mode to "macroplan" Avoids the redundant ?view=view in favour of the explicit ?view=macroplan, matching the button label. --- src/App.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 56b3a38..cb12684 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,16 +15,16 @@ const confirmingDelete = ref(false) // Which panes are visible: the Source editor, the rendered Macroplan, or both. // Kept in the URL (?view=…) so a layout is shareable/bookmarkable, not persisted. -type ViewMode = "source" | "split" | "view" +type ViewMode = "source" | "split" | "macroplan" function readViewMode(): ViewMode { const v = new URLSearchParams(location.search).get("view") - return v === "source" || v === "view" ? v : "split" + return v === "source" || v === "macroplan" ? v : "split" } const mode = ref(readViewMode()) -const showSource = computed(() => mode.value !== "view") -const showView = computed(() => mode.value !== "source") +const showSource = computed(() => mode.value !== "macroplan") +const showMacroplan = computed(() => mode.value !== "source") // Reflect the choice in the URL without stacking a history entry per toggle. // "split" is the default, so drop the param to keep the URL clean. @@ -83,17 +83,17 @@ function confirmDelete() {