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
|
@@ -61,6 +61,12 @@ export interface QueryBarSelectFilter<T extends string = string> extends QueryBa
|
|
|
61
61
|
title?: string;
|
|
62
62
|
/** Draw the options inline (one click) instead of a menu. For four or fewer short values. */
|
|
63
63
|
inline?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Inline filters: a long list that runs past the bar's edge (expiries). On
|
|
66
|
+
* the desktop it is a strip that scrolls by itself, where other inline
|
|
67
|
+
* choices fold into their menu when the bar runs short of room.
|
|
68
|
+
*/
|
|
69
|
+
scrolls?: boolean;
|
|
64
70
|
/**
|
|
65
71
|
* The options are the range a chart in this pane shows (1D, 1Y, MAX). Choosing
|
|
66
72
|
* the one already selected sends the pane's charts back to it, as `0` does
|
|
@@ -84,7 +90,7 @@ export interface QueryBarMultiFilter extends QueryBarFilterBase {
|
|
|
84
90
|
export interface QueryBarToggleFilter extends QueryBarFilterBase {
|
|
85
91
|
kind: "toggle";
|
|
86
92
|
value: boolean;
|
|
87
|
-
/** A shorter label for the terminal's single row. */
|
|
93
|
+
/** A shorter label for the terminal's single row, and for a desktop bar short of room. */
|
|
88
94
|
short?: string;
|
|
89
95
|
onChange: (value: boolean) => void;
|
|
90
96
|
/**
|
|
@@ -123,6 +129,12 @@ export interface QueryBarView<T extends string = string> {
|
|
|
123
129
|
value: T;
|
|
124
130
|
options: readonly { value: T; label: string; hint?: string; disabled?: boolean }[];
|
|
125
131
|
onChange: (value: T) => void;
|
|
132
|
+
/**
|
|
133
|
+
* What the choice is ("Interval", "Sort"): its name for a screen reader, and
|
|
134
|
+
* its menu's on the desktop when a bar short of room folds it. A chart's range
|
|
135
|
+
* is "Range" and any other unnamed view "View".
|
|
136
|
+
*/
|
|
137
|
+
label?: string;
|
|
126
138
|
/** Terminal: left/right cycle the view while this is true. */
|
|
127
139
|
focused?: boolean;
|
|
128
140
|
shortcutScope?: string;
|
|
@@ -168,7 +180,7 @@ function collapsibleInline(filter: QueryBarFilter): filter is QueryBarSelectFilt
|
|
|
168
180
|
*/
|
|
169
181
|
function terminalRowCells(width: number, { search, filters = [], view, asOf }: Pick<QueryBarProps, "search" | "filters" | "view" | "asOf">): number {
|
|
170
182
|
const segments = (options: readonly { label: string; short?: string; hint?: string }[]) => options.length > TERMINAL_SEGMENT_LIMIT ? 0
|
|
171
|
-
: options.reduce((sum, option) => sum + (option.hint ? option.hint.length + 1 : 0) + (option.short ?? option.label).length + 2, 0);
|
|
183
|
+
: options.reduce((sum, option) => sum + (keyedStrip(options) && option.hint ? option.hint.length + 1 : 0) + (option.short ?? option.label).length + 2, 0);
|
|
172
184
|
const parts = [
|
|
173
185
|
...search ? [Math.max(16, Math.min(36, Math.floor(width * 0.3)))] : [],
|
|
174
186
|
...filters.map((filter) => {
|
|
@@ -185,13 +197,24 @@ function terminalRowCells(width: number, { search, filters = [], view, asOf }: P
|
|
|
185
197
|
return 2 + parts.reduce((sum, part) => sum + part, 0) + 2 * Math.max(0, parts.length - 1);
|
|
186
198
|
}
|
|
187
199
|
|
|
200
|
+
/**
|
|
201
|
+
* Whether a terminal strip draws its keys: a strip with one for every option
|
|
202
|
+
* (chart ranges' 1 to 8). Keys on a few options step from the active one (OMON's
|
|
203
|
+
* `[` and `]` either side of its expiry); they move with it, and as `]:Nov 16`
|
|
204
|
+
* read as part of the date (review, 12 Nov 2026), so they stay in the pane menu
|
|
205
|
+
* and the desktop's tooltip.
|
|
206
|
+
*/
|
|
207
|
+
function keyedStrip(options: readonly { hint?: string }[]): boolean {
|
|
208
|
+
return options.length > 0 && options.every((option) => option.hint);
|
|
209
|
+
}
|
|
210
|
+
|
|
188
211
|
/** Beyond this many options a terminal strip scrolls instead of segmenting. */
|
|
189
212
|
const TERMINAL_SEGMENT_LIMIT = 6;
|
|
190
213
|
|
|
191
214
|
/**
|
|
192
215
|
* Terminal rendering of an inline filter or view: segments for a few short
|
|
193
|
-
* options, a scrolling tab strip for many (expiries, chart ranges).
|
|
194
|
-
* prefix the label ("1:1D")
|
|
216
|
+
* options, a scrolling tab strip for many (expiries, chart ranges). Keys
|
|
217
|
+
* prefix the label ("1:1D") where every option has one (keyedStrip).
|
|
195
218
|
*/
|
|
196
219
|
function TerminalChoiceStrip({
|
|
197
220
|
options,
|
|
@@ -206,9 +229,10 @@ function TerminalChoiceStrip({
|
|
|
206
229
|
focused?: boolean;
|
|
207
230
|
shortcutScope?: string;
|
|
208
231
|
}) {
|
|
232
|
+
const keyed = keyedStrip(options);
|
|
209
233
|
const labelled = options.map((option) => ({
|
|
210
234
|
value: option.value,
|
|
211
|
-
label:
|
|
235
|
+
label: keyed ? `${option.hint}:${option.label}` : option.label,
|
|
212
236
|
disabled: option.disabled,
|
|
213
237
|
}));
|
|
214
238
|
if (options.length > TERMINAL_SEGMENT_LIMIT) {
|
|
@@ -413,6 +437,7 @@ export function QueryBar({ width, search, filters = [], view, meta, asOf: given,
|
|
|
413
437
|
id: filter.id,
|
|
414
438
|
kind: "toggle",
|
|
415
439
|
label: filter.label,
|
|
440
|
+
short: filter.short,
|
|
416
441
|
valueLabel: filter.label,
|
|
417
442
|
narrowing: isNarrowing(filter),
|
|
418
443
|
checked: filter.value,
|
|
@@ -449,6 +474,7 @@ export function QueryBar({ width, search, filters = [], view, meta, asOf: given,
|
|
|
449
474
|
valueLabel: current?.short ?? current?.label ?? String(filter.value),
|
|
450
475
|
narrowing: isNarrowing(filter),
|
|
451
476
|
inline: filter.inline === true,
|
|
477
|
+
scrolls: filter.scrolls,
|
|
452
478
|
options: filter.options.map((option) => ({
|
|
453
479
|
value: option.value,
|
|
454
480
|
label: option.label,
|
|
@@ -500,6 +526,7 @@ export function QueryBar({ width, search, filters = [], view, meta, asOf: given,
|
|
|
500
526
|
else if (view.chartRange) resetChartView();
|
|
501
527
|
},
|
|
502
528
|
start: view.start,
|
|
529
|
+
label: view.label ?? (view.chartRange ? "Range" : undefined),
|
|
503
530
|
} : undefined}
|
|
504
531
|
onClearAll={narrowingCount >= 2 ? resetAll : undefined}
|
|
505
532
|
meta={meta}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { usePaneFocused } from "../../state/app/activity";
|
|
2
|
+
import { inactiveSelectedBg, inactiveSelectedText } from "../../theme/colors";
|
|
3
|
+
import { useThemeColors } from "../../theme/theme-context";
|
|
4
|
+
import { useUiCapabilities } from "../../ui/host";
|
|
5
|
+
|
|
6
|
+
export interface SelectionFill {
|
|
7
|
+
/** The chosen row's or tile's fill. */
|
|
8
|
+
bg: string;
|
|
9
|
+
/**
|
|
10
|
+
* The keys move this selection: the selected text colour goes with the fill.
|
|
11
|
+
* Off, the row keeps its own text colours on the quieter fill.
|
|
12
|
+
*/
|
|
13
|
+
lit: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* A colour of the chosen item's own drawn on the fill: as it is under the
|
|
16
|
+
* lit selection (which draws its own text colour where it has one), lifted
|
|
17
|
+
* where it would not read on the inactive fill.
|
|
18
|
+
*/
|
|
19
|
+
ink(color: string): string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The fill of a list's, table's or grid's chosen item in the terminal: the
|
|
24
|
+
* selection in the focused pane (and outside any pane, a dialog's list), the
|
|
25
|
+
* inactive selection in a pane that does not have the keyboard, so only one
|
|
26
|
+
* pane reads as the one the arrows move. The desktop marks focus its own way,
|
|
27
|
+
* so it keeps the selection.
|
|
28
|
+
*/
|
|
29
|
+
export function useSelectionFill(): SelectionFill {
|
|
30
|
+
const colors = useThemeColors();
|
|
31
|
+
const paneFocused = usePaneFocused();
|
|
32
|
+
const { nativePaneChrome } = useUiCapabilities();
|
|
33
|
+
const lit = nativePaneChrome === true || paneFocused !== false;
|
|
34
|
+
return {
|
|
35
|
+
bg: lit ? colors.selected : inactiveSelectedBg(colors),
|
|
36
|
+
lit,
|
|
37
|
+
ink: (color) => (lit ? color : inactiveSelectedText(color, colors)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -2,7 +2,7 @@ import { t } from "../../i18n";
|
|
|
2
2
|
import type { ThemeColors } from "../../theme/colors";
|
|
3
3
|
import { useThemeColors } from "../../theme/theme-context";
|
|
4
4
|
import { Box, Text, TextAttributes, useUiCapabilities } from "../../ui";
|
|
5
|
-
import { clipToDisplayWidth, displayWidth, padTo
|
|
5
|
+
import { clipToDisplayWidth, displayWidth, padTo } from "../../utils/format";
|
|
6
6
|
import { SplitBar, type SplitBarPart } from "./split-bar";
|
|
7
7
|
|
|
8
8
|
export type StatTone = "neutral" | "positive" | "negative" | "warning" | "accent" | "muted";
|
|
@@ -155,6 +155,27 @@ function clipWords(text: string, room: number): string {
|
|
|
155
155
|
return clipToDisplayWidth(text, room);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* A one-line cell's detail in `room` cells: whole, else its leading ` · `
|
|
160
|
+
* parts that fit, else its leading words behind a `…` where they keep at
|
|
161
|
+
* least half of it; otherwise none, as a figure cut to `0...` or a stub such
|
|
162
|
+
* as `to…` says nothing (review, 12 Nov 2026: OMON's `pctl 4...`, `25d...`).
|
|
163
|
+
*/
|
|
164
|
+
function oneLineDetail(text: string, room: number): string {
|
|
165
|
+
if (displayWidth(text) <= room) return text;
|
|
166
|
+
const parts = text.split(" · ");
|
|
167
|
+
for (let count = parts.length - 1; count > 0; count--) {
|
|
168
|
+
const kept = parts.slice(0, count).join(" · ");
|
|
169
|
+
if (displayWidth(kept) <= room) return kept;
|
|
170
|
+
}
|
|
171
|
+
const words = parts[0]!.split(" ");
|
|
172
|
+
for (let count = words.length - 1; count > 0; count--) {
|
|
173
|
+
const kept = words.slice(0, count).join(" ");
|
|
174
|
+
if (displayWidth(kept) + 1 <= room) return displayWidth(kept) * 2 >= displayWidth(text) ? `${kept}…` : "";
|
|
175
|
+
}
|
|
176
|
+
return "";
|
|
177
|
+
}
|
|
178
|
+
|
|
158
179
|
/**
|
|
159
180
|
* `text` cut to `width` without cutting a date: its ` · ` parts that have none
|
|
160
181
|
* give way first, from the last, cut short at a word and then to a `…` that
|
|
@@ -182,7 +203,7 @@ function cutKeepingDates(text: string, width: number): string {
|
|
|
182
203
|
const room = roomFor(index) - displayWidth(date) - 1;
|
|
183
204
|
parts[index] = room >= 4 ? `${clipWords(part.slice(0, at).trimEnd(), room)} ${date}` : date;
|
|
184
205
|
}
|
|
185
|
-
return
|
|
206
|
+
return clipToDisplayWidth(joined(), width);
|
|
186
207
|
}
|
|
187
208
|
|
|
188
209
|
/**
|
|
@@ -205,7 +226,7 @@ function twoLines(text: string, width: number): string[] {
|
|
|
205
226
|
const words = parts[0]!.split(" ");
|
|
206
227
|
let count = 0;
|
|
207
228
|
while (count < words.length && displayWidth(words.slice(0, count + 1).join(" ")) <= width) count++;
|
|
208
|
-
first = count ? words.slice(0, count).join(" ") :
|
|
229
|
+
first = count ? words.slice(0, count).join(" ") : clipToDisplayWidth(words[0]!, width);
|
|
209
230
|
rest = [words.slice(Math.max(1, count)).join(" "), ...parts.slice(1)].filter(Boolean).join(" · ");
|
|
210
231
|
}
|
|
211
232
|
return rest ? [first, cutKeepingDates(rest, width)] : [first];
|
|
@@ -309,7 +330,7 @@ export function statGridWithin(items: StatItem[], width: number, maxLines: numbe
|
|
|
309
330
|
|
|
310
331
|
/** A label in its column, cut and padded by terminal cells, so a wide character keeps the values aligned. */
|
|
311
332
|
function labelText(label: string, labelWidth: number): string {
|
|
312
|
-
return padTo(
|
|
333
|
+
return padTo(clipToDisplayWidth(label, labelWidth - 1), labelWidth);
|
|
313
334
|
}
|
|
314
335
|
|
|
315
336
|
/**
|
|
@@ -390,7 +411,7 @@ export function StatGrid({ items, width, columns: columnsProp, maxLines }: StatG
|
|
|
390
411
|
const width = item.wide ? innerWidth : cellWidth;
|
|
391
412
|
const labelWidth = cellLabelWidth(width, labels, widestValue);
|
|
392
413
|
const valueWidth = Math.max(1, width - labelWidth);
|
|
393
|
-
const value = nativePaneChrome ? item.value :
|
|
414
|
+
const value = nativePaneChrome ? item.value : clipToDisplayWidth(item.value, valueWidth);
|
|
394
415
|
// The bar shows only whole enough to read; the value never gives way to it.
|
|
395
416
|
const barRoom = valueWidth - displayWidth(value) - 1;
|
|
396
417
|
const barCells = !item.split ? 0 : nativePaneChrome ? SPLIT_BAR_CELLS : splitBarCells(barRoom);
|
|
@@ -402,7 +423,7 @@ export function StatGrid({ items, width, columns: columnsProp, maxLines }: StatG
|
|
|
402
423
|
: detailWidth);
|
|
403
424
|
const detail = !shownDetail
|
|
404
425
|
? ""
|
|
405
|
-
: nativePaneChrome ? shownDetail :
|
|
426
|
+
: nativePaneChrome ? shownDetail : oneLineDetail(shownDetail, detailWidth);
|
|
406
427
|
return (
|
|
407
428
|
<Box
|
|
408
429
|
key={item.id ?? `${rowIndex}:${index}`}
|
|
@@ -100,7 +100,8 @@ export function reduceLayoutAction(state: AppState, action: AppAction): AppState
|
|
|
100
100
|
state.focusedPaneId,
|
|
101
101
|
);
|
|
102
102
|
const target = currentConfig.layouts[action.index]!;
|
|
103
|
-
|
|
103
|
+
// A desk opens as it was saved: nothing on it was chosen in this session yet (pane-choices.ts).
|
|
104
|
+
return withFocusedPane({ ...state, paneChoices: undefined }, {
|
|
104
105
|
...currentConfig,
|
|
105
106
|
layout: cloneLayout(target.layout),
|
|
106
107
|
activeLayoutIndex: action.index,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { AppState, PaneRuntimeState } from "./types";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Which pane-state values were chosen in this session, as opposed to restored
|
|
5
|
+
* with a workspace: a start, a desk switch, a layout or a snapshot applied
|
|
6
|
+
* brings back what an earlier session chose. A write of the key in this
|
|
7
|
+
* session, by any route (a pick in the pane, a command, a link, a plugin) and
|
|
8
|
+
* even of the value it already holds, is the user asking for it.
|
|
9
|
+
*
|
|
10
|
+
* Some choices need Gloom Cloud Pro. Restored for an account without it, the
|
|
11
|
+
* pane shows its free default instead of a wall nobody asked for
|
|
12
|
+
* (`shownPaneChoice`), and keeps the saved choice for when the plan has Pro.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const NO_CHOICES: Readonly<Record<string, true>> = {};
|
|
16
|
+
|
|
17
|
+
/** The choice key of a plugin's pane-state value (`usePluginPaneState`). */
|
|
18
|
+
export function pluginChoiceKey(pluginId: string, key: string): string {
|
|
19
|
+
return `plugin:${pluginId}:${key}`;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** `state` with `keys` of `paneId` marked as chosen in this session; the same object when they already were. */
|
|
23
|
+
export function withPaneChoices(state: AppState, paneId: string, keys: Iterable<string>): AppState {
|
|
24
|
+
const current = state.paneChoices?.[paneId] ?? NO_CHOICES;
|
|
25
|
+
let next: Record<string, true> | null = null;
|
|
26
|
+
for (const key of keys) {
|
|
27
|
+
if (current[key] || next?.[key]) continue;
|
|
28
|
+
next ??= { ...current };
|
|
29
|
+
next[key] = true;
|
|
30
|
+
}
|
|
31
|
+
return next ? { ...state, paneChoices: { ...state.paneChoices, [paneId]: next } } : state;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** Every key a replaced pane state holds, its plugins' values included. */
|
|
35
|
+
export function paneStateChoiceKeys(paneState: PaneRuntimeState): string[] {
|
|
36
|
+
const keys = Object.keys(paneState);
|
|
37
|
+
for (const [pluginId, values] of Object.entries(paneState.pluginState ?? {})) {
|
|
38
|
+
for (const key of Object.keys(values ?? {})) keys.push(pluginChoiceKey(pluginId, key));
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** `state` with every pane-state value it holds marked as chosen now. */
|
|
44
|
+
export function withAllPaneChoices(state: AppState): AppState {
|
|
45
|
+
return Object.entries(state.paneState).reduce(
|
|
46
|
+
(current, [paneId, paneState]) => withPaneChoices(current, paneId, paneStateChoiceKeys(paneState)),
|
|
47
|
+
state,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function isPaneChoice(state: AppState, paneId: string, key: string): boolean {
|
|
52
|
+
return state.paneChoices?.[paneId]?.[key] === true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* What a pane shows for its saved `value`: the value itself, except one only
|
|
57
|
+
* Pro opens (`proOnly`) restored for an account without Pro, which shows
|
|
58
|
+
* `fallback` until the user chooses it in this session. Nothing is rewritten:
|
|
59
|
+
* the same account after upgrading, or a Pro one, gets the saved value back.
|
|
60
|
+
*/
|
|
61
|
+
export function shownPaneChoice<T>(value: T, options: {
|
|
62
|
+
chosen: boolean;
|
|
63
|
+
hasProAccess: boolean;
|
|
64
|
+
proOnly: (value: T) => boolean;
|
|
65
|
+
fallback: T;
|
|
66
|
+
}): T {
|
|
67
|
+
return options.chosen || options.hasProAccess || !options.proOnly(value) ? value : options.fallback;
|
|
68
|
+
}
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
withFocusedPane,
|
|
26
26
|
} from "./layout";
|
|
27
27
|
import { reduceLayoutAction } from "./layout-reducer";
|
|
28
|
+
import { paneStateChoiceKeys, pluginChoiceKey, withPaneChoices } from "./pane-choices";
|
|
28
29
|
import type { AppAction, AppState, CollectionSortPreference, PaneRuntimeState } from "./types";
|
|
29
30
|
import type { AppSessionSnapshot } from "../session-persistence";
|
|
30
31
|
|
|
@@ -287,9 +288,11 @@ export function appReducer(state: AppState, action: AppAction): AppState {
|
|
|
287
288
|
return hydrateDesktopSnapshot(state, action.snapshot);
|
|
288
289
|
|
|
289
290
|
case "UPDATE_PANE_STATE": {
|
|
291
|
+
// Written in this session, even with the value it holds: see pane-choices.ts.
|
|
292
|
+
const chosen = withPaneChoices(state, action.paneId, Object.keys(action.patch));
|
|
290
293
|
const current = state.paneState[action.paneId] ?? {};
|
|
291
294
|
if (Object.keys(action.patch).every((key) => Object.is(current[key], action.patch[key]))) {
|
|
292
|
-
return
|
|
295
|
+
return chosen;
|
|
293
296
|
}
|
|
294
297
|
const nextState = { ...current, ...action.patch };
|
|
295
298
|
const recentTickers = Object.prototype.hasOwnProperty.call(action.patch, "cursorSymbol")
|
|
@@ -300,7 +303,7 @@ export function appReducer(state: AppState, action: AppAction): AppState {
|
|
|
300
303
|
[action.paneId]: nextState,
|
|
301
304
|
};
|
|
302
305
|
return {
|
|
303
|
-
...
|
|
306
|
+
...chosen,
|
|
304
307
|
config: syncConfigActiveLayoutState(state.config, paneState, state.focusedPaneId),
|
|
305
308
|
paneState,
|
|
306
309
|
recentTickers,
|
|
@@ -308,9 +311,10 @@ export function appReducer(state: AppState, action: AppAction): AppState {
|
|
|
308
311
|
}
|
|
309
312
|
|
|
310
313
|
case "REPLACE_PANE_STATE": {
|
|
314
|
+
const chosen = withPaneChoices(state, action.paneId, paneStateChoiceKeys(action.state));
|
|
311
315
|
const current = state.paneState[action.paneId] ?? {};
|
|
312
316
|
const nextState = action.state;
|
|
313
|
-
if (Object.is(current, nextState)) return
|
|
317
|
+
if (Object.is(current, nextState)) return chosen;
|
|
314
318
|
const paneState = {
|
|
315
319
|
...state.paneState,
|
|
316
320
|
[action.paneId]: nextState,
|
|
@@ -319,7 +323,7 @@ export function appReducer(state: AppState, action: AppAction): AppState {
|
|
|
319
323
|
? nextRecentTickers(state.recentTickers, typeof nextState.cursorSymbol === "string" ? nextState.cursorSymbol : null)
|
|
320
324
|
: state.recentTickers;
|
|
321
325
|
return {
|
|
322
|
-
...
|
|
326
|
+
...chosen,
|
|
323
327
|
config: syncConfigActiveLayoutState(state.config, paneState, state.focusedPaneId),
|
|
324
328
|
paneState,
|
|
325
329
|
recentTickers,
|
|
@@ -327,11 +331,12 @@ export function appReducer(state: AppState, action: AppAction): AppState {
|
|
|
327
331
|
}
|
|
328
332
|
|
|
329
333
|
case "UPDATE_PLUGIN_PANE_STATE": {
|
|
334
|
+
const chosen = withPaneChoices(state, action.paneId, [pluginChoiceKey(action.pluginId, action.key)]);
|
|
330
335
|
const current = state.paneState[action.paneId] ?? {};
|
|
331
336
|
const currentPluginState = current.pluginState ?? {};
|
|
332
337
|
const currentPluginValues = currentPluginState[action.pluginId] ?? {};
|
|
333
338
|
if (Object.is(currentPluginValues[action.key], action.value)) {
|
|
334
|
-
return
|
|
339
|
+
return chosen;
|
|
335
340
|
}
|
|
336
341
|
const paneState = {
|
|
337
342
|
...state.paneState,
|
|
@@ -347,12 +352,15 @@ export function appReducer(state: AppState, action: AppAction): AppState {
|
|
|
347
352
|
},
|
|
348
353
|
};
|
|
349
354
|
return {
|
|
350
|
-
...
|
|
355
|
+
...chosen,
|
|
351
356
|
config: syncConfigActiveLayoutState(state.config, paneState, state.focusedPaneId),
|
|
352
357
|
paneState,
|
|
353
358
|
};
|
|
354
359
|
}
|
|
355
360
|
|
|
361
|
+
case "CHOOSE_PANE_STATE":
|
|
362
|
+
return withPaneChoices(state, action.paneId, [action.key]);
|
|
363
|
+
|
|
356
364
|
default:
|
|
357
365
|
return state;
|
|
358
366
|
}
|
|
@@ -118,6 +118,12 @@ export interface AppState {
|
|
|
118
118
|
updateCheckInProgress: boolean;
|
|
119
119
|
updateNotice: string | null;
|
|
120
120
|
layoutHistory: Record<number, LayoutHistoryEntry>;
|
|
121
|
+
/**
|
|
122
|
+
* The pane-state keys set in this session, by pane id, as opposed to
|
|
123
|
+
* restored with the workspace (see `pane-choices.ts`). Session only: never
|
|
124
|
+
* saved and never sent to another window.
|
|
125
|
+
*/
|
|
126
|
+
paneChoices?: Record<string, Readonly<Record<string, true>>>;
|
|
121
127
|
}
|
|
122
128
|
|
|
123
129
|
export type AppAction =
|
|
@@ -226,4 +232,6 @@ export type AppAction =
|
|
|
226
232
|
value: unknown;
|
|
227
233
|
}
|
|
228
234
|
| { type: "REPLACE_PANE_STATE"; paneId: string; state: PaneRuntimeState }
|
|
235
|
+
/** The user chose this pane-state value now, even if it already holds what they chose (see `pane-choices.ts`). */
|
|
236
|
+
| { type: "CHOOSE_PANE_STATE"; paneId: string; key: string }
|
|
229
237
|
| { type: "UPDATE_PANE_STATE"; paneId: string; patch: Partial<PaneRuntimeState> };
|
|
@@ -273,6 +273,7 @@ const ONBOARDING_STAGES = new Set<OnboardingProgress["stage"]>([
|
|
|
273
273
|
"portfolio",
|
|
274
274
|
"add-ticker",
|
|
275
275
|
"desks",
|
|
276
|
+
"tickers",
|
|
276
277
|
"research",
|
|
277
278
|
"verify",
|
|
278
279
|
"account",
|
|
@@ -305,6 +306,7 @@ function sanitizeOnboardingProgress(value: unknown): OnboardingProgress | undefi
|
|
|
305
306
|
checkoutOpenedAt: typeof value.checkoutOpenedAt === "string" ? value.checkoutOpenedAt : undefined,
|
|
306
307
|
desks: Array.isArray(value.desks) ? sanitizeUniqueStringList(value.desks) : undefined,
|
|
307
308
|
rerun: value.rerun === true ? true : undefined,
|
|
309
|
+
asksTickers: value.asksTickers === true ? true : undefined,
|
|
308
310
|
};
|
|
309
311
|
}
|
|
310
312
|
|
package/src/docs/snapshot.json
CHANGED
|
@@ -1265,7 +1265,7 @@
|
|
|
1265
1265
|
"code": "AUCT",
|
|
1266
1266
|
"name": "Treasury auctions",
|
|
1267
1267
|
"description": "Auction results",
|
|
1268
|
-
"detail": "
|
|
1268
|
+
"detail": "US Treasury bill, note, bond, and TIPS auction results since 1979: rate, stop-out versus median, bid-to-cover, bidder takedown, and size. An after view ranks each auction against its tenor's last 24 and shows the Treasury yield's move 1, 5, and 20 sessions later. Hong Kong's Exchange Fund Bills and Notes and Government Bond tenders too.",
|
|
1269
1269
|
"category": "macro",
|
|
1270
1270
|
"arg": "10-year",
|
|
1271
1271
|
"shot": "https://gloom.sh/screenshots/fn/AUCT.png",
|
package/src/i18n/es.ts
CHANGED
|
@@ -495,7 +495,6 @@ export const es: Record<string, string> = {
|
|
|
495
495
|
"Portfolios Only": "Solo carteras",
|
|
496
496
|
"Watchlists Only": "Solo listas de seguimiento",
|
|
497
497
|
"Custom Selection": "Selección personalizada",
|
|
498
|
-
"Collection Pane": "Panel de colección",
|
|
499
498
|
"Hide Cash Positions": "Ocultar posiciones de efectivo",
|
|
500
499
|
"Hide Header Bar": "Ocultar barra de encabezado",
|
|
501
500
|
"Hide Header": "Ocultar encabezado",
|
|
@@ -520,7 +519,8 @@ export const es: Record<string, string> = {
|
|
|
520
519
|
"Functions": "Funciones",
|
|
521
520
|
"Shortcuts": "Atajos",
|
|
522
521
|
"Issues": "Problemas",
|
|
523
|
-
"Portfolio
|
|
522
|
+
"Portfolio Settings": "Ajustes de la cartera",
|
|
523
|
+
"Watchlist Settings": "Ajustes de la lista de seguimiento",
|
|
524
524
|
"Quote Monitor Settings": "Ajustes del monitor de cotizaciones",
|
|
525
525
|
"Chart Pane Settings": "Ajustes del panel de gráfico",
|
|
526
526
|
"Graph Pane Settings": "Ajustes del panel de gráficos",
|
|
@@ -1573,6 +1573,9 @@ export const es: Record<string, string> = {
|
|
|
1573
1573
|
"Pick up to 3; each adds a ready-made tab.": "Elige hasta 3; cada una añade una pestaña lista.",
|
|
1574
1574
|
"Everything else is one search away.": "Todo lo demás está a una búsqueda.",
|
|
1575
1575
|
"DESKS": "MESAS",
|
|
1576
|
+
"TICKERS": "TICKERS",
|
|
1577
|
+
"Which tickers do you follow?": "¿Qué tickers sigues?",
|
|
1578
|
+
"Pick up to 3 for your watchlist.": "Elige hasta 3 para tu lista de seguimiento.",
|
|
1576
1579
|
"Skip": "Omitir",
|
|
1577
1580
|
"Equities": "Renta variable",
|
|
1578
1581
|
"Futures & commodities": "Futuros y materias primas",
|
package/src/i18n/ja.ts
CHANGED
|
@@ -496,7 +496,6 @@ export const ja: Record<string, string> = {
|
|
|
496
496
|
"Portfolios Only": "ポートフォリオのみ",
|
|
497
497
|
"Watchlists Only": "ウォッチリストのみ",
|
|
498
498
|
"Custom Selection": "カスタム選択",
|
|
499
|
-
"Collection Pane": "コレクション ペイン",
|
|
500
499
|
"Hide Cash Positions": "現金ポジションを非表示",
|
|
501
500
|
"Hide Header Bar": "ヘッダーバーを非表示にする",
|
|
502
501
|
"Hide Header": "ヘッダーを非表示",
|
|
@@ -521,7 +520,8 @@ export const ja: Record<string, string> = {
|
|
|
521
520
|
"Functions": "関数",
|
|
522
521
|
"Shortcuts": "ショートカット",
|
|
523
522
|
"Issues": "問題",
|
|
524
|
-
"Portfolio
|
|
523
|
+
"Portfolio Settings": "ポートフォリオの設定",
|
|
524
|
+
"Watchlist Settings": "ウォッチリストの設定",
|
|
525
525
|
"Quote Monitor Settings": "株価モニター設定",
|
|
526
526
|
"Chart Pane Settings": "チャート ペインの設定",
|
|
527
527
|
"Graph Pane Settings": "グラフ ペインの設定",
|
|
@@ -1570,6 +1570,9 @@ export const ja: Record<string, string> = {
|
|
|
1570
1570
|
"Pick up to 3; each adds a ready-made tab.": "最大3つまで選べます。それぞれ用意済みのタブを追加します。",
|
|
1571
1571
|
"Everything else is one search away.": "その他はすべて検索ひとつで開けます。",
|
|
1572
1572
|
"DESKS": "デスク",
|
|
1573
|
+
"TICKERS": "銘柄",
|
|
1574
|
+
"Which tickers do you follow?": "どの銘柄をフォローしていますか?",
|
|
1575
|
+
"Pick up to 3 for your watchlist.": "ウォッチリストに入れる銘柄を最大3つ選べます。",
|
|
1573
1576
|
"Skip": "スキップ",
|
|
1574
1577
|
"Equities": "株式",
|
|
1575
1578
|
"Futures & commodities": "先物・コモディティ",
|
package/src/i18n/ko.ts
CHANGED
|
@@ -494,7 +494,6 @@ export const ko: Record<string, string> = {
|
|
|
494
494
|
"Portfolios Only": "포트폴리오만",
|
|
495
495
|
"Watchlists Only": "관심 목록만",
|
|
496
496
|
"Custom Selection": "맞춤 선택",
|
|
497
|
-
"Collection Pane": "컬렉션 패널",
|
|
498
497
|
"Hide Cash Positions": "현금 포지션 숨기기",
|
|
499
498
|
"Hide Header Bar": "헤더 표시줄 숨기기",
|
|
500
499
|
"Hide Header": "헤더 숨기기",
|
|
@@ -519,7 +518,8 @@ export const ko: Record<string, string> = {
|
|
|
519
518
|
"Functions": "기능",
|
|
520
519
|
"Shortcuts": "단축키",
|
|
521
520
|
"Issues": "이슈",
|
|
522
|
-
"Portfolio
|
|
521
|
+
"Portfolio Settings": "포트폴리오 설정",
|
|
522
|
+
"Watchlist Settings": "관심 목록 설정",
|
|
523
523
|
"Quote Monitor Settings": "시세 모니터 설정",
|
|
524
524
|
"Chart Pane Settings": "차트 패널 설정",
|
|
525
525
|
"Graph Pane Settings": "그래프 패널 설정",
|
|
@@ -1568,6 +1568,9 @@ export const ko: Record<string, string> = {
|
|
|
1568
1568
|
"Pick up to 3; each adds a ready-made tab.": "최대 3개까지 고르세요. 각각 준비된 탭을 추가합니다.",
|
|
1569
1569
|
"Everything else is one search away.": "나머지는 검색 한 번이면 됩니다.",
|
|
1570
1570
|
"DESKS": "데스크",
|
|
1571
|
+
"TICKERS": "종목",
|
|
1572
|
+
"Which tickers do you follow?": "어떤 종목을 팔로우하시나요?",
|
|
1573
|
+
"Pick up to 3 for your watchlist.": "관심 목록에 넣을 종목을 최대 3개까지 고르세요.",
|
|
1571
1574
|
"Skip": "건너뛰기",
|
|
1572
1575
|
"Equities": "주식",
|
|
1573
1576
|
"Futures & commodities": "선물 및 원자재",
|
package/src/i18n/zh-cn.ts
CHANGED
|
@@ -496,7 +496,6 @@ export const zhCN: Record<string, string> = {
|
|
|
496
496
|
"Portfolios Only": "仅投资组合",
|
|
497
497
|
"Watchlists Only": "仅自选列表",
|
|
498
498
|
"Custom Selection": "自定义选择",
|
|
499
|
-
"Collection Pane": "集合面板",
|
|
500
499
|
"Hide Cash Positions": "隐藏现金持仓",
|
|
501
500
|
"Hide Header Bar": "隐藏标题栏",
|
|
502
501
|
"Hide Header": "隐藏标题",
|
|
@@ -521,7 +520,8 @@ export const zhCN: Record<string, string> = {
|
|
|
521
520
|
"Functions": "功能",
|
|
522
521
|
"Shortcuts": "快捷键",
|
|
523
522
|
"Issues": "问题反馈",
|
|
524
|
-
"Portfolio
|
|
523
|
+
"Portfolio Settings": "投资组合设置",
|
|
524
|
+
"Watchlist Settings": "自选列表设置",
|
|
525
525
|
"Quote Monitor Settings": "行情监控设置",
|
|
526
526
|
"Chart Pane Settings": "图表面板设置",
|
|
527
527
|
"Graph Pane Settings": "图形面板设置",
|
|
@@ -1570,6 +1570,9 @@ export const zhCN: Record<string, string> = {
|
|
|
1570
1570
|
"Pick up to 3; each adds a ready-made tab.": "最多选 3 项,每项添加一个现成的标签页。",
|
|
1571
1571
|
"Everything else is one search away.": "其他内容一搜即得。",
|
|
1572
1572
|
"DESKS": "交易台",
|
|
1573
|
+
"TICKERS": "标的",
|
|
1574
|
+
"Which tickers do you follow?": "你关注哪些标的?",
|
|
1575
|
+
"Pick up to 3 for your watchlist.": "最多选 3 个加入自选列表。",
|
|
1573
1576
|
"Skip": "跳过",
|
|
1574
1577
|
"Equities": "股票",
|
|
1575
1578
|
"Futures & commodities": "期货与大宗商品",
|
package/src/i18n/zh-tw.ts
CHANGED
|
@@ -496,7 +496,6 @@ export const zhTW: Record<string, string> = {
|
|
|
496
496
|
"Portfolios Only": "僅投資組合",
|
|
497
497
|
"Watchlists Only": "僅自選清單",
|
|
498
498
|
"Custom Selection": "自訂選擇",
|
|
499
|
-
"Collection Pane": "清單面板",
|
|
500
499
|
"Hide Cash Positions": "隱藏現金持倉",
|
|
501
500
|
"Hide Header Bar": "隱藏標題欄",
|
|
502
501
|
"Hide Header": "隱藏標題",
|
|
@@ -521,7 +520,8 @@ export const zhTW: Record<string, string> = {
|
|
|
521
520
|
"Functions": "功能",
|
|
522
521
|
"Shortcuts": "快速鍵",
|
|
523
522
|
"Issues": "問題回報",
|
|
524
|
-
"Portfolio
|
|
523
|
+
"Portfolio Settings": "投資組合設定",
|
|
524
|
+
"Watchlist Settings": "自選清單設定",
|
|
525
525
|
"Quote Monitor Settings": "行情監控設定",
|
|
526
526
|
"Chart Pane Settings": "圖表面板設定",
|
|
527
527
|
"Graph Pane Settings": "圖形面板設定",
|
|
@@ -1570,6 +1570,9 @@ export const zhTW: Record<string, string> = {
|
|
|
1570
1570
|
"Pick up to 3; each adds a ready-made tab.": "最多選 3 項,每項新增一個現成的分頁。",
|
|
1571
1571
|
"Everything else is one search away.": "其他內容一搜即得。",
|
|
1572
1572
|
"DESKS": "交易台",
|
|
1573
|
+
"TICKERS": "標的",
|
|
1574
|
+
"Which tickers do you follow?": "你關注哪些標的?",
|
|
1575
|
+
"Pick up to 3 for your watchlist.": "最多選 3 個加入自選清單。",
|
|
1573
1576
|
"Skip": "略過",
|
|
1574
1577
|
"Equities": "股票",
|
|
1575
1578
|
"Futures & commodities": "期貨與大宗商品",
|
|
@@ -90,6 +90,25 @@ export function getDockedInstanceIds(node: DockLayoutNode | null): string[] {
|
|
|
90
90
|
return collectDockLeafRefs(node).map((entry) => entry.instanceId);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
/** The docked panes behind the tab their stack shows. */
|
|
94
|
+
export function hiddenDockTabIds(layout: LayoutConfig): Set<string> {
|
|
95
|
+
const hidden = new Set<string>();
|
|
96
|
+
for (const leaf of collectDockLeafRefs(layout.dockRoot)) {
|
|
97
|
+
if (!leaf.stackPath) continue;
|
|
98
|
+
const stack = getNodeAtPath(layout.dockRoot, leaf.stackPath);
|
|
99
|
+
if (stack && dockStackShown(stack) !== leaf.instanceId) hidden.add(leaf.instanceId);
|
|
100
|
+
}
|
|
101
|
+
return hidden;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** The tabs of the dock stack `instanceId` is in, in tab order; empty when it is not in one. */
|
|
105
|
+
export function dockStackTabIds(layout: LayoutConfig, instanceId: string): string[] {
|
|
106
|
+
const leaf = findDockLeaf(layout, instanceId);
|
|
107
|
+
if (!leaf?.stackPath) return [];
|
|
108
|
+
const stack = getNodeAtPath(layout.dockRoot, leaf.stackPath);
|
|
109
|
+
return stack && isDockStack(stack) ? getDockedInstanceIds(stack) : [];
|
|
110
|
+
}
|
|
111
|
+
|
|
93
112
|
export function getRepresentativeLeafId(node: DockLayoutNode, preferStart: boolean): string {
|
|
94
113
|
if (node.kind === "pane") return node.instanceId;
|
|
95
114
|
if (isDockStack(node)) return dockStackShown(node);
|
|
@@ -8,17 +8,20 @@ export {
|
|
|
8
8
|
} from "./floating";
|
|
9
9
|
|
|
10
10
|
export {
|
|
11
|
+
dockStackTabIds,
|
|
11
12
|
findDockLeaf,
|
|
12
13
|
getDockDividerLayouts,
|
|
13
14
|
getDockedPaneIds,
|
|
14
15
|
getDockLeafLayouts,
|
|
15
16
|
getDockResizeTargets,
|
|
16
17
|
getDockSplitGeometry,
|
|
18
|
+
hiddenDockTabIds,
|
|
17
19
|
showDockTab,
|
|
18
20
|
type DockDividerLayout,
|
|
19
21
|
type DockGeometryOptions,
|
|
20
22
|
type DockLeafLayout,
|
|
21
23
|
type DockResizeTarget,
|
|
24
|
+
type DockTarget,
|
|
22
25
|
type LayoutBounds,
|
|
23
26
|
} from "./dock-tree";
|
|
24
27
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatShortDate } from "../utils/datetime-format";
|
|
1
2
|
import {
|
|
2
3
|
findPaneInstance,
|
|
3
4
|
type LayoutConfig,
|
|
@@ -169,7 +170,7 @@ function marketplaceAuthorLabel(author: LayoutMarketplaceEntry["author"]): strin
|
|
|
169
170
|
export function formatPublishedAt(iso: string): string {
|
|
170
171
|
const date = new Date(iso);
|
|
171
172
|
if (Number.isNaN(date.getTime())) return "";
|
|
172
|
-
return date
|
|
173
|
+
return formatShortDate(date);
|
|
173
174
|
}
|
|
174
175
|
|
|
175
176
|
export function buildOwnedEntries(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MISSING_VALUE } from "../utils/format";
|
|
1
2
|
import { apiClient } from "../api-client";
|
|
2
3
|
import type { FuturesContractSpec, FuturesContractTermsPayload } from "../api-client/futures-curve";
|
|
3
4
|
import { classifyInstrumentType } from "../tickers/instrument-kind";
|
|
@@ -20,7 +21,7 @@ import { deliveryMonthLabel } from "../utils/contract-month";
|
|
|
20
21
|
*/
|
|
21
22
|
|
|
22
23
|
/** A settlement the exchange has not confirmed reads as CTM writes a missing price. */
|
|
23
|
-
const FUTURES_MISSING =
|
|
24
|
+
const FUTURES_MISSING = MISSING_VALUE;
|
|
24
25
|
|
|
25
26
|
type FuturesContractLineKey = "contract" | "unit" | "size" | "tick" | "pointValue" | "settlement" | "firstNotice" | "lastTrade"
|
|
26
27
|
| "roll" | "front" | "nearest" | "mostActive";
|