fix: restore velocity web build after webos merge

This commit is contained in:
Sagnik
2026-04-18 19:26:27 +05:30
parent 84e439712c
commit 37c06de749
3 changed files with 3 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
import { useEffect, useMemo, useState } from 'react';
import { Activity, BarChart3, DatabaseZap, Megaphone, RefreshCw, Sparkles } from 'lucide-react';
import { Activity, BarChart3, DatabaseZap, Megaphone, Sparkles } from 'lucide-react';
import {
getCatalystCampaigns,

View File

@@ -21,7 +21,7 @@ import { useStore } from '@/store/useStore';
import { useCurrency, CURRENCY_OPTIONS } from '@/store/useCurrencyStore';
import type { CurrencyCode } from '@/store/useCurrencyStore';
import { API_URL } from '@/lib/api';
import { VELOCITY_TOKEN_KEY, clearVelocityToken, getVelocityToken, normalizeVelocityRole } from '@/lib/velocityPlatformClient';
import { clearVelocityToken, getVelocityToken, normalizeVelocityRole } from '@/lib/velocityPlatformClient';
// ── Design tokens (matching inventory glassmorphism) ─────────────────────────
const GLASS = {
@@ -206,22 +206,6 @@ function GhostButton({ children, onClick, danger = false }: { children: React.Re
}
// ── Text input ───────────────────────────────────────────────────────────────
function DarkInput({ type = 'text', defaultValue, placeholder }: { type?: string; defaultValue?: string; placeholder?: string }) {
return (
<input
type={type}
defaultValue={defaultValue}
placeholder={placeholder}
className="rounded-xl px-3 py-2 text-sm text-white w-48 focus:outline-none transition-all"
style={{
...INNER_SURFACE,
caretColor: 'hsl(var(--accent))',
}}
onFocus={(e) => { e.currentTarget.style.border = '1px solid hsl(var(--accent) / 0.4)'; }}
onBlur={(e) => { e.currentTarget.style.border = '1px solid rgba(255,255,255,0.07)'; }}
/>
);
}
// ── System Status ────────────────────────────────────────────────────────────
function SystemStatusCard() {

View File

@@ -5,7 +5,7 @@ import { mapLeadRecordToStoreLead } from '@/lib/crmMappers';
import { mapInventoryPropertySummaryToUnit } from '@/lib/platformMappers';
import { useStore } from '@/store/useStore';
import type { ChatMessage } from '@/types';
import type { LeadRecord, ChatLogRecord } from '@/lib/api';
import type { LeadRecord } from '@/lib/api';
import { listInventoryProperties } from '@/lib/velocityPlatformClient';
export function useCrmBootstrap() {