gloomberb 0.16.0 → 0.16.2
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/README.md +2 -1
- package/package.json +2 -1
- package/src/api-client/beneficial-owners.ts +92 -0
- package/src/api-client/data.ts +44 -11
- package/src/api-client/errors.ts +12 -0
- package/src/api-client/geo.ts +363 -0
- package/src/api-client/index.ts +5 -0
- package/src/api-client/market-discovery.ts +10 -0
- package/src/api-client/members.ts +26 -0
- package/src/api-client/paths.ts +30 -1
- package/src/api-client/perps.ts +41 -0
- package/src/api-client/request.ts +5 -2
- package/src/api-client/types.ts +9 -1
- package/src/app/global-shortcuts.ts +14 -6
- package/src/app/keybindings/actions.ts +1 -1
- package/src/app/runtime/update.ts +38 -2
- package/src/app.tsx +10 -6
- package/src/brokers/account-cache.ts +24 -0
- package/src/cli/commands/command-utils.ts +8 -0
- package/src/cli/commands/crypto-hints.ts +75 -0
- package/src/cli/commands/market.ts +414 -106
- package/src/cli/commands/overview.ts +77 -32
- package/src/cli/commands/ticker.ts +101 -43
- package/src/cli/desktop-pane-shot.ts +34 -4
- package/src/cli/freshness.ts +61 -0
- package/src/cli/help.ts +1 -0
- package/src/cli/helpers.ts +4 -8
- package/src/cli/index.ts +12 -2
- package/src/cli/listing-arg.ts +321 -0
- package/src/cli/pane-functions/access-gate.ts +42 -0
- package/src/cli/pane-functions/catalog.ts +28 -1
- package/src/cli/pane-functions/data.ts +3 -1
- package/src/cli/pane-functions/dom.ts +20 -2
- package/src/cli/pane-functions/freshness.ts +400 -0
- package/src/cli/pane-functions/function-help.ts +36 -22
- package/src/cli/pane-functions/headless.ts +39 -11
- package/src/cli/pane-functions/index.ts +15 -4
- package/src/cli/pane-functions/options.ts +3 -0
- package/src/cli/pane-functions/report.ts +4 -0
- package/src/cli/pane-functions/resolver.ts +35 -7
- package/src/cli/pane-functions/screenshot-evidence.ts +2 -0
- package/src/cli/pane-functions/screenshot.ts +7 -3
- package/src/cli/result.ts +41 -27
- package/src/cli/ticker-resolution.ts +7 -5
- package/src/components/chart/composite/composite-chart.tsx +88 -2536
- package/src/components/chart/composite/drawing-store.ts +59 -0
- package/src/components/chart/composite/legend.tsx +319 -0
- package/src/components/chart/composite/panel-bitmap.ts +139 -0
- package/src/components/chart/composite/panel-gestures.ts +59 -0
- package/src/components/chart/composite/panel-labels.ts +107 -0
- package/src/components/chart/composite/panel-surface.tsx +876 -0
- package/src/components/chart/composite/tool-catalog.ts +98 -0
- package/src/components/chart/composite/toolbar.tsx +186 -0
- package/src/components/chart/composite/tools.ts +8 -0
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +703 -0
- package/src/components/chart/composite/use-composite-viewport.ts +143 -0
- package/src/components/command-bar/commands/collection.ts +5 -1
- package/src/components/command-bar/list/model.ts +5 -0
- package/src/components/command-bar/list/view.tsx +16 -3
- package/src/components/command-bar/pane-templates/workflow.ts +1 -0
- package/src/components/command-bar/routes/root/command-items.ts +9 -2
- package/src/components/command-bar/routes/root/plugin-install.ts +2 -2
- package/src/components/command-bar/routes/root/provider-search.ts +19 -5
- package/src/components/command-bar/routes/root/runtime.ts +14 -5
- package/src/components/command-bar/routes/ticker-search/actions.ts +5 -0
- package/src/components/command-bar/routes/ticker-search/results.ts +31 -5
- package/src/components/command-bar/routes/ticker-search/route.ts +2 -2
- package/src/components/command-bar/routing/actions.ts +2 -0
- package/src/components/command-bar/selection-runtime.ts +38 -0
- package/src/components/command-bar/surface/index.tsx +7 -2
- package/src/components/command-bar/workflow/ops.ts +1 -1
- package/src/components/command-bar/workflow/tickers.ts +6 -0
- package/src/components/data-table/view.tsx +29 -10
- package/src/components/feedback-dialog.tsx +2 -1
- package/src/components/form-modal/field-row.tsx +2 -2
- package/src/components/index.ts +2 -2
- package/src/components/layout/detached-pane-shell.tsx +6 -3
- package/src/components/layout/floating-pane.tsx +6 -0
- package/src/components/layout/header.tsx +24 -7
- package/src/components/layout/missing-pane.tsx +2 -2
- package/src/components/layout/pane/content.tsx +23 -10
- package/src/components/layout/pane/error-boundary.tsx +103 -0
- package/src/components/layout/pane/footer/registration.tsx +68 -23
- package/src/components/layout/pane/header.tsx +61 -28
- package/src/components/layout/pane/index.tsx +6 -0
- package/src/components/layout/pane/title.ts +31 -7
- package/src/components/layout/shell/drag/index.ts +6 -5
- package/src/components/layout/shell/drag/runtime.ts +3 -0
- package/src/components/layout/shell/index.tsx +6 -0
- package/src/components/layout/shell/menu.ts +2 -1
- package/src/components/layout/shell/pane/actions.ts +2 -1
- package/src/components/layout/shell/pane/layers.tsx +29 -10
- package/src/components/layout/shell/terminal-pointer-runtime.ts +24 -3
- package/src/components/layout/shell/ticker-link-menu.ts +23 -9
- package/src/components/metric-treemap/heat-surface.tsx +745 -0
- package/src/components/metric-treemap/heat-tiles.ts +228 -0
- package/src/components/metric-treemap/index.tsx +2 -0
- package/src/components/metric-treemap/layout.ts +8 -0
- package/src/components/metric-treemap/scene.ts +432 -0
- package/src/components/onboarding/onboarding-keyboard.ts +311 -0
- package/src/components/onboarding/onboarding-wizard.tsx +101 -788
- package/src/components/onboarding/use-onboarding-broker-form.ts +263 -0
- package/src/components/onboarding/use-onboarding-progress.ts +298 -0
- package/src/components/onboarding/use-onboarding-upgrade.ts +83 -0
- package/src/components/pane-settings-dialog/field-dialogs.tsx +1 -0
- package/src/components/ticker/list-table-view.tsx +13 -1
- package/src/components/toggle-list.tsx +38 -12
- package/src/components/ui/country-flag-art.tsx +449 -0
- package/src/components/ui/country-flag.tsx +41 -0
- package/src/components/ui/data-table/types.ts +13 -0
- package/src/components/ui/fields.tsx +8 -0
- package/src/components/ui/icon.tsx +2 -0
- package/src/components/ui/index.ts +4 -0
- package/src/components/ui/multi-select/dialog.tsx +108 -22
- package/src/components/ui/range-track.tsx +53 -0
- package/src/components/ui/status.tsx +8 -2
- package/src/components/ui/tabs.tsx +11 -4
- package/src/components/ui/text-prompt-dialog.tsx +4 -2
- package/src/core/state/app/types.ts +10 -1
- package/src/data/config/store/normalize.ts +17 -1
- package/src/i18n/es.ts +24 -4
- package/src/i18n/ja.ts +24 -4
- package/src/i18n/ko.ts +24 -4
- package/src/i18n/zh-cn.ts +24 -4
- package/src/i18n/zh-tw.ts +24 -4
- package/src/layout/ticker-navigation.ts +28 -2
- package/src/market-data/coordinator/chart.ts +1 -1
- package/src/market-data/coordinator/quotes.ts +23 -4
- package/src/market-data/fx-closes.ts +72 -0
- package/src/market-data/market/freshness.ts +78 -6
- package/src/market-data/market/session-close-note.ts +57 -0
- package/src/market-data/market/status.ts +151 -0
- package/src/market-data/published-apac-sessions.ts +66 -0
- package/src/market-data/quotes/contributions.ts +8 -0
- package/src/market-data/quotes/freshness.ts +36 -0
- package/src/market-data/quotes/resolution.ts +24 -8
- package/src/market-data/quotes/screener-live-quotes.ts +49 -4
- package/src/market-data/quotes/time.ts +16 -0
- package/src/plugins/builtin/account-management/pane.tsx +4 -0
- package/src/plugins/builtin/alerts/cli.ts +10 -5
- package/src/plugins/builtin/alerts/index.tsx +1 -0
- package/src/plugins/builtin/analytics/metrics.ts +8 -3
- package/src/plugins/builtin/analytics/risk-client.ts +330 -79
- package/src/plugins/builtin/analytics/risk-fx.ts +102 -0
- package/src/plugins/builtin/analytics/risk-headless.ts +61 -49
- package/src/plugins/builtin/analytics/risk-math.ts +33 -13
- package/src/plugins/builtin/analytics/risk-model.ts +282 -64
- package/src/plugins/builtin/analytics/risk-pane.tsx +62 -30
- package/src/plugins/builtin/analytics/risk-test-data.ts +206 -0
- package/src/plugins/builtin/attention/headless.ts +6 -4
- package/src/plugins/builtin/attention/index.tsx +1 -1
- package/src/plugins/builtin/attention/pane.tsx +1 -1
- package/src/plugins/builtin/awards/headless.ts +1 -0
- package/src/plugins/builtin/awards/pane.tsx +1 -1
- package/src/plugins/builtin/backtest/headless.ts +1 -0
- package/src/plugins/builtin/bond-calculator/headless.ts +1 -0
- package/src/plugins/builtin/buildout/cells.tsx +15 -12
- package/src/plugins/builtin/buildout/detail/company.tsx +3 -3
- package/src/plugins/builtin/buildout/detail/index.tsx +0 -1
- package/src/plugins/builtin/buildout/detail/intel.tsx +6 -6
- package/src/plugins/builtin/buildout/detail/site.tsx +4 -7
- package/src/plugins/builtin/buildout/detail/ui.tsx +0 -19
- package/src/plugins/builtin/buildout/index.tsx +1 -0
- package/src/plugins/builtin/catalysts/headless.ts +3 -1
- package/src/plugins/builtin/catalysts/index.tsx +2 -2
- package/src/plugins/builtin/catalysts/pane.tsx +3 -1
- package/src/plugins/builtin/cds/headless.ts +2 -0
- package/src/plugins/builtin/cds/index.tsx +1 -0
- package/src/plugins/builtin/central-bank-rates/headless.ts +1 -0
- package/src/plugins/builtin/chart-composer/headless.ts +38 -3
- package/src/plugins/builtin/chart-composer/index.tsx +3 -1
- package/src/plugins/builtin/chart-composer/series-expression.ts +18 -2
- package/src/plugins/builtin/chat/channels.ts +19 -3
- package/src/plugins/builtin/chat/content/composer-runtime.ts +28 -13
- package/src/plugins/builtin/chat/content/footer.tsx +15 -6
- package/src/plugins/builtin/chat/content/index.tsx +120 -21
- package/src/plugins/builtin/chat/content/new-dm-dialog.tsx +261 -113
- package/src/plugins/builtin/chat/content/transcript.tsx +20 -2
- package/src/plugins/builtin/chat/direct-messages.ts +200 -0
- package/src/plugins/builtin/chat/index.tsx +1 -0
- package/src/plugins/builtin/chat/message/desktop.tsx +3 -0
- package/src/plugins/builtin/chat/message/header.tsx +16 -6
- package/src/plugins/builtin/chat/message/inline-tokens.tsx +72 -32
- package/src/plugins/builtin/chat/message/profile-popover.tsx +96 -12
- package/src/plugins/builtin/chat/message/terminal.tsx +3 -0
- package/src/plugins/builtin/chat/message/types.ts +14 -2
- package/src/plugins/builtin/chat/profile-popover.ts +18 -13
- package/src/plugins/builtin/clinical-trials/index.tsx +1 -0
- package/src/plugins/builtin/cloud/askg/executor.ts +2 -1
- package/src/plugins/builtin/cloud/plugin.tsx +1 -0
- package/src/plugins/builtin/cloud/team/module.tsx +1 -0
- package/src/plugins/builtin/cloud/thesis/module.tsx +1 -0
- package/src/plugins/builtin/cloud-tweets/registration.ts +1 -0
- package/src/plugins/builtin/comment-letters/index.tsx +1 -0
- package/src/plugins/builtin/company-attention/headless.ts +5 -1
- package/src/plugins/builtin/company-attention/pane.tsx +1 -1
- package/src/plugins/builtin/company-kpis/headless.ts +1 -0
- package/src/plugins/builtin/congress-trades/headless.ts +1 -0
- package/src/plugins/builtin/correlation/compute.ts +59 -16
- package/src/plugins/builtin/correlation/geo.ts +34 -0
- package/src/plugins/builtin/correlation/headless-schema.ts +4 -1
- package/src/plugins/builtin/correlation/headless.ts +42 -8
- package/src/plugins/builtin/correlation/history.ts +2 -0
- package/src/plugins/builtin/correlation/index.tsx +68 -14
- package/src/plugins/builtin/correlation/matrix/model.ts +17 -2
- package/src/plugins/builtin/correlation/matrix/selection.ts +5 -3
- package/src/plugins/builtin/correlation/relationship/model.ts +1 -1
- package/src/plugins/builtin/correlation/relationship/pane.tsx +4 -2
- package/src/plugins/builtin/correlation/relationship/view-model.ts +16 -1
- package/src/plugins/builtin/correlation/settings.ts +1 -1
- package/src/plugins/builtin/cot/headless.ts +6 -3
- package/src/plugins/builtin/cot/index.tsx +3 -3
- package/src/plugins/builtin/cot/model.ts +36 -3
- package/src/plugins/builtin/cpi/headless.ts +4 -0
- package/src/plugins/builtin/credit-boards/headless.ts +2 -0
- package/src/plugins/builtin/credit-conditions/headless.ts +1 -0
- package/src/plugins/builtin/credit-documents/gauge.tsx +5 -8
- package/src/plugins/builtin/credit-documents/headless.ts +2 -0
- package/src/plugins/builtin/crypto-board/headless.ts +3 -0
- package/src/plugins/builtin/custom-view/loader.ts +1 -1
- package/src/plugins/builtin/debt-maturities/headless.ts +4 -0
- package/src/plugins/builtin/debt-maturities/wall-bar.tsx +14 -41
- package/src/plugins/builtin/dividend-yield/client.ts +4 -2
- package/src/plugins/builtin/dividend-yield/headless.ts +1 -0
- package/src/plugins/builtin/doe/headless.ts +7 -0
- package/src/plugins/builtin/doe/range-bar.tsx +7 -37
- package/src/plugins/builtin/earnings/client.ts +2 -2
- package/src/plugins/builtin/earnings/headless.ts +5 -0
- package/src/plugins/builtin/earnings-calls/headless.ts +1 -0
- package/src/plugins/builtin/earnings-calls/index.tsx +1 -0
- package/src/plugins/builtin/earnings-ripple/client.ts +91 -18
- package/src/plugins/builtin/earnings-ripple/headless.ts +28 -8
- package/src/plugins/builtin/earnings-ripple/index.tsx +2 -2
- package/src/plugins/builtin/earnings-ripple/model.ts +97 -7
- package/src/plugins/builtin/earnings-ripple/pane.tsx +148 -23
- package/src/plugins/builtin/econ/index.tsx +1 -0
- package/src/plugins/builtin/econ-statistics/headless.ts +2 -0
- package/src/plugins/builtin/equity-screener/headless.ts +2 -0
- package/src/plugins/builtin/estimate-revisions/headless.ts +1 -0
- package/src/plugins/builtin/executives/index.tsx +1 -0
- package/src/plugins/builtin/exposure/headless.ts +3 -1
- package/src/plugins/builtin/fear-greed/headless.ts +2 -0
- package/src/plugins/builtin/filing-events/index.tsx +1 -0
- package/src/plugins/builtin/futures-curve/client.ts +12 -3
- package/src/plugins/builtin/futures-curve/headless.ts +39 -10
- package/src/plugins/builtin/futures-curve/index.tsx +3 -3
- package/src/plugins/builtin/futures-curve/model.ts +188 -4
- package/src/plugins/builtin/futures-curve/pane.tsx +51 -9
- package/src/plugins/builtin/fx-matrix/direction.ts +81 -0
- package/src/plugins/builtin/fx-matrix/index.tsx +71 -33
- package/src/plugins/builtin/fx-matrix/live-legs.ts +17 -0
- package/src/plugins/builtin/fx-matrix/pairs.ts +68 -14
- package/src/plugins/builtin/fx-matrix/settings.ts +62 -0
- package/src/plugins/builtin/gpu/headless.ts +7 -3
- package/src/plugins/builtin/gpu/ladder.tsx +26 -30
- package/src/plugins/builtin/gpu/model.ts +27 -1
- package/src/plugins/builtin/holders/beneficial-client.ts +209 -0
- package/src/plugins/builtin/holders/beneficial-model.ts +279 -0
- package/src/plugins/builtin/holders/beneficial-report.ts +126 -0
- package/src/plugins/builtin/holders/beneficial-view.tsx +241 -0
- package/src/plugins/builtin/holders/headless.ts +139 -5
- package/src/plugins/builtin/holders/index.tsx +10 -3
- package/src/plugins/builtin/holders/pane.tsx +20 -3
- package/src/plugins/builtin/holders/report-header.ts +95 -0
- package/src/plugins/builtin/holders/table-model.ts +20 -5
- package/src/plugins/builtin/holders/thirteenf-match.ts +29 -1
- package/src/plugins/builtin/holders/types.ts +2 -1
- package/src/plugins/builtin/insider/headless.ts +2 -0
- package/src/plugins/builtin/ipo-calendar/headless.ts +1 -0
- package/src/plugins/builtin/iv-history/headless.ts +4 -1
- package/src/plugins/builtin/jobs/headless.ts +1 -0
- package/src/plugins/builtin/jobs/index.tsx +1 -0
- package/src/plugins/builtin/jobs/share-bars.tsx +5 -28
- package/src/plugins/builtin/kelly-sizer/index.tsx +1 -0
- package/src/plugins/builtin/macro-day/headless.ts +2 -0
- package/src/plugins/builtin/market-halts/index.tsx +1 -0
- package/src/plugins/builtin/market-heatmap/data.ts +30 -2
- package/src/plugins/builtin/market-heatmap/headless.ts +135 -0
- package/src/plugins/builtin/market-heatmap/index.tsx +245 -81
- package/src/plugins/builtin/market-heatmap/live.ts +88 -0
- package/src/plugins/builtin/market-heatmap/model.ts +146 -0
- package/src/plugins/builtin/market-heatmap/portfolio.ts +50 -11
- package/src/plugins/builtin/market-movers/client.ts +3 -2
- package/src/plugins/builtin/market-movers/headless.ts +10 -1
- package/src/plugins/builtin/market-movers/screener.ts +18 -5
- package/src/plugins/builtin/market-valuation/headless.ts +2 -0
- package/src/plugins/builtin/members/client.ts +53 -0
- package/src/plugins/builtin/members/headless.ts +35 -0
- package/src/plugins/builtin/members/index.tsx +20 -0
- package/src/plugins/builtin/members/model.ts +68 -0
- package/src/plugins/builtin/members/pane.tsx +175 -0
- package/src/plugins/builtin/mna/distress/headless.ts +1 -0
- package/src/plugins/builtin/mna/headless.ts +1 -0
- package/src/plugins/builtin/mna/index.tsx +2 -1
- package/src/plugins/builtin/mna/pane.tsx +5 -2
- package/src/plugins/builtin/money-markets/headless.ts +1 -0
- package/src/plugins/builtin/news/headless.ts +2 -0
- package/src/plugins/builtin/news/wire/index.tsx +8 -1
- package/src/plugins/builtin/notes/cli.ts +14 -6
- package/src/plugins/builtin/notes/index.tsx +1 -0
- package/src/plugins/builtin/openfda/index.tsx +1 -0
- package/src/plugins/builtin/options/index.tsx +2 -1
- package/src/plugins/builtin/options-calculator/headless.ts +2 -0
- package/src/plugins/builtin/options-positioning/headless.ts +3 -0
- package/src/plugins/builtin/options-scenario/headless.ts +5 -0
- package/src/plugins/builtin/pe-band/client.ts +74 -2
- package/src/plugins/builtin/pe-band/headless.ts +26 -8
- package/src/plugins/builtin/pe-band/model.ts +102 -22
- package/src/plugins/builtin/pe-band/pane.tsx +34 -16
- package/src/plugins/builtin/pe-band/report-dates.ts +78 -0
- package/src/plugins/builtin/perps/client.ts +66 -5
- package/src/plugins/builtin/perps/equity-identity.ts +16 -0
- package/src/plugins/builtin/perps/equity-row.tsx +6 -4
- package/src/plugins/builtin/perps/headless.ts +144 -16
- package/src/plugins/builtin/perps/index.tsx +6 -6
- package/src/plugins/builtin/perps/model.ts +189 -12
- package/src/plugins/builtin/perps/pane.tsx +248 -47
- package/src/plugins/builtin/plugin-marketplace/activation.ts +19 -0
- package/src/plugins/builtin/plugin-marketplace/pane.tsx +2 -2
- package/src/plugins/builtin/plugin-marketplace/store.ts +2 -0
- package/src/plugins/builtin/portfolio-list/allocation.ts +245 -0
- package/src/plugins/builtin/portfolio-list/cached-account.ts +33 -0
- package/src/plugins/builtin/portfolio-list/cell-version.ts +19 -1
- package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +328 -29
- package/src/plugins/builtin/portfolio-list/cli/render.ts +230 -39
- package/src/plugins/builtin/portfolio-list/cli/shared.ts +67 -2
- package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +35 -31
- package/src/plugins/builtin/portfolio-list/column-values.ts +124 -47
- package/src/plugins/builtin/portfolio-list/headless.ts +98 -16
- package/src/plugins/builtin/portfolio-list/index.tsx +14 -3
- package/src/plugins/builtin/portfolio-list/live-valuation.ts +7 -5
- package/src/plugins/builtin/portfolio-list/mutations.ts +55 -1
- package/src/plugins/builtin/portfolio-list/pane/data.ts +6 -0
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +47 -13
- package/src/plugins/builtin/portfolio-list/quick-add/index.tsx +43 -2
- package/src/plugins/builtin/portfolio-list/quick-add/resolution.ts +48 -5
- package/src/plugins/builtin/portfolio-list/settings.ts +33 -2
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +24 -1
- package/src/plugins/builtin/portfolio-list/summary/totals.ts +26 -7
- package/src/plugins/builtin/power/headless.ts +3 -1
- package/src/plugins/builtin/rate-path/headless.ts +2 -0
- package/src/plugins/builtin/realized-vol/headless.ts +2 -0
- package/src/plugins/builtin/relative-rotation/headless.ts +2 -0
- package/src/plugins/builtin/research/analyst-headless.ts +3 -0
- package/src/plugins/builtin/research/events-headless.ts +2 -0
- package/src/plugins/builtin/research/headless.ts +2 -0
- package/src/plugins/builtin/research/index.tsx +1 -0
- package/src/plugins/builtin/research/relative-valuation-headless.ts +10 -5
- package/src/plugins/builtin/research/relative-valuation-model.ts +11 -3
- package/src/plugins/builtin/research/relative-valuation-pane.tsx +3 -3
- package/src/plugins/builtin/research-search/index.tsx +1 -0
- package/src/plugins/builtin/revenue-breakdown/headless.ts +2 -0
- package/src/plugins/builtin/reverse-dcf/headless.ts +2 -0
- package/src/plugins/builtin/risk-factors/headless.ts +2 -0
- package/src/plugins/builtin/scanner/flow-history.ts +2 -13
- package/src/plugins/builtin/scanner/headless.ts +14 -0
- package/src/plugins/builtin/scanner/hilo-bars.tsx +12 -70
- package/src/plugins/builtin/scanner/hilo-model.ts +0 -18
- package/src/plugins/builtin/seasonality/headless.ts +2 -0
- package/src/plugins/builtin/sec/command-bar-search.ts +14 -4
- package/src/plugins/builtin/sec/filing-content.ts +42 -17
- package/src/plugins/builtin/sec/forms.ts +12 -0
- package/src/plugins/builtin/sec/headless.ts +2 -0
- package/src/plugins/builtin/sectors/client.ts +1 -0
- package/src/plugins/builtin/sectors/headless.ts +9 -1
- package/src/plugins/builtin/sectors/move-bar.tsx +10 -32
- package/src/plugins/builtin/sectors/sector-model.ts +2 -0
- package/src/plugins/builtin/shared/crypto-pair.ts +14 -0
- package/src/plugins/builtin/shared/locked-rows.tsx +1 -1
- package/src/plugins/builtin/shared/report-freshness.ts +57 -0
- package/src/plugins/builtin/shared/research-cells.tsx +4 -9
- package/src/plugins/builtin/short-interest/headless.ts +2 -0
- package/src/plugins/builtin/short-interest/watch-headless.ts +1 -0
- package/src/plugins/builtin/short-volume/headless.ts +1 -0
- package/src/plugins/builtin/social-mentions/headless.ts +1 -0
- package/src/plugins/builtin/social-mentions/index.tsx +1 -1
- package/src/plugins/builtin/supply-chain/headless.ts +7 -1
- package/src/plugins/builtin/supply-chain/index.tsx +10 -1
- package/src/plugins/builtin/supply-chain/model.ts +27 -2
- package/src/plugins/builtin/supply-chain/pane.tsx +71 -32
- package/src/plugins/builtin/themes/headless.ts +3 -0
- package/src/plugins/builtin/thirteenf/headless.ts +110 -25
- package/src/plugins/builtin/thirteenf/index.tsx +2 -1
- package/src/plugins/builtin/thirteenf/report-notes.ts +149 -0
- package/src/plugins/builtin/ticker-detail/headless.ts +7 -1
- package/src/plugins/builtin/ticker-detail/index.tsx +1 -0
- package/src/plugins/builtin/ticker-detail/overview/components.tsx +5 -60
- package/src/plugins/builtin/ticker-detail/overview/model.ts +9 -2
- package/src/plugins/builtin/ticker-detail/overview/pane.tsx +1 -1
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +26 -26
- package/src/plugins/builtin/ticker-detail/pane.tsx +1 -1
- package/src/plugins/builtin/ticker-detail/quote-footer.ts +7 -1
- package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +20 -4
- package/src/plugins/builtin/ticker-detail/quote-monitor/index.tsx +2 -2
- package/src/plugins/builtin/time-sales/headless.ts +5 -1
- package/src/plugins/builtin/treasury-auctions/headless.ts +1 -0
- package/src/plugins/builtin/vol-surface/index.tsx +1 -1
- package/src/plugins/builtin/volatility/headless.ts +6 -1
- package/src/plugins/builtin/world-indices/headless.ts +2 -0
- package/src/plugins/builtin/world-venue-map/basemap-layer.tsx +157 -0
- package/src/plugins/builtin/world-venue-map/basemap.ts +214 -0
- package/src/plugins/builtin/world-venue-map/client.ts +45 -0
- package/src/plugins/builtin/world-venue-map/entity-detail.tsx +147 -0
- package/src/plugins/builtin/world-venue-map/entity-table.ts +59 -0
- package/src/plugins/builtin/world-venue-map/evidence.ts +77 -0
- package/src/plugins/builtin/world-venue-map/feed.ts +293 -0
- package/src/plugins/builtin/world-venue-map/geo-draw.tsx +248 -0
- package/src/plugins/builtin/world-venue-map/geo-series.ts +142 -0
- package/src/plugins/builtin/world-venue-map/geo-svg.tsx +447 -0
- package/src/plugins/builtin/world-venue-map/headless.ts +146 -0
- package/src/plugins/builtin/world-venue-map/ids.ts +1 -0
- package/src/plugins/builtin/world-venue-map/index.ts +67 -4
- package/src/plugins/builtin/world-venue-map/layered-pane.tsx +552 -0
- package/src/plugins/builtin/world-venue-map/layers.ts +348 -0
- package/src/plugins/builtin/world-venue-map/map-symbols.ts +220 -0
- package/src/plugins/builtin/world-venue-map/map.tsx +381 -45
- package/src/plugins/builtin/world-venue-map/model.ts +7 -4
- package/src/plugins/builtin/world-venue-map/natural-earth/index.chunk.ts +199 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/world-50m.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/pane.tsx +28 -43
- package/src/plugins/builtin/world-venue-map/use-geo.ts +55 -0
- package/src/plugins/builtin/world-venue-map/venue-header.tsx +32 -0
- package/src/plugins/builtin/yield-curve/headless.ts +16 -0
- package/src/plugins/catalog-browser.ts +2 -0
- package/src/plugins/catalog-manifest.ts +1 -0
- package/src/plugins/catalog-ui.ts +3 -1
- package/src/plugins/catalog.ts +1 -1
- package/src/plugins/host-link.ts +33 -1
- package/src/plugins/installer.ts +48 -12
- package/src/plugins/loader.ts +30 -3
- package/src/plugins/manager-node.ts +15 -5
- package/src/plugins/registry/index.ts +1 -1
- package/src/plugins/registry/pane-settings.ts +26 -7
- package/src/public/__snapshots__/public-api.test.ts.snap +2 -0
- package/src/renderers/dom/build-assets.ts +81 -3
- package/src/renderers/dom/data-table/row.tsx +52 -16
- package/src/renderers/dom/desktop/controls.tsx +7 -3
- package/src/renderers/dom/desktop/icons.tsx +1 -0
- package/src/renderers/dom/desktop/list-view.tsx +35 -10
- package/src/renderers/dom/desktop/popover.tsx +73 -14
- package/src/renderers/dom/host/box.tsx +69 -26
- package/src/renderers/dom/host/input.tsx +14 -3
- package/src/renderers/dom/host/tabs.tsx +37 -1
- package/src/renderers/dom/styles.css +41 -7
- package/src/renderers/electrobun/bun/desktop/backend-requests.ts +11 -6
- package/src/renderers/electrobun/bun/desktop/backend.ts +1 -0
- package/src/renderers/electrobun/bun/desktop/update.ts +181 -87
- package/src/renderers/electrobun/bun/index.ts +73 -6
- package/src/renderers/electrobun/bun/window/remembered-frame.ts +122 -0
- package/src/renderers/electrobun/shared/protocol.ts +3 -0
- package/src/renderers/electrobun/view/backend-rpc.ts +10 -4
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +3 -1
- package/src/renderers/electrobun/view/main.tsx +7 -1
- package/src/renderers/electrobun/view/renderer-window-error.ts +18 -0
- package/src/renderers/electrobun/view/rpc-timeout.ts +14 -3
- package/src/renderers/electrobun/view/update-host.ts +45 -21
- package/src/renderers/opentui/host.tsx +5 -0
- package/src/sources/gloomberb-cloud/index.ts +25 -4
- package/src/sources/gloomberb-cloud/normalizers.ts +36 -5
- package/src/sources/provider-router/cached-routes.ts +4 -1
- package/src/sources/provider-router/financials.ts +11 -8
- package/src/sources/provider-router/history.ts +15 -10
- package/src/sources/sec-registrant.ts +75 -0
- package/src/state/app/context/index.tsx +24 -8
- package/src/state/hooks/quote-streaming.ts +41 -26
- package/src/sync/core-contributors.ts +4 -0
- package/src/telemetry/benign-window-error.ts +7 -0
- package/src/telemetry/crash-reports-dom.ts +2 -0
- package/src/telemetry/crash-reports.ts +4 -1
- package/src/test-support/cli-context.ts +10 -2
- package/src/test-support/daily-nav.ts +25 -0
- package/src/theme/heat-colors.ts +357 -2
- package/src/tickers/instrument-kind.ts +34 -7
- package/src/tickers/search/asset-classes.ts +24 -9
- package/src/tickers/search/index.ts +44 -11
- package/src/tickers/search/ranking.ts +23 -3
- package/src/time-series/resolve.ts +1 -1
- package/src/time-series/use-chart-resolution.ts +1 -1
- package/src/types/context-menu.ts +6 -0
- package/src/types/data-provider.ts +2 -0
- package/src/types/financials.ts +5 -0
- package/src/types/headless.ts +79 -2
- package/src/types/plugin.ts +38 -6
- package/src/types/ticker.ts +15 -0
- package/src/ui/context-menu.tsx +1 -0
- package/src/ui/host.tsx +16 -0
- package/src/updater/index.ts +38 -13
- package/src/utils/async-deadline.ts +21 -0
- package/src/utils/cli-output.ts +5 -1
- package/src/utils/crypto-pair.ts +41 -0
- package/src/utils/currency-units.ts +14 -0
- package/src/utils/depositary-receipt.ts +26 -0
- package/src/utils/exchanges.ts +72 -0
- package/src/utils/fire-and-forget.ts +24 -0
- package/src/utils/format.ts +13 -0
- package/src/utils/price-earnings.ts +70 -3
- package/src/utils/price-history.ts +58 -13
- package/src/utils/rpc-timeout-error.ts +27 -0
- package/src/utils/sec.ts +13 -1
- package/src/utils/utc-time.ts +79 -0
|
@@ -47,9 +47,14 @@ import { loadPortfolioRiskMarket } from "./risk-client";
|
|
|
47
47
|
import { brokerPerformanceEvidence, parsePortfolioRiskEvidence } from "./risk-evidence";
|
|
48
48
|
import { useBrokerPortfolioPerformance } from "./broker-performance";
|
|
49
49
|
import {
|
|
50
|
+
BASKET_VIEWS,
|
|
50
51
|
buildPortfolioRisk,
|
|
51
52
|
HOLDINGS_SUMMARY_ROW_IDS,
|
|
53
|
+
portfolioRiskRequests,
|
|
52
54
|
portfolioRiskTickers,
|
|
55
|
+
riskCoverageNotices,
|
|
56
|
+
riskCoverageShortfall,
|
|
57
|
+
riskCoverageText,
|
|
53
58
|
riskPercentile,
|
|
54
59
|
riskValue,
|
|
55
60
|
RISK_VIEWS,
|
|
@@ -108,9 +113,9 @@ function holdingsSummaryItems(rows: RiskDisplayRow[]): StatItem[] {
|
|
|
108
113
|
return rows.map((row) => ({
|
|
109
114
|
id: row.id,
|
|
110
115
|
label: HOLDINGS_SUMMARY_LABELS[row.id] ?? row.label,
|
|
111
|
-
value: row.value == null ? "--" : row.unit === "%
|
|
112
|
-
//
|
|
113
|
-
detail: row.unit === "%
|
|
116
|
+
value: row.value == null ? "--" : row.unit === "% basket" ? `${row.value.toFixed(2)}%` : row.value.toFixed(2),
|
|
117
|
+
// The same method note sits on both weights.
|
|
118
|
+
detail: row.unit === "% basket" ? "of basket" : row.detail,
|
|
114
119
|
}));
|
|
115
120
|
}
|
|
116
121
|
/**
|
|
@@ -276,24 +281,20 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
276
281
|
: [],
|
|
277
282
|
[portfolio?.id, tickers],
|
|
278
283
|
);
|
|
279
|
-
const
|
|
280
|
-
() =>
|
|
281
|
-
|
|
282
|
-
symbol: row.metadata.ticker,
|
|
283
|
-
exchange: row.metadata.exchange,
|
|
284
|
-
})),
|
|
285
|
-
[localTickers],
|
|
284
|
+
const requests = useMemo(
|
|
285
|
+
() => (portfolio ? portfolioRiskRequests(localTickers, portfolio.id) : []),
|
|
286
|
+
[localTickers, portfolio?.id],
|
|
286
287
|
);
|
|
287
288
|
const session = useResearchCloudSession();
|
|
288
289
|
const loader = useCallback(
|
|
289
290
|
async (force: boolean) => {
|
|
290
291
|
const [market, brokerOptions] = await Promise.all([
|
|
291
|
-
loadPortfolioRiskMarket(
|
|
292
|
+
loadPortfolioRiskMarket(requests, force),
|
|
292
293
|
loadPortfolioOptionBook(localTickers, portfolio!),
|
|
293
294
|
]);
|
|
294
295
|
return { ...market, brokerOptions };
|
|
295
296
|
},
|
|
296
|
-
[
|
|
297
|
+
[requests, localTickers, portfolio, session.requestKey],
|
|
297
298
|
);
|
|
298
299
|
const resource = useAsyncResource(!frozen && portfolio ? loader : null, {
|
|
299
300
|
clearOnError: isAccessDenied,
|
|
@@ -343,13 +344,21 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
343
344
|
volatility,
|
|
344
345
|
]);
|
|
345
346
|
const model = derived.model;
|
|
347
|
+
const marketLoading = resource.loading && !resource.data;
|
|
348
|
+
// A basket view with nothing to estimate says why in the body, not with a table of dashes.
|
|
349
|
+
const basketBody = useMemo<{ loading?: boolean; error?: string; title?: string; message?: string } | null>(() => {
|
|
350
|
+
if (!model || !BASKET_VIEWS.has(view)) return null;
|
|
351
|
+
if (!frozen && !resource.data)
|
|
352
|
+
return marketLoading ? { loading: true } : resource.error ? { error: resource.error } : null;
|
|
353
|
+
return view === "holdings" ? null : riskCoverageShortfall(model.coverage);
|
|
354
|
+
}, [frozen, marketLoading, model, resource.data, resource.error, view]);
|
|
346
355
|
const holdingsSummary = useMemo(
|
|
347
356
|
() => view === "holdings" ? holdingsSummaryItems((model?.rows.holdings ?? []).filter((row) => HOLDINGS_SUMMARY_ROW_IDS.has(row.id))) : [],
|
|
348
357
|
[model, view],
|
|
349
358
|
);
|
|
350
359
|
const rows = useMemo(
|
|
351
360
|
() =>
|
|
352
|
-
(model?.rows[view] ?? [])
|
|
361
|
+
(basketBody ? [] : model?.rows[view] ?? [])
|
|
353
362
|
.filter((row) => view !== "holdings" || !HOLDINGS_SUMMARY_ROW_IDS.has(row.id))
|
|
354
363
|
.sort((a, b) => {
|
|
355
364
|
if (!sort.column) return 0;
|
|
@@ -364,7 +373,7 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
364
373
|
(sort.direction === "asc" ? 1 : -1)
|
|
365
374
|
);
|
|
366
375
|
}),
|
|
367
|
-
[model, view, sort],
|
|
376
|
+
[basketBody, model, view, sort],
|
|
368
377
|
);
|
|
369
378
|
const openRow = rows.find((row) => row.id === open);
|
|
370
379
|
const detailScrollRef = useRef<ScrollBoxRenderable | null>(null);
|
|
@@ -434,10 +443,27 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
434
443
|
// Only real data limitations raise the footer warning; the empty evidence
|
|
435
444
|
// views say what they need in the body, with the import action.
|
|
436
445
|
const notices = [
|
|
446
|
+
...riskCoverageNotices(model?.coverage),
|
|
447
|
+
...(model?.notes ?? []),
|
|
437
448
|
...(model?.warnings ?? []),
|
|
438
449
|
...(derived.error ? [derived.error] : []),
|
|
439
450
|
...(resource.error ? [resource.error] : []),
|
|
440
451
|
];
|
|
452
|
+
// What the basket views cover, unless the body already says why they show nothing.
|
|
453
|
+
const coverageText = model && BASKET_VIEWS.has(view) && !basketBody ? riskCoverageText(model.coverage) : null;
|
|
454
|
+
const asOfDate = model?.rows[view].find((row) => row.asOf)?.asOf?.slice(0, 10) ?? null;
|
|
455
|
+
// Dated evidence only when a row has a date; a missing date is not a claim about history.
|
|
456
|
+
const asOfText = !model
|
|
457
|
+
? null
|
|
458
|
+
: [
|
|
459
|
+
...(basketBody ? [] : [
|
|
460
|
+
...(asOfDate && sharedEvidence ? [sharedEvidence] : []),
|
|
461
|
+
model.portfolio.currency,
|
|
462
|
+
...(asOfDate ? [asOfDate] : []),
|
|
463
|
+
...(EVIDENCE_VIEWS.has(view) && model.evidence ? [model.evidence.source] : []),
|
|
464
|
+
]),
|
|
465
|
+
...(frozen ? ["snapshot"] : []),
|
|
466
|
+
].join(" · ") || null;
|
|
441
467
|
usePaneNoticeFooter({
|
|
442
468
|
registrationId: "portfolio-risk-notices",
|
|
443
469
|
notices,
|
|
@@ -458,18 +484,12 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
458
484
|
},
|
|
459
485
|
]
|
|
460
486
|
: []),
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
text: `${sharedEvidence ? `${sharedEvidence} · ` : ""}${model.portfolio.currency} · ${model.rows[view].find((row) => row.asOf)?.asOf?.slice(0, 10) ?? "history unavailable"}${["performance", "attribution", "greeks"].includes(view) && model.evidence ? ` · ${model.evidence.source}` : ""}${frozen ? " · snapshot" : ""}`,
|
|
468
|
-
tone: "muted" as const,
|
|
469
|
-
},
|
|
470
|
-
],
|
|
471
|
-
},
|
|
472
|
-
]
|
|
487
|
+
// One segment, coverage first: a narrow footer cuts the date before what the numbers cover.
|
|
488
|
+
...(coverageText || asOfText
|
|
489
|
+
? [{
|
|
490
|
+
id: "asof",
|
|
491
|
+
parts: [{ text: [coverageText, asOfText].filter(Boolean).join(" · "), tone: "muted" as const }],
|
|
492
|
+
}]
|
|
473
493
|
: []),
|
|
474
494
|
...(actionStatus
|
|
475
495
|
? [
|
|
@@ -482,7 +502,7 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
482
502
|
],
|
|
483
503
|
hints,
|
|
484
504
|
}),
|
|
485
|
-
[resource.loading,
|
|
505
|
+
[resource.loading, coverageText, asOfText, actionStatus, hints],
|
|
486
506
|
);
|
|
487
507
|
useShortcut(
|
|
488
508
|
(event) => {
|
|
@@ -509,7 +529,6 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
509
529
|
// The chart follows the selected row: its own history, or for the return
|
|
510
530
|
// rows the basket against SPY. Performance charts the account's TWR.
|
|
511
531
|
const chartRow = rows.find((row) => row.id === selected) ?? rows[0];
|
|
512
|
-
const marketLoading = resource.loading && !resource.data;
|
|
513
532
|
const chart = useMemo<ChartTableChart | null>(() => {
|
|
514
533
|
if (!model) return null;
|
|
515
534
|
if (view === "performance") {
|
|
@@ -673,7 +692,10 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
673
692
|
}
|
|
674
693
|
renderCell={(row, column) => {
|
|
675
694
|
if (column.id === "label") return { text: row.label };
|
|
676
|
-
if (column.id === "value")
|
|
695
|
+
if (column.id === "value")
|
|
696
|
+
return row.leftOut
|
|
697
|
+
? { text: "left out", value: null, color: colors.textMuted }
|
|
698
|
+
: { text: sharedUnit || attributionParts ? bareValue(row) : riskValue(row) };
|
|
677
699
|
if (column.id === "percentile") return { text: riskPercentile(row) };
|
|
678
700
|
if (column.id === "asOf") return { text: row.asOf?.slice(0, 10) ?? "--" };
|
|
679
701
|
if (column.id === "allocation" || column.id === "selection" || column.id === "interaction") {
|
|
@@ -682,6 +704,7 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
682
704
|
}
|
|
683
705
|
return { text: row.detail };
|
|
684
706
|
}}
|
|
707
|
+
selectedTextOverridesCellColor
|
|
685
708
|
onActivate={(row) => setOpen(row.id)}
|
|
686
709
|
detailOpen={!!openRow}
|
|
687
710
|
detailTitle={openRow?.label}
|
|
@@ -699,7 +722,16 @@ export function PortfolioRiskPane({ focused, width, height }: PaneProps) {
|
|
|
699
722
|
}
|
|
700
723
|
detailScrollRef={detailScrollRef}
|
|
701
724
|
emptyContent={
|
|
702
|
-
|
|
725
|
+
basketBody ? (
|
|
726
|
+
<PaneStatusBody
|
|
727
|
+
loading={basketBody.loading}
|
|
728
|
+
error={basketBody.error ?? null}
|
|
729
|
+
empty={!!basketBody.title}
|
|
730
|
+
loadingLabel="Loading portfolio risk"
|
|
731
|
+
emptyTitle={basketBody.title}
|
|
732
|
+
emptyMessage={basketBody.message || undefined}
|
|
733
|
+
/>
|
|
734
|
+
) : evidenceMissing ? (
|
|
703
735
|
<PaneStatusBody
|
|
704
736
|
empty
|
|
705
737
|
emptyTitle="This view needs dated local evidence."
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
CloudFredSeriesPayload,
|
|
2
3
|
CloudMarketResponse,
|
|
3
4
|
CloudPricePointPayload,
|
|
4
5
|
CloudQuotePayload,
|
|
5
6
|
} from "../../../api-client/types";
|
|
7
|
+
import { getPublishedUsEquityCalendarDay } from "../../../market-data/published-us-sessions";
|
|
8
|
+
import { createTestTicker } from "../../../test-support/ticker";
|
|
9
|
+
import type { Portfolio, TickerRecord } from "../../../types/ticker";
|
|
10
|
+
import { canonicalExchange, normalizeSymbol } from "../../../utils/exchanges";
|
|
6
11
|
export const now = new Date("2026-09-22T12:00:00Z");
|
|
7
12
|
export const instrument = { symbol: "SPY", exchange: "ARCA" };
|
|
8
13
|
export const riskQuote = (symbol = "SPY", listing = "ARCA"): CloudQuotePayload => ({
|
|
@@ -51,3 +56,204 @@ export function riskHistory(): CloudMarketResponse<CloudPricePointPayload[]> {
|
|
|
51
56
|
},
|
|
52
57
|
};
|
|
53
58
|
}
|
|
59
|
+
|
|
60
|
+
/** One synthetic holding of the broker account below. */
|
|
61
|
+
interface BrokerFixtureHolding {
|
|
62
|
+
symbol: string;
|
|
63
|
+
exchange: string;
|
|
64
|
+
currency: string;
|
|
65
|
+
quantity: number;
|
|
66
|
+
/** Listing price in its own currency; null when no market data covers the holding. */
|
|
67
|
+
price: number | null;
|
|
68
|
+
/** The broker's own snapshot market value in `currency`, for holdings no quote values. */
|
|
69
|
+
brokerValue?: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** USD per unit, as the rate endpoint reports each currency. */
|
|
73
|
+
const BROKER_FX_RATES: Readonly<Record<string, number>> = {
|
|
74
|
+
EUR: 1.1,
|
|
75
|
+
GBP: 1.25,
|
|
76
|
+
HKD: 0.128,
|
|
77
|
+
JPY: 0.0068,
|
|
78
|
+
TWD: 0.031,
|
|
79
|
+
};
|
|
80
|
+
export const BROKER_PORTFOLIO: Portfolio = { id: "broker", name: "Broker account", currency: "USD" };
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A synthetic broker account the size of a real one: 85 US listings worth
|
|
84
|
+
* $365,500 (quantity 1 to 85 at $100), six foreign listings worth $88,060 at
|
|
85
|
+
* the rates above and three holdings no market data covers, worth $15,000 in
|
|
86
|
+
* the broker's own snapshot. Covered share: 365,500 / 468,560 = 78.0%.
|
|
87
|
+
*/
|
|
88
|
+
export function brokerFixtureHoldings(): BrokerFixtureHolding[] {
|
|
89
|
+
const us = Array.from({ length: 85 }, (_, index) => ({
|
|
90
|
+
symbol: `US${String(index + 1).padStart(2, "0")}`,
|
|
91
|
+
exchange: index % 2 ? "NYSE" : "NASDAQ",
|
|
92
|
+
currency: "USD",
|
|
93
|
+
quantity: index + 1,
|
|
94
|
+
price: 100,
|
|
95
|
+
}));
|
|
96
|
+
const foreign = [
|
|
97
|
+
{ symbol: "EUR1", exchange: "XETRA", currency: "EUR", quantity: 300, price: 50 },
|
|
98
|
+
{ symbol: "EUR2", exchange: "EPA", currency: "EUR", quantity: 182, price: 100 },
|
|
99
|
+
{ symbol: "GBP1", exchange: "LSE", currency: "GBp", quantity: 500, price: 2_000 },
|
|
100
|
+
{ symbol: "HKD1", exchange: "HKEX", currency: "HKD", quantity: 2_000, price: 40 },
|
|
101
|
+
{ symbol: "JPY1", exchange: "JPX", currency: "JPY", quantity: 500, price: 3_000 },
|
|
102
|
+
{ symbol: "TWD1", exchange: "TWSE", currency: "TWD", quantity: 1_000, price: 600 },
|
|
103
|
+
];
|
|
104
|
+
const unquoted = [
|
|
105
|
+
{ symbol: "UNQ1", exchange: "NASDAQ", currency: "USD", quantity: 400, price: null, brokerValue: 8_000 },
|
|
106
|
+
{ symbol: "UNQ2", exchange: "NYSE", currency: "USD", quantity: 250, price: null, brokerValue: 5_000 },
|
|
107
|
+
{ symbol: "UNQ3", exchange: "NASDAQ", currency: "USD", quantity: 100, price: null, brokerValue: 2_000 },
|
|
108
|
+
];
|
|
109
|
+
// Broker order is alphabetical, so the uncovered holdings sit among the rest.
|
|
110
|
+
return [...us, ...foreign, ...unquoted].sort((a, b) => a.symbol.localeCompare(b.symbol));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function brokerFixtureTickers(
|
|
114
|
+
holdings: readonly BrokerFixtureHolding[] = brokerFixtureHoldings(),
|
|
115
|
+
portfolioId = BROKER_PORTFOLIO.id,
|
|
116
|
+
): TickerRecord[] {
|
|
117
|
+
return holdings.map((holding) =>
|
|
118
|
+
createTestTicker(holding.symbol, holding.symbol, {
|
|
119
|
+
exchange: holding.exchange,
|
|
120
|
+
currency: holding.currency,
|
|
121
|
+
portfolios: [portfolioId],
|
|
122
|
+
positions: [{
|
|
123
|
+
portfolio: portfolioId,
|
|
124
|
+
shares: holding.quantity,
|
|
125
|
+
currency: holding.currency,
|
|
126
|
+
broker: "manual",
|
|
127
|
+
...(holding.brokerValue != null ? { marketValue: holding.brokerValue } : {}),
|
|
128
|
+
}],
|
|
129
|
+
}),
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** Completed US sessions before `asOf`, oldest first. */
|
|
134
|
+
function sessionDates(asOf: Date, count: number): string[] {
|
|
135
|
+
const dates: string[] = [];
|
|
136
|
+
const today = asOf.toISOString().slice(0, 10);
|
|
137
|
+
for (let day = Date.parse(today) - 86_400_000; dates.length < count; day -= 86_400_000) {
|
|
138
|
+
const date = new Date(day).toISOString().slice(0, 10);
|
|
139
|
+
if (getPublishedUsEquityCalendarDay("NYSE", date) === "session") dates.push(date);
|
|
140
|
+
}
|
|
141
|
+
return dates.reverse();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** Each symbol wobbles on its own phase, so the basket, SPY and the factor spreads differ. */
|
|
145
|
+
export function sessionHistory(
|
|
146
|
+
symbol: string,
|
|
147
|
+
exchange: string,
|
|
148
|
+
asOf: Date = now,
|
|
149
|
+
currency = "USD",
|
|
150
|
+
sessions = 130,
|
|
151
|
+
): CloudMarketResponse<CloudPricePointPayload[]> {
|
|
152
|
+
const phase = [...symbol].reduce((sum, char) => sum + char.charCodeAt(0), 0) % 7;
|
|
153
|
+
return {
|
|
154
|
+
status: "success",
|
|
155
|
+
data: sessionDates(asOf, sessions).map((date, index) => {
|
|
156
|
+
const close = 100 + index * (0.05 + phase / 100) + Math.sin(index / 3 + phase) * 3;
|
|
157
|
+
return { date: `${date}T00:00:00.000Z`, open: close, high: close, low: close, close, volume: 100 };
|
|
158
|
+
}),
|
|
159
|
+
providerMeta: { servedResolution: "1d", currency, normalizedSymbol: symbol, normalizedExchange: exchange },
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function fredSeries(id: string, asOf: Date): CloudFredSeriesPayload {
|
|
164
|
+
return {
|
|
165
|
+
info: {
|
|
166
|
+
id,
|
|
167
|
+
title: id,
|
|
168
|
+
units: id === "DGS10" ? "Percent" : "Index",
|
|
169
|
+
frequency: "Daily",
|
|
170
|
+
seasonalAdjustment: "Not Seasonally Adjusted",
|
|
171
|
+
source: "Illustrative",
|
|
172
|
+
notes: "",
|
|
173
|
+
},
|
|
174
|
+
observations: sessionDates(asOf, 130).map((date, index) => ({
|
|
175
|
+
date,
|
|
176
|
+
value: id === "DGS10" ? 4 + Math.sin(index / 5) / 4 : 18 + Math.cos(index / 4) * 2,
|
|
177
|
+
})),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Daily closes of the pair that prices `currency` against the dollar, every
|
|
183
|
+
* weekday as FX trades, wobbling around the rate the endpoint reports.
|
|
184
|
+
*/
|
|
185
|
+
function fxPairHistory(symbol: string, asOf: Date): CloudMarketResponse<CloudPricePointPayload[]> | null {
|
|
186
|
+
const currency = symbol.replace(/(USD)?=X$/, "");
|
|
187
|
+
const rate = BROKER_FX_RATES[currency];
|
|
188
|
+
if (rate == null) return null;
|
|
189
|
+
const usdQuoted = symbol.endsWith("USD=X");
|
|
190
|
+
const data: CloudPricePointPayload[] = [];
|
|
191
|
+
const today = Date.parse(asOf.toISOString().slice(0, 10));
|
|
192
|
+
for (let day = today - 240 * 86_400_000; day < today; day += 86_400_000) {
|
|
193
|
+
if ([0, 6].includes(new Date(day).getUTCDay())) continue;
|
|
194
|
+
const usdPerUnit = rate * (1 + Math.sin(data.length / 5) / 100);
|
|
195
|
+
const close = usdQuoted ? usdPerUnit : 1 / usdPerUnit;
|
|
196
|
+
data.push({ date: new Date(day).toISOString(), open: close, high: close, low: close, close });
|
|
197
|
+
}
|
|
198
|
+
return { status: "success", data, providerMeta: { servedResolution: "1d", normalizedSymbol: symbol } };
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Cloud responses for the broker account: US listings and the factor proxies
|
|
203
|
+
* quote and keep daily history, foreign listings quote in their own currency,
|
|
204
|
+
* the uncovered holdings have neither. Daily FX history exists only with `fx`.
|
|
205
|
+
*/
|
|
206
|
+
export function brokerRiskClient(
|
|
207
|
+
asOf: Date = now,
|
|
208
|
+
holdings: readonly BrokerFixtureHolding[] = brokerFixtureHoldings(),
|
|
209
|
+
{ fx = false }: { fx?: boolean } = {},
|
|
210
|
+
) {
|
|
211
|
+
const bySymbol = new Map(holdings.map((holding) => [normalizeSymbol(holding.symbol), holding]));
|
|
212
|
+
const find = (symbol: string) => bySymbol.get(normalizeSymbol(symbol));
|
|
213
|
+
const calls = { quotes: 0, histories: [] as string[], rates: [] as string[] };
|
|
214
|
+
const client = {
|
|
215
|
+
calls,
|
|
216
|
+
getCloudQuotesBatch: async (requested: Array<{ symbol: string; exchange?: string }>) => {
|
|
217
|
+
calls.quotes += 1;
|
|
218
|
+
return {
|
|
219
|
+
status: "success" as const,
|
|
220
|
+
data: {
|
|
221
|
+
items: requested.map((row) => {
|
|
222
|
+
const holding = find(row.symbol);
|
|
223
|
+
if (holding && holding.price == null)
|
|
224
|
+
return { ...row, status: "empty" as const, data: null };
|
|
225
|
+
return {
|
|
226
|
+
...row,
|
|
227
|
+
status: "success" as const,
|
|
228
|
+
data: {
|
|
229
|
+
...riskQuote(row.symbol, holding?.exchange ?? row.exchange ?? ""),
|
|
230
|
+
currency: holding?.currency ?? "USD",
|
|
231
|
+
price: holding?.price ?? 110,
|
|
232
|
+
lastUpdated: asOf.getTime() - 60_000,
|
|
233
|
+
},
|
|
234
|
+
};
|
|
235
|
+
}),
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
getCloudHistory: async (symbol: string, exchange: string) => {
|
|
240
|
+
calls.histories.push(symbol);
|
|
241
|
+
if (symbol.endsWith("=X"))
|
|
242
|
+
return (fx && fxPairHistory(symbol, asOf)) ||
|
|
243
|
+
{ status: "empty" as const, data: null, reasonCode: "Daily history unavailable" };
|
|
244
|
+
const holding = find(symbol);
|
|
245
|
+
if (holding && holding.price == null)
|
|
246
|
+
return { status: "empty" as const, data: null, reasonCode: "Daily history unavailable" };
|
|
247
|
+
return sessionHistory(symbol, canonicalExchange(exchange), asOf, holding?.currency ?? "USD");
|
|
248
|
+
},
|
|
249
|
+
getCloudFredSeries: async (id: string) => fredSeries(id, asOf),
|
|
250
|
+
getCloudExchangeRate: async (currency: string) => {
|
|
251
|
+
calls.rates.push(currency);
|
|
252
|
+
const rate = BROKER_FX_RATES[currency];
|
|
253
|
+
return rate == null
|
|
254
|
+
? { status: "empty" as const, data: null }
|
|
255
|
+
: { status: "success" as const, data: { rate } };
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
return client;
|
|
259
|
+
}
|
|
@@ -15,16 +15,18 @@ export const attentionHeadless: HeadlessPaneDefinition<"bundle"> = {
|
|
|
15
15
|
const metadata = { asOf: data.asOf, stale: data.stale, complete: data.status === "ready" && !data.truncated,
|
|
16
16
|
status: data.status, periodStart: data.periodStart, periodEnd: data.periodEnd, entitlement: data.entitlement,
|
|
17
17
|
privacy: data.privacy, coverage: data.coverage, methodologyUrl: data.methodologyUrl, selectedListing: data.selectedListing ?? null, historyEvidence: data.historyEvidence ?? null, unit: "rounded researcher-hours" };
|
|
18
|
-
|
|
18
|
+
// Published hour by hour, so not a feed, but the service says when publication has fallen behind.
|
|
19
|
+
const freshness = { status: data.stale ? "stale" as const : "not-a-feed" as const, basis: "hourly publication" };
|
|
20
|
+
if (tab === "sectors" || tab === "countries") return { metadata, freshness, sections: [{ title: tab === "sectors" ? "Sector attention" : "Country attention",
|
|
19
21
|
columns: [{ key: "name", header: "Group" }, { key: "researchUnits", header: "Research hours" }, { key: "sharePct", header: "Share %" }, { key: "tickers", header: "Tickers" }], rows: data[tab].map((row) => ({ ...row })) }] };
|
|
20
|
-
if (tab === "history") return { metadata, sections: [{ title: "Published hourly history", columns: [{ key: "symbol", header: "Ticker" },
|
|
22
|
+
if (tab === "history") return { metadata, freshness, sections: [{ title: "Published hourly history", columns: [{ key: "symbol", header: "Ticker" },
|
|
21
23
|
{ key: "bucketStart", header: "Hour (UTC)" }, { key: "researchUnits", header: "Research hours" }],
|
|
22
24
|
rows: data.history && data.selectedListing ? data.history.map((point) => ({ symbol: data.selectedListing!.symbol, ...point })) : data.rows.flatMap((row) => row.history.map((point) => ({ symbol: row.symbol, ...point }))) }] };
|
|
23
|
-
if (tab === "evidence") return { metadata, sections: [{ title: "Publication evidence", columns: [{ key: "symbol", header: "Ticker" },
|
|
25
|
+
if (tab === "evidence") return { metadata, freshness, sections: [{ title: "Publication evidence", columns: [{ key: "symbol", header: "Ticker" },
|
|
24
26
|
{ key: "periodStart", header: "Period start" }, { key: "periodEnd", header: "Period end" }, { key: "asOf", header: "Published" },
|
|
25
27
|
{ key: "confidence", header: "Quality" }, { key: "marketAsOf", header: "Market as of" }],
|
|
26
28
|
rows: data.rows.map((row) => ({ symbol: row.symbol, ...row.evidence, baselinePeriods: row.baselinePeriods, marketAsOf: row.marketAsOf, news: row.news })) }] };
|
|
27
|
-
return { metadata, sections: [{ title: tab === "abnormal" ? "Abnormal attention" : "Research ranking", columns: [
|
|
29
|
+
return { metadata, freshness, sections: [{ title: tab === "abnormal" ? "Abnormal attention" : "Research ranking", columns: [
|
|
28
30
|
{ key: "rank", header: "Rank" }, { key: "symbol", header: "Ticker" }, { key: "name", header: "Name" }, { key: "researchUnits", header: "Research hours" },
|
|
29
31
|
{ key: "sharePct", header: "Share %" }, { key: "zScore", header: "Latest-hour Z-score" }, { key: "priceChangePct", header: "Price %" },
|
|
30
32
|
{ key: "relativeVolume", header: "Relative volume" }, { key: "sector", header: "Sector" }, { key: "country", header: "Country" },
|
|
@@ -7,7 +7,7 @@ import { AttentionPane } from "./pane";
|
|
|
7
7
|
export const attentionModule: PluginModule = {
|
|
8
8
|
panes: [{ id: "attention", name: "Research Attention", icon: "A", component: AttentionPane, defaultPosition: "right", defaultMode: "floating",
|
|
9
9
|
defaultFloatingSize: { width: 126, height: 32 }, tableExport: true, headless: attentionHeadless },
|
|
10
|
-
{ id: "attention-trending", name: "Gloom Trending", icon: "A", component: TrendingPane, defaultPosition: "right", defaultMode: "floating", defaultFloatingSize: { width: 58, height: 12 } }],
|
|
10
|
+
{ id: "attention-trending", reportFreshness: { status: "not-a-feed", basis: "hourly publication" }, name: "Gloom Trending", icon: "A", component: TrendingPane, defaultPosition: "right", defaultMode: "floating", defaultFloatingSize: { width: 58, height: 12 } }],
|
|
11
11
|
paneTemplates: [{ id: "attention-pane", paneId: "attention", label: "Research Attention",
|
|
12
12
|
description: "Pro research attention: rankings, abnormal activity, sectors, countries and privacy-qualified hourly history.",
|
|
13
13
|
keywords: ["attention", "trending", "research", "activity"], shortcut: { prefix: "ATTN", argKind: "text", argPlaceholder: "TICKER", argOptional: true },
|
|
@@ -159,7 +159,7 @@ export function AttentionPane({ width, height, focused }: PaneProps) {
|
|
|
159
159
|
const cell = (row: AttentionRow | AttentionGroup | Locked, column: DataTableColumn, _index: number, state: { selected: boolean }): DataTableCell => {
|
|
160
160
|
if (isLocked(row)) return desktop ? { text: "", content: <Blurred><Text fg={colors.textDim}>{column.id === "name" ? "Additional research" : "Hidden"}</Text></Blurred> }
|
|
161
161
|
: { text: column.id === columns[0]!.id && row.id === "locked:0" ? "Pro" : "░░░", color: colors.textDim };
|
|
162
|
-
if (column.id === "sharePct") return { ...shareCell(number(row.sharePct, 1), maxShare ? row.sharePct / maxShare : null, column.width, colors, state.selected
|
|
162
|
+
if (column.id === "sharePct") return { ...shareCell(number(row.sharePct, 1), maxShare ? row.sharePct / maxShare : null, column.width, colors, state.selected), value: row.sharePct };
|
|
163
163
|
if ("symbol" in row) {
|
|
164
164
|
const numeric = typeof row[column.id as keyof AttentionRow] === "number" ? row[column.id as keyof AttentionRow] as number : undefined;
|
|
165
165
|
switch (column.id) {
|
|
@@ -15,6 +15,7 @@ const awardRecord = (row: AwardRow) => ({ id: row.id, date: row.awardDate, dateB
|
|
|
15
15
|
|
|
16
16
|
export const awardsHeadless: HeadlessPaneDefinition<"bundle"> = {
|
|
17
17
|
shape: "bundle", argument: { kind: "free-text", optional: true, placeholder: "ticker", description: "Optional verified listed-company ticker, including exchange suffix." },
|
|
18
|
+
freshness: { source: "Public procurement records", status: "not-a-feed", basis: "published awards" },
|
|
18
19
|
discovery: { aliases: ["AWARDS"], dataRequirements: ["Verified Gloom Cloud account"],
|
|
19
20
|
limitations: ["Pro dataset; free accounts receive a limited preview", "Published procurement records; source coverage varies by jurisdiction",
|
|
20
21
|
"Currencies and prime awards, subawards and notices are separate", "Award obligations are not revenue or remaining backlog", "Unresolved recipients retain their legal names"] },
|
|
@@ -240,7 +240,7 @@ function AwardsView({ width, height, focused, symbol }: PaneProps & { symbol: st
|
|
|
240
240
|
if (column.id === "contracts") return { text: item.row.count.toLocaleString("en-US"), value: item.row.count, color: colors.textDim };
|
|
241
241
|
if (column.id === "scope") return { text: awardScope(item.row.source), color: colors.textDim };
|
|
242
242
|
return item.row.sharePercent === null ? missingCell(colors)
|
|
243
|
-
: { ...shareCell(`${item.row.sharePercent.toFixed(1)}%`, maxShare ? item.row.sharePercent / maxShare : null, column.width, colors, state.selected
|
|
243
|
+
: { ...shareCell(`${item.row.sharePercent.toFixed(1)}%`, maxShare ? item.row.sharePercent / maxShare : null, column.width, colors, state.selected), value: item.row.sharePercent };
|
|
244
244
|
}
|
|
245
245
|
const award = item.row;
|
|
246
246
|
if (column.id === "date") return { text: award.awardDate, value: award.awardDate };
|
|
@@ -8,6 +8,7 @@ import { parseRule } from "./rules";
|
|
|
8
8
|
|
|
9
9
|
export const backtestHeadless: HeadlessPaneDefinition<"bundle"> = {
|
|
10
10
|
shape: "bundle",
|
|
11
|
+
freshness: { status: "not-a-feed", basis: "backtest on daily closes", cadence: "daily", observedKey: "date", oldest: null },
|
|
11
12
|
argument: { kind: "ticker", description: "Instrument to test" },
|
|
12
13
|
describe: (args) => `BT ${args.symbols[0] ?? ""}`,
|
|
13
14
|
discovery: {
|
|
@@ -32,6 +32,7 @@ export const bondCalculatorHeadless: HeadlessPaneDefinition<"bundle"> = {
|
|
|
32
32
|
return {
|
|
33
33
|
complete: errors.length === 0,
|
|
34
34
|
errors,
|
|
35
|
+
freshness: { source: "Your inputs, US Treasury", status: "not-a-feed", basis: "calculator", asOf: result.spread?.asOf ?? null },
|
|
35
36
|
metadata: { settlement: draft.settlement, terms: result.terms, source: "Manual bond inputs; Treasury par yields via Gloom Cloud / FRED",
|
|
36
37
|
treasuryAsOf: result.spread?.asOf ?? null, percentile: null, percentileReason: "Hypothetical bond has no historical sample", units: "Prices and DV01 per 100 face", mode: draft.mode },
|
|
37
38
|
sections: [
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { TextAttributes } from "../../../ui";
|
|
2
|
-
import type
|
|
2
|
+
import { TickerBadgeList, type DataTableCell } from "../../../components";
|
|
3
3
|
import { colors } from "../../../theme/colors";
|
|
4
4
|
import { formatRelativeTime } from "../../../utils/datetime-format";
|
|
5
5
|
import {
|
|
6
6
|
CompanyCell,
|
|
7
7
|
FavoriteCell,
|
|
8
|
-
tickerBadges,
|
|
9
8
|
} from "./detail";
|
|
10
9
|
import type { BuildoutColumn, BuildoutRow } from "./model/types";
|
|
11
10
|
import {
|
|
@@ -136,11 +135,13 @@ export function renderBuildoutCell(
|
|
|
136
135
|
if (ownerTicker) {
|
|
137
136
|
return {
|
|
138
137
|
text: ownerTicker,
|
|
139
|
-
content:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
content: (
|
|
139
|
+
<TickerBadgeList
|
|
140
|
+
symbols={[ownerTicker]}
|
|
141
|
+
width={column.width}
|
|
142
|
+
fallbackColor={rowState.selected ? colors.selectedText : colors.textBright}
|
|
143
|
+
/>
|
|
144
|
+
),
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
147
|
return { text: text(site.ownerName), color: colors.textDim };
|
|
@@ -174,11 +175,13 @@ export function renderBuildoutCell(
|
|
|
174
175
|
return symbols.length > 0
|
|
175
176
|
? {
|
|
176
177
|
text: symbols.join(" "),
|
|
177
|
-
content:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
content: (
|
|
179
|
+
<TickerBadgeList
|
|
180
|
+
symbols={symbols}
|
|
181
|
+
width={column.width}
|
|
182
|
+
fallbackColor={rowState.selected ? colors.selectedText : colors.textBright}
|
|
183
|
+
/>
|
|
184
|
+
),
|
|
182
185
|
}
|
|
183
186
|
: { text: text(update.companies?.map((company) => company.name).filter(Boolean).join(", ")), color: colors.textDim };
|
|
184
187
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Section } from "../../../../components";
|
|
1
|
+
import { Section, TickerBadgeList } from "../../../../components";
|
|
2
2
|
import { formatMarketPriceWithCurrency, liveQuoteFormatOptions } from "../../../../market-data/market/format";
|
|
3
3
|
import { useInlineTickerQuote } from "../../../../state/hooks/inline-tickers";
|
|
4
4
|
import { useTickerQuoteStream } from "../../../../state/hooks/live-ticker-financials";
|
|
@@ -10,7 +10,7 @@ import { formatCompact } from "../../../../utils/format";
|
|
|
10
10
|
import { truncateWithEllipsis } from "../../../../utils/text-wrap";
|
|
11
11
|
import { activityLabel, criticalityColor, dateShort, metricColor, metricNumber, textOrNull, tickerSymbol } from "../format";
|
|
12
12
|
import type { BuildoutCompany } from "../model/types";
|
|
13
|
-
import { DetailListLine, DetailSpecGrid, MarkdownBlock, RelatedCompaniesLine,
|
|
13
|
+
import { DetailListLine, DetailSpecGrid, MarkdownBlock, RelatedCompaniesLine, type DetailSpec, type InlineTickerCatalog } from "./ui";
|
|
14
14
|
import { dateCell, detailListValues, recommendationColor, valueWithOriginal } from "./values";
|
|
15
15
|
|
|
16
16
|
interface LiveCompanyValues {
|
|
@@ -112,7 +112,7 @@ export function CompanyDetail({
|
|
|
112
112
|
<>
|
|
113
113
|
{company.ticker ? (
|
|
114
114
|
<Box flexDirection="row" height={1}>
|
|
115
|
-
|
|
115
|
+
<TickerBadgeList symbols={[company.ticker]} width={Math.min(bodyWidth, 16)} />
|
|
116
116
|
</Box>
|
|
117
117
|
) : null}
|
|
118
118
|
<CompanyOverviewGrid
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Badge } from "../../../../components";
|
|
1
|
+
import { Badge, TickerBadgeList } from "../../../../components";
|
|
2
2
|
import { RemoteImage } from "../../../../components/ui";
|
|
3
3
|
import { colors } from "../../../../theme/colors";
|
|
4
4
|
import { Box, Text } from "../../../../ui";
|
|
5
5
|
import { dateDetail, intelSourceDomains, tickerSymbol } from "../format";
|
|
6
6
|
import type { BuildoutRow } from "../model/types";
|
|
7
|
-
import { InlineSources, MarkdownBlock,
|
|
7
|
+
import { InlineSources, MarkdownBlock, type InlineTickerCatalog } from "./ui";
|
|
8
8
|
|
|
9
9
|
type BuildoutIntel = Extract<BuildoutRow, { kind: "intel" }>["item"];
|
|
10
10
|
|
|
@@ -29,10 +29,10 @@ export function IntelDetail({
|
|
|
29
29
|
</Box>
|
|
30
30
|
{(item.companies?.length ?? 0) > 0 && (
|
|
31
31
|
<Box marginTop={1} height={1}>
|
|
32
|
-
|
|
33
|
-
symbols
|
|
34
|
-
width
|
|
35
|
-
|
|
32
|
+
<TickerBadgeList
|
|
33
|
+
symbols={item.companies!.map((company) => tickerSymbol(company.ticker) ?? "")}
|
|
34
|
+
width={Math.min(bodyWidth, 56)}
|
|
35
|
+
/>
|
|
36
36
|
</Box>
|
|
37
37
|
)}
|
|
38
38
|
{item.imageUrl ? (
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Section } from "../../../../components";
|
|
1
|
+
import { Section, TickerBadgeList } from "../../../../components";
|
|
2
2
|
import { colors } from "../../../../theme/colors";
|
|
3
3
|
import { Box, Text } from "../../../../ui";
|
|
4
4
|
import { truncateWithEllipsis } from "../../../../utils/text-wrap";
|
|
5
5
|
import { activityColor, activityLabel, dateShort, sourceDomains } from "../format";
|
|
6
6
|
import type { BuildoutSite } from "../model/types";
|
|
7
7
|
import { SiteSatelliteImages } from "./satellite-images";
|
|
8
|
-
import { DetailSpecGrid, InlineSources, MarkdownBlock, SourceDetailLines,
|
|
8
|
+
import { DetailSpecGrid, InlineSources, MarkdownBlock, SourceDetailLines, type InlineTickerCatalog } from "./ui";
|
|
9
9
|
import { booleanText, dateCell, metadataSpecs, reportSectionText } from "./values";
|
|
10
10
|
|
|
11
11
|
export function SiteDetail({
|
|
@@ -28,7 +28,7 @@ export function SiteDetail({
|
|
|
28
28
|
<>
|
|
29
29
|
{site.ownerTicker ? (
|
|
30
30
|
<Box flexDirection="row" height={1}>
|
|
31
|
-
|
|
31
|
+
<TickerBadgeList symbols={[site.ownerTicker]} width={Math.min(bodyWidth, 16)} />
|
|
32
32
|
</Box>
|
|
33
33
|
) : null}
|
|
34
34
|
<DetailSpecGrid
|
|
@@ -99,10 +99,7 @@ export function SiteDetail({
|
|
|
99
99
|
<Box key={`${builder.companyName}-${index}`} flexDirection="column" marginTop={index === 0 ? 0 : 1}>
|
|
100
100
|
<Box flexDirection="row" height={1}>
|
|
101
101
|
{builder.companyTicker
|
|
102
|
-
?
|
|
103
|
-
symbols: [builder.companyTicker],
|
|
104
|
-
width: Math.min(12, bodyWidth),
|
|
105
|
-
})
|
|
102
|
+
? <TickerBadgeList symbols={[builder.companyTicker]} width={Math.min(12, bodyWidth)} />
|
|
106
103
|
: null}
|
|
107
104
|
<Text fg={colors.textMuted}>
|
|
108
105
|
{truncateWithEllipsis(`${builder.companyName ?? "Company"}${builder.role ? ` - ${builder.role}` : ""}`, Math.max(0, bodyWidth - (builder.companyTicker ? 12 : 0)))}
|