Skip to content

Commit 445983e

Browse files
committed
Prepare for deployment: simplify navigation and fix data display
DEPLOYMENT READY CHANGES: - Remove Pattern Discovery and Season Stats from navigation (commented out, not deleted) - Replace Sidebar SB logo with football icon for consistency - Remove auto-execute toggle from Query Builder - back to simple button interface - Fix season tab date ranges to match actual data availability (July-September 2024) All problematic components are hidden but code preserved for future development. App is now ready for deployment with working core features: Dashboard, Query Builder, AI Assistant.
1 parent 2cb6ca1 commit 445983e

7 files changed

Lines changed: 15 additions & 257 deletions

File tree

MatrixRain.tsx

Lines changed: 0 additions & 214 deletions
This file was deleted.
Binary file not shown.

backend/chroma_db/chroma.sqlite3

0 Bytes
Binary file not shown.

src/App.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@
8989
<Dashboard bind:this={dashboardComponent} />
9090
{:else if currentView === 'Query Builder'}
9191
<QueryBuilder on:navigate={navigate} />
92-
{:else if currentView === 'Pattern Discovery'}
93-
<PatternDiscovery />
92+
<!-- {:else if currentView === 'Pattern Discovery'}
93+
<PatternDiscovery /> -->
9494
{:else if currentView === 'AI Assistant'}
9595
<AiAssistant on:navigate={navigate} />
96-
{:else if currentView === 'Season Stats'}
97-
<SeasonStats />
96+
<!-- {:else if currentView === 'Season Stats'}
97+
<SeasonStats /> -->
9898
{:else if currentView === 'Settings'}
9999
<Settings />
100100
{:else if currentView === 'Help'}

src/components/EnhancedVisualizations.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
startDate = new Date('2024-08-01');
8989
endDate = new Date('2025-05-31');
9090
break;
91-
// Seasonal periods
91+
// Seasonal periods (adjusted for actual data availability)
9292
case 'summer-2024':
93-
startDate = new Date('2024-06-01');
93+
startDate = new Date('2024-07-01');
9494
endDate = new Date('2024-08-31');
9595
break;
9696
case 'autumn-2024':

src/components/QueryBuilder.svelte

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,7 @@
2828
let isExecuting = false;
2929
let useBackendAPI = true;
3030
let backendAvailable = false;
31-
let autoExecute = false;
32-
33-
34-
// Save auto-execute preference
35-
function toggleAutoExecute() {
36-
autoExecute = !autoExecute;
37-
localStorage.setItem('autoExecuteQueries', autoExecute.toString());
38-
}
31+
// Removed auto-execute functionality for deployment simplicity
3932
4033
// Natural language examples for the AI-powered query system
4134
const exampleQueries = [
@@ -64,8 +57,7 @@
6457
useBackendAPI = true;
6558
}
6659
67-
// Load auto-execute preference from localStorage
68-
autoExecute = localStorage.getItem('autoExecuteQueries') === 'true';
60+
// Auto-execute functionality removed
6961
});
7062
7163
function navigateToSettings() {
@@ -117,10 +109,7 @@
117109
// If backend already executed the query
118110
if (response.results) {
119111
executionResult = response.results;
120-
} else if (autoExecute) {
121-
// Auto-execute the query if toggle is enabled
122-
await executeSQL();
123-
}
112+
// Auto-execute removed - user must click Execute button
124113
} else {
125114
// Fallback to direct OpenAI API call
126115
const apiKey = localStorage.getItem('openai_api_key');
@@ -187,10 +176,7 @@ Output: SELECT match_date, home_team, away_team, home_score, away_score FROM mat
187176
performanceEstimate: 'Fast'
188177
};
189178
190-
// Auto-execute the query if toggle is enabled
191-
if (autoExecute) {
192-
await executeSQL();
193-
}
179+
// Auto-execute removed - user must click Execute button
194180
}
195181
} catch (err) {
196182
error = err instanceof Error ? err.message : 'An error occurred';
@@ -413,21 +399,7 @@ Output: SELECT match_date, home_team, away_team, home_score, away_score FROM mat
413399
{/if}
414400
</button>
415401
416-
<!-- Auto-execute toggle -->
417-
<div class="flex items-center gap-2">
418-
<label class="relative inline-flex items-center cursor-pointer">
419-
<input
420-
type="checkbox"
421-
bind:checked={autoExecute}
422-
on:change={toggleAutoExecute}
423-
class="sr-only peer"
424-
/>
425-
<div class="relative w-11 h-6 bg-slate-200 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-green-300 dark:peer-focus:ring-green-800 rounded-full peer dark:bg-slate-700 peer-checked:bg-green-600 transition-colors">
426-
<div class="absolute top-[2px] left-[2px] bg-white border border-gray-300 rounded-full h-5 w-5 transition-transform {autoExecute ? 'translate-x-full' : 'translate-x-0'} dark:border-gray-600"></div>
427-
</div>
428-
</label>
429-
<span class="text-sm text-slate-600 dark:text-slate-400">Auto-execute</span>
430-
</div>
402+
<!-- Auto-execute toggle removed for deployment simplicity -->
431403
432404
<button
433405
type="button"

src/components/Sidebar.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
const navItems = [
1515
{ name: 'Dashboard', icon: LayoutDashboard, view: 'Dashboard' },
1616
{ name: 'Query Builder', icon: Search, view: 'Query Builder' },
17-
{ name: 'Pattern Discovery', icon: Sparkles, view: 'Pattern Discovery' },
18-
{ name: 'Season Stats', icon: BarChart3, view: 'Season Stats' },
17+
// { name: 'Pattern Discovery', icon: Sparkles, view: 'Pattern Discovery' },
18+
// { name: 'Season Stats', icon: BarChart3, view: 'Season Stats' },
1919
{ name: 'AI Assistant', icon: Bot, view: 'AI Assistant' },
2020
];
2121
@@ -40,8 +40,8 @@
4040
<div class="px-4 py-6 border-b border-slate-200 dark:border-slate-700">
4141
<div class="flex items-center justify-between">
4242
<div class="flex items-center space-x-3">
43-
<div class="w-10 h-10 bg-gradient-to-br from-green-500 to-emerald-500 rounded-lg flex items-center justify-center">
44-
<span class="text-white font-bold text-lg">SB</span>
43+
<div class="w-10 h-10 rounded-lg flex items-center justify-center">
44+
<img src="/football.svg" alt="SQL Ball" class="w-8 h-8" />
4545
</div>
4646
<div>
4747
<h2 class="text-sm font-semibold text-slate-900 dark:text-white">SQL-Ball</h2>

0 commit comments

Comments
 (0)