colesr commited on
Commit
7803f2d
·
verified ·
1 Parent(s): fc35351

Add drag-drop tabs, theme toggle, tooltip system, dataset request email button

Browse files
Files changed (1) hide show
  1. static/index.html +33 -23
static/index.html CHANGED
@@ -204,27 +204,34 @@ body{background:#0a0e1a;overflow-x:hidden;color:#cbd5e1;font-family:'Inter',sans
204
  </header>
205
 
206
  <div class="max-w-[1920px] mx-auto px-4 sm:px-6 pt-4">
207
- <div class="flex gap-2 overflow-x-auto pb-2">
208
- <button data-tab="explorer" id="tab-btn-explorer" class="tab-btn active px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5">
209
- <i data-lucide="search" class="w-3.5 h-3.5"></i>Explorer
210
- </button>
211
- <button data-tab="simulator" id="tab-btn-simulator" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5">
212
- <i data-lucide="git-branch" class="w-3.5 h-3.5"></i>Simulator
213
- </button>
214
- <button data-tab="discover" id="tab-btn-discover" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5">
215
- <i data-lucide="sparkles" class="w-3.5 h-3.5"></i>Discover
216
- </button>
217
- <button data-tab="compare" id="tab-btn-compare" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5">
218
- <i data-lucide="columns-3" class="w-3.5 h-3.5"></i>Compare
219
- </button>
220
- <button data-tab="decisions" id="tab-btn-decisions" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5">
221
- <i data-lucide="sliders-horizontal" class="w-3.5 h-3.5"></i>Decisions
222
- </button>
223
- <button data-tab="benchmark" id="tab-btn-benchmark" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5">
224
- <i data-lucide="user" class="w-3.5 h-3.5"></i>Profile
225
- </button>
226
- <button data-tab="outliers" id="tab-btn-outliers" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5">
227
- <i data-lucide="alert-triangle" class="w-3.5 h-3.5"></i>Outliers
 
 
 
 
 
 
 
228
  </button>
229
  </div>
230
  </div>
@@ -338,7 +345,10 @@ body{background:#0a0e1a;overflow-x:hidden;color:#cbd5e1;font-family:'Inter',sans
338
  </div>
339
  <div class="lg:col-span-2">
340
  <div class="glass rounded-2xl p-5 h-full">
341
- <h3 class="text-sm font-semibold text-white mb-4 flex items-center gap-2"><i data-lucide="arrow-left-right" class="w-4 h-4 text-brand-400"></i>Projected Impact</h3>
 
 
 
342
  <div class="h-80"><canvas id="simChart"></canvas></div>
343
  </div>
344
  </div>
@@ -536,6 +546,6 @@ body{background:#0a0e1a;overflow-x:hidden;color:#cbd5e1;font-family:'Inter',sans
536
  </div>
537
 
538
  <script src="/static/dataset_embed.js"></script>
539
- <script src="/static/app_v15.js"></script>
540
  </body>
541
  </html>
 
204
  </header>
205
 
206
  <div class="max-w-[1920px] mx-auto px-4 sm:px-6 pt-4">
207
+ <div class="flex items-center justify-between">
208
+ <div id="tabBar" class="flex gap-2 overflow-x-auto pb-2 flex-1">
209
+ <button draggable="true" data-tab="explorer" id="tab-btn-explorer" class="tab-btn active px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5 cursor-move">
210
+ <i data-lucide="grip-vertical" class="w-3 h-3 text-slate-600 mr-0.5 opacity-50 hover:opacity-100 transition-opacity tab-drag-handle"></i><i data-lucide="search" class="w-3.5 h-3.5"></i>Explorer
211
+ </button>
212
+ <button draggable="true" data-tab="simulator" id="tab-btn-simulator" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5 cursor-move">
213
+ <i data-lucide="grip-vertical" class="w-3 h-3 text-slate-600 mr-0.5 opacity-50 hover:opacity-100 transition-opacity tab-drag-handle"></i><i data-lucide="git-branch" class="w-3.5 h-3.5"></i>Simulator
214
+ </button>
215
+ <button draggable="true" data-tab="discover" id="tab-btn-discover" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5 cursor-move">
216
+ <i data-lucide="grip-vertical" class="w-3 h-3 text-slate-600 mr-0.5 opacity-50 hover:opacity-100 transition-opacity tab-drag-handle"></i><i data-lucide="sparkles" class="w-3.5 h-3.5"></i>Discover
217
+ </button>
218
+ <button draggable="true" data-tab="compare" id="tab-btn-compare" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5 cursor-move">
219
+ <i data-lucide="grip-vertical" class="w-3 h-3 text-slate-600 mr-0.5 opacity-50 hover:opacity-100 transition-opacity tab-drag-handle"></i><i data-lucide="columns-3" class="w-3.5 h-3.5"></i>Compare
220
+ </button>
221
+ <button draggable="true" data-tab="decisions" id="tab-btn-decisions" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5 cursor-move">
222
+ <i data-lucide="grip-vertical" class="w-3 h-3 text-slate-600 mr-0.5 opacity-50 hover:opacity-100 transition-opacity tab-drag-handle"></i><i data-lucide="sliders-horizontal" class="w-3.5 h-3.5"></i>Decisions
223
+ </button>
224
+ <button draggable="true" data-tab="benchmark" id="tab-btn-benchmark" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5 cursor-move">
225
+ <i data-lucide="grip-vertical" class="w-3 h-3 text-slate-600 mr-0.5 opacity-50 hover:opacity-100 transition-opacity tab-drag-handle"></i><i data-lucide="user" class="w-3.5 h-3.5"></i>Profile
226
+ </button>
227
+ <button draggable="true" data-tab="outliers" id="tab-btn-outliers" class="tab-btn px-4 py-2 rounded-lg text-xs font-medium text-slate-400 hover:text-white whitespace-nowrap flex items-center gap-1.5 cursor-move">
228
+ <i data-lucide="grip-vertical" class="w-3 h-3 text-slate-600 mr-0.5 opacity-50 hover:opacity-100 transition-opacity tab-drag-handle"></i><i data-lucide="alert-triangle" class="w-3.5 h-3.5"></i>Outliers
229
+ </button>
230
+ </div>
231
+ <!-- Discrete theme toggle -->
232
+ <button onclick="toggleTheme()" id="themeToggle" class="ml-2 flex-shrink-0 w-8 h-8 rounded-lg glass-light flex items-center justify-center text-slate-400 hover:text-brand-300 transition-colors" title="Toggle theme">
233
+ <i data-lucide="sun" class="w-3.5 h-3.5 theme-icon-light hidden"></i>
234
+ <i data-lucide="moon" class="w-3.5 h-3.5 theme-icon-dark"></i>
235
  </button>
236
  </div>
237
  </div>
 
345
  </div>
346
  <div class="lg:col-span-2">
347
  <div class="glass rounded-2xl p-5 h-full">
348
+ <div class="flex items-center justify-between mb-4">
349
+ <h3 class="text-sm font-semibold text-white flex items-center gap-2"><i data-lucide="arrow-left-right" class="w-4 h-4 text-brand-400"></i>Projected Impact</h3>
350
+ <button onclick="openChatbotFor('simulator')" class="explain-chart-btn px-2 py-1 rounded-md glass-light text-[0.65rem] text-slate-400 hover:text-brand-300 hover:border-brand-500/20 border border-transparent transition-all flex items-center gap-1"><i data-lucide="message-circle" class="w-3 h-3"></i>Explain</button>
351
+ </div>
352
  <div class="h-80"><canvas id="simChart"></canvas></div>
353
  </div>
354
  </div>
 
546
  </div>
547
 
548
  <script src="/static/dataset_embed.js"></script>
549
+ <script src="/static/app_v16.js"></script>
550
  </body>
551
  </html>