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
|
@@ -53,7 +53,11 @@ export interface EarningsCallsResult {
|
|
|
53
53
|
errorStatus?: number;
|
|
54
54
|
/** The server has just started looking for this company's calls. */
|
|
55
55
|
pending?: boolean;
|
|
56
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* The symbol is not one the SEC knows, so there is nothing to look for. Never
|
|
58
|
+
* set for a listing abroad, which the server answers by its stored calls:
|
|
59
|
+
* C38U:SGX with none yet is a company whose calls are not yet available.
|
|
60
|
+
*/
|
|
57
61
|
unknownTicker?: boolean;
|
|
58
62
|
/** The company's home line the calls are read from, when not the listing asked. */
|
|
59
63
|
companyFrom?: CompanyFrom | null;
|
|
@@ -172,16 +176,32 @@ function listKey(ticker: string | null, abroad: ListingAbroad | null, limit: num
|
|
|
172
176
|
return offset > 0 ? JSON.stringify([identity, limit, offset]) : JSON.stringify([identity, limit]);
|
|
173
177
|
}
|
|
174
178
|
|
|
179
|
+
/** A listing code without the zeros a venue pads it with: 0016 and 16 are one Hong Kong listing. */
|
|
180
|
+
const listingCode = (symbol: string) => symbol.trim().toUpperCase().replace(/^0+(?=\d)/, "");
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* A call filed under the listing's own key (0016:HKEX) is the listing's,
|
|
184
|
+
* whatever short name the exchange gives the company there: "SHK PPT" is Sun
|
|
185
|
+
* Hung Kai Properties, "HKEX" Hong Kong Exchanges and Clearing.
|
|
186
|
+
*/
|
|
187
|
+
function filedUnderListing(call: CloudEarningsCallPayload, abroad: ListingAbroad): boolean {
|
|
188
|
+
const separator = call.ticker.lastIndexOf(":");
|
|
189
|
+
if (separator < 0) return false;
|
|
190
|
+
return listingCode(call.ticker.slice(0, separator)) === listingCode(abroad.symbol)
|
|
191
|
+
&& call.ticker.slice(separator + 1).trim().toUpperCase() === abroad.exchange.toUpperCase();
|
|
192
|
+
}
|
|
193
|
+
|
|
175
194
|
/**
|
|
176
195
|
* A server that predates venue-aware lookups ignores the venue and lists the
|
|
177
196
|
* calls of the US company with the same symbol: AI in Paris would show C3.ai.
|
|
178
197
|
* Those calls are another company's, so they are dropped, and without the
|
|
179
|
-
* listing's company they cannot be told apart.
|
|
198
|
+
* listing's company they cannot be told apart. A call filed under the
|
|
199
|
+
* listing's own key is never such a call.
|
|
180
200
|
*/
|
|
181
201
|
function listingCalls(calls: CloudEarningsCallPayload[], abroad: ListingAbroad | null): CloudEarningsCallPayload[] {
|
|
182
202
|
if (!abroad) return calls;
|
|
183
203
|
const name = abroad.name;
|
|
184
|
-
return
|
|
204
|
+
return calls.filter((call) => filedUnderListing(call, abroad) || (!!name && !areDifferentCompanies(name, call.companyName)));
|
|
185
205
|
}
|
|
186
206
|
|
|
187
207
|
type EarningsCallsLoadOptions = IssuerListingParams & { force?: boolean; limit?: number; offset?: number };
|
|
@@ -231,7 +251,7 @@ export async function loadEarningsCallsWithClient(
|
|
|
231
251
|
const value = {
|
|
232
252
|
calls,
|
|
233
253
|
pending: payload.pending === true,
|
|
234
|
-
unknownTicker: payload.unknownTicker === true,
|
|
254
|
+
unknownTicker: payload.unknownTicker === true && !abroad,
|
|
235
255
|
...(companyFrom ? { companyFrom } : {}),
|
|
236
256
|
};
|
|
237
257
|
// A list with calls still being produced changes by the minute, so it
|
|
@@ -1,30 +1,49 @@
|
|
|
1
|
+
import { MISSING_VALUE } from "../../../utils/format";
|
|
1
2
|
import type { CloudEarningsCallPayload } from "../../../api-client";
|
|
2
3
|
import { formatShortDate } from "../../../utils/datetime-format";
|
|
3
4
|
|
|
4
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* "FQ4 26", "H1 26" or "FY 26": the fiscal period, compact enough for a table
|
|
7
|
+
* column. A half year's results have no quarter, as a year's do, and are told
|
|
8
|
+
* apart by `fiscalHalf` (SHKP's interim and annual results calls of FY2026).
|
|
9
|
+
*/
|
|
5
10
|
function formatPeriod(
|
|
6
11
|
fiscalYear: number | null,
|
|
7
12
|
fiscalQuarter: number | null,
|
|
13
|
+
fiscalHalf?: number | null,
|
|
8
14
|
): string {
|
|
9
|
-
if (!fiscalQuarter && !fiscalYear) return
|
|
10
|
-
const quarter = fiscalQuarter ? `FQ${fiscalQuarter}` : "FY";
|
|
15
|
+
if (!fiscalQuarter && !fiscalYear) return MISSING_VALUE;
|
|
16
|
+
const quarter = fiscalQuarter ? `FQ${fiscalQuarter}` : fiscalHalf ? `H${fiscalHalf}` : "FY";
|
|
11
17
|
const year = fiscalYear ? ` ${String(fiscalYear).slice(-2)}` : "";
|
|
12
18
|
return `${quarter}${year}`;
|
|
13
19
|
}
|
|
14
20
|
|
|
21
|
+
/** The FQ column of `fn CALLS`: the quarter, or `H1` for a half year's results. */
|
|
22
|
+
export function fiscalQuarterText(call: { fiscalQuarter: number | null; fiscalHalf?: number | null }): string | number | null {
|
|
23
|
+
return call.fiscalQuarter ?? (call.fiscalHalf ? `H${call.fiscalHalf}` : null);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* What a company with no call yet reads, in the pane and `fn CALLS`: not yet
|
|
28
|
+
* available, never an error or a gap in coverage.
|
|
29
|
+
*/
|
|
30
|
+
export function noCallsText(ticker: string): { title: string; message: string } {
|
|
31
|
+
return { title: `Earnings calls for ${ticker} are not yet available.`, message: "Calls appear once the company's investor site or filings list a webcast." };
|
|
32
|
+
}
|
|
33
|
+
|
|
15
34
|
export function formatCallDate(value: string | null): string {
|
|
16
|
-
return formatShortDate(value, { day: "2-digit", year: "2-digit", fallback:
|
|
35
|
+
return formatShortDate(value, { day: "2-digit", year: "2-digit", fallback: MISSING_VALUE });
|
|
17
36
|
}
|
|
18
37
|
|
|
19
38
|
export function formatDuration(seconds: number | null): string {
|
|
20
|
-
if (!seconds || seconds <= 0) return
|
|
39
|
+
if (!seconds || seconds <= 0) return MISSING_VALUE;
|
|
21
40
|
const minutes = Math.round(seconds / 60);
|
|
22
41
|
if (minutes < 60) return `${minutes}m`;
|
|
23
42
|
return `${Math.floor(minutes / 60)}h${String(minutes % 60).padStart(2, "0")}`;
|
|
24
43
|
}
|
|
25
44
|
|
|
26
45
|
export function formatSentiment(sentiment: number | null): string {
|
|
27
|
-
if (sentiment === null || !Number.isFinite(sentiment)) return
|
|
46
|
+
if (sentiment === null || !Number.isFinite(sentiment)) return MISSING_VALUE;
|
|
28
47
|
const rounded = sentiment.toFixed(2);
|
|
29
48
|
return sentiment > 0 ? `+${rounded}` : rounded;
|
|
30
49
|
}
|
|
@@ -38,7 +57,7 @@ export function formatTimestamp(seconds: number): string {
|
|
|
38
57
|
|
|
39
58
|
type NamedCall = Pick<
|
|
40
59
|
CloudEarningsCallPayload,
|
|
41
|
-
"ticker" | "fiscalYear" | "fiscalQuarter" | "eventKind" | "eventLabel"
|
|
60
|
+
"ticker" | "fiscalYear" | "fiscalQuarter" | "fiscalHalf" | "eventKind" | "eventLabel"
|
|
42
61
|
>;
|
|
43
62
|
|
|
44
63
|
/** An event that is not an earnings call (a deal call, an investor day), shown by its label and never as a quarter. */
|
|
@@ -60,13 +79,13 @@ const SHORT_EVENT_LABELS: Record<string, string> = {
|
|
|
60
79
|
export function callPeriod(call: Omit<NamedCall, "ticker">): string {
|
|
61
80
|
const label = eventLabelOf(call);
|
|
62
81
|
if (label) return SHORT_EVENT_LABELS[label] ?? label;
|
|
63
|
-
return formatPeriod(call.fiscalYear, call.fiscalQuarter);
|
|
82
|
+
return formatPeriod(call.fiscalYear, call.fiscalQuarter, call.fiscalHalf);
|
|
64
83
|
}
|
|
65
84
|
|
|
66
85
|
/** Title for the detail stack: names the call so the body need not repeat it. */
|
|
67
86
|
export function callTitle(call: NamedCall): string {
|
|
68
87
|
const label = eventLabelOf(call);
|
|
69
88
|
if (label) return `${call.ticker} ${label}`;
|
|
70
|
-
const period = formatPeriod(call.fiscalYear, call.fiscalQuarter);
|
|
71
|
-
return period ===
|
|
89
|
+
const period = formatPeriod(call.fiscalYear, call.fiscalQuarter, call.fiscalHalf);
|
|
90
|
+
return period === MISSING_VALUE ? call.ticker : `${call.ticker} ${period}`;
|
|
72
91
|
}
|
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
HeadlessPaneContext,
|
|
7
7
|
HeadlessPaneDefinition,
|
|
8
8
|
HeadlessPaneLoadArgs,
|
|
9
|
+
HeadlessPaneRow,
|
|
9
10
|
HeadlessRowsResult,
|
|
10
11
|
} from "../../../types/plugin";
|
|
11
12
|
import { explainRefusal } from "../shared/cloud-denied";
|
|
@@ -23,7 +24,7 @@ import {
|
|
|
23
24
|
type UpcomingCallsResult,
|
|
24
25
|
type UpcomingDays,
|
|
25
26
|
} from "./data";
|
|
26
|
-
import { callPeriod, eventLabelOf } from "./format";
|
|
27
|
+
import { callPeriod, eventLabelOf, fiscalQuarterText, noCallsText } from "./format";
|
|
27
28
|
import type { MarketDay } from "../earnings/board-model";
|
|
28
29
|
import {
|
|
29
30
|
calendarDays,
|
|
@@ -56,9 +57,11 @@ const optionalErrors = (error: string | null) => error ? [error] : undefined;
|
|
|
56
57
|
const CALL_COLUMNS = [
|
|
57
58
|
{ key: "ticker", header: "Ticker" },
|
|
58
59
|
{ key: "company", header: "Company" },
|
|
59
|
-
|
|
60
|
+
// A call known by its day alone prints the day, never a midnight it was not held at.
|
|
61
|
+
{ key: "callAt", header: "Call date", textFormat: (value: unknown, row: HeadlessPaneRow) => callDateText(value, row.timeKnown !== false) },
|
|
60
62
|
{ key: "fiscalYear", header: "FY", align: "right" as const },
|
|
61
|
-
|
|
63
|
+
// A half year's results read H1, never a blank quarter beside the year's.
|
|
64
|
+
{ key: "fiscalQuarter", header: "FQ", align: "right" as const, textFormat: (value: unknown, row: HeadlessPaneRow) => String(fiscalQuarterText({ fiscalQuarter: value as number | null, fiscalHalf: row.fiscalHalf as number | undefined }) ?? "—") },
|
|
62
65
|
{ key: "event", header: "Event" },
|
|
63
66
|
{ key: "status", header: "Status" },
|
|
64
67
|
{ key: "durationSeconds", header: "Seconds", align: "right" as const },
|
|
@@ -122,6 +125,14 @@ function explainDenied(ticker: string | null, context: HeadlessPaneContext) {
|
|
|
122
125
|
return async (error: unknown): Promise<never> => { throw await explainRefusal(error, callsLockNote, { symbol: ticker, context }); };
|
|
123
126
|
}
|
|
124
127
|
|
|
128
|
+
/** "2026-10-27 07:45 UTC" for a call whose start is known, "2026-09-10" for one known by its day. */
|
|
129
|
+
function callDateText(value: unknown, timeKnown: boolean): string {
|
|
130
|
+
const at = typeof value === "string" ? Date.parse(value) : Number.NaN;
|
|
131
|
+
if (!Number.isFinite(at)) return "—";
|
|
132
|
+
const iso = new Date(at).toISOString();
|
|
133
|
+
return timeKnown ? `${iso.slice(0, 16).replace("T", " ")} UTC` : iso.slice(0, 10);
|
|
134
|
+
}
|
|
135
|
+
|
|
125
136
|
function callRow(call: CloudEarningsCallPayload, now: number) {
|
|
126
137
|
const upcoming = isUpcomingCall(call, now);
|
|
127
138
|
return {
|
|
@@ -129,8 +140,10 @@ function callRow(call: CloudEarningsCallPayload, now: number) {
|
|
|
129
140
|
ticker: call.ticker,
|
|
130
141
|
company: call.companyName,
|
|
131
142
|
callAt: call.callAt,
|
|
143
|
+
timeKnown: callTimeKnown(call),
|
|
132
144
|
fiscalYear: call.fiscalYear,
|
|
133
145
|
fiscalQuarter: call.fiscalQuarter,
|
|
146
|
+
...(call.fiscalHalf ? { fiscalHalf: call.fiscalHalf } : {}),
|
|
134
147
|
// A deal call, a conference, an investor day: not a quarter's earnings call.
|
|
135
148
|
event: eventLabelOf(call),
|
|
136
149
|
status: call.hasTranscript ? "transcribed" : callStatusLabel(call, now) || call.status,
|
|
@@ -170,11 +183,15 @@ function projectEarningsCallsHeadless(
|
|
|
170
183
|
const ordered = next ? [next, ...matching.filter((call) => call !== next)] : matching;
|
|
171
184
|
const rows = ordered.slice(0, limit).map((call) => callRow(call, now));
|
|
172
185
|
const sourceLimit = result.sourceLimit ?? 200;
|
|
186
|
+
// A company with no call yet says so, as the pane does; a US symbol the SEC does not know is not one.
|
|
187
|
+
const ticker = typeof args.argument === "string" ? args.argument : null;
|
|
188
|
+
const none = ticker && !result.calls.length && !result.pending && !result.unknownTicker ? noCallsText(ticker) : null;
|
|
173
189
|
const sourceLimitReached = result.sourceLimitReached ?? result.calls.length >= sourceLimit;
|
|
174
190
|
|
|
175
191
|
return {
|
|
176
192
|
columns: CALL_COLUMNS,
|
|
177
193
|
rows,
|
|
194
|
+
...(none ? { empty: `${none.title} ${none.message}` } : {}),
|
|
178
195
|
...(next ? { textRows: rows.filter((row) => row.id !== next.id) } : {}),
|
|
179
196
|
errors: optionalErrors(unansweredRefreshError(result)),
|
|
180
197
|
...(sourceLimitReached || result.pending ? { complete: false } : {}),
|
|
@@ -243,6 +260,7 @@ function transcriptResult(
|
|
|
243
260
|
company: transcript.companyName,
|
|
244
261
|
fiscalYear: transcript.fiscalYear,
|
|
245
262
|
fiscalQuarter: transcript.fiscalQuarter,
|
|
263
|
+
...(transcript.fiscalHalf ? { fiscalHalf: transcript.fiscalHalf } : {}),
|
|
246
264
|
event: eventLabelOf(transcript),
|
|
247
265
|
// A call held in another language: the text is an English translation, its original under --section original.
|
|
248
266
|
translatedFrom: language,
|
|
@@ -290,6 +308,7 @@ function projectCalendar(
|
|
|
290
308
|
event: eventLabelOf(call),
|
|
291
309
|
fiscalYear: call.fiscalYear,
|
|
292
310
|
fiscalQuarter: call.fiscalQuarter,
|
|
311
|
+
...(call.fiscalHalf ? { fiscalHalf: call.fiscalHalf } : {}),
|
|
293
312
|
in: calendarAway(call, now),
|
|
294
313
|
status: call.hasTranscript ? "transcribed" : callStatusLabel(call, now) || call.status,
|
|
295
314
|
hasTranscript: call.hasTranscript,
|
|
@@ -469,6 +488,7 @@ export function createEarningsCallsHeadless(
|
|
|
469
488
|
const ahead = findCallForQuarter(calls.calls, quarter);
|
|
470
489
|
if (ahead) throw new Error(`${ticker}'s ${quarter} call is still to come. ${nextCallNotice(ahead, now)}`);
|
|
471
490
|
if (calls.unknownTicker) throw new Error(`${ticker} is not a known listed company.`);
|
|
491
|
+
if (!calls.calls.length && !calls.pending) throw new Error(noCallsText(ticker).title);
|
|
472
492
|
if (calls.pending) throw new Error(`Earnings call discovery for ${ticker} is still pending.`);
|
|
473
493
|
if (calls.sourceLimitReached ?? calls.calls.length >= (calls.sourceLimit ?? 200)) {
|
|
474
494
|
throw new Error(`No ${quarter} earnings call found among the latest ${calls.sourceLimit ?? 200} loaded calls for ${ticker}; earlier calls may exist.`);
|
|
@@ -295,10 +295,20 @@ export function findCallForQuarter(
|
|
|
295
295
|
)) ?? null;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
// A half year's results: "H1 26", "1H26", "26H1".
|
|
299
|
+
const half = token.match(/^(?:H([12])(\d{2}|\d{4})?|([12])H(\d{2}|\d{4})?|(\d{2}|\d{4})H([12]))$/);
|
|
300
|
+
if (half) {
|
|
301
|
+
const which = Number(half[1] ?? half[3] ?? half[6]);
|
|
302
|
+
const year = half[2] ?? half[4] ?? half[5];
|
|
303
|
+
return sorted.find((call) => call.fiscalHalf === which && sameYear(call.fiscalYear, year ? Number(year) : null)) ?? null;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// A year's call, never its half's (SHKP's interim and annual results calls share FY2026), even when the half is all
|
|
307
|
+
// the year has so far: H1-2026 asks for that one.
|
|
298
308
|
const fiscalYear = token.match(/^(?:FY)?(\d{2}|\d{4})$/);
|
|
299
309
|
if (fiscalYear) {
|
|
300
310
|
const year = Number(fiscalYear[1]);
|
|
301
|
-
return sorted.find((call) => sameYear(call.fiscalYear, year)) ?? null;
|
|
311
|
+
return sorted.find((call) => sameYear(call.fiscalYear, year) && !call.fiscalHalf) ?? null;
|
|
302
312
|
}
|
|
303
313
|
|
|
304
314
|
return null;
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
import { isPermanentClientError } from "../../../api-client/errors";
|
|
52
52
|
import { savedCopyFooterInfo } from "../../../components/layout/pane/footer";
|
|
53
53
|
import { STALE_SEGMENT } from "../../../components/layout/pane/status-footer";
|
|
54
|
-
import { callPeriod, callTitle, eventLabelOf, formatCallDate, formatDuration, formatSentiment } from "./format";
|
|
54
|
+
import { callPeriod, callTitle, eventLabelOf, formatCallDate, formatDuration, formatSentiment, noCallsText } from "./format";
|
|
55
55
|
import { findCallForQuarter, findInLines, MIN_FIND_LENGTH, originalIsMachineTranscript, translatedFrom, turnParagraphs } from "./model";
|
|
56
56
|
import { READER_TABS, TranscriptView, type ReaderTab, type TranscriptPlayback } from "./transcript-view";
|
|
57
57
|
import { PLAYBACK_RATES, SEEK_STEP_SECONDS, useCallPlayback } from "./use-call-playback";
|
|
@@ -1012,10 +1012,7 @@ function CallsListView({
|
|
|
1012
1012
|
return listPending ? (
|
|
1013
1013
|
<PaneStatusBody loading align="center" loadingLabel={`Looking for ${ticker}'s earnings calls...`} />
|
|
1014
1014
|
) : (
|
|
1015
|
-
<EmptyState
|
|
1016
|
-
title={`No earnings calls found for ${ticker}.`}
|
|
1017
|
-
message="Calls appear here once the company's investor site or filings list a webcast."
|
|
1018
|
-
/>
|
|
1015
|
+
<EmptyState {...noCallsText(ticker)} />
|
|
1019
1016
|
);
|
|
1020
1017
|
}
|
|
1021
1018
|
|
|
@@ -61,7 +61,7 @@ const localDay = (at: number) => {
|
|
|
61
61
|
/**
|
|
62
62
|
* How far away a call is. With its start: "in 25m" and "in 3h" within a day
|
|
63
63
|
* (the countdown econ events use), then its weekday on this machine's clock
|
|
64
|
-
* within the week ("Thu"), then its date ("Oct
|
|
64
|
+
* within the week ("Thu"), then its date ("30 Oct"); "started" once it has.
|
|
65
65
|
* Known by its day alone: "today", "tomorrow", then the same.
|
|
66
66
|
*/
|
|
67
67
|
export function callCountdown(call: CloudEarningsCallPayload, now = Date.now()): string {
|
|
@@ -86,7 +86,7 @@ export function callCountdown(call: CloudEarningsCallPayload, now = Date.now()):
|
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* The countdown when it says more than the call's day does: "in 3h", "today",
|
|
89
|
-
* "tomorrow". Null when it would only name the day ("Thu", "Oct
|
|
89
|
+
* "tomorrow". Null when it would only name the day ("Thu", "30 Oct").
|
|
90
90
|
*/
|
|
91
91
|
export function callAway(call: CloudEarningsCallPayload, now = Date.now()): string | null {
|
|
92
92
|
const countdown = callCountdown(call, now);
|
|
@@ -114,7 +114,7 @@ function clockFormatter(timeZone: string | undefined, withDay: boolean): Intl.Da
|
|
|
114
114
|
function clock(at: number, timeZone: string | undefined, withDay: boolean): string {
|
|
115
115
|
const parts = Object.fromEntries(clockFormatter(timeZone, withDay).formatToParts(new Date(at)).map((part) => [part.type, part.value]));
|
|
116
116
|
const time = `${parts.hour}:${parts.minute}`;
|
|
117
|
-
return withDay ? `${parts.weekday} ${parts.
|
|
117
|
+
return withDay ? `${parts.weekday} ${parts.day} ${parts.month} ${time}` : time;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
const NEW_YORK = "America/New_York";
|
|
@@ -137,8 +137,8 @@ export function clockIsNewYork(calls: readonly CloudEarningsCallPayload[], now =
|
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* When the next call starts, as its own line names it: the day and time here,
|
|
140
|
-
* then New York's ("Thu Oct 22
|
|
141
|
-
* two agree ("Thu Oct
|
|
140
|
+
* then New York's ("Thu 22 Oct 22:30", "16:30 ET"), New York's alone when the
|
|
141
|
+
* two agree ("Thu 22 Oct 16:30 ET"), or the day alone ("Thu 22 Oct").
|
|
142
142
|
*/
|
|
143
143
|
export function callStartText(call: CloudEarningsCallPayload, now = Date.now()): { start: string; newYork: string | null } {
|
|
144
144
|
const day = callDay(call);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MISSING_VALUE } from "../../../utils/format";
|
|
1
2
|
import type { HeadlessPaneDefinition } from "../../../types/plugin";
|
|
2
3
|
import { fetchEarningsCalendar } from "../earnings/client";
|
|
3
4
|
import { fetchSupplyChain } from "../supply-chain/client";
|
|
@@ -5,7 +6,7 @@ import { fetchSupplyGraph } from "../supply-chain/graph-client";
|
|
|
5
6
|
import { loadRipple } from "./client";
|
|
6
7
|
import { hopLabel, revenueOwner, rippleEmptyText } from "./model";
|
|
7
8
|
|
|
8
|
-
const percent = (value: unknown) => typeof value === "number" ? `${(value * 100).toFixed(1)}%` :
|
|
9
|
+
const percent = (value: unknown) => typeof value === "number" ? `${(value * 100).toFixed(1)}%` : MISSING_VALUE;
|
|
9
10
|
|
|
10
11
|
export const earningsRippleHeadless: HeadlessPaneDefinition<"bundle"> = {
|
|
11
12
|
shape: "bundle",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MISSING_VALUE } from "../../../utils/format";
|
|
1
2
|
import type { EarningsCalendarReport, EarningsTiming } from "../../../api-client/earnings";
|
|
2
3
|
import type { SupplyChainPayload, SupplyEntity, SupplyRow } from "../../../api-client/supply-chain";
|
|
3
4
|
import type { GraphPath, GraphPayload } from "../../../api-client/supply-chain-graph";
|
|
@@ -184,12 +185,12 @@ export function secondHopLinks(chains: ReadonlyMap<string, SupplyChainPayload>,
|
|
|
184
185
|
function hopShare(graph: GraphPayload, linkId: string): RippleHop {
|
|
185
186
|
const link = graph.links.find((entry) => entry.id === linkId);
|
|
186
187
|
const evidence = link?.evidence.find((item) => item.id === link.primaryEvidenceId);
|
|
187
|
-
return { owner: evidence ? entityLabel(evidence.reporter) :
|
|
188
|
+
return { owner: evidence ? entityLabel(evidence.reporter) : MISSING_VALUE, pct: evidence?.pctOfRevenue ?? null, basis: evidence?.pctBasis ?? null, scoped: !!evidence?.pctScope };
|
|
188
189
|
}
|
|
189
190
|
|
|
190
191
|
/** `30% of TSM`, `12% of AVGO purchases`, or `--` where the filing names the link without a figure. */
|
|
191
192
|
export function hopLabel(hop: RippleHop) {
|
|
192
|
-
if (hop.pct == null) return
|
|
193
|
+
if (hop.pct == null) return MISSING_VALUE;
|
|
193
194
|
return `${hop.pct}%${hop.scoped ? "*" : ""} of ${hop.owner}${hop.basis && hop.basis !== "revenue" ? ` ${hop.basis}` : ""}`;
|
|
194
195
|
}
|
|
195
196
|
|
|
@@ -8,7 +8,7 @@ import { useAsyncResource, useAutoRefresh, usePaneSettingValue, usePluginAppActi
|
|
|
8
8
|
import type { PaneProps } from "../../../types/plugin";
|
|
9
9
|
import { Box } from "../../../ui";
|
|
10
10
|
import { isUsListingExchange } from "../../../utils/exchanges";
|
|
11
|
-
import { displayWidth } from "../../../utils/format";
|
|
11
|
+
import { MISSING_VALUE, displayWidth } from "../../../utils/format";
|
|
12
12
|
import { CLOUD_PLAN_KEY, useCloudUpgradeAction } from "../shared/cloud-upgrade";
|
|
13
13
|
import { UpgradeLabel } from "../shared/locked-rows";
|
|
14
14
|
import { useResearchCloudSession } from "../shared/research-cloud-session";
|
|
@@ -95,32 +95,32 @@ function secondHopLayout(width: number, rows: readonly SecondHopRow[]) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
const move = (row: RippleRow | SecondHopRow): DataTableCell =>
|
|
98
|
-
({ text: row.averageMove == null ?
|
|
98
|
+
({ text: row.averageMove == null ? MISSING_VALUE : `±${(row.averageMove * 100).toFixed(1)}%`, value: row.averageMove });
|
|
99
99
|
|
|
100
100
|
function renderCell(row: RippleRow, column: DataTableColumn): DataTableCell {
|
|
101
101
|
switch (column.id) {
|
|
102
102
|
case "date": return { text: row.date };
|
|
103
|
-
case "timing": return { text: row.timing?.toUpperCase() ??
|
|
103
|
+
case "timing": return { text: row.timing?.toUpperCase() ?? MISSING_VALUE };
|
|
104
104
|
case "company": return { text: `${row.company} ${row.companyName}` };
|
|
105
105
|
case "link": return { text: row.link === "customer" ? "customer of" : "supplier to" };
|
|
106
106
|
case "holding": return { text: row.holding };
|
|
107
107
|
case "pct": return { text: `${row.pctOfRevenue}%${row.pctScope ? "*" : ""} of ${revenueOwner(row)}`, value: row.pctOfRevenue };
|
|
108
108
|
case "move": return move(row);
|
|
109
|
-
default: return { text: row.holdingDate ??
|
|
109
|
+
default: return { text: row.holdingDate ?? MISSING_VALUE };
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
function renderSecondHopCell(row: SecondHopRow, column: DataTableColumn, firstHopWidth: number): DataTableCell {
|
|
114
114
|
switch (column.id) {
|
|
115
115
|
case "date": return { text: row.date };
|
|
116
|
-
case "timing": return { text: row.timing?.toUpperCase() ??
|
|
116
|
+
case "timing": return { text: row.timing?.toUpperCase() ?? MISSING_VALUE };
|
|
117
117
|
case "company": return { text: `${row.company} ${row.companyName}` };
|
|
118
118
|
case "link": return { text: row.link === "customer" ? "customer's customer" : "supplier's supplier" };
|
|
119
119
|
case "via": return { text: row.via };
|
|
120
120
|
case "holding": return { text: row.holding };
|
|
121
121
|
case "shares": return { text: shareText(row, firstHopWidth, column.width), value: shareText(row, 0) };
|
|
122
122
|
case "move": return move(row);
|
|
123
|
-
default: return { text: row.holdingDate ??
|
|
123
|
+
default: return { text: row.holdingDate ?? MISSING_VALUE };
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -94,9 +94,9 @@ export function timeLabel(d: Date): string {
|
|
|
94
94
|
/** The zone the calendar's times and days are in, for the column header. */
|
|
95
95
|
export const CALENDAR_TIME_ZONE_LABEL = "UTC";
|
|
96
96
|
|
|
97
|
-
/** "Fri Oct
|
|
97
|
+
/** "Fri 9 Oct", the UTC day the calendar groups an instant under. */
|
|
98
98
|
export function shortDayLabel(d: Date): string {
|
|
99
|
-
return `${DAY_NAMES[d.getUTCDay()]!} ${
|
|
99
|
+
return `${DAY_NAMES[d.getUTCDay()]!} ${d.getUTCDate()} ${MONTH_NAMES[d.getUTCMonth()]!}`;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export function dayLabel(d: Date, today: Date): string {
|
|
@@ -605,6 +605,33 @@ export function countriesWithoutEvents(filter: CountryFilter, events: ReadonlyAr
|
|
|
605
605
|
return filterCountries(filter).filter((country) => !listed.has(country));
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
+
/**
|
|
609
|
+
* The countries the calendar covers: those of the currencies its release feed
|
|
610
|
+
* lists (the euro area's members under EU), the banks whose decisions and the
|
|
611
|
+
* statistics offices whose CPI releases Gloom Cloud keeps, and Hong Kong's and
|
|
612
|
+
* Singapore's government bond auctions.
|
|
613
|
+
*/
|
|
614
|
+
const CALENDAR_COUNTRIES: ReadonlySet<string> = new Set([
|
|
615
|
+
"US", "EU", ...Object.values(EURO_AREA_MEMBERS), "GB", "JP", "CN", "CA", "AU", "NZ", "CH",
|
|
616
|
+
"IN", "ID", "KR", "BR", "MX", "RU", "TR", "ZA", "NO", "SE", "HK", "SG",
|
|
617
|
+
]);
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Countries the filter names that the calendar does not cover (EG, NG, AR):
|
|
621
|
+
* none it knows of, and none any row of the loaded calendar is for, so no
|
|
622
|
+
* release of theirs would show however long the window.
|
|
623
|
+
*/
|
|
624
|
+
export function countriesNotInCalendar(filter: CountryFilter, events: ReadonlyArray<Pick<EconEvent, "country" | "event">>): string[] {
|
|
625
|
+
const listed = new Set(countriesWithoutEvents(filter, events));
|
|
626
|
+
return filterCountries(filter).filter((country) => listed.has(country) && !CALENDAR_COUNTRIES.has(country));
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/** "EG is not in the calendar", or EG, NG and AR are (`countriesNotInCalendar`). */
|
|
630
|
+
export function notInCalendarMessage(countries: readonly string[]): string {
|
|
631
|
+
const named = countries.length > 1 ? `${countries.slice(0, -1).join(", ")} and ${countries.at(-1)}` : countries.join("");
|
|
632
|
+
return `${named} ${countries.length > 1 ? "are" : "is"} not in the calendar.`;
|
|
633
|
+
}
|
|
634
|
+
|
|
608
635
|
/**
|
|
609
636
|
* "No scheduled releases for MX in this window", or for MX or ZA; with the
|
|
610
637
|
* day the listing ends, where it does ("; releases are listed through 2026-11-20").
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "../../../sources/gloomberb-cloud/fred-series";
|
|
31
31
|
import { colors } from "../../../theme/colors";
|
|
32
32
|
import { Box, Text } from "../../../ui";
|
|
33
|
-
import { displayWidth, truncateToDisplayWidth } from "../../../utils/format";
|
|
33
|
+
import { MISSING_VALUE, displayWidth, truncateToDisplayWidth } from "../../../utils/format";
|
|
34
34
|
import { useOpenTickerChoice } from "../shared/ticker-choice";
|
|
35
35
|
import { resolveFredMapping, projectFredHistory, fredHistoryUnits } from "./fred-series-map";
|
|
36
36
|
import { actualColor, CALENDAR_TIME_ZONE_LABEL, econEventName, figureGap, figureGapText, timeLabel } from "./calendar-model";
|
|
@@ -79,7 +79,7 @@ function formatHistoryValue(value: number, units: string): string {
|
|
|
79
79
|
|
|
80
80
|
/** A move in a percentage is in points, so it never reads as a relative change. */
|
|
81
81
|
function formatHistoryChange(change: number | null, units: string): string {
|
|
82
|
-
if (change == null) return
|
|
82
|
+
if (change == null) return MISSING_VALUE;
|
|
83
83
|
const text = isPercent(units)
|
|
84
84
|
? `${Math.abs(change).toFixed(2)}pp`
|
|
85
85
|
: Math.abs(change).toLocaleString("en-US", { maximumFractionDigits: 1 });
|
|
@@ -28,6 +28,9 @@ const GROUPS: ReadonlyArray<{ group: string; rows: readonly FredRow[] }> = [
|
|
|
28
28
|
["DFII10", "10Y TIPS real yield", "%", "daily", ["treasury", "real yield"]],
|
|
29
29
|
["T10Y2Y", "10Y minus 2Y Treasury spread", "%", "daily", ["treasury", "curve", "2s10s"]],
|
|
30
30
|
["T10Y3M", "10Y minus 3M Treasury spread", "%", "daily", ["treasury", "curve"]],
|
|
31
|
+
// The Federal Reserve Board's Kim-Wright estimates, a week or so behind.
|
|
32
|
+
...Array.from({ length: 10 }, (_, index): FredRow =>
|
|
33
|
+
[`THREEFYTP${index + 1}`, `${index + 1}Y Treasury term premium (Kim-Wright)`, "%", "daily", ["treasury", "term premium", "Kim-Wright"]]),
|
|
31
34
|
["SOFR", "SOFR", "%", "daily", ["secured overnight financing rate", "money markets"]],
|
|
32
35
|
["SORA", "SORA (Singapore overnight rate average)", "%", "daily", ["SGD", "Singapore", "MAS", "overnight", "money markets"]],
|
|
33
36
|
["OBFR", "Overnight bank funding rate", "%", "daily", ["OBFR", "money markets"]],
|
|
@@ -56,7 +56,9 @@ import {
|
|
|
56
56
|
matchesCountry,
|
|
57
57
|
matchesImpact,
|
|
58
58
|
NO_CONSENSUS_NOTE,
|
|
59
|
+
countriesNotInCalendar,
|
|
59
60
|
noScheduledReleasesMessage,
|
|
61
|
+
notInCalendarMessage,
|
|
60
62
|
noTimeNote as noTimeNoteText,
|
|
61
63
|
parseCountryFilter,
|
|
62
64
|
listingEnd,
|
|
@@ -275,9 +277,10 @@ function EconCalendarPane({ focused, width, height }: PaneProps) {
|
|
|
275
277
|
// A reader who set a time zone (`config set timezone`) gets their clock in a column beside UTC.
|
|
276
278
|
const readerZone = readerTimeZone(useAppConfig().timezone);
|
|
277
279
|
const columns = useMemo<EconCalendarColumn[]>(() => {
|
|
278
|
-
//
|
|
279
|
-
|
|
280
|
-
const
|
|
280
|
+
// Named by its zone, as the reader's column is by its city: "TIME (UTC)" took 13
|
|
281
|
+
// cells over "07:00" while EVENT read "GDP Growth Ra…" (review, 12 Nov 2026).
|
|
282
|
+
const timeLabelText = CALENDAR_TIME_ZONE_LABEL;
|
|
283
|
+
const timeWidth = tableColumnWidth({ width: filtered.some(isAllDayEvent) ? "All day".length : 5, label: timeLabelText });
|
|
281
284
|
const actualWidth = valueColumnWidth(filtered, "actual", 9);
|
|
282
285
|
const forecastWidth = valueColumnWidth(filtered, "forecast", 10);
|
|
283
286
|
const priorWidth = valueColumnWidth(filtered, "prior", 9);
|
|
@@ -322,11 +325,16 @@ function EconCalendarPane({ focused, width, height }: PaneProps) {
|
|
|
322
325
|
const separatorBg = blendHex(colors.bg, colors.border, 0.3);
|
|
323
326
|
const staleness = fetchedAt ? formatStaleness(fetchedAt, now) : "";
|
|
324
327
|
// The calendar has events and the filters hid them all: say which, with the way back.
|
|
325
|
-
// Countries named one by one with nothing in the calendar: a quiet window there,
|
|
328
|
+
// Countries named one by one with nothing in the calendar: a quiet window there, or one the calendar does not cover
|
|
329
|
+
// (EG, NG), said plainly.
|
|
326
330
|
const unscheduled = useMemo(() => countriesWithoutEvents(countryFilter, events), [countryFilter, events]);
|
|
331
|
+
const absent = useMemo(() => countriesNotInCalendar(countryFilter, events), [countryFilter, events]);
|
|
332
|
+
const quiet = unscheduled.filter((code) => !absent.includes(code));
|
|
327
333
|
const filterEmptyTitle = events.length === 0 ? null
|
|
328
334
|
: unscheduled.length > 0 && unscheduled.length === countryFilter.split(",").length
|
|
329
|
-
?
|
|
335
|
+
? [absent.length > 0 ? notInCalendarMessage(absent) : null,
|
|
336
|
+
quiet.length > 0 ? noScheduledReleasesMessage(quiet, releasesThrough ? shortDayLabel(dayStart(releasesThrough)) : null) : null]
|
|
337
|
+
.filter(Boolean).join(" ").replace(/\.$/, "")
|
|
330
338
|
: filteredEmptyTitle(impactFilter, countryFilter);
|
|
331
339
|
const emptyStateHint = !loading && !error
|
|
332
340
|
? [
|
|
@@ -496,13 +504,13 @@ function EconCalendarPane({ focused, width, height }: PaneProps) {
|
|
|
496
504
|
const gap = figureGap(ev, now, events);
|
|
497
505
|
if (gap) return { text: gap === "none" ? NO_FIGURE_CELL : AWAITING_FIGURE_CELL, color: colors.warning, value: null };
|
|
498
506
|
return {
|
|
499
|
-
text: figureWithCurrency(ev.actual, ev.currency) ??
|
|
507
|
+
text: figureWithCurrency(ev.actual, ev.currency) ?? MISSING_VALUE,
|
|
500
508
|
color: actualColor(ev.actual, ev.forecast),
|
|
501
509
|
};
|
|
502
510
|
case "forecast":
|
|
503
|
-
return { text: figureWithCurrency(ev.forecast, ev.currency) ??
|
|
511
|
+
return { text: figureWithCurrency(ev.forecast, ev.currency) ?? MISSING_VALUE, color: colors.textDim };
|
|
504
512
|
case "prior":
|
|
505
|
-
return { text: figureWithCurrency(ev.prior, ev.currency) ??
|
|
513
|
+
return { text: figureWithCurrency(ev.prior, ev.currency) ?? MISSING_VALUE, color: colors.textDim };
|
|
506
514
|
}
|
|
507
515
|
}, [events, flagged, now, readerZone]);
|
|
508
516
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MISSING_VALUE } from "../../../utils/format";
|
|
1
2
|
import { useMemo } from "react";
|
|
2
3
|
import { ExternalLinkText, type StatItem } from "../../../components/ui";
|
|
3
4
|
import { fredSeriesUrl, fredSourceLabel } from "../../../sources/gloomberb-cloud/fred-series";
|
|
@@ -39,7 +40,7 @@ export function StatDetail({
|
|
|
39
40
|
const stat = view.stat;
|
|
40
41
|
const visible = view.visible;
|
|
41
42
|
const stats = useMemo<StatItem[]>(() => [
|
|
42
|
-
{ id: "year-ago", label: "1Y ago", value: view.yearAgo ? stat.formatValue(view.yearAgo.value) :
|
|
43
|
+
{ id: "year-ago", label: "1Y ago", value: view.yearAgo ? stat.formatValue(view.yearAgo.value) : MISSING_VALUE },
|
|
43
44
|
{ id: "high", label: "High", value: stat.formatValue(view.high.value), detail: view.high.date },
|
|
44
45
|
{ id: "low", label: "Low", value: stat.formatValue(view.low.value), detail: view.low.date },
|
|
45
46
|
// A range longer than the history shows all of it, from where it starts.
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
import { servedFromSavedCopy } from "../../../data/saved-copies";
|
|
7
7
|
import { fredSourceLabel } from "../../../sources/gloomberb-cloud/fred-series";
|
|
8
8
|
import { formatBasisPoints, toBasisPoints } from "../../../utils/basis-points";
|
|
9
|
-
import { formatNumber } from "../../../utils/format";
|
|
9
|
+
import { MISSING_VALUE, formatNumber } from "../../../utils/format";
|
|
10
10
|
import type { StatDef } from "./defs";
|
|
11
11
|
import {
|
|
12
12
|
createStatSeriesLoader,
|
|
@@ -38,14 +38,14 @@ function detailEntries(view: StatViewModel, cutoffShown: boolean, text: boolean)
|
|
|
38
38
|
{
|
|
39
39
|
label: "Previous",
|
|
40
40
|
value: view.previous?.value ?? null,
|
|
41
|
-
formatted: view.previous ? `${format(view.previous.value)}${text && view.previousReading ? ` (${view.previousReading})` : ""}` :
|
|
41
|
+
formatted: view.previous ? `${format(view.previous.value)}${text && view.previousReading ? ` (${view.previousReading})` : ""}` : MISSING_VALUE,
|
|
42
42
|
...earlierDating(view, view.previous),
|
|
43
43
|
},
|
|
44
44
|
...!text && view.previous ? [{ label: "Previous period", value: view.previous.date, formatted: view.previousReading ?? view.previous.date, ...earlierDating(view, view.previous) }] : [],
|
|
45
45
|
{
|
|
46
46
|
label: "1Y ago",
|
|
47
47
|
value: view.yearAgo?.value ?? null,
|
|
48
|
-
formatted: view.yearAgo ? format(view.yearAgo.value) :
|
|
48
|
+
formatted: view.yearAgo ? format(view.yearAgo.value) : MISSING_VALUE,
|
|
49
49
|
...earlierDating(view, view.yearAgo),
|
|
50
50
|
},
|
|
51
51
|
{ label: "Mean", value: view.mean, formatted: format(view.mean) },
|
|
@@ -176,7 +176,7 @@ export function projectStatsHeadlessBundle(
|
|
|
176
176
|
latest: view.latest.value,
|
|
177
177
|
formattedLatest: reportFormat(view.stat)(view.latest.value),
|
|
178
178
|
previous: view.previous?.value ?? null,
|
|
179
|
-
formattedPrevious: view.previous ? reportFormat(view.stat)(view.previous.value) :
|
|
179
|
+
formattedPrevious: view.previous ? reportFormat(view.stat)(view.previous.value) : MISSING_VALUE,
|
|
180
180
|
previousPeriod: view.previous?.date ?? null,
|
|
181
181
|
// A spread's values stay in percentage points; these carry the figures its text shows.
|
|
182
182
|
...(view.stat.basisPoints ? {
|
|
@@ -261,8 +261,10 @@ export const econStatisticsHeadless: HeadlessPaneDefinition<"bundle"> = {
|
|
|
261
261
|
const read = typeof args.argument === "string" ? readStatArg(args.argument) : null;
|
|
262
262
|
const requested = read?.stat ?? null;
|
|
263
263
|
if (args.argument && !requested) {
|
|
264
|
+
// ECST is the US's statistics; another country's policy rate is in CBR, and its published series in `fred`.
|
|
264
265
|
throw new Error(
|
|
265
|
-
`Unknown economic statistic "${String(args.argument)}".
|
|
266
|
+
`Unknown economic statistic "${String(args.argument)}". ECST covers US statistics only: ${STATS.map(({ id }) => id).join(", ")}. `
|
|
267
|
+
+ "For other countries, policy rates are in fn CBR and published series in gloom fred --list.",
|
|
266
268
|
);
|
|
267
269
|
}
|
|
268
270
|
const range = args.options.range as StatRangeId;
|
|
@@ -22,7 +22,7 @@ export const econStatisticsModule: PluginModule = {
|
|
|
22
22
|
id: "econ-statistics-pane",
|
|
23
23
|
paneId: ECON_STATISTICS_PANE_ID,
|
|
24
24
|
label: "Economic Statistics",
|
|
25
|
-
description: "
|
|
25
|
+
description: "US inflation, labour, growth, housing and rates against their own history.",
|
|
26
26
|
keywords: [...new Set([
|
|
27
27
|
"economic",
|
|
28
28
|
"statistics",
|