fix: restore velocity web build after webos merge
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useMemo, useState } from 'react';
|
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 {
|
import {
|
||||||
getCatalystCampaigns,
|
getCatalystCampaigns,
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import { useStore } from '@/store/useStore';
|
|||||||
import { useCurrency, CURRENCY_OPTIONS } from '@/store/useCurrencyStore';
|
import { useCurrency, CURRENCY_OPTIONS } from '@/store/useCurrencyStore';
|
||||||
import type { CurrencyCode } from '@/store/useCurrencyStore';
|
import type { CurrencyCode } from '@/store/useCurrencyStore';
|
||||||
import { API_URL } from '@/lib/api';
|
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) ─────────────────────────
|
// ── Design tokens (matching inventory glassmorphism) ─────────────────────────
|
||||||
const GLASS = {
|
const GLASS = {
|
||||||
@@ -206,22 +206,6 @@ function GhostButton({ children, onClick, danger = false }: { children: React.Re
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ── Text input ───────────────────────────────────────────────────────────────
|
// ── 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 ────────────────────────────────────────────────────────────
|
// ── System Status ────────────────────────────────────────────────────────────
|
||||||
function SystemStatusCard() {
|
function SystemStatusCard() {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { mapLeadRecordToStoreLead } from '@/lib/crmMappers';
|
|||||||
import { mapInventoryPropertySummaryToUnit } from '@/lib/platformMappers';
|
import { mapInventoryPropertySummaryToUnit } from '@/lib/platformMappers';
|
||||||
import { useStore } from '@/store/useStore';
|
import { useStore } from '@/store/useStore';
|
||||||
import type { ChatMessage } from '@/types';
|
import type { ChatMessage } from '@/types';
|
||||||
import type { LeadRecord, ChatLogRecord } from '@/lib/api';
|
import type { LeadRecord } from '@/lib/api';
|
||||||
import { listInventoryProperties } from '@/lib/velocityPlatformClient';
|
import { listInventoryProperties } from '@/lib/velocityPlatformClient';
|
||||||
|
|
||||||
export function useCrmBootstrap() {
|
export function useCrmBootstrap() {
|
||||||
|
|||||||
Reference in New Issue
Block a user