refactor(new merge) (#369)

Co-authored-by: paisley <8197966+su8su@users.noreply.github.com>
Co-authored-by: zuolingxuan <zuolingxuan@bytedance.com>
This commit is contained in:
Lingxuan Zuo
2026-03-09 20:18:25 +08:00
committed by GitHub
Unverified
parent e28eba01e1
commit 3d664c017a
18 changed files with 514 additions and 390 deletions

View File

@@ -61,9 +61,13 @@ export function Dashboard() {
const [usageWindow, setUsageWindow] = useState<UsageWindow>('7d');
const [usagePage, setUsagePage] = useState(1);
// Fetch data only when gateway is running
// Track page view on mount only.
useEffect(() => {
trackUiEvent('dashboard.page_viewed');
}, []);
// Fetch data only when gateway is running.
useEffect(() => {
if (isGatewayRunning) {
fetchChannels();
fetchSkills();