diff --git a/bicorder-app/src/App.svelte b/bicorder-app/src/App.svelte index c655772..b1b70cd 100644 --- a/bicorder-app/src/App.svelte +++ b/bicorder-app/src/App.svelte @@ -8,6 +8,7 @@ import HelpModal from './components/HelpModal.svelte'; import FormRecommendation from './components/FormRecommendation.svelte'; import AnalysisTransitionBanner from './components/AnalysisTransitionBanner.svelte'; + import HamburgerMenu from './components/HamburgerMenu.svelte'; import { BicorderClassifier } from './bicorder-classifier'; // Load bicorder data and model from build-time constants @@ -97,6 +98,32 @@ viewMode = viewMode === 'focused' ? 'list' : 'focused'; } + function toggleFormMode() { + data = { + ...data, + metadata: { + ...data.metadata, + shortform: !data.metadata.shortform + } + }; + // Force refresh of components + refreshKey++; + // Reset to first screen when toggling + currentScreen = 0; + } + + function showAnalysis() { + // Find the first analysis screen + const firstAnalysisIndex = screens.findIndex(s => s.type === 'analysis'); + if (firstAnalysisIndex !== -1) { + currentScreen = firstAnalysisIndex; + // Switch to focused mode if in list mode + if (viewMode === 'list') { + viewMode = 'focused'; + } + } + } + // Generate ASCII progress bar function generateProgressBar(current: number, total: number): string { const filled = '#'; @@ -412,7 +439,7 @@ class="toolbar-btn help-btn" on:click={openHelp} aria-label="About the Bicorder" - title="Help & Instructions" + title="About" > ? @@ -424,20 +451,13 @@