Replace the separate Market Ticker and OpenRouter Stats settings sections with a single Tickers & Stats section. It lists every active ticker/stat with its settings and remove actions, and offers one Add integration button that opens the generic integration list filtered to tickers and stats. The add button is hidden once every single-instance integration is connected, matching the old sections' behavior.
8 lines
394 B
JavaScript
8 lines
394 B
JavaScript
import { MARKET_TICKER_TYPES } from './market-ticker';
|
|
import { USAGE_TYPES } from './usage';
|
|
|
|
// The integration types managed by the unified Tickers & Stats settings
|
|
// section. Market tickers and usage stats share the same add/edit/remove flow,
|
|
// so they are grouped here instead of in separate settings sections.
|
|
export const TICKER_STATS_TYPES = [...MARKET_TICKER_TYPES, ...USAGE_TYPES];
|