Automate issuer overlay creation from ticker searches

This commit is contained in:
2026-03-19 20:44:58 -04:00
parent 17de3dd72d
commit 391d6d34ce
79 changed files with 4746 additions and 695 deletions

View File

@@ -36,7 +36,7 @@ import {
type GraphingLatestValueRow,
type GraphingSeriesPoint
} from '@/lib/graphing/series';
import { ApiError } from '@/lib/api';
import { ApiError, ensureTickerAutomation } from '@/lib/api';
import {
formatCurrencyByScale,
formatPercent,
@@ -422,6 +422,12 @@ function GraphingPageContent() {
onSubmit={(event) => {
event.preventDefault();
const nextTickers = normalizeGraphTickers(tickerInput);
if (nextTickers[0]) {
void ensureTickerAutomation({
ticker: nextTickers[0],
source: 'graphing'
});
}
replaceGraphState({ tickers: nextTickers.length > 0 ? nextTickers : [...graphState.tickers] });
}}
>