Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ef4c5686e | ||
|
|
78e28789a5 |
@@ -246,7 +246,7 @@ import {
|
||||
| Checkbox | primitive | Boolean input with label |
|
||||
| CodeBlock | primitive | Syntax-highlighted code/JSON display |
|
||||
| Collapsible | primitive | Single expand/collapse section |
|
||||
| CommandPalette | composite | Full-screen search and command interface |
|
||||
| CommandPalette | composite | Full-screen search and command interface. `SearchCategory` is an open `string` type — known categories (application, exchange, attribute, route, agent) have built-in labels; custom categories render with title-cased labels and appear as dynamic tabs. |
|
||||
| ConfirmDialog | composite | Type-to-confirm destructive action dialog built on Modal. Props: open, onClose, onConfirm, title, message, confirmText, confirmLabel, cancelLabel, variant, loading, className |
|
||||
| DataTable | composite | Sortable, paginated data table with row actions. Use `flush` prop when embedded inside a container that provides its own border/radius |
|
||||
| DateRangePicker | primitive | Date range selection with presets |
|
||||
|
||||
@@ -66,15 +66,17 @@ export function GlobalFilterProvider({ children }: { children: ReactNode }) {
|
||||
try { localStorage.setItem('cameleer:auto-refresh', String(enabled)) } catch {}
|
||||
}, [])
|
||||
|
||||
// Keep the time range sliding forward when a preset is active and live
|
||||
// Keep the time range sliding forward whenever a preset is active.
|
||||
// PAUSED mode only stops query polling — the time window still advances
|
||||
// so that manual refreshes and sidebar-triggered queries see current data.
|
||||
useEffect(() => {
|
||||
if (!autoRefresh || !timeRange.preset) return
|
||||
if (!timeRange.preset) return
|
||||
const id = setInterval(() => {
|
||||
const { start, end } = computePresetRange(timeRange.preset!)
|
||||
setTimeRangeState({ start, end, preset: timeRange.preset })
|
||||
}, 10_000)
|
||||
return () => clearInterval(id)
|
||||
}, [autoRefresh, timeRange.preset])
|
||||
}, [timeRange.preset])
|
||||
|
||||
const isInTimeRange = useCallback(
|
||||
(timestamp: Date) => {
|
||||
|
||||
Reference in New Issue
Block a user