feat: Add Vector Viz tab to app home page

- Add Vector Viz button to tab navigation
- Embed viz pane in iframe for seamless integration
- Only shown when vector sync is enabled
This commit is contained in:
Chris Coutinho
2025-11-15 02:38:05 +01:00
parent 916af1c8f3
commit eb32bbbc6b
@@ -858,6 +858,18 @@ async def user_info_html(request: Request) -> HTMLResponse:
Webhooks
</button>
'''
}
{
""
if not show_vector_sync_tab
else '''
<button
class="tab"
:class="activeTab === 'vector-viz' ? 'active' : ''"
@click="activeTab = 'vector-viz'">
Vector Viz
</button>
'''
}
</div>
@@ -889,6 +901,17 @@ async def user_info_html(request: Request) -> HTMLResponse:
</div>
'''
}
{
""
if not show_vector_sync_tab
else '''
<!-- Vector Viz Tab -->
<div class="tab-pane" x-show="activeTab === 'vector-viz'" x-transition.opacity.duration.150ms>
<iframe src="/app/vector-viz" style="width: 100%; height: 800px; border: none;"></iframe>
</div>
'''
}
</div>
{