gloomberb 0.15.7 → 0.16.0
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 +11 -2
- package/package.json +1 -1
- package/src/api-client/app-attention.ts +147 -0
- package/src/api-client/attention.ts +26 -0
- package/src/api-client/awards.ts +215 -0
- package/src/api-client/catalysts.ts +160 -0
- package/src/api-client/chat.ts +137 -14
- package/src/api-client/company-kpis.ts +153 -0
- package/src/api-client/cpi.ts +52 -0
- package/src/api-client/credit-documents.ts +107 -0
- package/src/api-client/data.ts +192 -3
- package/src/api-client/distress.ts +164 -0
- package/src/api-client/doe.ts +75 -0
- package/src/api-client/equity-screener.ts +11 -0
- package/src/api-client/exposure.ts +202 -0
- package/src/api-client/gpu.ts +93 -0
- package/src/api-client/hiring.ts +110 -0
- package/src/api-client/index.ts +78 -3
- package/src/api-client/normalizers.ts +31 -1
- package/src/api-client/paths.ts +3 -0
- package/src/api-client/perps.ts +127 -0
- package/src/api-client/power.ts +148 -0
- package/src/api-client/request.ts +58 -1
- package/src/api-client/research-activity.ts +172 -13
- package/src/api-client/socket.ts +75 -27
- package/src/api-client/supply-chain-graph.ts +40 -0
- package/src/api-client/supply-chain.ts +98 -0
- package/src/api-client/telemetry.ts +29 -0
- package/src/api-client/themes.ts +28 -0
- package/src/api-client/types.ts +33 -1
- package/src/api-client/wall-experiments.ts +100 -0
- package/src/api-client/wall-summary.ts +49 -0
- package/src/api-client/web-experiments.ts +136 -0
- package/src/app/pane-runtime/plugin-bindings.ts +5 -0
- package/src/app/pane-runtime/ticker-open-runtime.ts +8 -2
- package/src/app/runtime/update.ts +13 -1
- package/src/cli/commands/system.ts +2 -0
- package/src/cli/desktop-pane-shot.ts +3 -4
- package/src/cli/pane-functions/data.ts +78 -0
- package/src/cli/pane-functions/financial-ratio-shot.ts +160 -0
- package/src/cli/pane-functions/function-help.ts +220 -8
- package/src/cli/pane-functions/headless.ts +4 -0
- package/src/cli/pane-functions/screenshot-evidence.ts +21 -0
- package/src/cli/pane-functions/screenshot.ts +49 -5
- package/src/components/chart/composite/composite-chart.tsx +15 -2
- package/src/components/chart/composite/format.ts +24 -11
- package/src/components/chart/composite/rasterizer.ts +67 -16
- package/src/components/chart/composite/scene.ts +53 -2
- package/src/components/chart/composite/session-shading.ts +3 -2
- package/src/components/chart/composite/text-renderer.ts +52 -1
- package/src/components/chart/composite/time-axis.ts +100 -30
- package/src/components/chart/composite/tools.ts +2 -1
- package/src/components/chart/composite/types.ts +4 -0
- package/src/components/chart-table/index.ts +1 -0
- package/src/components/chart-table/layout.ts +15 -0
- package/src/components/command-bar/action-runtime.ts +1 -0
- package/src/components/command-bar/commands/direct/index.ts +32 -0
- package/src/components/command-bar/commands/registry.ts +7 -0
- package/src/components/command-bar/pane-templates/items.ts +11 -0
- package/src/components/command-bar/pane-templates/workflow.ts +19 -4
- package/src/components/command-bar/routes/root/command-items.ts +6 -0
- package/src/components/command-bar/routes/root/provider-search.ts +2 -0
- package/src/components/command-bar/routes/root/results.ts +64 -0
- package/src/components/command-bar/routes/root/runtime.ts +8 -0
- package/src/components/command-bar/routes/ticker-search/results.ts +89 -24
- package/src/components/command-bar/routes/ticker-search/route.ts +2 -0
- package/src/components/command-bar/surface/index.tsx +15 -0
- package/src/components/command-bar/view-model.ts +3 -0
- package/src/components/command-bar/workflow/collection-actions.ts +9 -7
- package/src/components/command-bar/workflow/ops.ts +19 -0
- package/src/components/command-bar/workflow/tickers.ts +5 -0
- package/src/components/company-logo.tsx +15 -2
- package/src/components/data-table/table-pane.ts +2 -1
- package/src/components/index.ts +1 -0
- package/src/components/layout/detached-pane-shell.tsx +12 -1
- package/src/components/layout/missing-pane.tsx +87 -23
- package/src/components/layout/pane/footer/index.tsx +64 -18
- package/src/components/layout/pane/footer/model.ts +85 -0
- package/src/components/layout/pane/sidebar.tsx +19 -1
- package/src/components/layout/shell/index.tsx +38 -28
- package/src/components/layout/shell/pane/management-shortcuts.ts +13 -1
- package/src/components/layout/status-bar.tsx +93 -28
- package/src/components/layout/status-widget-space.ts +72 -0
- package/src/components/onboarding/first-run-workspace.ts +8 -2
- package/src/components/onboarding/onboarding-wizard.tsx +35 -16
- package/src/components/onboarding/portfolio-step/positions-panel.tsx +14 -5
- package/src/components/onboarding/wizard-model.ts +13 -5
- package/src/components/onboarding/wizard-positions.ts +56 -7
- package/src/components/price-performance.tsx +31 -34
- package/src/components/ui/data-table/index.tsx +11 -8
- package/src/components/ui/display.tsx +15 -6
- package/src/components/ui/fields.tsx +5 -0
- package/src/components/ui/figure.tsx +94 -0
- package/src/components/ui/header-case.ts +25 -3
- package/src/components/ui/icon.tsx +3 -1
- package/src/components/ui/message-composer.tsx +8 -1
- package/src/components/ui/query-bar.tsx +8 -1
- package/src/components/ui/ratio-bar.tsx +84 -0
- package/src/components/ui/toggle.tsx +3 -1
- package/src/components/use-scrollbox-layout.ts +17 -0
- package/src/core/state/app/layout.ts +35 -1
- package/src/core/state/app/state.ts +15 -0
- package/src/core/state/app/types.ts +1 -0
- package/src/data/config/store/normalize.ts +24 -0
- package/src/i18n/es.ts +2 -0
- package/src/i18n/ja.ts +2 -0
- package/src/i18n/ko.ts +2 -0
- package/src/i18n/zh-cn.ts +2 -0
- package/src/i18n/zh-tw.ts +2 -0
- package/src/layout-marketplace/pane-imagery.ts +1 -0
- package/src/market-data/coordinator/entries.ts +13 -0
- package/src/market-data/coordinator/financials.ts +33 -8
- package/src/market-data/market/freshness.ts +16 -5
- package/src/market-data/market/trading-sessions.ts +65 -1
- package/src/market-data/published-cn-sessions.ts +25 -0
- package/src/market-data/published-nse-sessions.ts +20 -0
- package/src/news/aggregator.ts +4 -0
- package/src/plugins/builtin/account-management/model.ts +6 -1
- package/src/plugins/builtin/account-management/pane.tsx +36 -25
- package/src/plugins/builtin/alerts/catalysts.ts +77 -0
- package/src/plugins/builtin/alerts/events-pane.tsx +3 -0
- package/src/plugins/builtin/alerts/events.ts +10 -4
- package/src/plugins/builtin/alerts/history-pane.tsx +1 -1
- package/src/plugins/builtin/alerts/history.ts +1 -0
- package/src/plugins/builtin/alerts/index.tsx +6 -0
- package/src/plugins/builtin/alerts/research-builder.ts +10 -3
- package/src/plugins/builtin/alerts/research-rules.ts +15 -1
- package/src/plugins/builtin/analytics/risk-client.ts +15 -3
- package/src/plugins/builtin/analytics/risk-headless.ts +123 -18
- package/src/plugins/builtin/attention/client.ts +80 -0
- package/src/plugins/builtin/attention/evidence.ts +30 -0
- package/src/plugins/builtin/attention/headless.ts +33 -0
- package/src/plugins/builtin/attention/index.tsx +18 -0
- package/src/plugins/builtin/attention/model.ts +59 -0
- package/src/plugins/builtin/attention/pane.tsx +211 -0
- package/src/plugins/builtin/attention/trending.tsx +59 -0
- package/src/plugins/builtin/awards/alerts.ts +32 -0
- package/src/plugins/builtin/awards/client.ts +82 -0
- package/src/plugins/builtin/awards/detail.tsx +107 -0
- package/src/plugins/builtin/awards/evidence.ts +36 -0
- package/src/plugins/builtin/awards/headless.ts +55 -0
- package/src/plugins/builtin/awards/index.tsx +20 -0
- package/src/plugins/builtin/awards/model.ts +42 -0
- package/src/plugins/builtin/awards/pane.tsx +263 -0
- package/src/plugins/builtin/catalysts/client.ts +28 -0
- package/src/plugins/builtin/catalysts/detail.tsx +88 -0
- package/src/plugins/builtin/catalysts/evidence.ts +47 -0
- package/src/plugins/builtin/catalysts/headless.ts +42 -0
- package/src/plugins/builtin/catalysts/history.ts +26 -0
- package/src/plugins/builtin/catalysts/index.tsx +29 -0
- package/src/plugins/builtin/catalysts/model.ts +135 -0
- package/src/plugins/builtin/catalysts/pane.tsx +159 -0
- package/src/plugins/builtin/chart-composer/cli-options.ts +4 -0
- package/src/plugins/builtin/chart-composer/headless-schema.ts +6 -0
- package/src/plugins/builtin/chart-composer/index.tsx +8 -1
- package/src/plugins/builtin/chart-composer/pane.tsx +28 -1
- package/src/plugins/builtin/chat/attachments/desktop.tsx +610 -0
- package/src/plugins/builtin/chat/attachments/files.ts +45 -0
- package/src/plugins/builtin/chat/attachments/model.ts +164 -0
- package/src/plugins/builtin/chat/attachments/terminal.tsx +72 -0
- package/src/plugins/builtin/chat/attachments/transfer.ts +165 -0
- package/src/plugins/builtin/chat/content/channel-navigation.ts +13 -12
- package/src/plugins/builtin/chat/content/composer-runtime.ts +25 -4
- package/src/plugins/builtin/chat/content/composer.tsx +46 -4
- package/src/plugins/builtin/chat/content/footer.tsx +46 -8
- package/src/plugins/builtin/chat/content/index.tsx +263 -62
- package/src/plugins/builtin/chat/content/layout-metrics.ts +10 -2
- package/src/plugins/builtin/chat/content/open-targets.ts +17 -3
- package/src/plugins/builtin/chat/content/scroll.ts +7 -1
- package/src/plugins/builtin/chat/content/shortcuts.ts +36 -11
- package/src/plugins/builtin/chat/content/snapshot.ts +3 -0
- package/src/plugins/builtin/chat/content/transcript.tsx +17 -1
- package/src/plugins/builtin/chat/content/types.ts +7 -0
- package/src/plugins/builtin/chat/controller/attachments.ts +213 -0
- package/src/plugins/builtin/chat/controller/connections.ts +3 -1
- package/src/plugins/builtin/chat/controller/index.ts +114 -2
- package/src/plugins/builtin/chat/controller/lifecycle.ts +9 -0
- package/src/plugins/builtin/chat/controller/messages.ts +35 -2
- package/src/plugins/builtin/chat/controller/send.ts +128 -25
- package/src/plugins/builtin/chat/controller/state.ts +12 -1
- package/src/plugins/builtin/chat/controller/utils.ts +7 -5
- package/src/plugins/builtin/chat/controller/view.ts +2 -0
- package/src/plugins/builtin/chat/index.tsx +21 -0
- package/src/plugins/builtin/chat/layout.ts +9 -4
- package/src/plugins/builtin/chat/message/desktop.tsx +55 -20
- package/src/plugins/builtin/chat/message/header.tsx +30 -5
- package/src/plugins/builtin/chat/message/inline-tokens.tsx +9 -0
- package/src/plugins/builtin/chat/message/pending-send.ts +35 -0
- package/src/plugins/builtin/chat/message/profile-popover.tsx +5 -1
- package/src/plugins/builtin/chat/message/render-state.ts +12 -2
- package/src/plugins/builtin/chat/message/terminal.tsx +51 -4
- package/src/plugins/builtin/chat/message/types.ts +6 -1
- package/src/plugins/builtin/chat/pane-state.ts +59 -1
- package/src/plugins/builtin/chat/profile-popover.ts +50 -1
- package/src/plugins/builtin/chat/sidebar.tsx +8 -3
- package/src/plugins/builtin/chat/status-widget.tsx +29 -12
- package/src/plugins/builtin/chat/unread-inbox-pane.tsx +143 -0
- package/src/plugins/builtin/chat/unread-inbox.ts +91 -0
- package/src/plugins/builtin/clinical-trials/client.ts +237 -0
- package/src/plugins/builtin/clinical-trials/index.tsx +74 -0
- package/src/plugins/builtin/clinical-trials/pane.tsx +225 -0
- package/src/plugins/builtin/clinical-trials/types.ts +2 -0
- package/src/plugins/builtin/cloud/askg/controller.ts +37 -6
- package/src/plugins/builtin/cloud/askg/executor.ts +59 -44
- package/src/plugins/builtin/cloud/askg/host.ts +8 -1
- package/src/plugins/builtin/cloud/askg/manifest.ts +29 -2
- package/src/plugins/builtin/cloud/askg/model.ts +47 -13
- package/src/plugins/builtin/cloud/askg/notes.ts +100 -0
- package/src/plugins/builtin/cloud/askg/pane.tsx +50 -14
- package/src/plugins/builtin/cloud/askg/protocol.ts +39 -1
- package/src/plugins/builtin/cloud/askg/result-budget.ts +156 -0
- package/src/plugins/builtin/cloud/askg/user-data.ts +89 -0
- package/src/plugins/builtin/cloud/auth-actions.tsx +55 -31
- package/src/plugins/builtin/cloud/plugin.tsx +4 -1
- package/src/plugins/builtin/cloud/team/pane-sections.tsx +10 -1
- package/src/plugins/builtin/cloud/team/pane.tsx +3 -2
- package/src/plugins/builtin/cloud/thesis/board-pane.tsx +2 -2
- package/src/plugins/builtin/cloud/thesis/detail.tsx +1 -1
- package/src/plugins/builtin/cloud/thesis/ticker-tab.tsx +2 -2
- package/src/plugins/builtin/cloud/trial-offer-status-widget.tsx +202 -0
- package/src/plugins/builtin/cloud/upgrade-command.ts +1 -1
- package/src/plugins/builtin/cloud/upgrade-dialog.tsx +29 -3
- package/src/plugins/builtin/cloud/upgrade-status-widget.tsx +1 -1
- package/src/plugins/builtin/cloud-tweets/table.tsx +1 -1
- package/src/plugins/builtin/comment-letters/client.ts +342 -0
- package/src/plugins/builtin/comment-letters/index.tsx +74 -0
- package/src/plugins/builtin/comment-letters/pane.tsx +295 -0
- package/src/plugins/builtin/comment-letters/types.ts +43 -0
- package/src/plugins/builtin/company-attention/app-rank.tsx +79 -0
- package/src/plugins/builtin/company-attention/client.ts +69 -0
- package/src/plugins/builtin/company-attention/evidence.ts +45 -0
- package/src/plugins/builtin/company-attention/headless.ts +47 -0
- package/src/plugins/builtin/company-attention/index.tsx +30 -0
- package/src/plugins/builtin/company-attention/model.ts +129 -0
- package/src/plugins/builtin/company-attention/pane.tsx +183 -0
- package/src/plugins/builtin/company-kpis/client.ts +92 -0
- package/src/plugins/builtin/company-kpis/headless.ts +32 -0
- package/src/plugins/builtin/company-kpis/index.tsx +26 -0
- package/src/plugins/builtin/company-kpis/model.ts +124 -0
- package/src/plugins/builtin/company-kpis/pane.tsx +226 -0
- package/src/plugins/builtin/company-kpis/related.ts +11 -0
- package/src/plugins/builtin/company-kpis/screenshot-evidence.ts +44 -0
- package/src/plugins/builtin/composite-plugins.ts +34 -0
- package/src/plugins/builtin/correlation/history.ts +4 -1
- package/src/plugins/builtin/correlation/index.tsx +139 -80
- package/src/plugins/builtin/correlation/matrix/pair-chart.tsx +48 -0
- package/src/plugins/builtin/correlation/matrix/selection.ts +77 -0
- package/src/plugins/builtin/correlation/relationship/model.ts +2 -2
- package/src/plugins/builtin/cpi/client.ts +66 -0
- package/src/plugins/builtin/cpi/headless.ts +78 -0
- package/src/plugins/builtin/cpi/index.tsx +31 -0
- package/src/plugins/builtin/cpi/model.ts +198 -0
- package/src/plugins/builtin/cpi/pane.tsx +157 -0
- package/src/plugins/builtin/credit-documents/client.ts +99 -0
- package/src/plugins/builtin/credit-documents/detail.tsx +109 -0
- package/src/plugins/builtin/credit-documents/evidence.ts +64 -0
- package/src/plugins/builtin/credit-documents/gauge.tsx +55 -0
- package/src/plugins/builtin/credit-documents/headless.ts +40 -0
- package/src/plugins/builtin/credit-documents/index.tsx +19 -0
- package/src/plugins/builtin/credit-documents/model.ts +336 -0
- package/src/plugins/builtin/credit-documents/pane.tsx +185 -0
- package/src/plugins/builtin/custom-view/view-spec.ts +14 -2
- package/src/plugins/builtin/debt-maturities/pane.tsx +1 -0
- package/src/plugins/builtin/dividend-yield/pane.tsx +1 -1
- package/src/plugins/builtin/doe/client.ts +73 -0
- package/src/plugins/builtin/doe/headless.ts +93 -0
- package/src/plugins/builtin/doe/index.tsx +41 -0
- package/src/plugins/builtin/doe/model.ts +215 -0
- package/src/plugins/builtin/doe/pane.tsx +148 -0
- package/src/plugins/builtin/doe/range-bar.tsx +45 -0
- package/src/plugins/builtin/earnings/board.tsx +3 -0
- package/src/plugins/builtin/earnings/index.tsx +2 -0
- package/src/plugins/builtin/earnings-calls/pane.tsx +7 -1
- package/src/plugins/builtin/earnings-calls/transcript-view.tsx +7 -7
- package/src/plugins/builtin/earnings-ripple/client.ts +60 -0
- package/src/plugins/builtin/earnings-ripple/headless.ts +35 -0
- package/src/plugins/builtin/earnings-ripple/index.tsx +35 -0
- package/src/plugins/builtin/earnings-ripple/model.ts +98 -0
- package/src/plugins/builtin/earnings-ripple/pane.tsx +103 -0
- package/src/plugins/builtin/equity-screener/client.ts +1 -1
- package/src/plugins/builtin/equity-screener/criterion-editor.tsx +1 -1
- package/src/plugins/builtin/equity-screener/model.ts +74 -9
- package/src/plugins/builtin/equity-screener/pane.tsx +2 -0
- package/src/plugins/builtin/estimate-revisions/pane.tsx +3 -0
- package/src/plugins/builtin/executives/pane.tsx +7 -5
- package/src/plugins/builtin/exposure/charts.tsx +66 -0
- package/src/plugins/builtin/exposure/client.ts +53 -0
- package/src/plugins/builtin/exposure/drivers.ts +29 -0
- package/src/plugins/builtin/exposure/editor.tsx +61 -0
- package/src/plugins/builtin/exposure/evidence.ts +39 -0
- package/src/plugins/builtin/exposure/headless.ts +51 -0
- package/src/plugins/builtin/exposure/holdings.ts +56 -0
- package/src/plugins/builtin/exposure/index.tsx +13 -0
- package/src/plugins/builtin/exposure/model.ts +104 -0
- package/src/plugins/builtin/exposure/pane.tsx +247 -0
- package/src/plugins/builtin/fear-greed/charts.tsx +1 -1
- package/src/plugins/builtin/fear-greed/pane.tsx +2 -9
- package/src/plugins/builtin/filing-events/pane.tsx +2 -1
- package/src/plugins/builtin/gpu/board.tsx +163 -0
- package/src/plugins/builtin/gpu/changes.tsx +94 -0
- package/src/plugins/builtin/gpu/client.ts +130 -0
- package/src/plugins/builtin/gpu/equities.tsx +112 -0
- package/src/plugins/builtin/gpu/headless.ts +67 -0
- package/src/plugins/builtin/gpu/history.tsx +140 -0
- package/src/plugins/builtin/gpu/index.tsx +18 -0
- package/src/plugins/builtin/gpu/ladder.tsx +127 -0
- package/src/plugins/builtin/gpu/model.ts +317 -0
- package/src/plugins/builtin/gpu/pane.tsx +63 -0
- package/src/plugins/builtin/help/index.tsx +19 -2
- package/src/plugins/builtin/holders/pane.tsx +5 -9
- package/src/plugins/builtin/insider/detail.tsx +119 -0
- package/src/plugins/builtin/insider/display.ts +221 -0
- package/src/plugins/builtin/insider/headless.ts +24 -3
- package/src/plugins/builtin/insider/index.tsx +206 -108
- package/src/plugins/builtin/insider/insider-data.ts +31 -3
- package/src/plugins/builtin/insider/model.ts +53 -4
- package/src/plugins/builtin/insider/table-model.ts +226 -0
- package/src/plugins/builtin/insider/table.tsx +79 -0
- package/src/plugins/builtin/iv-history/screen-pane.tsx +1 -1
- package/src/plugins/builtin/jobs/pane.tsx +14 -7
- package/src/plugins/builtin/kelly-sizer/pane.tsx +1 -1
- package/src/plugins/builtin/macro-day/client.ts +50 -0
- package/src/plugins/builtin/macro-day/headless.ts +51 -0
- package/src/plugins/builtin/macro-day/index.tsx +21 -0
- package/src/plugins/builtin/macro-day/model.ts +137 -0
- package/src/plugins/builtin/macro-day/pane.tsx +118 -0
- package/src/plugins/builtin/macro-day/releases.ts +58 -0
- package/src/plugins/builtin/market-halts/model.ts +30 -17
- package/src/plugins/builtin/market-halts/pane.tsx +15 -21
- package/src/plugins/builtin/market-heatmap/data.ts +1 -1
- package/src/plugins/builtin/market-heatmap/index.tsx +198 -50
- package/src/plugins/builtin/market-heatmap/portfolio.ts +220 -0
- package/src/plugins/builtin/market-movers/index.tsx +1 -0
- package/src/plugins/builtin/market-movers/session-body.tsx +5 -2
- package/src/plugins/builtin/mna/distress/client.ts +326 -0
- package/src/plugins/builtin/mna/distress/detail.tsx +247 -0
- package/src/plugins/builtin/mna/distress/headless.ts +257 -0
- package/src/plugins/builtin/mna/distress/model.ts +427 -0
- package/src/plugins/builtin/mna/distress/pane.tsx +606 -0
- package/src/plugins/builtin/mna/index.tsx +15 -0
- package/src/plugins/builtin/mna/pane.tsx +42 -1
- package/src/plugins/builtin/news/index.tsx +62 -16
- package/src/plugins/builtin/news/wire/filter-articles.ts +54 -0
- package/src/plugins/builtin/news/wire/index.tsx +37 -3
- package/src/plugins/builtin/news/wire/industry-pane.tsx +29 -13
- package/src/plugins/builtin/news/wire/mutes.ts +253 -0
- package/src/plugins/builtin/news/wire/news/command-bar-search.ts +117 -0
- package/src/plugins/builtin/news/wire/news/footer.ts +4 -0
- package/src/plugins/builtin/news/wire/news/list-search.ts +34 -0
- package/src/plugins/builtin/news/wire/news/pop-out.tsx +158 -0
- package/src/plugins/builtin/news/wire/news/preset-pane.tsx +64 -19
- package/src/plugins/builtin/openfda/client.ts +300 -0
- package/src/plugins/builtin/openfda/index.tsx +71 -0
- package/src/plugins/builtin/openfda/pane.tsx +382 -0
- package/src/plugins/builtin/openfda/types.ts +76 -0
- package/src/plugins/builtin/options/footer.ts +1 -0
- package/src/plugins/builtin/options/view.tsx +1 -1
- package/src/plugins/builtin/options-calculator/pane.tsx +0 -1
- package/src/plugins/builtin/options-positioning/index.tsx +4 -2
- package/src/plugins/builtin/options-positioning/pane.tsx +1 -1
- package/src/plugins/builtin/pe-band/client.ts +61 -0
- package/src/plugins/builtin/pe-band/headless.ts +51 -0
- package/src/plugins/builtin/pe-band/index.tsx +20 -0
- package/src/plugins/builtin/pe-band/model.ts +267 -0
- package/src/plugins/builtin/pe-band/pane.tsx +159 -0
- package/src/plugins/builtin/perps/client.ts +66 -0
- package/src/plugins/builtin/perps/equity-row.tsx +28 -0
- package/src/plugins/builtin/perps/headless.ts +34 -0
- package/src/plugins/builtin/perps/index.tsx +14 -0
- package/src/plugins/builtin/perps/model.ts +58 -0
- package/src/plugins/builtin/perps/pane.tsx +185 -0
- package/src/plugins/builtin/plugin-marketplace/pane.tsx +0 -1
- package/src/plugins/builtin/portfolio-list/cli/render.ts +177 -87
- package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +6 -20
- package/src/plugins/builtin/portfolio-list/command-bar.ts +6 -2
- package/src/plugins/builtin/portfolio-list/headless.ts +237 -0
- package/src/plugins/builtin/portfolio-list/index.tsx +2 -0
- package/src/plugins/builtin/portfolio-list/mutations.ts +70 -1
- package/src/plugins/builtin/portfolio-list/pane/data.ts +17 -0
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +88 -5
- package/src/plugins/builtin/portfolio-list/pane/remove-ticker.ts +85 -0
- package/src/plugins/builtin/portfolio-list/pane/streaming.ts +18 -12
- package/src/plugins/builtin/portfolio-list/quick-add/index.tsx +6 -0
- package/src/plugins/builtin/power/client.ts +100 -0
- package/src/plugins/builtin/power/detail.tsx +82 -0
- package/src/plugins/builtin/power/evidence.ts +56 -0
- package/src/plugins/builtin/power/generation.tsx +37 -0
- package/src/plugins/builtin/power/headless.ts +43 -0
- package/src/plugins/builtin/power/index.tsx +16 -0
- package/src/plugins/builtin/power/model.ts +89 -0
- package/src/plugins/builtin/power/pane.tsx +209 -0
- package/src/plugins/builtin/power/query.ts +25 -0
- package/src/plugins/builtin/relative-rotation/pane.tsx +3 -3
- package/src/plugins/builtin/research/analyst-pane.tsx +1 -1
- package/src/plugins/builtin/research/corporate-actions-pane.tsx +13 -4
- package/src/plugins/builtin/research/equity-diagnostic-pane.tsx +11 -9
- package/src/plugins/builtin/research-search/pane.tsx +21 -7
- package/src/plugins/builtin/revenue-breakdown/pane.tsx +1 -1
- package/src/plugins/builtin/reverse-dcf/client.ts +35 -0
- package/src/plugins/builtin/reverse-dcf/headless.ts +44 -0
- package/src/plugins/builtin/reverse-dcf/index.tsx +20 -0
- package/src/plugins/builtin/reverse-dcf/model.ts +87 -0
- package/src/plugins/builtin/reverse-dcf/pane.tsx +107 -0
- package/src/plugins/builtin/risk-factors/pane.tsx +6 -5
- package/src/plugins/builtin/scanner/denied.tsx +4 -2
- package/src/plugins/builtin/scanner/feed.ts +1 -0
- package/src/plugins/builtin/scanner/flow-pane.tsx +3 -2
- package/src/plugins/builtin/scanner/hilo-pane.tsx +1 -1
- package/src/plugins/builtin/seasonality/client.ts +4 -1
- package/src/plugins/builtin/sec/command-bar-search.ts +217 -0
- package/src/plugins/builtin/sec/forms.ts +54 -0
- package/src/plugins/builtin/sec/headless.ts +31 -5
- package/src/plugins/builtin/sec/index.tsx +67 -11
- package/src/plugins/builtin/sec/model.ts +35 -5
- package/src/plugins/builtin/sectors/headless.ts +1 -0
- package/src/plugins/builtin/sectors/index.tsx +72 -26
- package/src/plugins/builtin/shared/cloud-upgrade.ts +143 -39
- package/src/plugins/builtin/shared/pro-feature-wall.tsx +8 -4
- package/src/plugins/builtin/shared/research-cells.tsx +107 -0
- package/src/plugins/builtin/shared/series-list-detail.tsx +5 -1
- package/src/plugins/builtin/shared/ticker-request.ts +1 -1
- package/src/plugins/builtin/shared/wall-teaser-catalog.ts +80 -0
- package/src/plugins/builtin/shared/wall-teaser.tsx +192 -0
- package/src/plugins/builtin/shared/wall-view-lifecycle.ts +43 -0
- package/src/plugins/builtin/short-interest/index.tsx +31 -0
- package/src/plugins/builtin/short-interest/watch-client.ts +70 -0
- package/src/plugins/builtin/short-interest/watch-headless.ts +49 -0
- package/src/plugins/builtin/short-interest/watch-model.ts +185 -0
- package/src/plugins/builtin/short-interest/watch-pane.tsx +169 -0
- package/src/plugins/builtin/short-volume/pane.tsx +1 -1
- package/src/plugins/builtin/social-mentions/pane.tsx +1 -1
- package/src/plugins/builtin/supply-chain/client.ts +104 -0
- package/src/plugins/builtin/supply-chain/disclosure-quote.tsx +17 -0
- package/src/plugins/builtin/supply-chain/evidence.ts +88 -0
- package/src/plugins/builtin/supply-chain/flow-layout.ts +133 -0
- package/src/plugins/builtin/supply-chain/flow.tsx +323 -0
- package/src/plugins/builtin/supply-chain/graph-client.ts +83 -0
- package/src/plugins/builtin/supply-chain/graph-evidence.ts +25 -0
- package/src/plugins/builtin/supply-chain/graph-model.ts +45 -0
- package/src/plugins/builtin/supply-chain/graph-pane.tsx +218 -0
- package/src/plugins/builtin/supply-chain/graph.tsx +163 -0
- package/src/plugins/builtin/supply-chain/headless.ts +105 -0
- package/src/plugins/builtin/supply-chain/index.tsx +17 -0
- package/src/plugins/builtin/supply-chain/model.ts +145 -0
- package/src/plugins/builtin/supply-chain/pane.tsx +276 -0
- package/src/plugins/builtin/supply-chain/row-evidence.tsx +96 -0
- package/src/plugins/builtin/supply-chain/trust.ts +34 -0
- package/src/plugins/builtin/themes/client.ts +39 -0
- package/src/plugins/builtin/themes/headless.ts +38 -0
- package/src/plugins/builtin/themes/model.ts +92 -0
- package/src/plugins/builtin/themes/pane.tsx +125 -0
- package/src/plugins/builtin/thirteenf/pane.tsx +6 -15
- package/src/plugins/builtin/ticker-detail/data-panes/historical-prices.tsx +5 -6
- package/src/plugins/builtin/ticker-detail/data-panes/returns-model.ts +201 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-pane.tsx +327 -0
- package/src/plugins/builtin/ticker-detail/financials/period-end-history.ts +5 -2
- package/src/plugins/builtin/ticker-detail/financials/ratios.ts +60 -12
- package/src/plugins/builtin/ticker-detail/financials/tab.tsx +2 -1
- package/src/plugins/builtin/ticker-detail/headless.ts +7 -2
- package/src/plugins/builtin/ticker-detail/index.tsx +22 -0
- package/src/plugins/builtin/ticker-detail/overview/components.tsx +53 -30
- package/src/plugins/builtin/ticker-detail/overview/pane.tsx +2 -0
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +112 -47
- package/src/plugins/builtin/ticker-detail/pane.tsx +50 -6
- package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +21 -42
- package/src/plugins/builtin/ticker-detail/quote-monitor/index.tsx +3 -0
- package/src/plugins/builtin/time-sales/pane.tsx +1 -1
- package/src/plugins/builtin/world-indices/indices.ts +1 -0
- package/src/plugins/catalog-browser.ts +40 -0
- package/src/plugins/catalog-manifest.ts +3 -0
- package/src/plugins/catalog-ui.ts +6 -0
- package/src/plugins/current-target.ts +0 -9
- package/src/public/__snapshots__/public-api.test.ts.snap +1 -0
- package/src/renderers/browser/cloud-transport.ts +66 -1
- package/src/renderers/browser/main.tsx +2 -0
- package/src/renderers/dom/data-table/row.tsx +2 -0
- package/src/renderers/dom/desktop/controls.tsx +38 -25
- package/src/renderers/dom/desktop/icons.tsx +8 -0
- package/src/renderers/dom/host/chart-surface.tsx +36 -2
- package/src/renderers/dom/host/focus-scope.ts +11 -1
- package/src/renderers/dom/styles.css +28 -0
- package/src/renderers/electrobun/view/backend-rpc.ts +3 -2
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +1 -1
- package/src/renderers/electrobun/view/http-fetch.ts +2 -0
- package/src/renderers/electrobun/view/main.tsx +3 -1
- package/src/renderers/electrobun/view/rpc-timeout.ts +59 -0
- package/src/renderers/opentui/start.tsx +3 -0
- package/src/shares/api.ts +3 -1
- package/src/sources/gloomberb-cloud/index.ts +47 -13
- package/src/sources/history-result.ts +1 -0
- package/src/sources/history-retention.ts +16 -0
- package/src/sources/provider-router/history.ts +4 -2
- package/src/sources/sec-edgar/identity.ts +36 -0
- package/src/sources/sec-edgar.ts +1 -34
- package/src/state/app/context/index.tsx +8 -0
- package/src/sync/core-contributors.ts +20 -2
- package/src/telemetry/attention-counts.ts +164 -0
- package/src/telemetry/live-config.ts +7 -0
- package/src/test-support/rpc-loopback.ts +7 -3
- package/src/test-support/shell-pane-keys.tsx +34 -0
- package/src/tickers/instrument-kind.ts +12 -6
- package/src/tickers/open-target.ts +1 -1
- package/src/tickers/search/asset-classes.ts +91 -0
- package/src/tickers/search/index.ts +62 -15
- package/src/tickers/search/ranking.ts +22 -3
- package/src/tickers/search/upsert.ts +4 -1
- package/src/time-series/live-bars.ts +8 -3
- package/src/time-series/resolve.ts +224 -17
- package/src/time-series/spec.ts +1 -0
- package/src/time-series/types.ts +9 -1
- package/src/types/config.ts +23 -1
- package/src/types/data-provider.ts +2 -0
- package/src/types/headless.ts +17 -0
- package/src/types/price-history.ts +2 -0
- package/src/ui/host.tsx +6 -0
- package/src/utils/double-escape-close.ts +20 -0
- package/src/utils/exchanges.ts +1 -0
- package/src/utils/html-entities.ts +15 -0
- package/src/utils/http-proxy-response.ts +44 -7
- package/src/utils/plugin-proxy-hosts.json +3 -0
- package/src/utils/price-history.ts +35 -1
- package/src/utils/sec.ts +21 -2
- package/src/utils/text-wrap.ts +13 -8
- package/src/utils/zoned-date-time.ts +67 -0
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
QueryBar,
|
|
7
7
|
useTableLoadMore,
|
|
8
8
|
usePaneFooter,
|
|
9
|
+
usePaneTabs,
|
|
9
10
|
type DataTableCell,
|
|
10
11
|
type DataTableColumn,
|
|
11
12
|
type PaneHint,
|
|
@@ -23,6 +24,7 @@ import type {
|
|
|
23
24
|
} from "../../../api-client/mna";
|
|
24
25
|
import { usePlanAccess } from "../../../api-client/plan-access";
|
|
25
26
|
import { useAsyncResource, useAutoRefresh, usePaneSettingValue, usePluginPaneState, useShortcut } from "../../../public/react";
|
|
27
|
+
import { usePaneInstance } from "../../../state/app/context";
|
|
26
28
|
import { usePaneTickerIdentity } from "../../../state/hooks/pane-ticker";
|
|
27
29
|
import { blendHex } from "../../../theme/colors";
|
|
28
30
|
import { useThemeColors } from "../../../theme/theme-context";
|
|
@@ -36,6 +38,7 @@ import { useResearchCloudSession } from "../shared/research-cloud-session";
|
|
|
36
38
|
import { useQuoteBoard } from "../shared/use-quote-board";
|
|
37
39
|
import { appendMnaDeals, fetchMnaDeals, loadMnaDeals } from "./client";
|
|
38
40
|
import { MnaDealDetail, mnaDealTitle } from "./detail";
|
|
41
|
+
import { DistressBoard } from "./distress/pane";
|
|
39
42
|
import {
|
|
40
43
|
dealSpread,
|
|
41
44
|
expectedCloseDate,
|
|
@@ -120,11 +123,48 @@ type Item = { kind: "deal"; deal: MnaDeal } | { kind: "locked"; index: number };
|
|
|
120
123
|
|
|
121
124
|
const itemKey = (item: Item) => (item.kind === "deal" ? item.deal.id : `locked:${item.index}`);
|
|
122
125
|
|
|
126
|
+
type MnaTab = "deals" | "distress";
|
|
127
|
+
|
|
128
|
+
const MNA_TABS: { label: string; value: MnaTab }[] = [
|
|
129
|
+
{ label: "Deals", value: "deals" },
|
|
130
|
+
{ label: "Distress", value: "distress" },
|
|
131
|
+
];
|
|
132
|
+
|
|
123
133
|
/** `MA`, or `MA ACVA` with the ticker kept in pane settings. */
|
|
124
134
|
export function MnaPane(props: PaneProps) {
|
|
125
135
|
const [ticker] = usePaneSettingValue("ticker", "");
|
|
126
136
|
const symbol = typeof ticker === "string" ? ticker.trim().toUpperCase() : "";
|
|
127
|
-
|
|
137
|
+
// One company's deals have no market-wide distress tab beside them.
|
|
138
|
+
if (symbol) return <MnaDealsView key={symbol} focused={props.focused} width={props.width} height={props.height} symbol={symbol} />;
|
|
139
|
+
return <MnaBoard focused={props.focused} width={props.width} height={props.height} />;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The market-wide pane: deals, and companies in difficulty, the other side of
|
|
144
|
+
* special situations. `DIST` opens it on the Distress tab. Only the active tab
|
|
145
|
+
* is mounted, so the pane always has one table to export and the hidden deal
|
|
146
|
+
* list keeps no quotes streaming.
|
|
147
|
+
*/
|
|
148
|
+
function MnaBoard({ focused, width, height }: { focused: boolean; width: number; height: number }) {
|
|
149
|
+
const opensOnDistress = usePaneInstance()?.params?.tab === "distress";
|
|
150
|
+
const [storedTab, setTab] = usePluginPaneState<string>("tab", opensOnDistress ? "distress" : "deals");
|
|
151
|
+
const tab: MnaTab = storedTab === "distress" ? "distress" : "deals";
|
|
152
|
+
const { strip, rows } = usePaneTabs({
|
|
153
|
+
tabs: MNA_TABS,
|
|
154
|
+
activeValue: tab,
|
|
155
|
+
onSelect: setTab,
|
|
156
|
+
focused,
|
|
157
|
+
compact: true,
|
|
158
|
+
variant: "bare",
|
|
159
|
+
});
|
|
160
|
+
// The terminal draws the strip; Distress puts its source picker on the same row.
|
|
161
|
+
if (tab === "distress") return <DistressBoard focused={focused} width={width} height={height} tabStrip={strip} />;
|
|
162
|
+
return (
|
|
163
|
+
<Box width={width} height={height} flexDirection="column">
|
|
164
|
+
{strip ? <Box height={1} flexShrink={0} paddingX={1} flexDirection="column">{strip}</Box> : null}
|
|
165
|
+
<MnaDealsView focused={focused} width={width} height={Math.max(1, height - rows)} symbol={null} />
|
|
166
|
+
</Box>
|
|
167
|
+
);
|
|
128
168
|
}
|
|
129
169
|
|
|
130
170
|
export function MnaTickerTab({ focused, width, height }: TickerResearchTabProps) {
|
|
@@ -259,6 +299,7 @@ function MnaDealsView({ focused, width, height, symbol }: {
|
|
|
259
299
|
delayLabel: `${data?.delayDays || 7}d`,
|
|
260
300
|
focused,
|
|
261
301
|
shortcutScope: "mna",
|
|
302
|
+
placement: "ma-footer",
|
|
262
303
|
degraded: data?.access === "delayed",
|
|
263
304
|
});
|
|
264
305
|
const openUpgrade = access.openUpgrade;
|
|
@@ -3,8 +3,13 @@ import { composeBuiltinPlugin, type PluginModule } from "../plugin-module";
|
|
|
3
3
|
import { newsPluginMeta } from "../builtin-plugin-meta";
|
|
4
4
|
import { useArticleSummary, useResolvedEntryValue } from "../../../market-data/hooks";
|
|
5
5
|
import { instrumentFromTicker } from "../../../market-data/request-types";
|
|
6
|
+
import { useCallback } from "react";
|
|
6
7
|
import { useDebouncedPluginPaneState, usePluginPaneState } from "../../runtime";
|
|
7
|
-
import { EmptyState, PaneStatusBody } from "../../../components";
|
|
8
|
+
import { EmptyState, PaneStatusBody, QueryBar } from "../../../components";
|
|
9
|
+
import { newsMuteSettingsDef, newsMutesApplyToFeed, useNewsMuteFilter } from "./wire/mutes";
|
|
10
|
+
import { newsListEmptyCopy } from "./wire/filter-articles";
|
|
11
|
+
import { NEWS_LIST_SEARCH_PLACEHOLDER, useNewsListSearch, useNewsListSearchHint } from "./wire/news/list-search";
|
|
12
|
+
import { usePopOutNewsArticle } from "./wire/news/pop-out";
|
|
8
13
|
import { useLoadNewsStory, useNewsArticles, useNewsTableLoadMore } from "../../../news/hooks";
|
|
9
14
|
import { newsWireModule } from "./wire";
|
|
10
15
|
import { NewsDetailView, useNewsArticleDetail } from "./wire/news/detail-view";
|
|
@@ -42,23 +47,30 @@ function TickerNewsView({ width, height, focused }: { width: number; height: num
|
|
|
42
47
|
limit: NEWS_ITEM_LIMIT,
|
|
43
48
|
} : null;
|
|
44
49
|
const newsState = useNewsArticles(newsQuery);
|
|
45
|
-
const
|
|
50
|
+
const loaded = usePersistedNewsArticles(
|
|
46
51
|
`articles:${instrument?.symbol ?? "none"}:${instrument?.exchange ?? ""}`,
|
|
47
52
|
newsState.articles,
|
|
48
53
|
{ keyFamily: "articles:" },
|
|
49
54
|
);
|
|
55
|
+
const news = useNewsMuteFilter(loaded, newsMutesApplyToFeed(newsQuery?.feed));
|
|
56
|
+
const search = useNewsListSearch(news);
|
|
57
|
+
const visibleArticles = search.filteredArticles;
|
|
50
58
|
const { readArticleIds, markArticleRead } = useNewsReadState();
|
|
51
59
|
const { scrollRef, onBodyScrollActivity } = useNewsTableLoadMore(newsQuery, newsState);
|
|
52
60
|
const loadNewsStory = useLoadNewsStory();
|
|
53
61
|
const { detailArticle, detailLoading, detailError, openArticle, closeDetail } = useNewsArticleDetail(
|
|
54
|
-
|
|
62
|
+
visibleArticles,
|
|
55
63
|
loadNewsStory,
|
|
56
64
|
`openArticleId:${symbol}`,
|
|
57
65
|
);
|
|
66
|
+
const popOutArticle = usePopOutNewsArticle(closeDetail);
|
|
67
|
+
const openListedArticle = useCallback((article: typeof visibleArticles[number]) => {
|
|
68
|
+
search.blurSearch();
|
|
69
|
+
openArticle(article);
|
|
70
|
+
}, [openArticle, search.blurSearch]);
|
|
58
71
|
const loading = newsState.phase === "loading"
|
|
59
|
-
|| (newsState.phase === "refreshing" &&
|
|
72
|
+
|| (newsState.phase === "refreshing" && loaded.length === 0);
|
|
60
73
|
const error = newsState.error;
|
|
61
|
-
|
|
62
74
|
const articleSummaryEntry = useArticleSummary(
|
|
63
75
|
detailArticle && !detailArticle.summary ? detailArticle.url : null,
|
|
64
76
|
);
|
|
@@ -68,18 +80,29 @@ function TickerNewsView({ width, height, focused }: { width: number; height: num
|
|
|
68
80
|
const detailWithSummary = detailArticle && !detailArticle.summary && fetchedSummary
|
|
69
81
|
? { ...detailArticle, summary: fetchedSummary }
|
|
70
82
|
: detailArticle;
|
|
83
|
+
const detailOpen = !!detailWithSummary;
|
|
84
|
+
const listFocused = focused && !search.searchFocused;
|
|
85
|
+
const selectedArticle = visibleArticles.find((article) => article.id === selectedArticleId) ?? null;
|
|
86
|
+
const readableArticle = detailWithSummary ?? selectedArticle;
|
|
87
|
+
const popOutReadable = useCallback(() => {
|
|
88
|
+
if (!readableArticle) return;
|
|
89
|
+
markArticleRead(readableArticle.id);
|
|
90
|
+
popOutArticle(readableArticle);
|
|
91
|
+
}, [markArticleRead, popOutArticle, readableArticle]);
|
|
71
92
|
|
|
93
|
+
useNewsListSearchHint("ticker-news", focused && !detailOpen, search.focusSearch);
|
|
72
94
|
useNewsArticleFooter({
|
|
73
95
|
registrationId: "news",
|
|
74
|
-
focused,
|
|
96
|
+
focused: listFocused,
|
|
75
97
|
article: detailArticle,
|
|
76
98
|
// Stale rows stay on screen during a refresh or a failure, so the pane says
|
|
77
99
|
// so in the footer instead of replacing them.
|
|
78
|
-
loading: detailLoading || (loading &&
|
|
100
|
+
loading: detailLoading || (loading && loaded.length > 0),
|
|
79
101
|
error: [error, detailError].filter(Boolean).join(" ") || null,
|
|
80
102
|
info: loadingSummary
|
|
81
103
|
? [{ id: "summary", parts: [{ text: "summary loading", tone: "muted" as const }] }]
|
|
82
104
|
: undefined,
|
|
105
|
+
onPopOut: readableArticle ? popOutReadable : undefined,
|
|
83
106
|
});
|
|
84
107
|
|
|
85
108
|
if (!ticker) {
|
|
@@ -90,10 +113,20 @@ function TickerNewsView({ width, height, focused }: { width: number; height: num
|
|
|
90
113
|
);
|
|
91
114
|
}
|
|
92
115
|
|
|
116
|
+
const emptyCopy = newsListEmptyCopy({
|
|
117
|
+
query: search.searchQuery,
|
|
118
|
+
loadedCount: loaded.length,
|
|
119
|
+
unmutedCount: news.length,
|
|
120
|
+
fallback: {
|
|
121
|
+
title: `No news for ${ticker.metadata.ticker}`,
|
|
122
|
+
hint: "Stories appear as sources publish them.",
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
|
|
93
126
|
return (
|
|
94
127
|
<NewsArticleStackView
|
|
95
|
-
articles={
|
|
96
|
-
focused={
|
|
128
|
+
articles={visibleArticles}
|
|
129
|
+
focused={listFocused}
|
|
97
130
|
width={width}
|
|
98
131
|
rootHeight={height}
|
|
99
132
|
readArticleIds={readArticleIds}
|
|
@@ -101,14 +134,14 @@ function TickerNewsView({ width, height, focused }: { width: number; height: num
|
|
|
101
134
|
setSelectedArticleId={setSelectedArticleId}
|
|
102
135
|
sortPreference={sortPreference}
|
|
103
136
|
setSortPreference={setSortPreference}
|
|
104
|
-
onOpenArticle={
|
|
137
|
+
onOpenArticle={openListedArticle}
|
|
105
138
|
onArticleRead={markArticleRead}
|
|
106
|
-
detailOpen={
|
|
139
|
+
detailOpen={detailOpen}
|
|
107
140
|
onBack={closeDetail}
|
|
108
141
|
detailContent={detailWithSummary ? (
|
|
109
142
|
<NewsDetailView
|
|
110
143
|
item={detailWithSummary}
|
|
111
|
-
focused={
|
|
144
|
+
focused={listFocused}
|
|
112
145
|
width={width}
|
|
113
146
|
showTitle={false}
|
|
114
147
|
/>
|
|
@@ -117,18 +150,30 @@ function TickerNewsView({ width, height, focused }: { width: number; height: num
|
|
|
117
150
|
)}
|
|
118
151
|
detailTitle={detailWithSummary?.title}
|
|
119
152
|
columns={["time", "source", "title", "categories", "sentiment"]}
|
|
153
|
+
rootBefore={(
|
|
154
|
+
<QueryBar
|
|
155
|
+
width={width}
|
|
156
|
+
search={{
|
|
157
|
+
value: search.searchQuery,
|
|
158
|
+
onChange: search.setSearchQuery,
|
|
159
|
+
placeholder: NEWS_LIST_SEARCH_PLACEHOLDER,
|
|
160
|
+
focused: focused && !detailOpen,
|
|
161
|
+
...search.searchProps,
|
|
162
|
+
}}
|
|
163
|
+
/>
|
|
164
|
+
)}
|
|
120
165
|
emptyContent={(
|
|
121
166
|
<PaneStatusBody
|
|
122
167
|
loading={loading}
|
|
123
168
|
error={error}
|
|
124
169
|
empty
|
|
125
170
|
subject="News"
|
|
126
|
-
emptyTitle={
|
|
127
|
-
emptyMessage=
|
|
171
|
+
emptyTitle={emptyCopy.title}
|
|
172
|
+
emptyMessage={emptyCopy.hint}
|
|
128
173
|
/>
|
|
129
174
|
)}
|
|
130
|
-
emptyStateTitle={
|
|
131
|
-
emptyStateHint=
|
|
175
|
+
emptyStateTitle={emptyCopy.title}
|
|
176
|
+
emptyStateHint={emptyCopy.hint}
|
|
132
177
|
scrollRef={scrollRef}
|
|
133
178
|
onBodyScrollActivity={onBodyScrollActivity}
|
|
134
179
|
/>
|
|
@@ -146,6 +191,7 @@ export const tickerNewsModule: PluginModule = {
|
|
|
146
191
|
tickerFollower: true,
|
|
147
192
|
defaultMode: "floating",
|
|
148
193
|
defaultFloatingSize: { width: 100, height: 32 },
|
|
194
|
+
settings: (context) => newsMuteSettingsDef(context, "Ticker News Settings"),
|
|
149
195
|
},
|
|
150
196
|
],
|
|
151
197
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { NewsArticle } from "../../../../news/types";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Filters a news list by a free-text query. Every word must appear in the
|
|
5
|
+
* headline, source, summary, tickers, topics, or categories.
|
|
6
|
+
*/
|
|
7
|
+
export function filterNewsArticles<T extends NewsArticle>(
|
|
8
|
+
articles: readonly T[],
|
|
9
|
+
query: string,
|
|
10
|
+
): T[] {
|
|
11
|
+
const trimmed = query.trim().toLowerCase();
|
|
12
|
+
if (!trimmed) return articles as T[];
|
|
13
|
+
const tokens = trimmed.split(/\s+/).filter(Boolean);
|
|
14
|
+
if (tokens.length === 0) return articles as T[];
|
|
15
|
+
|
|
16
|
+
return articles.filter((article) => {
|
|
17
|
+
const haystack = [
|
|
18
|
+
article.title,
|
|
19
|
+
article.source,
|
|
20
|
+
article.summary ?? "",
|
|
21
|
+
...article.tickers,
|
|
22
|
+
...article.topics,
|
|
23
|
+
...article.categories,
|
|
24
|
+
].join(" ").toLowerCase();
|
|
25
|
+
return tokens.every((token) => haystack.includes(token));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The empty list's copy. The filter and the mutes only see the stories the
|
|
31
|
+
* list has loaded, so an empty result says so instead of claiming there is
|
|
32
|
+
* no such story at all.
|
|
33
|
+
*/
|
|
34
|
+
export function newsListEmptyCopy(options: {
|
|
35
|
+
query: string;
|
|
36
|
+
/** Stories the list has loaded, before mutes. */
|
|
37
|
+
loadedCount: number;
|
|
38
|
+
/** Loaded stories left once the mutes are applied. */
|
|
39
|
+
unmutedCount: number;
|
|
40
|
+
fallback: { title: string; hint: string };
|
|
41
|
+
}): { title: string; hint: string } {
|
|
42
|
+
if (options.loadedCount === 0) return options.fallback;
|
|
43
|
+
if (options.unmutedCount === 0) {
|
|
44
|
+
return {
|
|
45
|
+
title: "Every loaded story is muted",
|
|
46
|
+
hint: "Muted Sources and Muted Keywords are in the pane settings.",
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
if (!options.query.trim()) return options.fallback;
|
|
50
|
+
return {
|
|
51
|
+
title: "No loaded story matches",
|
|
52
|
+
hint: "Clear the filter to scroll and load older stories.",
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -17,7 +17,10 @@ import {
|
|
|
17
17
|
saveNewsFeedSettings,
|
|
18
18
|
} from "./feed-config";
|
|
19
19
|
import { IndustryPane, TOPIC_NEWS_TITLE } from "./industry-pane";
|
|
20
|
+
import { newsMuteSettingsDef } from "./mutes";
|
|
20
21
|
import { createNewsPresetPane } from "./news/preset-pane";
|
|
22
|
+
import { createNewsStoryPaneTemplate, NEWS_STORY_PANE_ID, NewsStoryPane } from "./news/pop-out";
|
|
23
|
+
import { createLoadedStorySearchProvider } from "./news/command-bar-search";
|
|
21
24
|
import { NEWS_INDUSTRY_CODES, NEWS_QUERY_PRESETS, parseNewsIndustryCode } from "./news/query-presets";
|
|
22
25
|
import { createRssNewsCapability } from "./rss/source";
|
|
23
26
|
import { rssCliCommand } from "./rss/cli";
|
|
@@ -60,8 +63,35 @@ let disposeBreakingNewsNotifications: (() => void) | null = null;
|
|
|
60
63
|
|
|
61
64
|
const newsWirePanes: PluginModule["panes"] = [
|
|
62
65
|
{ id: "news-top", name: "Top News", icon: "T", component: TopPane, defaultPosition: "right", defaultMode: "floating", defaultFloatingSize: { width: 90, height: 30 } },
|
|
63
|
-
{
|
|
64
|
-
|
|
66
|
+
{
|
|
67
|
+
id: "news-feed",
|
|
68
|
+
name: "News Feed",
|
|
69
|
+
icon: "N",
|
|
70
|
+
component: FeedPane,
|
|
71
|
+
defaultPosition: "right",
|
|
72
|
+
defaultMode: "floating",
|
|
73
|
+
defaultFloatingSize: { width: 100, height: 35 },
|
|
74
|
+
settings: (context) => newsMuteSettingsDef(context, "News Feed Settings"),
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "news-industry",
|
|
78
|
+
name: TOPIC_NEWS_TITLE,
|
|
79
|
+
icon: "S",
|
|
80
|
+
component: IndustryPane,
|
|
81
|
+
defaultPosition: "right",
|
|
82
|
+
defaultMode: "floating",
|
|
83
|
+
defaultFloatingSize: { width: 100, height: 35 },
|
|
84
|
+
settings: (context) => newsMuteSettingsDef(context, "Topic News Settings"),
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: NEWS_STORY_PANE_ID,
|
|
88
|
+
name: "Story",
|
|
89
|
+
icon: "A",
|
|
90
|
+
component: NewsStoryPane,
|
|
91
|
+
defaultPosition: "right",
|
|
92
|
+
defaultMode: "floating",
|
|
93
|
+
defaultFloatingSize: { width: 80, height: 24 },
|
|
94
|
+
},
|
|
65
95
|
{
|
|
66
96
|
id: "news-breaking",
|
|
67
97
|
name: "Breaking News",
|
|
@@ -103,7 +133,8 @@ const newsWirePanes: PluginModule["panes"] = [
|
|
|
103
133
|
|
|
104
134
|
const newsWirePaneTemplates: PluginModule["paneTemplates"] = [
|
|
105
135
|
{ id: "news-top-pane", paneId: "news-top", label: "Top News", description: "Curated top market stories ranked by importance", keywords: ["top", "news", "headlines", "stories"], shortcut: { prefix: "TOP" } },
|
|
106
|
-
|
|
136
|
+
// FH is the same combined latest feed, Gloom Cloud with your RSS feeds, so it opens this pane.
|
|
137
|
+
{ id: "news-feed-pane", paneId: "news-feed", label: "News Feed", description: "Chronological market news firehose", keywords: ["news", "feed", "firehose", "wire", "stream", "latest"], shortcut: { prefix: "N", aliases: ["FH"] }, headless: newsFeedHeadless },
|
|
107
138
|
{
|
|
108
139
|
id: "news-industry-pane",
|
|
109
140
|
paneId: "news-industry",
|
|
@@ -128,6 +159,7 @@ const newsWirePaneTemplates: PluginModule["paneTemplates"] = [
|
|
|
128
159
|
},
|
|
129
160
|
},
|
|
130
161
|
{ id: "news-breaking-pane", paneId: "news-breaking", label: "Breaking News", description: "Breaking and urgent market news", keywords: ["first", "breaking", "urgent", "alert", "flash"], shortcut: { prefix: "FIRST" } },
|
|
162
|
+
createNewsStoryPaneTemplate(),
|
|
131
163
|
];
|
|
132
164
|
|
|
133
165
|
/**
|
|
@@ -140,6 +172,7 @@ export const browserNewsWireModule: PluginModule = {
|
|
|
140
172
|
paneTemplates: newsWirePaneTemplates,
|
|
141
173
|
setup(ctx) {
|
|
142
174
|
ctx.registerCommand(breakingNewsSnoozeCommand(ctx));
|
|
175
|
+
ctx.registerCommandBarSearchProvider(createLoadedStorySearchProvider(ctx));
|
|
143
176
|
disposeBreakingNewsNotifications = setupBreakingNewsNotifications(ctx);
|
|
144
177
|
},
|
|
145
178
|
dispose() {
|
|
@@ -196,6 +229,7 @@ export const newsWireModule: PluginModule = {
|
|
|
196
229
|
});
|
|
197
230
|
|
|
198
231
|
ctx.registerCommand(breakingNewsSnoozeCommand(ctx));
|
|
232
|
+
ctx.registerCommandBarSearchProvider(createLoadedStorySearchProvider(ctx));
|
|
199
233
|
disposeBreakingNewsNotifications = setupBreakingNewsNotifications(ctx);
|
|
200
234
|
},
|
|
201
235
|
dispose() {
|
|
@@ -6,6 +6,8 @@ import { useNewsArticles, useNewsTableLoadMore } from "../../../../news/hooks";
|
|
|
6
6
|
import { usePluginPaneState } from "../../../runtime";
|
|
7
7
|
import { PaneStatusBody, QueryBar, type SelectButtonOption } from "../../../../components";
|
|
8
8
|
import { usePaneInstance, usePaneTitle } from "../../../../state/app/context";
|
|
9
|
+
import { newsListEmptyCopy } from "./filter-articles";
|
|
10
|
+
import { newsMutesApplyToFeed, useNewsMuteFilter } from "./mutes";
|
|
9
11
|
import { useNewsArticleStack } from "./news/preset-pane";
|
|
10
12
|
import {
|
|
11
13
|
NewsArticleStackView,
|
|
@@ -86,17 +88,18 @@ export function IndustryPane({ focused, width, height }: PaneProps) {
|
|
|
86
88
|
const code = entry?.code ?? savedCode.trim().toUpperCase();
|
|
87
89
|
usePaneTitle(code === "ALL" ? TOPIC_NEWS_TITLE : `NI ${code}`);
|
|
88
90
|
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
91
|
+
const loaded = useIndustryArticles(entry);
|
|
92
|
+
const articles = useNewsMuteFilter(loaded.articles, newsMutesApplyToFeed(loaded.query?.feed));
|
|
93
|
+
const { scrollRef, onBodyScrollActivity } = useNewsTableLoadMore(loaded.query, loaded.newsState);
|
|
94
|
+
const { search, searchQuery, ...stack } = useNewsArticleStack({
|
|
92
95
|
paneKey: "industry",
|
|
93
96
|
articles,
|
|
94
97
|
focused,
|
|
95
98
|
width,
|
|
96
99
|
columns: COLUMNS,
|
|
97
100
|
defaultSort: DEFAULT_SORT,
|
|
98
|
-
refreshing: loading && articles.length > 0,
|
|
99
|
-
error,
|
|
101
|
+
refreshing: loaded.loading && loaded.articles.length > 0,
|
|
102
|
+
error: loaded.error,
|
|
100
103
|
});
|
|
101
104
|
const { setSelectedArticleId } = stack;
|
|
102
105
|
|
|
@@ -107,9 +110,22 @@ export function IndustryPane({ focused, width, height }: PaneProps) {
|
|
|
107
110
|
const options = entry
|
|
108
111
|
? CODE_OPTIONS
|
|
109
112
|
: [...CODE_OPTIONS, { value: code, label: code, description: "Unknown code", disabled: true }];
|
|
113
|
+
const fallbackCopy = {
|
|
114
|
+
title: entry ? `No ${entry.label} news yet` : `${code} is not an NI code`,
|
|
115
|
+
hint: entry ? "Stories appear here as the wires publish them." : `Codes: ${VALID_CODES}`,
|
|
116
|
+
};
|
|
117
|
+
const emptyCopy = entry
|
|
118
|
+
? newsListEmptyCopy({
|
|
119
|
+
query: searchQuery,
|
|
120
|
+
loadedCount: loaded.articles.length,
|
|
121
|
+
unmutedCount: articles.length,
|
|
122
|
+
fallback: fallbackCopy,
|
|
123
|
+
})
|
|
124
|
+
: fallbackCopy;
|
|
110
125
|
const rootBefore = (
|
|
111
126
|
<QueryBar
|
|
112
127
|
width={width}
|
|
128
|
+
search={search}
|
|
113
129
|
filters={[{
|
|
114
130
|
id: "code",
|
|
115
131
|
label: "Topic",
|
|
@@ -129,23 +145,23 @@ export function IndustryPane({ focused, width, height }: PaneProps) {
|
|
|
129
145
|
rootBefore={rootBefore}
|
|
130
146
|
emptyContent={entry ? (
|
|
131
147
|
<PaneStatusBody
|
|
132
|
-
loading={loading}
|
|
133
|
-
error={error}
|
|
148
|
+
loading={loaded.loading}
|
|
149
|
+
error={loaded.error}
|
|
134
150
|
empty
|
|
135
151
|
subject="Topic news"
|
|
136
|
-
emptyTitle={
|
|
137
|
-
emptyMessage=
|
|
152
|
+
emptyTitle={emptyCopy.title}
|
|
153
|
+
emptyMessage={emptyCopy.hint}
|
|
138
154
|
/>
|
|
139
155
|
) : (
|
|
140
156
|
<PaneStatusBody
|
|
141
157
|
empty
|
|
142
158
|
subject="Topic news"
|
|
143
|
-
emptyTitle={
|
|
144
|
-
emptyMessage={
|
|
159
|
+
emptyTitle={emptyCopy.title}
|
|
160
|
+
emptyMessage={emptyCopy.hint}
|
|
145
161
|
/>
|
|
146
162
|
)}
|
|
147
|
-
emptyStateTitle={
|
|
148
|
-
emptyStateHint={
|
|
163
|
+
emptyStateTitle={emptyCopy.title}
|
|
164
|
+
emptyStateHint={emptyCopy.hint}
|
|
149
165
|
scrollRef={scrollRef}
|
|
150
166
|
onBodyScrollActivity={onBodyScrollActivity}
|
|
151
167
|
/>
|