Name Description Size Coverage
_Stocks.scss 16467 -
Stocks.jsx 25069 -
StockSearch.jsx The ticker search panel: search for a symbol and add a result to the watchlist. The parent owns the search status and results. @param {object} props @param {string} props.searchStatus Current state: "idle", "loading", "success", "empty", or "error". @param {object[]} props.searchResults Matches returned by a successful search: ticker, name, exchange. @param {string[]} props.savedSymbols The user's watchlist, to mark added rows. @param {boolean} props.atWatchlistLimit Whether the watchlist is full. @param {function(string): void} props.onSubmit Called with a non-empty search query. @param {function(string, string): void} props.onAdd Called with a result's ticker symbol and display name. @param {function(): void} props.onClose Called when the user closes the panel. 5604 -
StocksError.jsx 1362 -
StockTicker.jsx 8438 -
useStockSearch.jsx Owns the ticker-search panel lifecycle: whether it is open, sending a search, and returning focus when it closes. The watchlist mutation on add stays in the parent; this hook only opens, closes, and submits. @param {object} options @param {Function} options.dispatch The store's dispatch. @param {Function} options.recordUserAction Telemetry recorder from useWidgetTelemetry. @param {object} options.menuButtonRef Ref to the widget menu button, the last-resort focus target on close. @returns {{ active: boolean, open: (openedFrom?: object) => void, close: () => void, submit: (query: string) => void, searchButtonRef: object, emptySearchButtonRef: object }} `open` takes the ref of the control that opened search. The two returned refs are for the toolbar and empty-state search buttons. 3375 -