From f3540c6b4b5df27127b0fde95485daeba376b858 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Sat, 9 May 2026 01:52:15 -0700 Subject: [PATCH] refactor(ui): normalize admin db sync controls --- web/src/tabs/AdminTab.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/web/src/tabs/AdminTab.tsx b/web/src/tabs/AdminTab.tsx index 0058421..8b2245b 100644 --- a/web/src/tabs/AdminTab.tsx +++ b/web/src/tabs/AdminTab.tsx @@ -17,7 +17,7 @@ import { fetchDynamicConfigItems, upsertDynamicConfigItems } from '../lib/dynami import { getPlatformAccessToken } from '../lib/authSession'; import { createRequestId } from '../../../shared/request-id.js'; import { tradingRuntime } from '../lib/runtime'; -import { Button } from '../components/ui/Primitives'; +import { Button, Input } from '../components/ui/Primitives'; interface AdminTabProps { botState: BotState; @@ -846,20 +846,22 @@ export const AdminTab = ({ botState, socket }: AdminTabProps) => {

State Snapshots

Persistent sync of bot state to Supabase

- +
@@ -869,13 +871,14 @@ export const AdminTab = ({ botState, socket }: AdminTabProps) => {

Minimum time between DB writes ({Math.round(dbSyncInterval / 60000)}m)

- setDbSyncInterval(parseInt(e.target.value))} + controlSize="sm" className="w-32 accent-cyan-500" />