Spaces:
Sleeping
Sleeping
Update index.html: Rank tab, Scenario Builder, Mapping canvas, tooltips
Browse files- static/index.html +38 -7
static/index.html
CHANGED
|
@@ -240,8 +240,8 @@ html.light-mode .export-menu button:hover{background:rgba(6,182,212,0.08);color:
|
|
| 240 |
<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" data-tooltip="Side-by-side country comparison with radar charts. Drag to reorder.">
|
| 241 |
<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
|
| 242 |
</button>
|
| 243 |
-
<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" data-tooltip="Weighted
|
| 244 |
-
<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>
|
| 245 |
</button>
|
| 246 |
<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" data-tooltip="Profile a single country against regional or global peers. Drag to reorder.">
|
| 247 |
<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
|
|
@@ -249,6 +249,9 @@ html.light-mode .export-menu button:hover{background:rgba(6,182,212,0.08);color:
|
|
| 249 |
<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" data-tooltip="Find statistical outliers and edge cases in the data. Drag to reorder.">
|
| 250 |
<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
|
| 251 |
</button>
|
|
|
|
|
|
|
|
|
|
| 252 |
</div>
|
| 253 |
<!-- Discrete theme toggle -->
|
| 254 |
<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">
|
|
@@ -344,10 +347,10 @@ html.light-mode .export-menu button:hover{background:rgba(6,182,212,0.08);color:
|
|
| 344 |
</main>
|
| 345 |
</div>
|
| 346 |
|
| 347 |
-
<!--
|
| 348 |
<div id="tab-simulator" class="tab-content hidden max-w-[1920px] mx-auto p-4 sm:p-6">
|
| 349 |
<div class="glass rounded-2xl p-6">
|
| 350 |
-
<h2 class="text-xl font-bold text-white mb-2 flex items-center gap-2"><i data-lucide="git-branch" class="w-5 h-5 text-brand-400"></i>Scenario
|
| 351 |
<p class="text-xs text-slate-400 mb-6">Adjust any variable and see projected changes across all correlated indicators.</p>
|
| 352 |
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 353 |
<div class="lg:col-span-1 space-y-4">
|
|
@@ -408,11 +411,11 @@ html.light-mode .export-menu button:hover{background:rgba(6,182,212,0.08);color:
|
|
| 408 |
</div>
|
| 409 |
</div>
|
| 410 |
|
| 411 |
-
<!--
|
| 412 |
<div id="tab-decisions" class="tab-content hidden max-w-[1920px] mx-auto p-4 sm:p-6">
|
| 413 |
<div class="glass rounded-2xl p-6">
|
| 414 |
<div class="flex items-center justify-between mb-4">
|
| 415 |
-
<h2 class="text-xl font-bold text-white flex items-center gap-2"><i data-lucide="sliders-horizontal" class="w-5 h-5 text-brand-400"></i>
|
| 416 |
<button onclick="openChatbotFor('decisions')" class="explain-chart-btn px-2.5 py-1.5 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.5"><i data-lucide="message-circle" class="w-3 h-3"></i>How this works</button>
|
| 417 |
</div>
|
| 418 |
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
|
@@ -559,6 +562,34 @@ html.light-mode .export-menu button:hover{background:rgba(6,182,212,0.08);color:
|
|
| 559 |
<!-- Chatbot overlay backdrop -->
|
| 560 |
<div id="chatbotBackdrop" onclick="closeChatbot()" class="fixed inset-0 z-[75] bg-black/40 backdrop-blur-sm hidden opacity-0 transition-opacity duration-300"></div>
|
| 561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 562 |
<!-- "Explain this" tooltip style floating buttons for charts -->
|
| 563 |
<div id="explainTooltip" class="fixed z-[55] hidden" style="pointer-events:none">
|
| 564 |
<div class="glass-light rounded-lg px-2.5 py-1.5 text-xs text-brand-300 flex items-center gap-1.5 shadow-lg shadow-brand-500/10" style="pointer-events:auto">
|
|
@@ -568,6 +599,6 @@ html.light-mode .export-menu button:hover{background:rgba(6,182,212,0.08);color:
|
|
| 568 |
</div>
|
| 569 |
|
| 570 |
<script src="/static/dataset_embed.js"></script>
|
| 571 |
-
<script src="/static/
|
| 572 |
</body>
|
| 573 |
</html>
|
|
|
|
| 240 |
<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" data-tooltip="Side-by-side country comparison with radar charts. Drag to reorder.">
|
| 241 |
<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
|
| 242 |
</button>
|
| 243 |
+
<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" data-tooltip="Weighted ranking with priority sliders. Drag to reorder.">
|
| 244 |
+
<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>Rank
|
| 245 |
</button>
|
| 246 |
<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" data-tooltip="Profile a single country against regional or global peers. Drag to reorder.">
|
| 247 |
<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
|
|
|
|
| 249 |
<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" data-tooltip="Find statistical outliers and edge cases in the data. Drag to reorder.">
|
| 250 |
<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
|
| 251 |
</button>
|
| 252 |
+
<button draggable="true" data-tab="mapping" id="tab-btn-mapping" 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" data-tooltip="Create concept maps and relationship diagrams. Drag to reorder.">
|
| 253 |
+
<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="map" class="w-3.5 h-3.5"></i>Mapping
|
| 254 |
+
</button>
|
| 255 |
</div>
|
| 256 |
<!-- Discrete theme toggle -->
|
| 257 |
<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">
|
|
|
|
| 347 |
</main>
|
| 348 |
</div>
|
| 349 |
|
| 350 |
+
<!-- SCENARIO BUILDER TAB -->
|
| 351 |
<div id="tab-simulator" class="tab-content hidden max-w-[1920px] mx-auto p-4 sm:p-6">
|
| 352 |
<div class="glass rounded-2xl p-6">
|
| 353 |
+
<h2 class="text-xl font-bold text-white mb-2 flex items-center gap-2"><i data-lucide="git-branch" class="w-5 h-5 text-brand-400"></i>Scenario Builder</h2>
|
| 354 |
<p class="text-xs text-slate-400 mb-6">Adjust any variable and see projected changes across all correlated indicators.</p>
|
| 355 |
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 356 |
<div class="lg:col-span-1 space-y-4">
|
|
|
|
| 411 |
</div>
|
| 412 |
</div>
|
| 413 |
|
| 414 |
+
<!-- RANK TAB -->
|
| 415 |
<div id="tab-decisions" class="tab-content hidden max-w-[1920px] mx-auto p-4 sm:p-6">
|
| 416 |
<div class="glass rounded-2xl p-6">
|
| 417 |
<div class="flex items-center justify-between mb-4">
|
| 418 |
+
<h2 class="text-xl font-bold text-white flex items-center gap-2"><i data-lucide="sliders-horizontal" class="w-5 h-5 text-brand-400"></i>Rank</h2>
|
| 419 |
<button onclick="openChatbotFor('decisions')" class="explain-chart-btn px-2.5 py-1.5 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.5"><i data-lucide="message-circle" class="w-3 h-3"></i>How this works</button>
|
| 420 |
</div>
|
| 421 |
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
|
|
|
| 562 |
<!-- Chatbot overlay backdrop -->
|
| 563 |
<div id="chatbotBackdrop" onclick="closeChatbot()" class="fixed inset-0 z-[75] bg-black/40 backdrop-blur-sm hidden opacity-0 transition-opacity duration-300"></div>
|
| 564 |
|
| 565 |
+
<!-- MAPPING TAB -->
|
| 566 |
+
<div id="tab-mapping" class="tab-content hidden max-w-[1920px] mx-auto p-4 sm:p-6">
|
| 567 |
+
<div class="glass rounded-2xl p-6 flex flex-col" style="height: calc(100vh - 200px);">
|
| 568 |
+
<div class="flex items-center justify-between mb-4">
|
| 569 |
+
<h2 class="text-xl font-bold text-white flex items-center gap-2"><i data-lucide="map" class="w-5 h-5 text-brand-400"></i>Mapping</h2>
|
| 570 |
+
<div class="flex items-center gap-2">
|
| 571 |
+
<button onclick="addMappingCard()" class="px-3 py-1.5 rounded-lg glass-light text-xs text-slate-300 hover:text-white hover:bg-slate-700/50 transition-colors flex items-center gap-1.5">
|
| 572 |
+
<i data-lucide="plus" class="w-3.5 h-3.5"></i>Add Card
|
| 573 |
+
</button>
|
| 574 |
+
<button onclick="clearMapping()" class="px-3 py-1.5 rounded-lg glass-light text-xs text-slate-300 hover:text-white hover:bg-slate-700/50 transition-colors flex items-center gap-1.5">
|
| 575 |
+
<i data-lucide="trash-2" class="w-3.5 h-3.5"></i>Clear
|
| 576 |
+
</button>
|
| 577 |
+
<button onclick="openChatbotFor('mapping')" 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>
|
| 578 |
+
</div>
|
| 579 |
+
</div>
|
| 580 |
+
<p class="text-xs text-slate-400 mb-3">Click & drag cards to arrange. Click "connect" on a card to draw a connection line to another card. Click a card to edit its note.</p>
|
| 581 |
+
<div id="mappingCanvas" class="relative flex-1 rounded-xl border border-slate-700/30 overflow-hidden" style="background: linear-gradient(rgba(15,23,42,0.6), rgba(15,23,42,0.6)), radial-gradient(circle at 1px 1px,rgba(148,163,184,.06) 1px,transparent 0); background-size: 40px 40px; cursor: grab;">
|
| 582 |
+
<svg id="mappingLines" class="absolute inset-0 w-full h-full pointer-events-none" style="z-index: 1;"></svg>
|
| 583 |
+
<div id="mappingCardsContainer" class="absolute inset-0" style="z-index: 2;"></div>
|
| 584 |
+
</div>
|
| 585 |
+
<div class="mt-2 flex items-center gap-4 text-[0.6rem] text-slate-500">
|
| 586 |
+
<span class="flex items-center gap-1"><i data-lucide="mouse-pointer-click" class="w-3 h-3"></i> Drag cards to move</span>
|
| 587 |
+
<span class="flex items-center gap-1"><i data-lucide="pen-tool" class="w-3 h-3"></i> Click "connect" then click target card to draw line</span>
|
| 588 |
+
<span class="flex items-center gap-1"><i data-lucide="text" class="w-3 h-3"></i> Click card text to edit</span>
|
| 589 |
+
</div>
|
| 590 |
+
</div>
|
| 591 |
+
</div>
|
| 592 |
+
|
| 593 |
<!-- "Explain this" tooltip style floating buttons for charts -->
|
| 594 |
<div id="explainTooltip" class="fixed z-[55] hidden" style="pointer-events:none">
|
| 595 |
<div class="glass-light rounded-lg px-2.5 py-1.5 text-xs text-brand-300 flex items-center gap-1.5 shadow-lg shadow-brand-500/10" style="pointer-events:auto">
|
|
|
|
| 599 |
</div>
|
| 600 |
|
| 601 |
<script src="/static/dataset_embed.js"></script>
|
| 602 |
+
<script src="/static/app_v18.js"></script>
|
| 603 |
</body>
|
| 604 |
</html>
|