gloomberb 0.20.11 → 0.20.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/account/billing.ts +3 -2
- package/src/account/upgrade-dialog.tsx +8 -8
- package/src/api-client/awards.ts +16 -0
- package/src/api-client/central-bank-rates.ts +5 -0
- package/src/api-client/data.ts +55 -2
- package/src/api-client/index.ts +28 -3
- package/src/api-client/install-experiments.ts +146 -0
- package/src/api-client/request.ts +86 -3
- package/src/api-client/socket-connection.ts +12 -1
- package/src/api-client/socket.ts +21 -3
- package/src/api-client/supply-chain-graph.ts +4 -2
- package/src/api-client/supply-chain.ts +8 -0
- package/src/api-client/telemetry.ts +47 -0
- package/src/api-client/types/econ.ts +10 -7
- package/src/api-client/types/filings-and-calls.ts +8 -0
- package/src/api-client/types/market.ts +4 -0
- package/src/api-client/types/news.ts +16 -0
- package/src/app/global-shortcuts.ts +2 -1
- package/src/app/keybindings/actions.ts +19 -0
- package/src/app/pane-runtime/index.tsx +18 -3
- package/src/app/pane-runtime/layout-placement.ts +63 -0
- package/src/app/pane-runtime/ticker-open-runtime.ts +10 -2
- package/src/architecture/floating-promise-allowlist.json +17 -33
- package/src/brokers/signed-in/adapter.ts +2 -2
- package/src/brokers/signed-in/catalog.ts +13 -4
- package/src/capabilities/chart-series.ts +4 -1
- package/src/cli/board-coins.ts +10 -1
- package/src/cli/commands/crypto-hints.ts +3 -2
- package/src/cli/commands/fred-series.ts +0 -54
- package/src/cli/commands/market.ts +260 -63
- package/src/cli/commands/overview.ts +50 -17
- package/src/cli/commands/search.ts +140 -17
- package/src/cli/commands/ticker.ts +37 -17
- package/src/cli/desktop-pane-shot.ts +27 -2
- package/src/cli/earnings-calendar.ts +33 -53
- package/src/cli/fx-quote-rate.ts +1 -1
- package/src/cli/glossary.ts +14 -5
- package/src/cli/history-catalog-series.ts +85 -0
- package/src/cli/history-rows.ts +18 -1
- package/src/cli/index.ts +1 -1
- package/src/cli/known-gaps.ts +9 -0
- package/src/cli/list-progress.ts +45 -0
- package/src/cli/listing-arg.ts +176 -25
- package/src/cli/name-entries.ts +8 -4
- package/src/cli/not-a-ticker.ts +2 -2
- package/src/cli/pane-functions/catalog.ts +55 -7
- package/src/cli/pane-functions/dom.ts +8 -1
- package/src/cli/pane-functions/freshness.ts +52 -5
- package/src/cli/pane-functions/headless.ts +8 -8
- package/src/cli/pane-functions/index.ts +8 -5
- package/src/cli/pane-functions/market-session.ts +66 -14
- package/src/cli/pane-functions/options.ts +5 -0
- package/src/cli/pane-functions/report.ts +4 -1
- package/src/cli/pane-functions/resolver.ts +9 -2
- package/src/cli/pane-functions/screenshot-assessment.ts +28 -3
- package/src/cli/pane-functions/screenshot-types.ts +6 -0
- package/src/cli/perpetual-contract.ts +4 -4
- package/src/cli/quote-answer.ts +55 -12
- package/src/cli/quote-list-reads.ts +87 -0
- package/src/cli/report-tables.ts +70 -13
- package/src/cli/result.ts +26 -3
- package/src/cli/symbol-list.ts +31 -4
- package/src/cli/terminal-code-hints.ts +83 -0
- package/src/cli/ticker-resolution.ts +2 -1
- package/src/cli/treasury-yields.ts +5 -0
- package/src/components/chart/composite/axis-overlays.tsx +5 -2
- package/src/components/chart/composite/composite-chart.tsx +1 -0
- package/src/components/chart/composite/format.ts +101 -15
- package/src/components/chart/composite/legend.tsx +60 -25
- package/src/components/chart/composite/time-axis.ts +51 -29
- package/src/components/chart/composite/toolbar.tsx +42 -6
- package/src/components/chart/curve/curve-surface.tsx +5 -5
- package/src/components/command-bar/action-runtime.ts +2 -0
- package/src/components/command-bar/list/badge.ts +8 -5
- package/src/components/command-bar/list/model.ts +0 -5
- package/src/components/command-bar/list/view.tsx +39 -2
- package/src/components/command-bar/routes/root/plugin-install.ts +4 -2
- package/src/components/command-bar/routes/root/provider-search.ts +23 -3
- package/src/components/command-bar/routes/root/results.ts +20 -9
- package/src/components/command-bar/routes/root/start-here.ts +1 -2
- package/src/components/command-bar/routes/ticker-search/actions.ts +2 -3
- package/src/components/command-bar/routes/ticker-search/results.ts +23 -4
- package/src/components/command-bar/routing/launch-request.ts +2 -1
- package/src/components/command-bar/routing/navigation-state.ts +4 -2
- package/src/components/command-bar/workflow/types.ts +6 -0
- package/src/components/data-table/view.tsx +29 -6
- package/src/components/form-modal/host.tsx +1 -1
- package/src/components/layout/detached-pane-shell.tsx +3 -0
- package/src/components/layout/double-escape-close.ts +34 -3
- package/src/components/layout/floating-pane.tsx +10 -4
- package/src/components/layout/header.tsx +3 -2
- package/src/components/layout/market-summary.ts +3 -3
- package/src/components/layout/pane/cycle-order.ts +66 -2
- package/src/components/layout/pane/error-boundary.tsx +2 -1
- package/src/components/layout/pane/header.tsx +140 -31
- package/src/components/layout/pane/sidebar.tsx +13 -5
- package/src/components/layout/pane/status-footer.ts +3 -1
- package/src/components/layout/shell/drag/runtime.ts +5 -0
- package/src/components/layout/shell/index.tsx +25 -0
- package/src/components/layout/shell/menu.ts +9 -0
- package/src/components/layout/shell/pane/actions.ts +36 -0
- package/src/components/layout/shell/pane/management-shortcuts.ts +27 -3
- package/src/components/layout/shell/pane-occlusion.ts +40 -0
- package/src/components/layout/shell/shortcuts.ts +17 -1
- package/src/components/layout/shell/terminal-pointer-runtime.ts +39 -6
- package/src/components/layout/shell/window-mode/index.ts +5 -16
- package/src/components/layout/shell/window-mode/overlays.tsx +3 -1
- package/src/components/markdown-text.tsx +36 -0
- package/src/components/market-board/index.tsx +18 -8
- package/src/components/metric-treemap/index.tsx +3 -1
- package/src/components/onboarding/first-run-workspace.ts +46 -11
- package/src/components/onboarding/onboarding-keyboard.ts +57 -5
- package/src/components/onboarding/onboarding-wizard.tsx +91 -24
- package/src/components/onboarding/portfolio-step/index.tsx +1 -0
- package/src/components/onboarding/portfolio-step/positions-panel.tsx +36 -9
- package/src/components/onboarding/portfolio-step/types.ts +2 -0
- package/src/components/onboarding/tickers-step-model.ts +140 -0
- package/src/components/onboarding/tickers-step.tsx +116 -0
- package/src/components/onboarding/use-onboarding-broker-form.ts +1 -1
- package/src/components/onboarding/use-onboarding-progress.ts +100 -11
- package/src/components/onboarding/use-onboarding-upgrade.ts +3 -2
- package/src/components/onboarding/wizard-model.ts +3 -1
- package/src/components/onboarding/wizard-tickers.ts +139 -0
- package/src/components/price-performance.tsx +2 -2
- package/src/components/speedometer-gauge/model.ts +2 -1
- package/src/components/speedometer-gauge/terminal.tsx +13 -8
- package/src/components/ui/button.tsx +48 -4
- package/src/components/ui/choice-dialog.tsx +101 -32
- package/src/components/ui/data-table/opentui/index.tsx +24 -9
- package/src/components/ui/data-table/types.ts +7 -0
- package/src/components/ui/inline-quick-add.tsx +19 -3
- package/src/components/ui/list-view.tsx +11 -5
- package/src/components/ui/multi-select/dialog.tsx +1 -7
- package/src/components/ui/not-meaningful.ts +16 -0
- package/src/components/ui/query-bar.tsx +32 -5
- package/src/components/ui/selection-fill.ts +39 -0
- package/src/components/ui/stat-grid.tsx +27 -6
- package/src/core/state/app/layout-reducer.ts +2 -1
- package/src/core/state/app/pane-choices.ts +68 -0
- package/src/core/state/app/state.ts +14 -6
- package/src/core/state/app/types.ts +8 -0
- package/src/data/config/store/normalize.ts +2 -0
- package/src/docs/snapshot.json +1 -1
- package/src/i18n/es.ts +5 -2
- package/src/i18n/ja.ts +5 -2
- package/src/i18n/ko.ts +5 -2
- package/src/i18n/zh-cn.ts +5 -2
- package/src/i18n/zh-tw.ts +5 -2
- package/src/layout/pane-manager/dock-tree.ts +19 -0
- package/src/layout/pane-manager/index.ts +3 -0
- package/src/layout-marketplace/model.ts +2 -1
- package/src/market-data/futures-contract.ts +2 -1
- package/src/market-data/hooks.tsx +1 -1
- package/src/market-data/market/change-basis.ts +27 -5
- package/src/market-data/market/format.ts +13 -13
- package/src/market-data/market/freshness.ts +33 -0
- package/src/market-data/market/status.ts +5 -1
- package/src/market-data/quotes/contributions.ts +10 -0
- package/src/market-data/quotes/freshness.ts +19 -0
- package/src/market-data/quotes/listing-enterprise-value.ts +3 -3
- package/src/market-data/quotes/live-valuation.ts +31 -4
- package/src/market-data/quotes/resolution.ts +4 -0
- package/src/market-data/quotes/time.ts +17 -24
- package/src/market-data/tax-equivalent.ts +3 -2
- package/src/news/aggregator.ts +19 -8
- package/src/news/hooks.ts +1 -1
- package/src/news/news-model.ts +49 -0
- package/src/news/types.ts +9 -0
- package/src/plugins/builtin/account-management/calendar-tab.tsx +8 -3
- package/src/plugins/builtin/account-management/index.tsx +1 -0
- package/src/plugins/builtin/account-management/pane.tsx +9 -8
- package/src/plugins/builtin/alerts/calendar-events.ts +4 -5
- package/src/plugins/builtin/alerts/format.ts +6 -5
- package/src/plugins/builtin/alerts/headless.ts +3 -2
- package/src/plugins/builtin/alerts/history.ts +2 -1
- package/src/plugins/builtin/alerts/pane.tsx +2 -1
- package/src/plugins/builtin/alerts/price-text.ts +2 -1
- package/src/plugins/builtin/alerts/scheduled.ts +6 -5
- package/src/plugins/builtin/analytics/account-returns.ts +6 -7
- package/src/plugins/builtin/analytics/display.ts +2 -1
- package/src/plugins/builtin/analytics/pane-model.ts +5 -9
- package/src/plugins/builtin/analytics/risk-model.ts +6 -6
- package/src/plugins/builtin/analytics/risk-pane.tsx +6 -5
- package/src/plugins/builtin/analytics/view.tsx +5 -5
- package/src/plugins/builtin/attention/model.ts +6 -5
- package/src/plugins/builtin/attention/pane.tsx +5 -4
- package/src/plugins/builtin/awards/detail.tsx +17 -8
- package/src/plugins/builtin/awards/headless.ts +37 -15
- package/src/plugins/builtin/awards/model.ts +40 -5
- package/src/plugins/builtin/awards/pane.tsx +11 -8
- package/src/plugins/builtin/backtest/format.ts +3 -2
- package/src/plugins/builtin/backtest/report.ts +3 -2
- package/src/plugins/builtin/bond-calculator/headless.ts +2 -1
- package/src/plugins/builtin/bond-calculator/pane.tsx +2 -1
- package/src/plugins/builtin/broker-manager/add-flow.tsx +1 -1
- package/src/plugins/builtin/broker-manager/index.tsx +1 -0
- package/src/plugins/builtin/broker-trading/index.tsx +1 -1
- package/src/plugins/builtin/broker-trading/orders-data.ts +3 -3
- package/src/plugins/builtin/broker-trading/orders.tsx +3 -2
- package/src/plugins/builtin/broker-trading/ticket.tsx +2 -2
- package/src/plugins/builtin/buildout/cells.tsx +2 -1
- package/src/plugins/builtin/buildout/company/pane.tsx +4 -3
- package/src/plugins/builtin/buildout/data-runtime.ts +21 -23
- package/src/plugins/builtin/buildout/detail/values.ts +2 -1
- package/src/plugins/builtin/buildout/format.ts +4 -3
- package/src/plugins/builtin/buildout/pane/index.tsx +3 -3
- package/src/plugins/builtin/catalysts/detail.tsx +2 -1
- package/src/plugins/builtin/catalysts/model.ts +6 -5
- package/src/plugins/builtin/catalysts/pane.tsx +2 -1
- package/src/plugins/builtin/cds/headless.ts +3 -2
- package/src/plugins/builtin/cds/model.ts +8 -8
- package/src/plugins/builtin/cds/pane.tsx +3 -2
- package/src/plugins/builtin/central-bank-rates/headless.ts +8 -7
- package/src/plugins/builtin/central-bank-rates/index.tsx +1 -1
- package/src/plugins/builtin/central-bank-rates/model.ts +24 -5
- package/src/plugins/builtin/central-bank-rates/pane.tsx +19 -9
- package/src/plugins/builtin/changelog/index.tsx +2 -2
- package/src/plugins/builtin/chart-composer/headless.ts +5 -1
- package/src/plugins/builtin/chart-composer/index.tsx +4 -2
- package/src/plugins/builtin/chart-composer/pane.tsx +8 -3
- package/src/plugins/builtin/chart-composer/use-series-catalog.ts +3 -1
- package/src/plugins/builtin/chart-composer/user-series.ts +3 -1
- package/src/plugins/builtin/chat/attachments/desktop.tsx +2 -1
- package/src/plugins/builtin/chat/content/handle-prompt.tsx +4 -0
- package/src/plugins/builtin/chat/controller/realtime.ts +17 -1
- package/src/plugins/builtin/chat/controller/utils.ts +2 -1
- package/src/plugins/builtin/chat/message/terminal.tsx +4 -1
- package/src/plugins/builtin/chat/sidebar.tsx +3 -4
- package/src/plugins/builtin/clinical-trials/model.ts +4 -3
- package/src/plugins/builtin/clinical-trials/sponsor-tickers.ts +4 -2
- package/src/plugins/builtin/cloud/askg/lock-note.ts +16 -4
- package/src/plugins/builtin/cloud/askg/model.ts +2 -1
- package/src/plugins/builtin/cloud/askg/pane.tsx +39 -1
- package/src/plugins/builtin/cloud/company-picker.tsx +1 -3
- package/src/plugins/builtin/cloud/plugin.tsx +1 -0
- package/src/plugins/builtin/cloud/team/module.tsx +1 -0
- package/src/plugins/builtin/cloud/team/pane.tsx +12 -12
- package/src/plugins/builtin/cloud/thesis/detail.tsx +22 -12
- package/src/plugins/builtin/cloud-tweets/model.ts +2 -2
- package/src/plugins/builtin/comment-letters/pane.tsx +2 -1
- package/src/plugins/builtin/commodity-balances/headless.ts +3 -2
- package/src/plugins/builtin/commodity-balances/pane.tsx +13 -5
- package/src/plugins/builtin/company-attention/app-rank.tsx +5 -4
- package/src/plugins/builtin/company-attention/building-model.ts +7 -7
- package/src/plugins/builtin/company-attention/headless.ts +6 -5
- package/src/plugins/builtin/company-attention/model.ts +4 -4
- package/src/plugins/builtin/company-attention/moves-model.ts +9 -9
- package/src/plugins/builtin/company-attention/signals-model.ts +9 -9
- package/src/plugins/builtin/company-kpis/headless.ts +2 -1
- package/src/plugins/builtin/company-kpis/model.ts +18 -13
- package/src/plugins/builtin/company-kpis/pane.tsx +2 -2
- package/src/plugins/builtin/congress-trades/detail.tsx +6 -5
- package/src/plugins/builtin/congress-trades/headless.ts +2 -1
- package/src/plugins/builtin/congress-trades/model.ts +6 -6
- package/src/plugins/builtin/congress-trades/table.tsx +7 -6
- package/src/plugins/builtin/connections/index.ts +1 -0
- package/src/plugins/builtin/connections/pane.tsx +5 -5
- package/src/plugins/builtin/correlation/headless.ts +2 -2
- package/src/plugins/builtin/correlation/index.tsx +4 -1
- package/src/plugins/builtin/correlation/matrix/selection.ts +2 -1
- package/src/plugins/builtin/correlation/relationship/view-model.ts +3 -3
- package/src/plugins/builtin/cot/headless.ts +3 -2
- package/src/plugins/builtin/cot/model.ts +2 -1
- package/src/plugins/builtin/cot/pane.tsx +4 -3
- package/src/plugins/builtin/cpi/headless.ts +4 -3
- package/src/plugins/builtin/cpi/model.ts +8 -7
- package/src/plugins/builtin/credit-boards/cdx-pane.tsx +14 -9
- package/src/plugins/builtin/credit-boards/client.ts +5 -0
- package/src/plugins/builtin/credit-boards/headless.ts +3 -7
- package/src/plugins/builtin/credit-boards/model.ts +5 -11
- package/src/plugins/builtin/credit-boards/series.ts +19 -8
- package/src/plugins/builtin/credit-boards/sovr-pane.tsx +9 -5
- package/src/plugins/builtin/credit-conditions/headless.ts +2 -1
- package/src/plugins/builtin/credit-conditions/index.tsx +2 -2
- package/src/plugins/builtin/credit-documents/model.ts +2 -2
- package/src/plugins/builtin/crypto-board/defi-view.tsx +7 -7
- package/src/plugins/builtin/crypto-board/defi.ts +2 -2
- package/src/plugins/builtin/crypto-board/model.ts +4 -3
- package/src/plugins/builtin/crypto-board/pane.tsx +8 -8
- package/src/plugins/builtin/crypto-board/supply.ts +2 -2
- package/src/plugins/builtin/crypto-etf-flows/headless.ts +23 -13
- package/src/plugins/builtin/crypto-etf-flows/model.ts +4 -4
- package/src/plugins/builtin/crypto-etf-flows/pane.tsx +8 -3
- package/src/plugins/builtin/custom-view/index.tsx +3 -1
- package/src/plugins/builtin/custom-view/pane.tsx +5 -1
- package/src/plugins/builtin/custom-view/view-spec.ts +11 -0
- package/src/plugins/builtin/debt-maturities/headless.ts +16 -7
- package/src/plugins/builtin/debt-maturities/model.ts +12 -18
- package/src/plugins/builtin/debt-maturities/pane.tsx +11 -12
- package/src/plugins/builtin/dividend-yield/client.ts +7 -3
- package/src/plugins/builtin/dividend-yield/headless.ts +16 -11
- package/src/plugins/builtin/dividend-yield/pane.tsx +12 -10
- package/src/plugins/builtin/dividend-yield/ranking-view.tsx +4 -1
- package/src/plugins/builtin/dividend-yield/ranking.ts +19 -11
- package/src/plugins/builtin/dividend-yield/types.ts +4 -0
- package/src/plugins/builtin/dividend-yield/view.ts +3 -3
- package/src/plugins/builtin/docs/use-docs.ts +4 -2
- package/src/plugins/builtin/doe/headless.ts +2 -1
- package/src/plugins/builtin/doe/model.ts +12 -11
- package/src/plugins/builtin/earnings/board-model.ts +42 -7
- package/src/plugins/builtin/earnings/board-table.ts +13 -8
- package/src/plugins/builtin/earnings/board.tsx +15 -3
- package/src/plugins/builtin/earnings/calendar-model.ts +5 -5
- package/src/plugins/builtin/earnings/calendar.tsx +11 -6
- package/src/plugins/builtin/earnings/client.ts +0 -9
- package/src/plugins/builtin/earnings/format.ts +16 -14
- package/src/plugins/builtin/earnings/headless.ts +64 -23
- package/src/plugins/builtin/earnings/history-model.ts +11 -7
- package/src/plugins/builtin/earnings/history-table.ts +14 -9
- package/src/plugins/builtin/earnings/history.tsx +22 -14
- package/src/plugins/builtin/earnings-calls/calendar.tsx +2 -1
- package/src/plugins/builtin/earnings-calls/data.ts +24 -4
- package/src/plugins/builtin/earnings-calls/format.ts +29 -10
- package/src/plugins/builtin/earnings-calls/headless.ts +23 -3
- package/src/plugins/builtin/earnings-calls/index.tsx +1 -0
- package/src/plugins/builtin/earnings-calls/model.ts +11 -1
- package/src/plugins/builtin/earnings-calls/pane.tsx +2 -5
- package/src/plugins/builtin/earnings-calls/upcoming.ts +5 -5
- package/src/plugins/builtin/earnings-ripple/headless.ts +2 -1
- package/src/plugins/builtin/earnings-ripple/model.ts +3 -2
- package/src/plugins/builtin/earnings-ripple/pane.tsx +6 -6
- package/src/plugins/builtin/econ/calendar-model.ts +29 -2
- package/src/plugins/builtin/econ/detail-view.tsx +2 -2
- package/src/plugins/builtin/econ/fred-catalog.ts +3 -0
- package/src/plugins/builtin/econ/index.tsx +16 -8
- package/src/plugins/builtin/econ-statistics/detail.tsx +2 -1
- package/src/plugins/builtin/econ-statistics/headless.ts +7 -5
- package/src/plugins/builtin/econ-statistics/index.tsx +1 -1
- package/src/plugins/builtin/econ-statistics/pane.tsx +2 -2
- package/src/plugins/builtin/equity-screener/headless.ts +5 -5
- package/src/plugins/builtin/equity-screener/model.ts +6 -4
- package/src/plugins/builtin/equity-screener/pane.tsx +7 -7
- package/src/plugins/builtin/equity-screener/screen-check.ts +2 -1
- package/src/plugins/builtin/equity-screener/ticker-check.tsx +2 -1
- package/src/plugins/builtin/estimate-revisions/model.ts +3 -2
- package/src/plugins/builtin/estimate-revisions/pane.tsx +8 -8
- package/src/plugins/builtin/executives/format.ts +4 -4
- package/src/plugins/builtin/exposure/headless.ts +8 -8
- package/src/plugins/builtin/exposure/model.ts +4 -3
- package/src/plugins/builtin/exposure/pane.tsx +6 -5
- package/src/plugins/builtin/fear-greed/format.ts +7 -7
- package/src/plugins/builtin/fear-greed/headless.ts +18 -14
- package/src/plugins/builtin/fear-greed/pane.tsx +12 -4
- package/src/plugins/builtin/filing-events/feed.ts +2 -1
- package/src/plugins/builtin/filing-events/index.tsx +1 -0
- package/src/plugins/builtin/futures/table.tsx +8 -8
- package/src/plugins/builtin/futures-curve/headless.ts +18 -18
- package/src/plugins/builtin/futures-curve/model.ts +5 -5
- package/src/plugins/builtin/futures-curve/pane.tsx +8 -8
- package/src/plugins/builtin/fx-matrix/index.tsx +32 -21
- package/src/plugins/builtin/fx-matrix/pairs.ts +2 -1
- package/src/plugins/builtin/gpu/board.tsx +6 -5
- package/src/plugins/builtin/gpu/changes.tsx +2 -1
- package/src/plugins/builtin/gpu/equities.tsx +2 -2
- package/src/plugins/builtin/gpu/headless.ts +4 -3
- package/src/plugins/builtin/gpu/model.ts +8 -7
- package/src/plugins/builtin/help/functions-table.tsx +41 -9
- package/src/plugins/builtin/help/index.tsx +6 -3
- package/src/plugins/builtin/help/keybindings-editor.tsx +35 -7
- package/src/plugins/builtin/help/shortcut-table.tsx +19 -7
- package/src/plugins/builtin/help/table-cells.tsx +51 -0
- package/src/plugins/builtin/holders/pane.tsx +4 -1
- package/src/plugins/builtin/insider/base-values.ts +2 -2
- package/src/plugins/builtin/insider/display.ts +2 -1
- package/src/plugins/builtin/insider/headless.ts +16 -16
- package/src/plugins/builtin/insider/insider-data.ts +2 -1
- package/src/plugins/builtin/insider/signals-model.ts +3 -3
- package/src/plugins/builtin/insider/table-model.ts +27 -13
- package/src/plugins/builtin/insider/table.tsx +11 -8
- package/src/plugins/builtin/insider/tickers.tsx +1 -1
- package/src/plugins/builtin/ipo-calendar/model.ts +4 -4
- package/src/plugins/builtin/iv-history/format.ts +8 -7
- package/src/plugins/builtin/iv-history/headless.ts +18 -16
- package/src/plugins/builtin/iv-history/pane.tsx +3 -2
- package/src/plugins/builtin/iv-history/screen-pane.tsx +5 -4
- package/src/plugins/builtin/jobs/headless.ts +11 -11
- package/src/plugins/builtin/jobs/index.tsx +1 -0
- package/src/plugins/builtin/jobs/model.ts +2 -2
- package/src/plugins/builtin/jobs/pane.tsx +5 -5
- package/src/plugins/builtin/jodi/model.ts +2 -2
- package/src/plugins/builtin/jodi/pane.tsx +2 -1
- package/src/plugins/builtin/kelly-sizer/headless.ts +4 -4
- package/src/plugins/builtin/kelly-sizer/model.ts +2 -1
- package/src/plugins/builtin/kelly-sizer/sections.tsx +2 -2
- package/src/plugins/builtin/macro-day/headless.ts +9 -8
- package/src/plugins/builtin/macro-day/model.ts +3 -2
- package/src/plugins/builtin/macro-day/pane.tsx +4 -4
- package/src/plugins/builtin/macro-day/releases.ts +25 -16
- package/src/plugins/builtin/market-halts/model.ts +11 -10
- package/src/plugins/builtin/market-halts/pane.tsx +2 -1
- package/src/plugins/builtin/market-heatmap/index.tsx +4 -4
- package/src/plugins/builtin/market-movers/index.tsx +20 -8
- package/src/plugins/builtin/market-movers/model.ts +5 -0
- package/src/plugins/builtin/market-movers/session-body.tsx +2 -1
- package/src/plugins/builtin/market-movers/session-table.ts +3 -3
- package/src/plugins/builtin/market-movers/session.ts +2 -1
- package/src/plugins/builtin/market-movers/table.ts +5 -5
- package/src/plugins/builtin/market-valuation/detail.tsx +2 -2
- package/src/plugins/builtin/market-valuation/headless.ts +7 -7
- package/src/plugins/builtin/market-valuation/pane.tsx +7 -7
- package/src/plugins/builtin/members/breadth-pane.tsx +5 -4
- package/src/plugins/builtin/members/headless.ts +2 -1
- package/src/plugins/builtin/members/model.ts +3 -2
- package/src/plugins/builtin/members/pane.tsx +10 -9
- package/src/plugins/builtin/mna/distress/model.ts +2 -1
- package/src/plugins/builtin/mna/model.ts +5 -5
- package/src/plugins/builtin/money-markets/headless.ts +14 -3
- package/src/plugins/builtin/money-markets/model.ts +3 -2
- package/src/plugins/builtin/money-markets/pane.tsx +14 -5
- package/src/plugins/builtin/news/headless.ts +5 -2
- package/src/plugins/builtin/news/wire/breaking/notifications.ts +21 -19
- package/src/plugins/builtin/news/wire/news/row.ts +3 -1
- package/src/plugins/builtin/news/wire/news/table.tsx +3 -2
- package/src/plugins/builtin/news/wire/persisted-articles.ts +28 -3
- package/src/plugins/builtin/notes/headless.ts +2 -1
- package/src/plugins/builtin/notes/model.ts +2 -1
- package/src/plugins/builtin/openfda/pane.tsx +4 -3
- package/src/plugins/builtin/options/carry.ts +3 -2
- package/src/plugins/builtin/options/market-reference.ts +2 -1
- package/src/plugins/builtin/options/table.ts +48 -9
- package/src/plugins/builtin/options/view.tsx +48 -17
- package/src/plugins/builtin/options-calculator/headless.ts +3 -2
- package/src/plugins/builtin/options-calculator/pane.tsx +7 -7
- package/src/plugins/builtin/options-positioning/headless.ts +8 -7
- package/src/plugins/builtin/options-positioning/model.ts +10 -10
- package/src/plugins/builtin/options-positioning/pane.tsx +6 -6
- package/src/plugins/builtin/options-scenario/collar.ts +5 -4
- package/src/plugins/builtin/options-scenario/csp-screen-headless.ts +11 -10
- package/src/plugins/builtin/options-scenario/csp-screen-pane.tsx +15 -14
- package/src/plugins/builtin/options-scenario/csp-screen.ts +2 -1
- package/src/plugins/builtin/options-scenario/csp.ts +6 -5
- package/src/plugins/builtin/options-scenario/headless.ts +6 -5
- package/src/plugins/builtin/options-scenario/hedge.ts +3 -3
- package/src/plugins/builtin/options-scenario/pane.tsx +7 -6
- package/src/plugins/builtin/options-scenario/strategy-screen.ts +1 -1
- package/src/plugins/builtin/pe-band/headless.ts +9 -8
- package/src/plugins/builtin/pe-band/pane.tsx +7 -7
- package/src/plugins/builtin/perps/cascade.ts +3 -2
- package/src/plugins/builtin/perps/headless.ts +10 -9
- package/src/plugins/builtin/perps/model.ts +14 -14
- package/src/plugins/builtin/perps/pane.tsx +3 -2
- package/src/plugins/builtin/portfolio-list/cli/bulk-symbols.ts +4 -31
- package/src/plugins/builtin/portfolio-list/header.tsx +2 -2
- package/src/plugins/builtin/portfolio-list/index.tsx +3 -2
- package/src/plugins/builtin/portfolio-list/pane/futures-terms.ts +4 -2
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +6 -1
- package/src/plugins/builtin/portfolio-list/pane/period-pnl.ts +2 -1
- package/src/plugins/builtin/portfolio-list/pane/purchase-date-fx.ts +4 -2
- package/src/plugins/builtin/portfolio-list/quick-add/index.tsx +24 -10
- package/src/plugins/builtin/portfolio-list/settings.ts +4 -1
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +9 -11
- package/src/plugins/builtin/portfolio-list/table.tsx +10 -1
- package/src/plugins/builtin/power/detail.tsx +6 -5
- package/src/plugins/builtin/power/gas-model.ts +8 -7
- package/src/plugins/builtin/power/gas.tsx +2 -1
- package/src/plugins/builtin/power/headless.ts +7 -6
- package/src/plugins/builtin/power/model.ts +3 -2
- package/src/plugins/builtin/power/prices-headless.ts +10 -9
- package/src/plugins/builtin/power/prices-model.ts +3 -2
- package/src/plugins/builtin/power/prices.tsx +2 -1
- package/src/plugins/builtin/primary-dealers/model.ts +3 -3
- package/src/plugins/builtin/primary-dealers/pane.tsx +2 -2
- package/src/plugins/builtin/rate-path/headless.ts +8 -7
- package/src/plugins/builtin/rate-path/model.ts +6 -5
- package/src/plugins/builtin/rate-path/pane.tsx +6 -5
- package/src/plugins/builtin/realized-vol/fx-proxy.ts +2 -1
- package/src/plugins/builtin/realized-vol/headless.ts +37 -10
- package/src/plugins/builtin/realized-vol/pane.tsx +5 -4
- package/src/plugins/builtin/relative-rotation/headless.ts +2 -1
- package/src/plugins/builtin/relative-rotation/pane.tsx +6 -6
- package/src/plugins/builtin/research/analyst-headless.ts +5 -5
- package/src/plugins/builtin/research/analyst-model.ts +7 -7
- package/src/plugins/builtin/research/analyst-pane.tsx +7 -7
- package/src/plugins/builtin/research/client.ts +14 -0
- package/src/plugins/builtin/research/corporate-actions-pane.tsx +40 -30
- package/src/plugins/builtin/research/event-model.ts +55 -22
- package/src/plugins/builtin/research/event-sources.ts +26 -8
- package/src/plugins/builtin/research/relative-valuation-columns.ts +20 -12
- package/src/plugins/builtin/research/relative-valuation-currency.ts +16 -0
- package/src/plugins/builtin/research/relative-valuation-headless.ts +33 -21
- package/src/plugins/builtin/research/relative-valuation-model.ts +31 -17
- package/src/plugins/builtin/research/relative-valuation-pane.tsx +29 -14
- package/src/plugins/builtin/research-search/model.ts +2 -1
- package/src/plugins/builtin/research-search/saved-view.tsx +4 -3
- package/src/plugins/builtin/revenue-breakdown/model.ts +4 -4
- package/src/plugins/builtin/reverse-dcf/headless.ts +7 -7
- package/src/plugins/builtin/reverse-dcf/model.ts +4 -4
- package/src/plugins/builtin/reverse-dcf/pane.tsx +2 -2
- package/src/plugins/builtin/risk-factors/index.tsx +1 -0
- package/src/plugins/builtin/scanner/flow-model.ts +7 -4
- package/src/plugins/builtin/scanner/flow-pane.tsx +1 -1
- package/src/plugins/builtin/scanner/headless.ts +3 -2
- package/src/plugins/builtin/scanner/hilo-model.ts +2 -1
- package/src/plugins/builtin/scanner/live-headless.ts +2 -2
- package/src/plugins/builtin/scanner/live-model.ts +3 -2
- package/src/plugins/builtin/scanner/live-pane.tsx +5 -5
- package/src/plugins/builtin/seasonality/headless.ts +2 -1
- package/src/plugins/builtin/seasonality/pane.tsx +4 -3
- package/src/plugins/builtin/sec/filing-display.tsx +12 -15
- package/src/plugins/builtin/sec/fund-facts.ts +2 -2
- package/src/plugins/builtin/sec/headless.ts +2 -1
- package/src/plugins/builtin/sec/index.tsx +6 -2
- package/src/plugins/builtin/sectors/headless.ts +4 -4
- package/src/plugins/builtin/sectors/index.tsx +7 -7
- package/src/plugins/builtin/shared/earnings-calendar.ts +90 -6
- package/src/plugins/builtin/shared/earnings-report.ts +13 -6
- package/src/plugins/builtin/shared/research-cells.tsx +2 -2
- package/src/plugins/builtin/shared/source-footer.ts +71 -0
- package/src/plugins/builtin/shared/trend.ts +2 -2
- package/src/plugins/builtin/shared/use-quote-board.ts +9 -8
- package/src/plugins/builtin/short-interest/headless.ts +6 -6
- package/src/plugins/builtin/short-interest/model.ts +9 -9
- package/src/plugins/builtin/short-interest/publications-model.ts +5 -5
- package/src/plugins/builtin/short-interest/publications-pane.tsx +8 -3
- package/src/plugins/builtin/short-interest/watch-headless.ts +5 -5
- package/src/plugins/builtin/short-interest/watch-pane.tsx +6 -6
- package/src/plugins/builtin/short-volume/model.ts +5 -5
- package/src/plugins/builtin/short-volume/pane.tsx +9 -5
- package/src/plugins/builtin/social-mentions/headless.ts +2 -1
- package/src/plugins/builtin/social-mentions/model.ts +4 -4
- package/src/plugins/builtin/social-mentions/outliers.tsx +10 -1
- package/src/plugins/builtin/social-mentions/pane.tsx +7 -0
- package/src/plugins/builtin/supply-chain/client.ts +3 -1
- package/src/plugins/builtin/supply-chain/flow.tsx +25 -8
- package/src/plugins/builtin/supply-chain/graph-client.ts +1 -1
- package/src/plugins/builtin/supply-chain/graph-evidence.ts +1 -1
- package/src/plugins/builtin/supply-chain/graph-model.ts +14 -2
- package/src/plugins/builtin/supply-chain/graph-pane.tsx +11 -10
- package/src/plugins/builtin/supply-chain/graph.tsx +12 -6
- package/src/plugins/builtin/supply-chain/headless.ts +15 -8
- package/src/plugins/builtin/supply-chain/model.ts +72 -15
- package/src/plugins/builtin/supply-chain/pane.tsx +11 -8
- package/src/plugins/builtin/supply-chain/row-evidence.tsx +7 -6
- package/src/plugins/builtin/themes/headless.ts +2 -1
- package/src/plugins/builtin/themes/model.ts +3 -2
- package/src/plugins/builtin/themes/pane.tsx +3 -2
- package/src/plugins/builtin/thirteenf/format.ts +9 -9
- package/src/plugins/builtin/thirteenf/headless.ts +3 -2
- package/src/plugins/builtin/thirteenf/model.ts +2 -1
- package/src/plugins/builtin/thirteenf/overlap-pane.tsx +2 -1
- package/src/plugins/builtin/thirteenf/pane.tsx +5 -4
- package/src/plugins/builtin/thirteenf/report-notes.ts +2 -1
- package/src/plugins/builtin/thirteenf/signals-pane.tsx +3 -2
- package/src/plugins/builtin/thirteenf/table.ts +6 -5
- package/src/plugins/builtin/ticker-detail/adr-pair/model.ts +4 -3
- package/src/plugins/builtin/ticker-detail/data-panes/historical-prices.tsx +4 -4
- package/src/plugins/builtin/ticker-detail/data-panes/returns-pane.tsx +3 -3
- package/src/plugins/builtin/ticker-detail/financials/model.ts +83 -35
- package/src/plugins/builtin/ticker-detail/financials/ratio-table.tsx +3 -1
- package/src/plugins/builtin/ticker-detail/financials/ratios.ts +2 -2
- package/src/plugins/builtin/ticker-detail/financials/schema.ts +14 -18
- package/src/plugins/builtin/ticker-detail/financials/tab.tsx +8 -13
- package/src/plugins/builtin/ticker-detail/headless.ts +7 -5
- package/src/plugins/builtin/ticker-detail/overview/chart-scale.ts +52 -0
- package/src/plugins/builtin/ticker-detail/overview/components.tsx +18 -5
- package/src/plugins/builtin/ticker-detail/overview/model.ts +24 -13
- package/src/plugins/builtin/ticker-detail/overview/pane.tsx +6 -0
- package/src/plugins/builtin/ticker-detail/overview/tax-equivalent.ts +2 -1
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +35 -7
- package/src/plugins/builtin/ticker-detail/pane.tsx +48 -24
- package/src/plugins/builtin/ticker-detail/quote-footer.ts +5 -0
- package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +13 -8
- package/src/plugins/builtin/ticker-detail/quote-monitor/rows.ts +4 -4
- package/src/plugins/builtin/ticker-detail/settings.ts +17 -0
- package/src/plugins/builtin/time-sales/headless.ts +3 -2
- package/src/plugins/builtin/time-sales/model.ts +7 -5
- package/src/plugins/builtin/time-sales/pane.tsx +7 -6
- package/src/plugins/builtin/trace-bonds/model.ts +3 -2
- package/src/plugins/builtin/trace-bonds/pane.tsx +3 -2
- package/src/plugins/builtin/treasury-auctions/after.ts +50 -23
- package/src/plugins/builtin/treasury-auctions/cache.ts +23 -5
- package/src/plugins/builtin/treasury-auctions/client.ts +2 -1
- package/src/plugins/builtin/treasury-auctions/headless.ts +231 -42
- package/src/plugins/builtin/treasury-auctions/hk-headless.ts +14 -7
- package/src/plugins/builtin/treasury-auctions/hk-view.tsx +37 -34
- package/src/plugins/builtin/treasury-auctions/hk.ts +65 -13
- package/src/plugins/builtin/treasury-auctions/index.tsx +3 -0
- package/src/plugins/builtin/treasury-auctions/keys.ts +27 -0
- package/src/plugins/builtin/treasury-auctions/like.ts +137 -0
- package/src/plugins/builtin/treasury-auctions/model.ts +101 -23
- package/src/plugins/builtin/treasury-auctions/pane.tsx +56 -28
- package/src/plugins/builtin/treasury-auctions/treasury-direct.ts +2 -1
- package/src/plugins/builtin/treasury-daily/model.ts +2 -2
- package/src/plugins/builtin/vol-surface/events.ts +5 -4
- package/src/plugins/builtin/vol-surface/headless.ts +19 -18
- package/src/plugins/builtin/vol-surface/heat-grid.tsx +6 -3
- package/src/plugins/builtin/vol-surface/pane.tsx +13 -9
- package/src/plugins/builtin/vol-surface/stored.ts +2 -1
- package/src/plugins/builtin/vol-surface/tables.ts +4 -3
- package/src/plugins/builtin/volatility/headless.ts +5 -4
- package/src/plugins/builtin/volatility/pane.tsx +6 -6
- package/src/plugins/builtin/world-indices/headless.ts +7 -7
- package/src/plugins/builtin/world-indices/index.tsx +3 -1
- package/src/plugins/builtin/world-venue-map/headless.ts +2 -1
- package/src/plugins/builtin/world-venue-map/layered-pane.tsx +2 -1
- package/src/plugins/builtin/world-venue-map/layers.ts +3 -2
- package/src/plugins/builtin/world-venue-map/use-geo.ts +4 -2
- package/src/plugins/builtin/yield-curve/curves.ts +3 -3
- package/src/plugins/builtin/yield-curve/headless.ts +7 -6
- package/src/plugins/builtin/yield-curve/index.tsx +5 -4
- package/src/plugins/builtin/yield-curve/swaps.tsx +2 -1
- package/src/plugins/runtime/index.tsx +1 -0
- package/src/plugins/runtime/state.ts +20 -0
- package/src/portfolio/allocation.ts +5 -5
- package/src/portfolio/column-values.ts +54 -42
- package/src/portfolio/futures-positions.ts +2 -1
- package/src/public/__snapshots__/public-api.test.ts.snap +5 -0
- package/src/public/react.ts +7 -0
- package/src/react/auto-refresh.ts +29 -0
- package/src/renderers/browser/deeplink-bridge.ts +24 -3
- package/src/renderers/dom/desktop/query-bar.tsx +229 -60
- package/src/renderers/dom/host/overflow-fade-px.ts +2 -0
- package/src/renderers/dom/host/overflow-fade.ts +1 -2
- package/src/renderers/dom/styles.css +25 -5
- package/src/renderers/electrobun/bun/desktop/backend-requests.ts +7 -1
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +2 -1
- package/src/renderers/opentui/ui-host.tsx +32 -2
- package/src/renderers/share/layout-view.tsx +2 -1
- package/src/series/types.ts +2 -0
- package/src/sources/gloomberb-cloud/fred-attribution.ts +86 -0
- package/src/sources/gloomberb-cloud/index.ts +25 -1
- package/src/sources/gloomberb-cloud/news.ts +9 -0
- package/src/sources/gloomberb-cloud/normalizers.ts +24 -3
- package/src/sources/provider-errors.ts +64 -1
- package/src/sources/provider-router/batches.ts +19 -0
- package/src/sources/provider-router/index.ts +7 -1
- package/src/sources/provider-router/search.ts +15 -10
- package/src/state/app/context/index.tsx +24 -1
- package/src/state/hooks/inline-tickers.ts +3 -2
- package/src/state/hooks/quote-streaming.ts +9 -10
- package/src/state/pane-unsent-work.ts +47 -0
- package/src/team/collections-sync.ts +8 -3
- package/src/telemetry/usage-counts.ts +26 -0
- package/src/test-support/shell-pane-keys.tsx +5 -0
- package/src/test-support/telemetry-guard.ts +83 -0
- package/src/test-support/test-env.ts +12 -0
- package/src/theme/colors.ts +17 -1
- package/src/theme/ui-tokens.ts +50 -1
- package/src/tickers/company-name-listing.ts +2 -2
- package/src/tickers/company-name.ts +17 -1
- package/src/tickers/listing-venues.ts +37 -2
- package/src/tickers/renamed-listings.ts +2 -1
- package/src/tickers/search/index.ts +19 -0
- package/src/tickers/search/japanese-names.json +1 -0
- package/src/tickers/search/japanese-names.ts +152 -0
- package/src/tickers/starter-symbols.ts +7 -0
- package/src/tickers/terminal-codes.ts +55 -6
- package/src/time-series/base-series.ts +3 -0
- package/src/time-series/fundamentals/statement-fields.ts +11 -14
- package/src/time-series/history-acquisition.ts +1 -1
- package/src/time-series/log-scale.ts +9 -0
- package/src/time-series/reporting.ts +3 -3
- package/src/time-series/resolve.ts +6 -4
- package/src/time-series/transforms.ts +10 -5
- package/src/types/config.ts +9 -0
- package/src/types/data-provider.ts +9 -2
- package/src/types/financials.ts +26 -0
- package/src/types/instrument.ts +6 -0
- package/src/types/plugin-contributions.ts +7 -0
- package/src/types/plugin-panes.ts +8 -1
- package/src/types/plugin-reports.ts +8 -0
- package/src/ui/host.tsx +6 -0
- package/src/utils/datetime-format.ts +74 -33
- package/src/utils/double-escape-close.ts +42 -0
- package/src/utils/financial-statements.ts +39 -15
- package/src/utils/format.ts +4 -9
- package/src/utils/fundamentals.ts +38 -16
- package/src/utils/fx-status.ts +30 -7
- package/src/utils/growth.ts +67 -0
- package/src/utils/keyboard.ts +6 -0
- package/src/utils/network-failure.ts +23 -0
- package/src/utils/options.ts +1 -1
- package/src/utils/report-timing.ts +2 -2
- package/src/utils/served-rates.ts +45 -0
- package/src/utils/text-wrap.ts +84 -3
- package/src/utils/zoned-date-time.ts +47 -22
|
@@ -5,7 +5,7 @@ import { formatMarketPrice, formatMarketPriceWithCurrency, liveQuoteFormatOption
|
|
|
5
5
|
import { colors, hoverBg, priceColor } from "../../../../theme/colors";
|
|
6
6
|
import type { Quote } from "../../../../types/financials";
|
|
7
7
|
import { Box, Text, useUiCapabilities } from "../../../../ui";
|
|
8
|
-
import { displayWidth, formatNumber, truncateToDisplayWidth } from "../../../../utils/format";
|
|
8
|
+
import { MISSING_VALUE, displayWidth, formatNumber, truncateToDisplayWidth } from "../../../../utils/format";
|
|
9
9
|
import type { OverviewFunctionLink, PositionTableRow, StatField } from "./types";
|
|
10
10
|
import { portfolioPnlLabel } from "../../../../portfolio/position-metrics";
|
|
11
11
|
|
|
@@ -110,6 +110,7 @@ export function CompactRangeBar({
|
|
|
110
110
|
currency,
|
|
111
111
|
priceOptions,
|
|
112
112
|
endpoints = "price",
|
|
113
|
+
note,
|
|
113
114
|
}: {
|
|
114
115
|
current: number;
|
|
115
116
|
low: number;
|
|
@@ -130,6 +131,11 @@ export function CompactRangeBar({
|
|
|
130
131
|
priceOptions: MarketFormatOptions;
|
|
131
132
|
/** Shared by ranges drawn together, as `endpointWidth` is (rangeEndpointStyle). */
|
|
132
133
|
endpoints?: RangeEndpointStyle;
|
|
134
|
+
/**
|
|
135
|
+
* Muted context after the high, where the range is not the source's own
|
|
136
|
+
* (`daily bars`): shown only while the track keeps RANGE_MIN_TRACK_WIDTH.
|
|
137
|
+
*/
|
|
138
|
+
note?: string;
|
|
133
139
|
}) {
|
|
134
140
|
const { nativePaneChrome } = useUiCapabilities();
|
|
135
141
|
const range = high - low;
|
|
@@ -140,7 +146,9 @@ export function CompactRangeBar({
|
|
|
140
146
|
const shownLabelWidth = useShortLabel ? displayWidth(shortLabel) : labelWidth;
|
|
141
147
|
const endpointOptions = { ...priceOptions, maxWidth: endpointWidth };
|
|
142
148
|
const [lowText, highText] = formatRangeEndpoints(low, high, currency, endpointOptions, endpoints);
|
|
143
|
-
const
|
|
149
|
+
const noteCells = note ? displayWidth(note) + 1 : 0;
|
|
150
|
+
const shownNote = note && width - rangeRowChrome(shownLabelWidth, endpointWidth) - noteCells >= RANGE_MIN_TRACK_WIDTH ? note : null;
|
|
151
|
+
const barWidth = Math.max(1, width - rangeRowChrome(shownLabelWidth, endpointWidth) - (shownNote ? noteCells : 0));
|
|
144
152
|
|
|
145
153
|
// The desktop and the web size the row and its track by CSS, so the high end keeps to the pane's edge on every frame of a
|
|
146
154
|
// resize; the label, the endpoints and which of them show are still worked out from `width`, at each catch-up.
|
|
@@ -176,6 +184,11 @@ export function CompactRangeBar({
|
|
|
176
184
|
<Box width={endpointWidth} flexShrink={0} overflow="hidden">
|
|
177
185
|
<Text fg={colors.text}>{highText}</Text>
|
|
178
186
|
</Box>
|
|
187
|
+
{shownNote && (
|
|
188
|
+
<Box width={noteCells} flexShrink={0} overflow="hidden" data-gloom-role="range-note">
|
|
189
|
+
<Text fg={colors.textDim}>{` ${shownNote}`}</Text>
|
|
190
|
+
</Box>
|
|
191
|
+
)}
|
|
179
192
|
</Box>
|
|
180
193
|
);
|
|
181
194
|
}
|
|
@@ -200,11 +213,11 @@ export function QuoteBook({ quote, assetCategory, width, desktopWidth }: {
|
|
|
200
213
|
const { nativePaneChrome } = useUiCapabilities();
|
|
201
214
|
// Bid, ask and spread keep the instrument's decimals on every tick ($224.58 / $224.60 / $0.02).
|
|
202
215
|
const priceOptions = liveQuoteFormatOptions(quote, quote.currency, assetCategory);
|
|
203
|
-
const bidPrice = quote.bid != null ? formatMarketPriceWithCurrency(quote.bid, quote.currency, priceOptions) :
|
|
204
|
-
const askPrice = quote.ask != null ? formatMarketPriceWithCurrency(quote.ask, quote.currency, priceOptions) :
|
|
216
|
+
const bidPrice = quote.bid != null ? formatMarketPriceWithCurrency(quote.bid, quote.currency, priceOptions) : MISSING_VALUE;
|
|
217
|
+
const askPrice = quote.ask != null ? formatMarketPriceWithCurrency(quote.ask, quote.currency, priceOptions) : MISSING_VALUE;
|
|
205
218
|
const bidText = quote.bidSize != null && quote.bidSize > 0 ? `${formatNumber(quote.bidSize, 0)} x ${bidPrice}` : bidPrice;
|
|
206
219
|
const askText = quote.askSize != null && quote.askSize > 0 ? `${formatNumber(quote.askSize, 0)} x ${askPrice}` : askPrice;
|
|
207
|
-
let spreadText =
|
|
220
|
+
let spreadText = MISSING_VALUE;
|
|
208
221
|
// A crossed book (a closing auction's last bid above its ask, Tencent's HK$430.80 / HK$430.40) has no spread to show.
|
|
209
222
|
if (quote.bid != null && quote.ask != null && quote.ask >= quote.bid) {
|
|
210
223
|
const spread = quote.ask - quote.bid;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { forwardFiscalYear, forwardPEAsked, formatPriceEarnings, NOT_MEANINGFUL } from "../../../../utils/price-earnings";
|
|
2
2
|
import { convertMarketCapitalization } from "../../../../utils/market-capitalization";
|
|
3
3
|
import { priceColor } from "../../../../theme/colors";
|
|
4
|
+
import { notMeaningfulColor } from "../../../../components/ui/not-meaningful";
|
|
5
|
+
import { NOT_MEANINGFUL_TEXT } from "../../../../utils/growth";
|
|
6
|
+
import type { ServedRate } from "../../../../utils/served-rates";
|
|
4
7
|
import type { CedearRatio, CompanyProfile, DepositaryPair, NextEarnings, Quote, TickerFinancials } from "../../../../types/financials";
|
|
5
8
|
import { adrRatioText } from "../../../../utils/depositary-receipt";
|
|
6
9
|
import { cedearRatioText, ratioCount } from "../../../../market-data/depositary-pair";
|
|
@@ -9,6 +12,7 @@ import type { Portfolio, TickerPosition, TickerRecord } from "../../../../types/
|
|
|
9
12
|
import type { BrokerInstanceConfig } from "../../../../types/config";
|
|
10
13
|
import type { BrokerAccount } from "../../../../types/trading";
|
|
11
14
|
import {
|
|
15
|
+
MISSING_VALUE,
|
|
12
16
|
formatCompact,
|
|
13
17
|
formatCompactCurrency,
|
|
14
18
|
formatCurrency,
|
|
@@ -31,7 +35,7 @@ import { getPortfolioPositionMetrics, getPortfolioQuoteDisplay, resolvePortfolio
|
|
|
31
35
|
import { listingDividendYield, liveForwardPE, liveMarketCapitalization, liveTrailingPE } from "../../../../market-data/quotes/live-valuation";
|
|
32
36
|
import { atRegularSessionPrice } from "../../../../market-data/quotes/regular-session-valuation";
|
|
33
37
|
import { formatReportedMoney, REPORTING_CURRENCY_NOT_SOURCED } from "../../../../utils/reported-money";
|
|
34
|
-
import { enterpriseValueCheck, enterpriseValueComputed, enterpriseValueNotMeaningful, fundamentalsCurrency,
|
|
38
|
+
import { enterpriseValueCheck, enterpriseValueComputed, enterpriseValueNotMeaningful, fundamentalsCurrency, financialEnterpriseValue, fundamentalsEpsCurrency, reportedEnterpriseValue } from "../../../../utils/fundamentals";
|
|
35
39
|
import { formatShortDate } from "../../../../utils/datetime-format";
|
|
36
40
|
import { safeExternalUrl } from "../../../../utils/external-url";
|
|
37
41
|
import type { FundBondFacts } from "../../../../api-client/fund-facts";
|
|
@@ -63,7 +67,7 @@ function daysUntil(date: string, today: string): number {
|
|
|
63
67
|
return Math.round((Date.parse(`${date}T00:00:00Z`) - Date.parse(`${today}T00:00:00Z`)) / 86_400_000);
|
|
64
68
|
}
|
|
65
69
|
|
|
66
|
-
/** "Sep
|
|
70
|
+
/** "10 Sep", or "12 Dec '25" in another year. */
|
|
67
71
|
function calendarDate(date: string, today: string): string {
|
|
68
72
|
return formatShortDate(`${date}T00:00:00Z`, { year: date.slice(0, 4) === today.slice(0, 4) ? false : "2-digit", utc: true });
|
|
69
73
|
}
|
|
@@ -158,6 +162,7 @@ export function buildOverviewStats({
|
|
|
158
162
|
bond = null,
|
|
159
163
|
runway = null,
|
|
160
164
|
trailingEpsYear,
|
|
165
|
+
notMeaningful = {},
|
|
161
166
|
}: {
|
|
162
167
|
quote: Quote | undefined;
|
|
163
168
|
fundamentals: TickerFinancials["fundamentals"] | undefined;
|
|
@@ -187,6 +192,8 @@ export function buildOverviewStats({
|
|
|
187
192
|
runway?: CashRunway | null;
|
|
188
193
|
/** The fiscal year the trailing EPS is ("FY Mar-26"), when it is a year's a quarter or more old (trailingEpsFiscalYear). */
|
|
189
194
|
trailingEpsYear?: string;
|
|
195
|
+
/** Why a served margin or revenue growth is N/M (servedRatesNotMeaningful): read N/M, as RV and `ticker` read it. */
|
|
196
|
+
notMeaningful?: Partial<Record<ServedRate, string>>;
|
|
190
197
|
}): StatField[] {
|
|
191
198
|
const stats: StatField[] = [];
|
|
192
199
|
// Amounts no source names the currency of are bare; the first says so after it, once for all of them.
|
|
@@ -316,14 +323,16 @@ export function buildOverviewStats({
|
|
|
316
323
|
}
|
|
317
324
|
const runwayField = runwayStat(runway);
|
|
318
325
|
if (runwayField) stats.push(runwayField);
|
|
326
|
+
// A margin over revenue at or below zero, and growth off it, read N/M in N/M's own colour, never a sign's.
|
|
327
|
+
const notMeaningfulStat = (label: string): StatField => ({ label, value: NOT_MEANINGFUL_TEXT, valueColor: notMeaningfulColor() });
|
|
319
328
|
if (fundamentals?.operatingMargin != null) {
|
|
320
|
-
stats.push({ label: "Op Margin", value: formatLevelPercent(fundamentals.operatingMargin) });
|
|
329
|
+
stats.push(notMeaningful.operatingMargin ? notMeaningfulStat("Op Margin") : { label: "Op Margin", value: formatLevelPercent(fundamentals.operatingMargin) });
|
|
321
330
|
}
|
|
322
331
|
if (fundamentals?.profitMargin != null) {
|
|
323
|
-
stats.push({ label: "Profit Marg", value: formatLevelPercent(fundamentals.profitMargin) });
|
|
332
|
+
stats.push(notMeaningful.profitMargin ? notMeaningfulStat("Profit Marg") : { label: "Profit Marg", value: formatLevelPercent(fundamentals.profitMargin) });
|
|
324
333
|
}
|
|
325
334
|
if (fundamentals?.revenueGrowth != null) {
|
|
326
|
-
stats.push({
|
|
335
|
+
stats.push(notMeaningful.revenueGrowth ? notMeaningfulStat("Rev Growth") : {
|
|
327
336
|
label: "Rev Growth",
|
|
328
337
|
value: formatPercent(fundamentals.revenueGrowth),
|
|
329
338
|
valueColor: priceColor(fundamentals.revenueGrowth),
|
|
@@ -334,11 +343,13 @@ export function buildOverviewStats({
|
|
|
334
343
|
const enterpriseValue = reportedEnterpriseValue(priced);
|
|
335
344
|
// At or below zero, N/M as a P/E over a loss reads, with why in the space a stat has; valuation gives the full reason.
|
|
336
345
|
if (enterpriseValueNotMeaningful(priced)) {
|
|
337
|
-
// A bank's deposits are funding, not debt (
|
|
346
|
+
// A bank's deposits and an insurer's float are funding, not debt (withFinancialEnterpriseValue);
|
|
347
|
+
// any other's cash exceeds the rest.
|
|
348
|
+
const financial = financialEnterpriseValue(priced);
|
|
338
349
|
stats.push({ label: "EV", value: formatPriceEarnings(NOT_MEANINGFUL),
|
|
339
|
-
detail:
|
|
350
|
+
detail: financial ? financial.replace(/^n\/m /, "") : ["cash > cap + debt", "cash > cap"] });
|
|
340
351
|
} else if (fundamentals?.unavailableFields?.includes("enterpriseValue")) {
|
|
341
|
-
stats.push({ label: "EV", value:
|
|
352
|
+
stats.push({ label: "EV", value: MISSING_VALUE });
|
|
342
353
|
} else if (enterpriseValue != null) {
|
|
343
354
|
// Market cap + debt - cash (+ minority interest) where the provider's is more than 5% from it, as every view
|
|
344
355
|
// shows it; the notice under the pane gives its inputs where the provider's is far off (enterpriseValueGapIsLarge).
|
|
@@ -444,7 +455,7 @@ export function buildPositionRows({
|
|
|
444
455
|
currentPrice != null ? toBase(currentPrice, quoteCurrency) : null);
|
|
445
456
|
const pnlValue = selectedPnl.value;
|
|
446
457
|
const percent = portfolioPnlPercent(pnlValue, costBasisBase != null ? Math.abs(costBasisBase) : Number.NaN);
|
|
447
|
-
const returnPercent = percent === null ?
|
|
458
|
+
const returnPercent = percent === null ? MISSING_VALUE : formatPercentRaw(percent);
|
|
448
459
|
const unit = metrics.priceBasis === "percent-of-par" ? "" : ticker.metadata.assetCategory === "BOND" ? " units" : metrics.multiplierHint > 1 ? " ct" : " sh";
|
|
449
460
|
|
|
450
461
|
return {
|
|
@@ -465,10 +476,10 @@ export function buildPositionRows({
|
|
|
465
476
|
priceBasis: currentPrice != null ? quote?.priceBasis : metrics.priceBasis,
|
|
466
477
|
maxWidth: 9,
|
|
467
478
|
}, fallbackMarkCurrency))
|
|
468
|
-
:
|
|
469
|
-
cost: costBasisBase != null ? formatCurrency(costBasisBase, baseCurrency) :
|
|
470
|
-
value: marketValueBase != null ? formatCurrency(marketValueBase, baseCurrency) :
|
|
471
|
-
pnl: pnlValue != null ? `${pnlValue >= 0 ? "+" : ""}${formatCurrency(pnlValue, baseCurrency)}` :
|
|
479
|
+
: MISSING_VALUE,
|
|
480
|
+
cost: costBasisBase != null ? formatCurrency(costBasisBase, baseCurrency) : MISSING_VALUE,
|
|
481
|
+
value: marketValueBase != null ? formatCurrency(marketValueBase, baseCurrency) : MISSING_VALUE,
|
|
482
|
+
pnl: pnlValue != null ? `${pnlValue >= 0 ? "+" : ""}${formatCurrency(pnlValue, baseCurrency)}` : MISSING_VALUE,
|
|
472
483
|
ret: returnPercent,
|
|
473
484
|
pnlValue,
|
|
474
485
|
pnlBasis: selectedPnl.basis,
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
useAppDispatch,
|
|
10
10
|
useOptionalPaneInstanceId,
|
|
11
11
|
usePaneInstance,
|
|
12
|
+
usePaneSettingValue,
|
|
12
13
|
usePaneTicker,
|
|
13
14
|
} from "../../../../state/app/context";
|
|
14
15
|
import { usePluginAppActions } from "../../../runtime";
|
|
@@ -21,6 +22,7 @@ import { useTickerSnapshotState } from "../../../../market-data/hooks";
|
|
|
21
22
|
import { taxRatesFromSettings } from "../../../../market-data/tax-equivalent";
|
|
22
23
|
import { PaneLinkMenu } from "../../../../components";
|
|
23
24
|
import { FunctionLinkRow } from "./components";
|
|
25
|
+
import { OVERVIEW_CHART_SCALE_SETTING, parseOverviewChartScaleChoice } from "./chart-scale";
|
|
24
26
|
|
|
25
27
|
/** Registered by the chart composer, in the same plugin as this tab. */
|
|
26
28
|
const CHART_TAB_ID = "chart";
|
|
@@ -38,6 +40,8 @@ export function OverviewResearchTab({ width, height, focused }: TickerResearchTa
|
|
|
38
40
|
const dividend = useOverviewDividend(ticker?.metadata.ticker ?? null, ticker?.metadata.exchange ?? "", financials?.fundamentals);
|
|
39
41
|
// A pane locked to one tab has nowhere to go.
|
|
40
42
|
const lockedToOneTab = getTickerResearchPaneSettings(paneInstance?.settings).hideTabs;
|
|
43
|
+
// The chart's scale, once set from the pane menu, holds for every ticker the pane shows.
|
|
44
|
+
const [chartScale, setChartScale] = usePaneSettingValue<unknown>(OVERVIEW_CHART_SCALE_SETTING, "auto");
|
|
41
45
|
const openChart = useCallback(() => {
|
|
42
46
|
if (paneId) dispatch({ type: "UPDATE_PANE_STATE", paneId, patch: { activeTabId: CHART_TAB_ID } });
|
|
43
47
|
}, [dispatch, paneId]);
|
|
@@ -61,6 +65,8 @@ export function OverviewResearchTab({ width, height, focused }: TickerResearchTa
|
|
|
61
65
|
dividend={dividend}
|
|
62
66
|
snapshot={snapshot}
|
|
63
67
|
tax={taxRatesFromSettings(paneInstance?.settings)}
|
|
68
|
+
chartScale={parseOverviewChartScaleChoice(chartScale)}
|
|
69
|
+
onChartScaleChange={paneId ? setChartScale : undefined}
|
|
64
70
|
news={ticker ? (contentWidth: number) => (
|
|
65
71
|
<TickerNewsHeadlines ticker={ticker} width={contentWidth} openNewsView={openNewsView}>
|
|
66
72
|
<PaneLinkMenu><FunctionLinkRow link={NEWS} onOpen={openFunction} /></PaneLinkMenu>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MISSING_VALUE } from "../../../../utils/format";
|
|
1
2
|
import { useCallback } from "react";
|
|
2
3
|
import type { FundBondFacts } from "../../../../api-client/fund-facts";
|
|
3
4
|
import {
|
|
@@ -44,7 +45,7 @@ export function useOverviewTaxEquivalent(input: {
|
|
|
44
45
|
* cut to fit; DVD and fundamentals give the formulas whole.
|
|
45
46
|
*/
|
|
46
47
|
export function taxEquivalentFields(analysis: TaxEquivalentAnalysis | { error: string }): StatField[] {
|
|
47
|
-
const missing = (label: string, why: string): StatField => ({ label, value:
|
|
48
|
+
const missing = (label: string, why: string): StatField => ({ label, value: MISSING_VALUE, detail: why, clipDetail: true });
|
|
48
49
|
if ("error" in analysis) return [missing("Tax-Eq Yld", analysis.error)];
|
|
49
50
|
const lines = taxEquivalentLines(analysis);
|
|
50
51
|
const line = (key: string) => lines.find((entry) => entry.key === key);
|
|
@@ -6,7 +6,7 @@ import { mayBeUsEquityOrFundTicker } from "../../../utils/sec";
|
|
|
6
6
|
import { ResearchTradeActions, researchTradeMatches, useResearchTrading } from "../shared/research-trading";
|
|
7
7
|
import { instrumentFromTicker } from "../../../market-data/request-types";
|
|
8
8
|
import { useMemo, type ReactNode } from "react";
|
|
9
|
-
import { EmptyState, ExternalLinkText, PaneLinkMenu, PaneStatusBody, SectionHeading, unavailableText, usePaneNoticeFooter } from "../../../components";
|
|
9
|
+
import { EmptyState, ExternalLinkText, PaneLinkMenu, PaneStatusBody, SectionHeading, unavailableText, usePaneMenuItems, usePaneNoticeFooter } from "../../../components";
|
|
10
10
|
import { CompositeChart, pricePointsToResolvedSeries } from "../../../components/chart/composite";
|
|
11
11
|
import { CompanyLogo, resolveCompanyLogoSrc } from "../../../components/company-logo";
|
|
12
12
|
import { bodyLineInk, FigureText, figureLineInk, useFigureCells } from "../../../components/ui/figure";
|
|
@@ -39,8 +39,9 @@ import { Box, ScrollBox, Text, useUiCapabilities } from "../../../ui";
|
|
|
39
39
|
import { publicTickerKey, resolveExchangeTimeZone } from "../../../utils/exchanges";
|
|
40
40
|
import { convertCurrency, displayWidth, formatPercentRaw, truncateToDisplayWidth } from "../../../utils/format";
|
|
41
41
|
import {
|
|
42
|
-
appTtmRate, enterpriseValueGapIsLarge, enterpriseValueReconciliationNote, trailingEpsFiscalYear, ttmAtAppRate, ttmConversionNote,
|
|
42
|
+
appTtmRate, enterpriseValueGapIsLarge, enterpriseValueReconciliationNote, trailingEpsFiscalYear, ttmAtAppRate, ttmConversionNote, withFinancialEnterpriseValue,
|
|
43
43
|
} from "../../../utils/fundamentals";
|
|
44
|
+
import { servedRatesNotMeaningful } from "../../../utils/served-rates";
|
|
44
45
|
import { atRegularSessionPrice } from "../../../market-data/quotes/regular-session-valuation";
|
|
45
46
|
import { zonedDateKey } from "../../../utils/zoned-date-time";
|
|
46
47
|
import { sharesOutstandingInReceipts } from "../../../utils/depositary-receipt";
|
|
@@ -74,6 +75,11 @@ import { useOfferingNote } from "./financials/offerings";
|
|
|
74
75
|
import { taxEquivalentFields, useOverviewTaxEquivalent } from "./overview/tax-equivalent";
|
|
75
76
|
import { distributionBasis, type TaxRates } from "../../../market-data/tax-equivalent";
|
|
76
77
|
import { currentListingName } from "../../../tickers/listing-name";
|
|
78
|
+
import { isYieldIndexSymbol } from "../../../tickers/index-roots";
|
|
79
|
+
import { hiddenOnLogScale, logScaleHiddenWarning } from "../../../time-series/log-scale";
|
|
80
|
+
import {
|
|
81
|
+
autoOverviewChartScale, resolveOverviewChartScale, toggledOverviewChartScale, type OverviewChartScaleChoice,
|
|
82
|
+
} from "./overview/chart-scale";
|
|
77
83
|
|
|
78
84
|
/** Cells between the Day and 52W ranges when they share a row. */
|
|
79
85
|
const RANGE_PAIR_GAP = 4;
|
|
@@ -116,6 +122,10 @@ interface OverviewTabProps {
|
|
|
116
122
|
snapshot?: TickerSnapshotState;
|
|
117
123
|
/** The rates `fn DES --tax-rate` set (taxRatesFromSettings): a fund's tax-equivalent yield and muni/Treasury ratio follow its facts. */
|
|
118
124
|
tax?: { rates: TaxRates } | { error: string } | null;
|
|
125
|
+
/** The price chart's value axis as the pane remembers it; auto picks log for a history of a wide range. */
|
|
126
|
+
chartScale?: OverviewChartScaleChoice;
|
|
127
|
+
/** Remembers the choice the pane menu's Log Scale switches to; without it the menu has no such item. */
|
|
128
|
+
onChartScaleChange?: (choice: OverviewChartScaleChoice) => void;
|
|
119
129
|
}
|
|
120
130
|
|
|
121
131
|
/** Nothing of the ticker is in yet: no quote, profile, figures or history. */
|
|
@@ -147,7 +157,10 @@ export function OverviewTab(props: OverviewTabProps) {
|
|
|
147
157
|
/** Where a fund's facts open: the ETF function, its facts over its filings. */
|
|
148
158
|
const FUND_FACTS_LINK: OverviewFunctionLink = { name: "Fund Facts", templateId: "sec-etf-pane" };
|
|
149
159
|
|
|
150
|
-
function ResolvedOverviewTab({
|
|
160
|
+
function ResolvedOverviewTab({
|
|
161
|
+
width, height, focused = false, ticker, financials, onOpenChart, onOpenFunction, perpetuals, news, dividend, tax = null,
|
|
162
|
+
chartScale: chartScaleChoice = "auto", onChartScaleChange,
|
|
163
|
+
}: OverviewTabProps & { ticker: TickerRecord }) {
|
|
151
164
|
const trade = useResearchTrading();
|
|
152
165
|
const baseCurrency = useAppSelector((state) => state.config.baseCurrency);
|
|
153
166
|
const portfolios = useAppSelector((state) => state.config.portfolios);
|
|
@@ -188,9 +201,9 @@ function ResolvedOverviewTab({ width, height, focused = false, ticker, financial
|
|
|
188
201
|
[fxObservations],
|
|
189
202
|
);
|
|
190
203
|
const ttmRate = appTtmRate(fundamentals, (currency) => fxObservations.get(currency));
|
|
191
|
-
// A bank's EV reads n/m: its deposits are funding, not debt.
|
|
204
|
+
// A bank's or an insurer's EV reads n/m: its deposits or float are funding, not debt.
|
|
192
205
|
const shownFundamentals = useMemo(
|
|
193
|
-
() => (fundamentals ? ttmAtAppRate(
|
|
206
|
+
() => (fundamentals ? ttmAtAppRate(withFinancialEnterpriseValue(fundamentals, profile), ttmRate) : fundamentals),
|
|
194
207
|
[fundamentals, profile, ttmRate?.rate, ttmRate?.asOf],
|
|
195
208
|
);
|
|
196
209
|
const quoteCurrency = quote?.currency || ticker.metadata.currency || baseCurrency;
|
|
@@ -252,9 +265,20 @@ function ResolvedOverviewTab({ width, height, focused = false, ticker, financial
|
|
|
252
265
|
panelId: "price",
|
|
253
266
|
timeBasis: chartTimeZone ? { kind: "market", timeZone: chartTimeZone } : undefined,
|
|
254
267
|
});
|
|
268
|
+
// Years of history from a few dollars to hundreds read on a log axis, the Chart tab's own, so the early ones do not lie flat.
|
|
269
|
+
const autoChartScale = autoOverviewChartScale(priceSeries.points, { rate: isYieldIndexSymbol(ticker.metadata.ticker) });
|
|
270
|
+
const chartScale = resolveOverviewChartScale(chartScaleChoice, autoChartScale);
|
|
271
|
+
const hiddenOnLog = hasHistory && chartScale === "log"
|
|
272
|
+
? priceSeries.points.filter((point) => hiddenOnLogScale(point.value)).length : 0;
|
|
273
|
+
usePaneMenuItems("overview:chart-scale", () => hasHistory && onChartScaleChange ? [{
|
|
274
|
+
id: "overview-log-scale",
|
|
275
|
+
label: t("Log Scale"),
|
|
276
|
+
checked: chartScale === "log",
|
|
277
|
+
onSelect: () => onChartScaleChange(toggledOverviewChartScale(chartScaleChoice, autoChartScale)),
|
|
278
|
+
}] : null, [autoChartScale, chartScale, chartScaleChoice, hasHistory, onChartScaleChange]);
|
|
255
279
|
// A provider EV well off market cap + debt - cash, or why a withdrawn one is unavailable, at the
|
|
256
280
|
// regular session price the EV beside it is shown at. A gap of a few percent is the valuation panes' detail.
|
|
257
|
-
const pricedForEnterpriseValue = atRegularSessionPrice({ quote, fundamentals:
|
|
281
|
+
const pricedForEnterpriseValue = atRegularSessionPrice({ quote, fundamentals: withFinancialEnterpriseValue(fundamentals, profile) }).fundamentals;
|
|
258
282
|
const enterpriseValueNote = enterpriseValueGapIsLarge(pricedForEnterpriseValue)
|
|
259
283
|
? enterpriseValueReconciliationNote(pricedForEnterpriseValue, undefined, financials ?? undefined) : undefined;
|
|
260
284
|
// Months of cash, for a company that burns it, and an offering since its balance sheet that the cash is not in yet.
|
|
@@ -270,6 +294,7 @@ function ResolvedOverviewTab({ width, height, focused = false, ticker, financial
|
|
|
270
294
|
...(runwayOfferingNote ? [runwayOfferingNote] : []),
|
|
271
295
|
...(runway?.trailingGap === "short-history" ? [`Runway TTM: ${SHORT_RUNWAY_HISTORY}.`] : []),
|
|
272
296
|
...(priceSeries.warning ? [priceSeries.warning] : []),
|
|
297
|
+
...(hiddenOnLog > 0 ? [logScaleHiddenWarning(priceSeries.label, hiddenOnLog)] : []),
|
|
273
298
|
...(enterpriseValueNote ? [enterpriseValueNote] : []),
|
|
274
299
|
...(ttmNote ? [ttmNote] : []),
|
|
275
300
|
...(capitalization?.provenance.kind === "fundamentals" && !capitalization.live
|
|
@@ -418,6 +443,7 @@ function ResolvedOverviewTab({ width, height, focused = false, ticker, financial
|
|
|
418
443
|
bond: fundFacts?.bond ?? null,
|
|
419
444
|
runway,
|
|
420
445
|
trailingEpsYear: financials ? trailingEpsFiscalYear(financials) : undefined,
|
|
446
|
+
notMeaningful: servedRatesNotMeaningful(shownFundamentals, financials),
|
|
421
447
|
});
|
|
422
448
|
const profileFields = buildProfileFields({
|
|
423
449
|
// The contract section names an option's type.
|
|
@@ -587,6 +613,8 @@ function ResolvedOverviewTab({ width, height, focused = false, ticker, financial
|
|
|
587
613
|
high={yearRange.high}
|
|
588
614
|
label={yearRangeLabel}
|
|
589
615
|
shortLabel={t("52W")}
|
|
616
|
+
// A range the service read from the stored daily bars, the source's being no year's, says so.
|
|
617
|
+
note={quote.yearRangeBasis === "daily-bars" ? t("daily bars") : undefined}
|
|
590
618
|
labelWidth={rangeLabelWidth}
|
|
591
619
|
endpointWidth={rangeEndpointCells}
|
|
592
620
|
width={rangeWidth}
|
|
@@ -625,7 +653,7 @@ function ResolvedOverviewTab({ width, height, focused = false, ticker, financial
|
|
|
625
653
|
focused={false}
|
|
626
654
|
interactive={false}
|
|
627
655
|
series={[priceSeries]}
|
|
628
|
-
panels={[{ id: "price" }]}
|
|
656
|
+
panels={[{ id: "price", scale: chartScale }]}
|
|
629
657
|
levels={trade && researchTradeMatches(trade, instrumentFromTicker(ticker)) ? { seriesId: priceSeries.id, items: trade.levels } : undefined}
|
|
630
658
|
showLegend={false}
|
|
631
659
|
/>
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
usePaneStateValue,
|
|
16
16
|
usePaneTicker,
|
|
17
17
|
usePaneAppConfig,
|
|
18
|
+
usePaneChoice,
|
|
18
19
|
type AppState,
|
|
19
20
|
} from "../../../state/app/context";
|
|
20
21
|
import { useQuoteUpdates } from "../../../state/hooks/quote-streaming";
|
|
@@ -34,7 +35,8 @@ import { findTickerResearchGroup, groupTickerResearchTabs, tickerResearchGroupVi
|
|
|
34
35
|
import { isRecord } from "../../../utils/guards";
|
|
35
36
|
import { useLiveStreamingSetting } from "../../../state/hooks/live-streaming";
|
|
36
37
|
import { useCloudAccessFooter } from "../shared/cloud-upgrade";
|
|
37
|
-
import { CLOUD_QUOTE_DELAY_MINUTES } from "../../../api-client/plan-access";
|
|
38
|
+
import { CLOUD_QUOTE_DELAY_MINUTES, usePlanAccess } from "../../../api-client/plan-access";
|
|
39
|
+
import { shownPaneChoice } from "../../../core/state/app/pane-choices";
|
|
38
40
|
import { parsePublicTickerKey, publicTickerKey } from "../../../utils/exchanges";
|
|
39
41
|
import { captureAttentionAction } from "../../../telemetry/attention-counts";
|
|
40
42
|
import { tickerHasListingSuffix } from "../../../sources/listing-symbols";
|
|
@@ -42,6 +44,7 @@ import { tickerQuoteFooterInfo } from "./quote-footer";
|
|
|
42
44
|
import { ResearchTabKeysProvider, useResearchTabKeysHost } from "./research-tab-keys";
|
|
43
45
|
import { ResearchTabNavigationProvider } from "./research-tab-navigation";
|
|
44
46
|
import { usePluginAppActions } from "../../../public/react";
|
|
47
|
+
import { useUtcDay } from "../../../react/auto-refresh";
|
|
45
48
|
import { resolveTickerInstrumentKind } from "../../../tickers/instrument-kind";
|
|
46
49
|
import { ResearchTradeWorkspace } from "../broker-trading/dock";
|
|
47
50
|
|
|
@@ -192,25 +195,9 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
|
|
|
192
195
|
TICKER_RESEARCH_TAB_COMMIT_DELAY_MS,
|
|
193
196
|
{ commitPendingOnUnmount: true },
|
|
194
197
|
);
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
if (ticker.metadata.broker_contracts?.length) {
|
|
199
|
-
for (const key of ["ticker", "exchange", "tab"]) url.searchParams.delete(key);
|
|
200
|
-
window.history.replaceState(window.history.state, "", url.href);
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
url.searchParams.set("ticker", ticker.metadata.ticker);
|
|
204
|
-
// A bare ticker can name different issuers on different venues. Keep the
|
|
205
|
-
// selected listing on reload, and replace any previous pane's venue.
|
|
206
|
-
if (ticker.metadata.exchange && !parsePublicTickerKey(ticker.metadata.ticker).exchange && !tickerHasListingSuffix(ticker.metadata.ticker)) {
|
|
207
|
-
url.searchParams.set("exchange", ticker.metadata.exchange);
|
|
208
|
-
} else {
|
|
209
|
-
url.searchParams.delete("exchange");
|
|
210
|
-
}
|
|
211
|
-
url.searchParams.set("tab", activeTabId);
|
|
212
|
-
window.history.replaceState(window.history.state, "", url.href);
|
|
213
|
-
}, [focused, ticker?.metadata.ticker, ticker?.metadata.exchange, activeTabId, ticker?.metadata.broker_contracts]);
|
|
198
|
+
// A tab picked in this session, by any route, as opposed to restored with the workspace.
|
|
199
|
+
const [tabChosen, chooseTab] = usePaneChoice("activeTabId");
|
|
200
|
+
const access = usePlanAccess();
|
|
214
201
|
const [pluginCaptured, setPluginCaptured] = useState(false);
|
|
215
202
|
useEffect(() => {
|
|
216
203
|
if (focused && Number.isFinite(financials?.quote?.price) && (financials?.quote?.price ?? 0) > 0) {
|
|
@@ -240,9 +227,41 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
|
|
|
240
227
|
config,
|
|
241
228
|
hasOptionsChain,
|
|
242
229
|
});
|
|
230
|
+
const savedTabId = allTabs.some((tab) => tab.id === activeTabId) ? activeTabId : (allTabs[0]?.id ?? "overview");
|
|
231
|
+
const proOnlyTabIds = useMemo(
|
|
232
|
+
() => new Set(tickerResearchTabs.filter((tab) => tab.proOnly).map((tab) => tab.id)),
|
|
233
|
+
[tickerResearchTabs],
|
|
234
|
+
);
|
|
235
|
+
// A Pro-only tab restored for an account without Pro opens on the first
|
|
236
|
+
// free tab (Overview); its wall shows once the tab is picked.
|
|
243
237
|
const resolvedTabId = paneSettings.hideTabs
|
|
244
238
|
? resolveLockedTabId(paneSettings, allTabs)
|
|
245
|
-
: (
|
|
239
|
+
: shownPaneChoice(savedTabId, {
|
|
240
|
+
chosen: tabChosen || activeTabId !== committedActiveTabId,
|
|
241
|
+
hasProAccess: access.hasProAccess,
|
|
242
|
+
proOnly: (tabId) => proOnlyTabIds.has(tabId),
|
|
243
|
+
fallback: allTabs.find((tab) => !proOnlyTabIds.has(tab.id))?.id ?? savedTabId,
|
|
244
|
+
});
|
|
245
|
+
// The address names the tab on screen, so a copied link opens what was seen.
|
|
246
|
+
useEffect(() => {
|
|
247
|
+
if (!focused || !ticker || getCurrentPluginTarget() !== "web") return;
|
|
248
|
+
const url = new URL(window.location.href);
|
|
249
|
+
if (ticker.metadata.broker_contracts?.length) {
|
|
250
|
+
for (const key of ["ticker", "exchange", "tab"]) url.searchParams.delete(key);
|
|
251
|
+
window.history.replaceState(window.history.state, "", url.href);
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
url.searchParams.set("ticker", ticker.metadata.ticker);
|
|
255
|
+
// A bare ticker can name different issuers on different venues. Keep the
|
|
256
|
+
// selected listing on reload, and replace any previous pane's venue.
|
|
257
|
+
if (ticker.metadata.exchange && !parsePublicTickerKey(ticker.metadata.ticker).exchange && !tickerHasListingSuffix(ticker.metadata.ticker)) {
|
|
258
|
+
url.searchParams.set("exchange", ticker.metadata.exchange);
|
|
259
|
+
} else {
|
|
260
|
+
url.searchParams.delete("exchange");
|
|
261
|
+
}
|
|
262
|
+
url.searchParams.set("tab", resolvedTabId);
|
|
263
|
+
window.history.replaceState(window.history.state, "", url.href);
|
|
264
|
+
}, [focused, ticker?.metadata.ticker, ticker?.metadata.exchange, resolvedTabId, ticker?.metadata.broker_contracts]);
|
|
246
265
|
// Only quote/chart views use the parent quote status. Other research tabs
|
|
247
266
|
// own their data status (the options chain may have a different delay/feed).
|
|
248
267
|
const quoteFooterActive = resolvedTabId === "overview" || resolvedTabId === "chart";
|
|
@@ -255,6 +274,8 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
|
|
|
255
274
|
segmentId: "ticker-research-access",
|
|
256
275
|
shortcutScope: "ticker-research:upgrade",
|
|
257
276
|
});
|
|
277
|
+
// The quote's time of today drops its day; the next day the footer names it.
|
|
278
|
+
const utcDay = useUtcDay();
|
|
258
279
|
usePaneFooter(
|
|
259
280
|
"ticker-research-access",
|
|
260
281
|
() => quoteFooterActive ? {
|
|
@@ -263,7 +284,7 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
|
|
|
263
284
|
hints: cloudAccess.hint ? [cloudAccess.hint] : undefined,
|
|
264
285
|
order: -1,
|
|
265
286
|
} : null,
|
|
266
|
-
[cloudAccess.hint, cloudAccess.segment, financials?.quote, quoteFooterActive, resolvedTabId, width],
|
|
287
|
+
[cloudAccess.hint, cloudAccess.segment, financials?.quote, quoteFooterActive, resolvedTabId, utcDay, width],
|
|
267
288
|
);
|
|
268
289
|
|
|
269
290
|
const visibleTabIdKey = allTabs.map((tab) => tab.id).join("\0");
|
|
@@ -276,8 +297,9 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
|
|
|
276
297
|
if (!requestedTabId || !requestedTabAt || requestedTabAt === consumedTabAt) return;
|
|
277
298
|
if (!allTabs.some((tab) => tab.id === requestedTabId)) return;
|
|
278
299
|
setConsumedTabAt(requestedTabAt);
|
|
300
|
+
chooseTab();
|
|
279
301
|
setActiveTabId(requestedTabId);
|
|
280
|
-
}, [consumedTabAt, requestedTabAt, requestedTabId, setActiveTabId, setConsumedTabAt, visibleTabIdKey]);
|
|
302
|
+
}, [chooseTab, consumedTabAt, requestedTabAt, requestedTabId, setActiveTabId, setConsumedTabAt, visibleTabIdKey]);
|
|
281
303
|
// A quote tick re-renders this pane; the strips only have to re-render
|
|
282
304
|
// when a tab appears, disappears, or is renamed.
|
|
283
305
|
const tabItemsKey = allTabs.map((tab) => `${tab.id}:${tab.name}:${tab.order}`).join("\0");
|
|
@@ -309,8 +331,10 @@ export function TickerResearchPane({ focused, width, height }: PaneProps) {
|
|
|
309
331
|
const action = tabId === "chart" ? "chart" : tabId === "options" ? "option_chain" : null;
|
|
310
332
|
if (action) captureAttentionAction()(publicTickerKey(ticker.metadata.ticker, ticker.metadata.exchange), action);
|
|
311
333
|
}
|
|
334
|
+
// Picking the tab the pane has saved changes no value, so say it was picked.
|
|
335
|
+
if (!tabChosen) chooseTab();
|
|
312
336
|
setActiveTabId(tabId);
|
|
313
|
-
}, [resolvedTabId, setActiveTabId, ticker]);
|
|
337
|
+
}, [chooseTab, resolvedTabId, setActiveTabId, tabChosen, ticker]);
|
|
314
338
|
// A group opens on the view last chosen in it, as Fixed Income's sections do.
|
|
315
339
|
const selectResearchGroup = useCallback((groupId: string) => {
|
|
316
340
|
const group = groups.find((entry) => entry.id === groupId);
|
|
@@ -6,6 +6,7 @@ import { formatQuoteNavAsOf } from "../../../market-data/quotes/time";
|
|
|
6
6
|
import { delistingLabel } from "../../../market-data/quotes/delisting";
|
|
7
7
|
import type { Quote } from "../../../types/financials";
|
|
8
8
|
import { displayWidth } from "../../../utils/format";
|
|
9
|
+
import { quoteSourceFooterSegment } from "../shared/source-footer";
|
|
9
10
|
|
|
10
11
|
export function tickerQuoteFooterInfo(
|
|
11
12
|
quote: Quote | undefined,
|
|
@@ -42,6 +43,10 @@ export function tickerQuoteFooterInfo(
|
|
|
42
43
|
info.push(status);
|
|
43
44
|
} else if (navAsOf) {
|
|
44
45
|
info.push({ id: "ticker-research-nav", parts: [{ text: navAsOf, tone: "muted" }] });
|
|
46
|
+
} else if (quote) {
|
|
47
|
+
// Where the quote is from and when, as `quote` ends; the access clock beside it says how late the feed is.
|
|
48
|
+
const source = quoteSourceFooterSegment([quote], { id: "ticker-research-source" });
|
|
49
|
+
if (source) info.push(source);
|
|
45
50
|
}
|
|
46
51
|
if (access) info.push(access);
|
|
47
52
|
return info;
|
|
@@ -23,6 +23,7 @@ import { isQuoteStaleForCurrentSession } from "../../../../market-data/quotes/fr
|
|
|
23
23
|
import { delistingLabel, delistingStateLabel } from "../../../../market-data/quotes/delisting";
|
|
24
24
|
import { formatQuoteNavAsOf, formatQuoteSessionAsOf } from "../../../../market-data/quotes/time";
|
|
25
25
|
import { ClippedText } from "../../../../components/ui/display";
|
|
26
|
+
import { useSelectionFill } from "../../../../components/ui/selection-fill";
|
|
26
27
|
import { useQuoteFlashDirection } from "../../../../components/quote-flash";
|
|
27
28
|
import { followLiveSparklinePrice } from "../../../../components/price-sparkline/model";
|
|
28
29
|
import {
|
|
@@ -163,6 +164,7 @@ export function QuoteMonitorCard({
|
|
|
163
164
|
onOpen: (symbol: string) => void;
|
|
164
165
|
}) {
|
|
165
166
|
const { nativePaneChrome, cellWidthPx = 8 } = useUiCapabilities();
|
|
167
|
+
const selectionFill = useSelectionFill();
|
|
166
168
|
const quote = resolveEntryData(quoteEntry) ?? cachedFinancials?.quote;
|
|
167
169
|
const queriedPriceHistory = resolveEntryData(chartEntry);
|
|
168
170
|
const barHistory = queriedPriceHistory && queriedPriceHistory.length >= 2
|
|
@@ -251,9 +253,10 @@ export function QuoteMonitorCard({
|
|
|
251
253
|
onSelect,
|
|
252
254
|
onActivate: onOpen,
|
|
253
255
|
});
|
|
254
|
-
// The terminal marks the cursor on the symbol
|
|
255
|
-
|
|
256
|
-
const
|
|
256
|
+
// The terminal marks the cursor on the symbol, quieter while the board does
|
|
257
|
+
// not have the keys; the desktop rings the card.
|
|
258
|
+
const symbolFg = selected && !nativePaneChrome && selectionFill.lit ? colors.selectedText : colors.textBright;
|
|
259
|
+
const symbolBg = selected && !nativePaneChrome ? selectionFill.bg : undefined;
|
|
257
260
|
|
|
258
261
|
return (
|
|
259
262
|
<Box
|
|
@@ -299,8 +302,8 @@ export function QuoteMonitorCard({
|
|
|
299
302
|
position: "relative",
|
|
300
303
|
zIndex: 1,
|
|
301
304
|
display: "grid",
|
|
302
|
-
// The
|
|
303
|
-
gridTemplateColumns: "minmax(
|
|
305
|
+
// The symbol and the price keep their natural widths; the name gives way first.
|
|
306
|
+
gridTemplateColumns: "minmax(min-content, 1fr) auto",
|
|
304
307
|
// The symbol and price, what the price is as of, an extended print, the range, a perpetual.
|
|
305
308
|
gridTemplateRows: "auto auto 1fr auto auto",
|
|
306
309
|
columnGap: "var(--gloom-space-md)",
|
|
@@ -318,7 +321,7 @@ export function QuoteMonitorCard({
|
|
|
318
321
|
overflow: "hidden",
|
|
319
322
|
}}
|
|
320
323
|
>
|
|
321
|
-
<Text attributes={TextAttributes.BOLD} fg={symbolFg} bg={symbolBg} style={desktopSymbolStyle}>
|
|
324
|
+
<Text attributes={TextAttributes.BOLD} fg={symbolFg} bg={symbolBg} style={{ ...desktopSymbolStyle, whiteSpace: "nowrap" }}>
|
|
322
325
|
{label}
|
|
323
326
|
</Text>
|
|
324
327
|
{quoteFailed && !endedRow && (
|
|
@@ -327,7 +330,8 @@ export function QuoteMonitorCard({
|
|
|
327
330
|
</Text>
|
|
328
331
|
)}
|
|
329
332
|
{!quoteFailed && ticker?.metadata.name && (
|
|
330
|
-
|
|
333
|
+
// No width of its own: the column is the symbol's, and the name is cut to it.
|
|
334
|
+
<Text fg={colors.textDim} style={{ ...DESKTOP_META_LINE_STYLE, contain: "inline-size" }}>
|
|
331
335
|
{ticker.metadata.name}
|
|
332
336
|
</Text>
|
|
333
337
|
)}
|
|
@@ -410,7 +414,8 @@ export function QuoteMonitorCard({
|
|
|
410
414
|
<Text
|
|
411
415
|
fg={colors.textDim}
|
|
412
416
|
style={{
|
|
413
|
-
|
|
417
|
+
// Across the card, so a wide range never widens the price's column into the symbol's.
|
|
418
|
+
gridColumn: "1 / -1",
|
|
414
419
|
gridRow: "4",
|
|
415
420
|
justifySelf: "end",
|
|
416
421
|
alignSelf: "end",
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { quoteExportFeed, quoteExportUnit, quoteSourceName, type BrokerNameOf } from "../../../../market-data/quotes/export-identity";
|
|
10
10
|
import { isYieldIndexSymbol } from "../../../../tickers/index-roots";
|
|
11
11
|
import { toBasisPoints } from "../../../../utils/basis-points";
|
|
12
|
-
import { formatPercentRaw } from "../../../../utils/format";
|
|
12
|
+
import { MISSING_VALUE, formatPercentRaw } from "../../../../utils/format";
|
|
13
13
|
import { parsePublicTickerKey } from "../../../../utils/exchanges";
|
|
14
14
|
import { quoteFreshnessFields } from "../../shared/report-freshness";
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ import { quoteFreshnessFields } from "../../shared/report-freshness";
|
|
|
20
20
|
|
|
21
21
|
/** A price or move in the row's own currency, as the cards draw it. */
|
|
22
22
|
function quoteAmount(value: unknown, row: Record<string, unknown>, signed = false): string {
|
|
23
|
-
if (typeof value !== "number" || !Number.isFinite(value)) return
|
|
23
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return MISSING_VALUE;
|
|
24
24
|
const currency = typeof row.currency === "string" && row.currency.trim() ? row.currency : undefined;
|
|
25
25
|
const base: MarketFormatOptions = { assetCategory: typeof row.instrumentType === "string" ? row.instrumentType : undefined,
|
|
26
26
|
priceBasis: row.priceBasis === "per-unit" || row.priceBasis === "percent-of-par" ? row.priceBasis : undefined };
|
|
@@ -33,7 +33,7 @@ function quoteAmount(value: unknown, row: Record<string, unknown>, signed = fals
|
|
|
33
33
|
const amount = currency
|
|
34
34
|
? formatMarketPriceWithCurrency(value, currency, options)
|
|
35
35
|
: formatMarketPrice(value, options);
|
|
36
|
-
return amount ===
|
|
36
|
+
return amount === MISSING_VALUE ? amount : `${signed && value >= 0 ? "+" : ""}${amount}`;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
function percentCell(value: unknown): string {
|
|
@@ -74,7 +74,7 @@ function extendedSessionColumn(session: ExtendedSession): HeadlessPaneColumn {
|
|
|
74
74
|
key: "extendedPrice", header: EXTENDED_SESSION_LABELS[session], align: "right",
|
|
75
75
|
format: (value, row) => row.extendedSession === session
|
|
76
76
|
? `${quoteAmount(value, row)} ${percentCell(row.extendedChangePercent)}`
|
|
77
|
-
:
|
|
77
|
+
: MISSING_VALUE,
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
|