@gloom-sh/terminal 0.20.16 → 0.20.18

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.
Files changed (345) hide show
  1. package/package.json +3 -1
  2. package/src/account/auth-dialog.tsx +19 -1
  3. package/src/account/billing.ts +2 -1
  4. package/src/account/heard-from-question.tsx +235 -0
  5. package/src/account/heard-from.ts +97 -0
  6. package/src/api-client/data.ts +16 -5
  7. package/src/api-client/heard-from.ts +72 -0
  8. package/src/api-client/index.ts +63 -6
  9. package/src/api-client/mna.ts +18 -0
  10. package/src/api-client/supply-chain.ts +9 -0
  11. package/src/api-client/types/billing.ts +35 -1
  12. package/src/api-client/types/econ.ts +3 -0
  13. package/src/app/global-shortcuts.ts +5 -3
  14. package/src/app/pro-welcome/keys.ts +27 -0
  15. package/src/app/pro-welcome/model.ts +158 -0
  16. package/src/app/pro-welcome/row.tsx +176 -0
  17. package/src/app/pro-welcome/use-pro-welcome.ts +156 -0
  18. package/src/app/runtime/external-profile-changes.ts +135 -0
  19. package/src/app.tsx +33 -2
  20. package/src/architecture/core-builtin-allowlist.json +1 -1
  21. package/src/architecture/floating-promise-allowlist.json +0 -1
  22. package/src/architecture/shortcut-labels-allowlist.json +1 -0
  23. package/src/cli/alert-listing.ts +98 -0
  24. package/src/cli/commands/fred-series.ts +3 -1
  25. package/src/cli/commands/market.ts +138 -22
  26. package/src/cli/commands/overview.ts +72 -14
  27. package/src/cli/commands/plugins.ts +3 -2
  28. package/src/cli/commands/search.ts +30 -6
  29. package/src/cli/context.ts +16 -5
  30. package/src/cli/csv-export.ts +74 -0
  31. package/src/cli/desktop-pane-shot.ts +75 -11
  32. package/src/cli/glossary.ts +64 -10
  33. package/src/cli/help.ts +4 -2
  34. package/src/cli/history-demergers.ts +117 -0
  35. package/src/cli/history-rows.ts +6 -2
  36. package/src/cli/index.ts +1 -0
  37. package/src/cli/known-gaps.ts +16 -0
  38. package/src/cli/known-us-stocks.ts +18 -0
  39. package/src/cli/listing-arg.ts +105 -15
  40. package/src/cli/pane-functions/catalog-snapshot-build.ts +83 -0
  41. package/src/cli/pane-functions/catalog-snapshot.json +866 -0
  42. package/src/cli/pane-functions/catalog-snapshot.ts +62 -0
  43. package/src/cli/pane-functions/catalog.ts +50 -16
  44. package/src/cli/pane-functions/data.ts +16 -4
  45. package/src/cli/pane-functions/dom.ts +24 -6
  46. package/src/cli/pane-functions/freshness.ts +17 -1
  47. package/src/cli/pane-functions/headless.ts +7 -2
  48. package/src/cli/pane-functions/index.ts +102 -44
  49. package/src/cli/pane-functions/resolver.ts +8 -5
  50. package/src/cli/pane-functions/screenshot-assessment.ts +30 -7
  51. package/src/cli/pane-functions/screenshot-bridge.ts +4 -2
  52. package/src/cli/pane-functions/screenshot-payload.ts +21 -0
  53. package/src/cli/pane-functions/screenshot-render.ts +3 -1
  54. package/src/cli/quote-answer.ts +32 -16
  55. package/src/cli/registry.ts +22 -2
  56. package/src/cli/report-tables.ts +17 -3
  57. package/src/cli/result.ts +8 -10
  58. package/src/cli/series-search.ts +45 -6
  59. package/src/cli/shot-temp-dir.ts +4 -9
  60. package/src/components/chart/composite/legend.tsx +80 -25
  61. package/src/components/chart/composite/panel-surface/panel-cursor.tsx +3 -3
  62. package/src/components/chart/composite/price-axis-labels.tsx +7 -5
  63. package/src/components/chart-table/header.tsx +9 -0
  64. package/src/components/chart-table/layout.ts +11 -11
  65. package/src/components/command-bar/pane-templates/items.ts +17 -1
  66. package/src/components/command-bar/routes/root/provider-search.ts +10 -1
  67. package/src/components/command-bar/routes/root/results.ts +34 -2
  68. package/src/components/command-bar/routes/root/runtime.ts +8 -1
  69. package/src/components/command-bar/routes/ticker-search/route.ts +5 -0
  70. package/src/components/command-bar/workflow/alert.ts +19 -8
  71. package/src/components/data-table/view.tsx +15 -2
  72. package/src/components/form-modal/content.tsx +9 -4
  73. package/src/components/index.ts +1 -1
  74. package/src/components/layout/header.tsx +9 -5
  75. package/src/components/layout/pane/capture-status.ts +6 -0
  76. package/src/components/layout/pane/footer/index.tsx +2 -0
  77. package/src/components/layout/pane/footer/model.ts +113 -15
  78. package/src/components/layout/pane/header.tsx +16 -2
  79. package/src/components/market-board/index.tsx +4 -2
  80. package/src/components/onboarding/onboarding-frame.tsx +6 -2
  81. package/src/components/onboarding/onboarding-keyboard.ts +7 -1
  82. package/src/components/onboarding/onboarding-wizard.tsx +3 -1
  83. package/src/components/onboarding/portfolio-step/positions-panel.tsx +24 -15
  84. package/src/components/onboarding/setup-cards.ts +36 -0
  85. package/src/components/onboarding/use-onboarding-progress.ts +22 -1
  86. package/src/components/onboarding/wizard-account.ts +6 -1
  87. package/src/components/onboarding/wizard-model.ts +32 -6
  88. package/src/components/onboarding/wizard-positions.ts +1 -1
  89. package/src/components/sign-in-gate.tsx +3 -1
  90. package/src/components/toggle-list.tsx +6 -8
  91. package/src/components/ui/confirm-dialog.tsx +47 -7
  92. package/src/components/ui/data-table/display-columns.ts +4 -1
  93. package/src/components/ui/data-table/hooks.ts +2 -3
  94. package/src/components/ui/data-table/index.tsx +4 -1
  95. package/src/components/ui/data-table/types.ts +19 -4
  96. package/src/components/ui/data-table/visible-range.ts +11 -1
  97. package/src/components/ui/display.tsx +17 -2
  98. package/src/components/ui/index.ts +1 -1
  99. package/src/components/ui/stat-grid.tsx +4 -0
  100. package/src/components/ui/status.tsx +13 -1
  101. package/src/components/ui/table-layout.ts +2 -1
  102. package/src/components/use-pane-notice-footer.tsx +16 -3
  103. package/src/data/config/store/index.ts +31 -0
  104. package/src/data/config/store/node.ts +61 -11
  105. package/src/data/config/store/normalize.ts +4 -6
  106. package/src/data/config/store/shared-file.ts +309 -0
  107. package/src/data/profile-merge.ts +299 -0
  108. package/src/data/sqlite/checkpointer.ts +11 -1
  109. package/src/data/sqlite/database.ts +1 -1
  110. package/src/data/ticker-repository.ts +134 -10
  111. package/src/data/ticker-store.ts +67 -0
  112. package/src/data/ticker-writes.ts +5 -0
  113. package/src/i18n/es.ts +27 -0
  114. package/src/i18n/ja.ts +27 -0
  115. package/src/i18n/ko.ts +27 -0
  116. package/src/i18n/zh-cn.ts +27 -0
  117. package/src/i18n/zh-tw.ts +27 -0
  118. package/src/layout-marketplace/gallery-desktop.tsx +2 -2
  119. package/src/market-data/ah-pair.ts +103 -0
  120. package/src/market-data/depositary-pair.ts +6 -2
  121. package/src/market-data/hooks.tsx +33 -2
  122. package/src/market-data/market/change-basis.ts +2 -1
  123. package/src/market-data/market/header-market.ts +11 -0
  124. package/src/market-data/split-terms.ts +28 -0
  125. package/src/plugins/builtin/account-management/footer.ts +1 -1
  126. package/src/plugins/builtin/account-management/keyboard.ts +4 -0
  127. package/src/plugins/builtin/account-management/model.ts +1 -0
  128. package/src/plugins/builtin/account-management/pane.tsx +75 -7
  129. package/src/plugins/builtin/account-management/payment-recovery-row.tsx +12 -5
  130. package/src/plugins/builtin/account-management/pro-cancel.tsx +197 -0
  131. package/src/plugins/builtin/account-management/trial-cancel.ts +1 -1
  132. package/src/plugins/builtin/alerts/cli-move.ts +2 -2
  133. package/src/plugins/builtin/alerts/cli.ts +36 -30
  134. package/src/plugins/builtin/alerts/constants.ts +10 -0
  135. package/src/plugins/builtin/alerts/earnings-listing.ts +20 -0
  136. package/src/plugins/builtin/alerts/format.ts +24 -8
  137. package/src/plugins/builtin/alerts/index.tsx +38 -9
  138. package/src/plugins/builtin/alerts/move-checks.ts +7 -0
  139. package/src/plugins/builtin/alerts/pane.tsx +1 -1
  140. package/src/plugins/builtin/alerts/quotes.ts +26 -2
  141. package/src/plugins/builtin/alerts/scheduled.ts +6 -1
  142. package/src/plugins/builtin/alerts/types.ts +7 -0
  143. package/src/plugins/builtin/analytics/manual-value.ts +61 -0
  144. package/src/plugins/builtin/analytics/risk-book.ts +7 -7
  145. package/src/plugins/builtin/analytics/risk-client.ts +26 -13
  146. package/src/plugins/builtin/analytics/risk-headless.ts +13 -8
  147. package/src/plugins/builtin/analytics/risk-model.ts +92 -4
  148. package/src/plugins/builtin/analytics/risk-pane.tsx +85 -38
  149. package/src/plugins/builtin/awards/pane.tsx +7 -3
  150. package/src/plugins/builtin/broker-trading/orders.tsx +2 -2
  151. package/src/plugins/builtin/central-bank-rates/model.ts +8 -2
  152. package/src/plugins/builtin/central-bank-rates/pane.tsx +5 -3
  153. package/src/plugins/builtin/chart-composer/cli-options.ts +4 -2
  154. package/src/plugins/builtin/chart-composer/data-catalog-pane.tsx +2 -6
  155. package/src/plugins/builtin/chart-composer/pane.tsx +9 -3
  156. package/src/plugins/builtin/cloud/auth-actions.tsx +11 -6
  157. package/src/plugins/builtin/cloud/company-picker.tsx +5 -3
  158. package/src/plugins/builtin/cloud/upgrade-command.ts +1 -1
  159. package/src/plugins/builtin/company-kpis/headless.ts +9 -4
  160. package/src/plugins/builtin/company-kpis/latest.ts +45 -0
  161. package/src/plugins/builtin/company-kpis/model.ts +38 -8
  162. package/src/plugins/builtin/company-kpis/pane.tsx +22 -8
  163. package/src/plugins/builtin/composite/alt-data.ts +20 -0
  164. package/src/plugins/builtin/composite/application.ts +14 -0
  165. package/src/plugins/builtin/composite/broker.ts +12 -0
  166. package/src/plugins/builtin/composite/credit.ts +33 -0
  167. package/src/plugins/builtin/composite/crypto.ts +10 -0
  168. package/src/plugins/builtin/composite/earnings.ts +12 -0
  169. package/src/plugins/builtin/composite/filings.ts +13 -0
  170. package/src/plugins/builtin/composite/futures-commodities.ts +23 -0
  171. package/src/plugins/builtin/composite/global-markets.ts +12 -0
  172. package/src/plugins/builtin/composite/options-volatility.ts +23 -0
  173. package/src/plugins/builtin/composite/ownership.ts +23 -0
  174. package/src/plugins/builtin/composite/portfolio.ts +10 -0
  175. package/src/plugins/builtin/composite/quant.ts +15 -0
  176. package/src/plugins/builtin/composite/rates-macro.ts +30 -0
  177. package/src/plugins/builtin/composite/screeners.ts +11 -0
  178. package/src/plugins/builtin/composite/shared.ts +11 -0
  179. package/src/plugins/builtin/composite/ticker-core.ts +36 -0
  180. package/src/plugins/builtin/congress-trades/headless.ts +31 -3
  181. package/src/plugins/builtin/correlation/index.tsx +13 -17
  182. package/src/plugins/builtin/correlation/matrix/model.ts +18 -0
  183. package/src/plugins/builtin/credit-conditions/series.ts +2 -2
  184. package/src/plugins/builtin/dividend-yield/client.ts +57 -16
  185. package/src/plugins/builtin/dividend-yield/headless.ts +17 -11
  186. package/src/plugins/builtin/dividend-yield/model.ts +4 -3
  187. package/src/plugins/builtin/dividend-yield/pane.tsx +22 -18
  188. package/src/plugins/builtin/dividend-yield/ranking.ts +1 -1
  189. package/src/plugins/builtin/dividend-yield/types.ts +4 -0
  190. package/src/plugins/builtin/dividend-yield/view.ts +23 -12
  191. package/src/plugins/builtin/earnings/board-model.ts +12 -0
  192. package/src/plugins/builtin/earnings/board-table.ts +7 -4
  193. package/src/plugins/builtin/earnings/board.tsx +2 -2
  194. package/src/plugins/builtin/earnings/fiscal-quarter.ts +39 -0
  195. package/src/plugins/builtin/earnings/headless.ts +7 -4
  196. package/src/plugins/builtin/earnings/highlight.ts +1 -1
  197. package/src/plugins/builtin/earnings/history-model.ts +6 -4
  198. package/src/plugins/builtin/earnings/history-table.ts +4 -3
  199. package/src/plugins/builtin/earnings-calls/pane.tsx +8 -2
  200. package/src/plugins/builtin/econ/calendar-model.ts +18 -0
  201. package/src/plugins/builtin/econ/fred-catalog.ts +1 -256
  202. package/src/plugins/builtin/econ/index.tsx +3 -0
  203. package/src/plugins/builtin/econ-statistics/cache.ts +1 -1
  204. package/src/plugins/builtin/econ-statistics/client.ts +11 -10
  205. package/src/plugins/builtin/econ-statistics/detail.tsx +1 -0
  206. package/src/plugins/builtin/econ-statistics/headless.ts +42 -6
  207. package/src/plugins/builtin/econ-statistics/index.tsx +1 -0
  208. package/src/plugins/builtin/econ-statistics/pane.tsx +7 -2
  209. package/src/plugins/builtin/econ-statistics/stats.ts +2 -1
  210. package/src/plugins/builtin/econ-statistics/view.ts +9 -3
  211. package/src/plugins/builtin/equity-screener/headless.ts +4 -1
  212. package/src/plugins/builtin/equity-screener/model.ts +7 -6
  213. package/src/plugins/builtin/estimate-revisions/headless.ts +1 -1
  214. package/src/plugins/builtin/exposure/model.ts +10 -0
  215. package/src/plugins/builtin/exposure/pane.tsx +10 -3
  216. package/src/plugins/builtin/fx-matrix/amount.ts +15 -1
  217. package/src/plugins/builtin/fx-matrix/headless.ts +12 -6
  218. package/src/plugins/builtin/fx-matrix/index.tsx +23 -5
  219. package/src/plugins/builtin/fx-matrix/settings.ts +9 -4
  220. package/src/plugins/builtin/kelly-sizer/pane.tsx +9 -4
  221. package/src/plugins/builtin/market-valuation/pane.tsx +22 -10
  222. package/src/plugins/builtin/mna/detail.tsx +67 -6
  223. package/src/plugins/builtin/mna/headless.ts +128 -13
  224. package/src/plugins/builtin/mna/model.ts +219 -16
  225. package/src/plugins/builtin/mna/pane.tsx +34 -6
  226. package/src/plugins/builtin/money-markets/model.ts +14 -5
  227. package/src/plugins/builtin/money-markets/pane.tsx +4 -3
  228. package/src/plugins/builtin/news/wire/news/footer.ts +3 -8
  229. package/src/plugins/builtin/options-scenario/csp-screen-pane.tsx +22 -6
  230. package/src/plugins/builtin/options-scenario/csp-screen.ts +39 -12
  231. package/src/plugins/builtin/options-scenario/strategy-screen.ts +7 -5
  232. package/src/plugins/builtin/pe-band/client.ts +13 -1
  233. package/src/plugins/builtin/pe-band/headless.ts +2 -2
  234. package/src/plugins/builtin/pe-band/model.ts +63 -10
  235. package/src/plugins/builtin/pe-band/pane.tsx +5 -5
  236. package/src/plugins/builtin/portfolio-list/allocation-rows.ts +26 -7
  237. package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +66 -13
  238. package/src/plugins/builtin/portfolio-list/cli/render.ts +76 -33
  239. package/src/plugins/builtin/portfolio-list/headless.ts +69 -22
  240. package/src/plugins/builtin/portfolio-list/pane/data.ts +3 -3
  241. package/src/plugins/builtin/portfolio-list/pane/index.tsx +29 -14
  242. package/src/plugins/builtin/portfolio-list/summary/index.tsx +2 -2
  243. package/src/plugins/builtin/relative-rotation/pane.tsx +2 -3
  244. package/src/plugins/builtin/research/corporate-actions-pane.tsx +5 -1
  245. package/src/plugins/builtin/research/event-model.ts +31 -13
  246. package/src/plugins/builtin/research/headless.ts +8 -1
  247. package/src/plugins/builtin/research/relative-valuation-pane.tsx +19 -17
  248. package/src/plugins/builtin/sectors/index.tsx +6 -9
  249. package/src/plugins/builtin/shared/cloud-upgrade.ts +1 -1
  250. package/src/plugins/builtin/shared/earnings-report.ts +19 -4
  251. package/src/plugins/builtin/shared/fred-catalog.ts +256 -0
  252. package/src/plugins/builtin/shared/report-freshness.ts +2 -3
  253. package/src/plugins/builtin/shared/series-cache.ts +3 -0
  254. package/src/plugins/builtin/shared/series-detail-chart.tsx +3 -0
  255. package/src/plugins/builtin/short-interest/watch-pane.tsx +7 -7
  256. package/src/plugins/builtin/supply-chain/client.ts +34 -9
  257. package/src/plugins/builtin/supply-chain/evidence.ts +3 -2
  258. package/src/plugins/builtin/supply-chain/flow.tsx +4 -3
  259. package/src/plugins/builtin/supply-chain/graph-model.ts +14 -7
  260. package/src/plugins/builtin/supply-chain/graph-pane.tsx +3 -1
  261. package/src/plugins/builtin/supply-chain/graph.tsx +6 -3
  262. package/src/plugins/builtin/supply-chain/headless.ts +19 -4
  263. package/src/plugins/builtin/supply-chain/model.ts +50 -6
  264. package/src/plugins/builtin/supply-chain/pane.tsx +76 -16
  265. package/src/plugins/builtin/ticker-detail/adr-pair/ah.ts +62 -0
  266. package/src/plugins/builtin/ticker-detail/adr-pair/headless.ts +119 -20
  267. package/src/plugins/builtin/ticker-detail/adr-pair/model.ts +67 -1
  268. package/src/plugins/builtin/ticker-detail/adr-pair/tab.tsx +31 -16
  269. package/src/plugins/builtin/ticker-detail/overview/model.ts +17 -1
  270. package/src/plugins/builtin/ticker-detail/overview/pane.tsx +4 -0
  271. package/src/plugins/builtin/ticker-detail/overview-tab.tsx +9 -2
  272. package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +9 -2
  273. package/src/plugins/builtin/ticker-detail/quote-monitor/index.tsx +5 -2
  274. package/src/plugins/builtin/time-sales/headless.ts +4 -1
  275. package/src/plugins/builtin/time-sales/pane.tsx +2 -0
  276. package/src/plugins/builtin/time-sales/window.ts +12 -0
  277. package/src/plugins/builtin/treasury-auctions/client.ts +4 -0
  278. package/src/plugins/builtin/treasury-auctions/treasury-direct.ts +2 -0
  279. package/src/plugins/builtin/treasury-daily/client.ts +23 -11
  280. package/src/plugins/builtin/volatility/model.ts +17 -0
  281. package/src/plugins/builtin/volatility/pane.tsx +13 -4
  282. package/src/plugins/builtin/world-indices/index.tsx +2 -0
  283. package/src/plugins/builtin/world-indices/table.tsx +15 -0
  284. package/src/plugins/builtin/world-venue-map/evidence.ts +3 -2
  285. package/src/plugins/builtin/world-venue-map/headless.ts +28 -16
  286. package/src/plugins/builtin/world-venue-map/index.ts +19 -6
  287. package/src/plugins/builtin/world-venue-map/layered-pane.tsx +9 -5
  288. package/src/plugins/builtin/world-venue-map/layers.ts +33 -11
  289. package/src/plugins/builtin/world-venue-map/map.tsx +12 -0
  290. package/src/plugins/builtin/world-venue-map/pane.tsx +35 -6
  291. package/src/plugins/builtin/world-venue-map/place.ts +119 -0
  292. package/src/plugins/catalog-data.ts +20 -0
  293. package/src/plugins/catalog-lazy.ts +51 -0
  294. package/src/plugins/catalog-ui.ts +16 -18
  295. package/src/plugins/host-smoke.ts +5 -2
  296. package/src/portfolio/allocation.ts +79 -19
  297. package/src/portfolio/cash-balances.ts +76 -0
  298. package/src/portfolio/mutations.ts +43 -8
  299. package/src/public/__snapshots__/public-api.test.ts.snap +1 -0
  300. package/src/renderers/desktop/window-layouts.ts +14 -0
  301. package/src/renderers/dom/data-table/row.tsx +2 -0
  302. package/src/renderers/dom/host/tabs.tsx +57 -8
  303. package/src/renderers/dom/styles.css +13 -5
  304. package/src/renderers/electrobun/bun/desktop/backend-requests.ts +4 -0
  305. package/src/renderers/electrobun/bun/desktop/backend.ts +22 -1
  306. package/src/renderers/electrobun/bun/window/native-min-size.ts +6 -1
  307. package/src/renderers/electrobun/shared/protocol.ts +4 -0
  308. package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +2 -0
  309. package/src/renderers/electrobun/view/cli-pane-shot-frame.tsx +50 -12
  310. package/src/renderers/electrobun/view/remote/ticker-repository.ts +10 -0
  311. package/src/series/standalone-catalog.ts +5 -4
  312. package/src/series/standalone.ts +13 -7
  313. package/src/sources/gloomberb-cloud/fred-publisher.ts +25 -0
  314. package/src/sources/gloomberb-cloud/fred-series.ts +1 -1
  315. package/src/sources/gloomberb-cloud/index.ts +14 -3
  316. package/src/sources/gloomberb-cloud/perpetuals.ts +60 -3
  317. package/src/sources/provider-router/financials.ts +20 -13
  318. package/src/sources/provider-router/index.ts +4 -0
  319. package/src/sources/provider-router/search.ts +1 -0
  320. package/src/sync/collections-contributor.ts +3 -1
  321. package/src/sync/config-merge.ts +10 -1
  322. package/src/sync/sanitize.ts +26 -2
  323. package/src/tickers/company-name-listing.ts +16 -2
  324. package/src/tickers/listing-fate.ts +12 -8
  325. package/src/tickers/renamed-listings.ts +43 -10
  326. package/src/tickers/search/home-listing.ts +28 -0
  327. package/src/tickers/search/index.ts +19 -7
  328. package/src/tickers/terminal-codes.ts +11 -1
  329. package/src/time-series/base-series.ts +3 -0
  330. package/src/time-series/ice-credit.ts +1 -0
  331. package/src/time-series/resolve.ts +3 -1
  332. package/src/time-series/spec.ts +2 -2
  333. package/src/time-series/types.ts +2 -1
  334. package/src/types/data-provider.ts +11 -0
  335. package/src/types/financials.ts +39 -3
  336. package/src/types/headless.ts +4 -2
  337. package/src/types/ticker.ts +10 -2
  338. package/src/utils/cli-output.ts +1 -1
  339. package/src/utils/declared-dividends.ts +13 -1
  340. package/src/utils/dividend-cash.ts +5 -1
  341. package/src/utils/forward-dividend.ts +4 -3
  342. package/src/utils/remove-folder.ts +37 -0
  343. package/src/utils/throttled-fetch.ts +15 -1
  344. package/src/utils/trailing-dividend.ts +1 -1
  345. package/src/plugins/builtin/composite-plugins.ts +0 -285
@@ -216,7 +216,7 @@ const RANKING_COLUMNS: HeadlessPaneColumn[] = [
216
216
  // CSV and NDJSON say `n/m` where JSON has null; the text report draws `N/M` as P/E does.
217
217
  format: (value, row) => row.payoutNotMeaningful === true ? PAYOUT_NOT_MEANINGFUL.toLowerCase() : ratio(value),
218
218
  textFormat: (value, row) => row.payoutNotMeaningful === true ? PAYOUT_NOT_MEANINGFUL : ratio(value),
219
- description: "Trailing twelve-month dividends over trailing twelve-month diluted EPS; N/M when that EPS is zero or negative." },
219
+ description: "Supplied earnings payout ratio; its accounting basis and measurement period are unstated. N/M when known trailing EPS is non-positive." },
220
220
  { key: "growth1Y", header: "1Y growth", align: "right", format: growth("growth1Y"), textFormat: growth("growth1Y", NOT_MEANINGFUL_TEXT),
221
221
  description: "Trailing twelve-month cash per share against a year earlier; N/M when the year earlier paid nothing; n/a when either year holds fewer payments than the cadence pays." },
222
222
  { key: "growth3Y", header: "3Y CAGR", align: "right", format: growth("growth3Y"), textFormat: growth("growth3Y", NOT_MEANINGFUL_TEXT),
@@ -1,5 +1,6 @@
1
1
  import type { DividendLapse } from "../../../utils/forward-dividend";
2
2
  import type { DistributionCadence, TrailingPayments } from "../../../utils/trailing-dividend";
3
+ import type { DividendCashEstimate } from "../../../types/financials";
3
4
 
4
5
  export interface DividendPayment {
5
6
  exDate: Date;
@@ -11,6 +12,7 @@ export interface DividendPayment {
11
12
  type: "cash" | "special" | "stock" | "unknown";
12
13
  /** The amount as the company declared it, in another currency than `currency` (BP's dollars beside the pence its London line paid). */
13
14
  declared?: { amount: number; currency: string };
15
+ cashEstimate?: DividendCashEstimate;
14
16
  /** Who published it when not the listing's history: the fund's sponsor (DividendAction.source). */
15
17
  source?: { publisher: string; url: string };
16
18
  }
@@ -28,6 +30,8 @@ export interface DividendMetrics {
28
30
  forwardRate: number | null;
29
31
  /** The ex-date of the distribution the forward rate annualizes, YYYY-MM-DD; with `forwardBasis`, the latest of the year's payments. */
30
32
  forwardRateAsOf: string | null;
33
+ forwardEstimate?: DividendCashEstimate;
34
+ trailingEstimates?: DividendCashEstimate[];
31
35
  /** `uneven`: the year's regular payments differ widely, so the forward rate is their total rather than one annualized (unevenRegularPayments). */
32
36
  forwardBasis?: "uneven" | null;
33
37
  /** Set once the dividend has stopped (lapsedDividend), when there is no forward rate or yield. */
@@ -1,27 +1,36 @@
1
- import type { DividendPayment, GrowthPayments } from "./types";
2
- import { MISSING_VALUE, formatCurrency } from "../../../utils/format";
3
- import { currencyMinorDigits } from "../../../market-data/market/format";
1
+ import type { DividendMetrics, DividendPayment, GrowthPayments } from "./types";
2
+ import { MISSING_VALUE, formatCurrency, formatDistributionAmount } from "../../../utils/format";
4
3
  import { resolveCurrencyUnit } from "../../../utils/currency-units";
5
4
  import type { ProjectedChartPoint } from "../../../components/chart/core/data";
6
5
  import { calendarMonthsBefore } from "../../../utils/calendar-date";
7
6
  import { NOT_MEANINGFUL, formatPriceEarnings } from "../../../utils/price-earnings";
7
+ import { UNEVEN_REGULAR_PAYMENTS } from "../../../utils/forward-dividend";
8
8
  import { CADENCE_GRACE_DAYS, LATE_GRACE_DAYS, trailingCashAt, type TrailingPayments } from "../../../utils/trailing-dividend";
9
9
 
10
10
  const DAY = 24 * 60 * 60 * 1000;
11
11
 
12
- /**
13
- * A cash amount the listing pays as a conversion of the currency its company
14
- * declares in (`DividendData.convertedFrom`), to two decimals of the unit its
15
- * source states it in: pence stay pence (BP's 6.4059p is `6.41p`, never
16
- * `£0.06`), and a major unit keeps its currency's decimals (`ZAR 0.87`, not
17
- * `ZAR 0.866087`), as the conversion gives it no more.
18
- */
19
12
  export function formatConvertedAmount(value: number | null | undefined, currency: string, subUnit?: string): string {
20
13
  if (value == null || !Number.isFinite(value)) return MISSING_VALUE;
21
14
  const unit = subUnit ? resolveCurrencyUnit(subUnit) : null;
22
15
  return unit && unit.divisor !== 1 && unit.currency === currency
23
- ? formatCurrency(value * unit.divisor, subUnit!, 2)
24
- : formatCurrency(value, currency, currencyMinorDigits(currency));
16
+ ? formatCurrency(value * unit.divisor, subUnit!, 6)
17
+ : formatCurrency(value, currency, 8);
18
+ }
19
+
20
+ export function formatDividendRowAmount(row: Pick<DividendRow, "amount" | "currency" | "cashEstimate">, converted = false, subUnit?: string): string {
21
+ const cash = converted ? formatConvertedAmount(row.amount, row.currency, subUnit) : formatDistributionAmount(row.amount, row.currency);
22
+ return `${row.cashEstimate ? "estimated " : ""}${cash}`;
23
+ }
24
+
25
+ export function forwardEstimateText(metrics: DividendMetrics): string | null {
26
+ const estimate = metrics.forwardEstimate;
27
+ if (!estimate) return null;
28
+ return `${metrics.forwardBasis === "uneven" ? `${UNEVEN_REGULAR_PAYMENTS}; ` : ""}${cashEstimateText(estimate)}`;
29
+ }
30
+
31
+ export function cashEstimateText(estimate: NonNullable<DividendMetrics["forwardEstimate"]>): string {
32
+ const declared = estimate.declaredAmount == null ? estimate.declaredCurrency : `${estimate.declaredAmount} ${estimate.declaredCurrency}/share`;
33
+ return `estimated from ${declared}; FX ${estimate.fixingDate ? `fixing ${estimate.fixingDate}` : "fixing unavailable"}${estimate.basis ? `; ${estimate.basis}` : ""}`;
25
34
  }
26
35
 
27
36
  /** What a converted amount says beside it: `converted from USD`. */
@@ -101,6 +110,7 @@ export interface DividendRow {
101
110
  key: string;
102
111
  exDate: string;
103
112
  amount: number;
113
+ cashEstimate?: DividendPayment["cashEstimate"];
104
114
  currency: string;
105
115
  /** The amount as the company declared it, in another currency (DividendPayment.declared). */
106
116
  declared?: { amount: number; currency: string };
@@ -113,6 +123,7 @@ export function toDividendRows(payments: DividendPayment[]): DividendRow[] {
113
123
  key: `${payment.exDate.toISOString()}:${index}`,
114
124
  exDate: payment.exDate.toISOString().slice(0, 10),
115
125
  amount: payment.amount,
126
+ ...(payment.cashEstimate ? { cashEstimate: payment.cashEstimate } : {}),
116
127
  currency: payment.currency,
117
128
  ...(payment.declared ? { declared: payment.declared } : {}),
118
129
  ...(payment.source ? { source: payment.source.publisher } : {}),
@@ -39,6 +39,8 @@ export interface BoardReport {
39
39
  revenueEstimate: number | null;
40
40
  impliedMove: number | null;
41
41
  averageMove: number | null;
42
+ /** The move on a report already out: the close after it over the close before, signed. Null until both closes are in. */
43
+ realizedMove: number | null;
42
44
  owned: Ownership | null;
43
45
  /** ISO currency of the EPS and sales figures; null when the report has none. The market cap is always dollars. */
44
46
  currency?: string | null;
@@ -156,6 +158,7 @@ export function boardReport(report: EarningsCalendarReport, owned: ReadonlyMap<s
156
158
  revenueEstimate: report.revenueEstimate,
157
159
  impliedMove: report.implied?.move ?? null,
158
160
  averageMove: report.averageReports >= MIN_AVERAGE_REPORTS ? report.averageMove : null,
161
+ realizedMove: report.realized?.move ?? null,
159
162
  owned: owned.get(report.symbol) ?? null,
160
163
  // The board's US reports are in dollars; a listing abroad's say their own.
161
164
  currency: report.currency ?? "USD",
@@ -248,6 +251,7 @@ export function fallbackReport(event: EarningsEvent, owned: ReadonlyMap<string,
248
251
  revenueEstimate: dollars("revenueEstimate"),
249
252
  impliedMove: null,
250
253
  averageMove: null,
254
+ realizedMove: null,
251
255
  owned: owned.get(event.symbol) ?? null,
252
256
  currency: epsEstimate != null || dollars("revenueEstimate") != null ? "USD" : null,
253
257
  };
@@ -274,6 +278,14 @@ export function reportMove(report: Pick<BoardReport, "date" | "dateStatus" | "ti
274
278
  return percent != null && Number.isFinite(percent) ? percent / 100 : null;
275
279
  }
276
280
 
281
+ /**
282
+ * The MOVE a board row shows: the move so far on a report out today
283
+ * (reportMove), else the move across a report already out (`realizedMove`).
284
+ */
285
+ export function boardMove(report: BoardReport, quote: Quote | null | undefined, today: string): number | null {
286
+ return reportMove(report, quote, today) ?? report.realizedMove;
287
+ }
288
+
277
289
  function compare(left: BoardReport, right: BoardReport, sort: BoardSort): number {
278
290
  const value = (report: BoardReport) =>
279
291
  sort.column === "cap" ? report.marketCap : sort.column === "implied" ? report.impliedMove
@@ -27,10 +27,13 @@ const ALL_COLUMNS: BoardColumn[] = [
27
27
  { id: "name", label: "NAME", width: NAME_MIN_WIDTH, align: "left" },
28
28
  { id: "when", label: "WHEN", width: 7, align: "left" },
29
29
  { id: "status", label: "STATUS", width: 9, align: "left" },
30
- { id: "implied", label: "IMPLIED", width: 7, align: "right" },
30
+ // The implied move, the move on the report and their average are left out
31
+ // while no report in view has one: small caps list no options and too few
32
+ // reports to average, and a move is only measured on the day a report is out.
33
+ { id: "implied", label: "IMPLIED", width: 7, align: "right", omitWhenEmpty: "visible" },
31
34
  // The move, the actual EPS and its surprise come with the report: an upcoming one has none.
32
- { id: "move", label: "MOVE", width: 7, align: "right", mayBeBlank: true },
33
- { id: "average", label: "AVG MOVE", width: 8, align: "right" },
35
+ { id: "move", label: "MOVE", width: 7, align: "right", mayBeBlank: true, omitWhenEmpty: "visible" },
36
+ { id: "average", label: "AVG MOVE", width: 8, align: "right", omitWhenEmpty: "visible" },
34
37
  // The currency of the EPS and sales figures, on a board with a listing abroad's (CNY for Tencent).
35
38
  { id: "ccy", label: "CCY", width: 3, align: "left" },
36
39
  { id: "epsEstimate", label: "EPS EST", width: 7, align: "right" },
@@ -120,7 +123,7 @@ export function renderBoardSection(row: BoardRow) {
120
123
  export interface BoardCellContext {
121
124
  /** Whether the STATUS column is on screen; without it the WHEN cell says which reports are out. */
122
125
  statusShown: boolean;
123
- /** The move on a report out today (reportMove); "loading" while its quote is. */
126
+ /** The move on the report (boardMove): so far for one out today, across it for one out before; "loading" while today's quote is. */
124
127
  move: (report: BoardReport) => number | "loading" | null;
125
128
  /** The desktop and the web lead each name with the company's logo; the terminal draws none. */
126
129
  logos?: boolean;
@@ -41,7 +41,7 @@ import {
41
41
  newYorkToday,
42
42
  ownershipBySymbol,
43
43
  relativeDays,
44
- reportMove,
44
+ boardMove,
45
45
  type BoardReport,
46
46
  type BoardRow,
47
47
  type BoardSort,
@@ -302,7 +302,7 @@ export function EarningsBoard({ focused, width, height, scopedSymbols, highlight
302
302
  logos,
303
303
  move: (report) => {
304
304
  const state = quotesRef.current.get(report.symbol);
305
- const move = reportMove(report, state?.quote, today);
305
+ const move = boardMove(report, state?.quote, today);
306
306
  return move == null && report.dateStatus === "reported" && report.date === today && isBoardRowLoading(state) ? "loading" : move;
307
307
  },
308
308
  };
@@ -1,5 +1,6 @@
1
1
  import type { EarningsFiscalAnchor } from "../../../api-client/earnings";
2
2
  import { addDays } from "./board-model";
3
+ import { quarterLabel } from "../shared/earnings-report";
3
4
 
4
5
  /** A quarter as the company names it: NVIDIA's October 2026 quarter is Q3 of fiscal 2027. */
5
6
  export interface FiscalQuarter {
@@ -28,6 +29,40 @@ export function fiscalQuarterOf(period: string | null | undefined, anchor: Earni
28
29
  return { fiscalYear: Math.floor(index / 4), fiscalQuarter: (index % 4) + 1 };
29
30
  }
30
31
 
32
+ /**
33
+ * The month a period ends in, from a YYYY-MM month or a YYYY-MM-DD end. A
34
+ * 52/53-week period that ends in a month's first week (Feb 1, 2026) closes
35
+ * the month before, as its filer counts it.
36
+ */
37
+ function closingMonth(period: string | null | undefined): number | null {
38
+ const day = period ? /^(\d{4}-\d{2})-(\d{2})/.exec(period) : null;
39
+ const month = monthIndex(day ? day[1] : period);
40
+ return month != null && day && Number(day[2]) <= 7 ? month - 1 : month;
41
+ }
42
+
43
+ /**
44
+ * The quarter ending in `period` on a fiscal year that ends in `yearEndMonth`
45
+ * (1 to 12, from the company's annual statements), where no calls name the
46
+ * company's quarters: Visa's December 2026 quarter is Q1 FY2027, its year
47
+ * ending in September. A fiscal year is named by the calendar year it ends
48
+ * in. Null off that year's quarters, or without a year end.
49
+ */
50
+ export function fiscalQuarterInYear(period: string | null | undefined, yearEndMonth: number | null | undefined): FiscalQuarter | null {
51
+ const month = closingMonth(period);
52
+ if (month == null || yearEndMonth == null || yearEndMonth < 1 || yearEndMonth > 12) return null;
53
+ const calendarMonth = (month % 12) + 1;
54
+ const offset = (calendarMonth - yearEndMonth + 12) % 12;
55
+ if (offset % 3 !== 0) return null;
56
+ const year = Math.floor(month / 12);
57
+ return { fiscalYear: calendarMonth <= yearEndMonth ? year : year + 1, fiscalQuarter: offset === 0 ? 4 : offset / 3 };
58
+ }
59
+
60
+ /** "FY2027" for a period that ends a fiscal year ending in `yearEndMonth`; null for any other. */
61
+ export function fiscalYearText(period: string | null | undefined, yearEndMonth: number | null | undefined): string | null {
62
+ const quarter = fiscalQuarterInYear(period, yearEndMonth);
63
+ return quarter?.fiscalQuarter === 4 ? `FY${quarter.fiscalYear}` : null;
64
+ }
65
+
31
66
  /**
32
67
  * The quarter-end month a report with none on record announces: the last on
33
68
  * the company's cycle that ended 5 to 100 days before it, as Gloom Cloud
@@ -52,3 +87,7 @@ export function fiscalQuarterText(quarter: FiscalQuarter | null | undefined, sho
52
87
  if (!quarter) return null;
53
88
  return `Q${quarter.fiscalQuarter} FY${short ? String(quarter.fiscalYear).slice(-2) : quarter.fiscalYear}`;
54
89
  }
90
+
91
+ export function fiscalPeriodText(period: string | null | undefined, quarter?: FiscalQuarter | null, short = false): string {
92
+ return fiscalQuarterText(quarter, short) ?? quarterLabel(period ?? undefined);
93
+ }
@@ -17,9 +17,9 @@ import { fetchEarningsCalendar, fetchEarningsHistory, noHistoryAbroad, sameHisto
17
17
  import { loadEarningsCalendar } from "./data/cache";
18
18
  import { epsText, impliedText, moneyText, moveSize, signedPercent, TIMING_LABEL } from "./format";
19
19
  import { historyRows, periodText } from "./history-model";
20
- import { fiscalQuarterText } from "./fiscal-quarter";
20
+ import { fiscalPeriodText, fiscalQuarterText } from "./fiscal-quarter";
21
21
  import { loadNoEarningsText } from "./no-earnings";
22
- import { EPS_BASIS_NOTE, epsBasisName, PROVISIONAL_NOTE, showsEpsBasis } from "../shared/earnings-report";
22
+ import { EPS_BASIS_NOTE, epsBasisName, lacksConsensus, NO_CONSENSUS, PROVISIONAL_NOTE, showsEpsBasis } from "../shared/earnings-report";
23
23
  import { lastReportOnRecord, listingDay, noNextReportText } from "../shared/earnings-calendar";
24
24
  import { commandWord } from "../../../utils/shell-word";
25
25
  import { listingAbroadVenue } from "../../../utils/sec";
@@ -96,8 +96,9 @@ const HISTORY_COLUMNS: HeadlessPaneColumn[] = [
96
96
  { key: "dateStatus", header: "Status" },
97
97
  { key: "timing", header: "When" },
98
98
  // The quarter as the company names it; its end month where the company's calls do not say. Exports keep both.
99
- { key: "fiscalQuarter", header: "Quarter", format: (value, row) => typeof value === "string" ? value : typeof row.fiscalPeriod === "string" ? row.fiscalPeriod : MISSING_VALUE },
100
- { key: "epsEstimate", header: "EPS est", align: right, format: (value) => epsText(num(value)) },
99
+ { key: "fiscalQuarter", header: "Quarter", format: (value, row) => typeof value === "string" ? value : fiscalPeriodText(typeof row.fiscalPeriod === "string" ? row.fiscalPeriod : undefined) },
100
+ // A reported quarter with no consensus on record says so (exports: in the status column), never a bare blank.
101
+ { key: "epsEstimate", header: "EPS est", align: right, format: (value, row) => lacksConsensus({ epsActual: num(row.epsActual), epsEstimate: num(value) }) ? NO_CONSENSUS : epsText(num(value)) },
101
102
  { key: "epsAnalysts", header: "Ests", align: right },
102
103
  { key: "epsActual", header: "EPS act", align: right, format: (value) => epsText(num(value)) },
103
104
  BASIS_COLUMN,
@@ -245,6 +246,8 @@ async function boardRows(args: HeadlessPaneLoadArgs, context: HeadlessPaneContex
245
246
  return {
246
247
  columns: BOARD_COLUMNS,
247
248
  rows,
249
+ complete: rows.length === all.length && cloud.status !== "rejected",
250
+ ...(rows.length < all.length ? { notes: [`Showing ${rows.length} of ${all.length} reports. Retrieve all with --limit ${all.length}.`] } : {}),
248
251
  errors: cloud.status === "rejected" ? [String(cloud.reason instanceof Error ? cloud.reason.message : cloud.reason)] : undefined,
249
252
  metadata: {
250
253
  ...(ticker ? { notices: [ticker.notice], highlight: { symbol: highlight, onBoard: ticker.date != null, date: ticker.date, row: ticker.row } } : {}),
@@ -32,7 +32,7 @@ export async function loadEarningsHighlight(symbol: string, today: string, provi
32
32
  marketCap: source?.marketCap ?? null,
33
33
  epsEstimate: row.epsEstimate, epsAnalysts: row.epsAnalysts, epsActual: row.epsActual,
34
34
  provisional: row.provisional, epsBasis: row.epsBasis, epsSurprise: row.epsSurprise,
35
- revenueEstimate: row.revenueEstimate, impliedMove: row.implied, averageMove: null,
35
+ revenueEstimate: row.revenueEstimate, impliedMove: row.implied, averageMove: null, realizedMove: row.move,
36
36
  owned: null, currency: row.currency ?? "USD",
37
37
  },
38
38
  stale: (history.status === "fulfilled" && !!history.value?.stale) || (upcoming.status === "fulfilled" && upcoming.value.stale),
@@ -7,8 +7,8 @@ import type { EarningsDateStatus, EarningsEpsBasis } from "../../../types/financ
7
7
  import { earningsDateStatus, earningsEpsBasis, isProvisionalActual } from "../shared/earnings-report";
8
8
  import { resolveReportRows, type ReportRowAdapter } from "../shared/earnings-calendar";
9
9
  import { addDays, MIN_AVERAGE_REPORTS } from "./board-model";
10
- import { fiscalQuarterOf, fiscalQuarterText, placedPeriod, type FiscalQuarter } from "./fiscal-quarter";
11
- import { datedYear, fiscalMonth, impliedText, moveSize, shortDate, surprise, TIMING_LABEL, type Surprise } from "./format";
10
+ import { fiscalQuarterOf, fiscalPeriodText, placedPeriod, type FiscalQuarter } from "./fiscal-quarter";
11
+ import { datedYear, epsText, fiscalMonth, impliedText, moveSize, shortDate, surprise, TIMING_LABEL, type Surprise } from "./format";
12
12
 
13
13
  export interface HistoryRow {
14
14
  key: string;
@@ -67,7 +67,7 @@ export function periodText(
67
67
  row: Pick<HistoryRow, "periodKind" | "periodMonths" | "periodFiscalYear" | "fiscalHalf" | "fiscalQuarter" | "fiscalPeriod">,
68
68
  short = true,
69
69
  ): string {
70
- if (row.periodKind === "quarter") return fiscalQuarterText(row.fiscalQuarter, short) ?? fiscalMonth(row.fiscalPeriod);
70
+ if (row.periodKind === "quarter") return fiscalPeriodText(row.fiscalPeriod, row.fiscalQuarter, short);
71
71
  const year = row.periodFiscalYear == null ? null : `FY${short ? String(row.periodFiscalYear).slice(-2) : row.periodFiscalYear}`;
72
72
  if (row.periodKind === "year" && year) return year;
73
73
  if (row.periodKind === "half" && year && row.fiscalHalf != null) return `H${row.fiscalHalf} ${year}`;
@@ -262,11 +262,13 @@ export function historyFigures(rows: readonly HistoryRow[], today: string): Stat
262
262
  const beats = past.filter((row) => row.epsSurprise != null && row.epsActual != null && row.epsEstimate != null);
263
263
  const figures: StatItem[] = [];
264
264
  if (next) {
265
+ const estimate = next.epsEstimate == null ? null : `EPS est ${epsText(next.epsEstimate)}${next.currency ? ` ${next.currency}` : ""}`;
265
266
  figures.push({
266
267
  id: "next",
267
268
  label: "Next report",
268
269
  value: `${shortDate(next.date)}${next.timing ? ` ${TIMING_LABEL[next.timing]}` : ""}`,
269
- detail: [next.dateStatus === "reported" ? null : next.dateStatus, daysUntil(next.date, today)].filter(Boolean).join(", "),
270
+ detail: [estimate, next.dateStatus === "reported" ? null : next.dateStatus, daysUntil(next.date, today)].filter(Boolean).join(", "),
271
+ ...(estimate ? { detailVariants: [estimate] } : {}),
270
272
  });
271
273
  if (next.implied != null) {
272
274
  figures.push({
@@ -6,7 +6,7 @@ import { notMeaningfulCell } from "../../../components/ui/not-meaningful";
6
6
  import { isNotMeaningful } from "../../../utils/growth";
7
7
  import { TextAttributes } from "../../../ui";
8
8
  import { datedYear, epsText, impliedText, moneyText, signedPercent, TIMING_LABEL, type Surprise } from "./format";
9
- import { epsBasisShort, showsEpsBasis } from "../shared/earnings-report";
9
+ import { epsBasisShort, lacksConsensus, NO_CONSENSUS_SHORT, showsEpsBasis } from "../shared/earnings-report";
10
10
  import { periodText, type HistoryRow } from "./history-model";
11
11
 
12
12
  type HistoryColumnId =
@@ -18,7 +18,7 @@ export type HistoryColumn = DataTableColumn & { id: HistoryColumnId };
18
18
  const ALL_COLUMNS: HistoryColumn[] = [
19
19
  { id: "date", label: "DATE", width: 10, align: "left" },
20
20
  { id: "when", label: "WHEN", width: 4, align: "left" },
21
- { id: "period", label: "QTR", width: 7, align: "left" },
21
+ { id: "period", label: "QTR", width: 8, align: "left" },
22
22
  { id: "epsEstimate", label: "EPS EST", width: 7, align: "right" },
23
23
  { id: "analysts", label: "ESTS", width: 4, align: "right" },
24
24
  { id: "epsActual", label: "EPS ACT", width: 7, align: "right" },
@@ -117,7 +117,8 @@ export function renderHistoryCell(row: HistoryRow, column: HistoryColumn, liveMo
117
117
  case "period":
118
118
  return { text: periodText(row), color: dim };
119
119
  case "epsEstimate":
120
- return { text: inCurrency(epsText(row.epsEstimate), row), color: dim };
120
+ // A reported quarter with no consensus on record says so; its surprise stays blank.
121
+ return { text: lacksConsensus(row) ? NO_CONSENSUS_SHORT : inCurrency(epsText(row.epsEstimate), row), color: dim };
121
122
  case "analysts":
122
123
  return { text: row.epsAnalysts == null ? MISSING_VALUE : String(row.epsAnalysts), color: dim };
123
124
  case "epsActual":
@@ -278,6 +278,10 @@ function CallsListView({
278
278
  });
279
279
 
280
280
  const [calls, setCalls] = useState<CloudEarningsCallPayload[]>(initialShelf?.calls ?? []);
281
+ // The binding the shelf was read for. A dual-listed company's calls carry its
282
+ // home line's ticker (CALLS 1088:HKEX lists 601088:SSE's), so a call on this
283
+ // binding's shelf is its own whatever ticker it carries.
284
+ const [shelfTicker, setShelfTicker] = useState(() => symbol ? symbol.toUpperCase() : null);
281
285
  const [listStatus, setListStatus] = useState<"idle" | "loading" | "loaded" | "error">(initialShelf ? "loaded" : "idle");
282
286
  const [listError, setListError] = useState<{ message: string; status?: number } | null>(null);
283
287
  const [stale, setStale] = useState(initialShelf?.stale === true);
@@ -345,6 +349,7 @@ function CallsListView({
345
349
  .then((result) => {
346
350
  if (request !== listRequestVersion.current) return;
347
351
  setCalls(result.calls);
352
+ setShelfTicker(ticker);
348
353
  setNextOffset(result.calls.length);
349
354
  setHasMore(result.sourceLimitReached === true);
350
355
  setStale(result.stale);
@@ -416,6 +421,7 @@ function CallsListView({
416
421
  firstShelfLoadRef.current = false;
417
422
  const held = cachedEarningsCalls(ticker, { limit: CALL_PAGE_SIZE, exchange: listingVenue, name: listingName });
418
423
  setCalls(held?.calls ?? []);
424
+ setShelfTicker(ticker);
419
425
  setHasMore(held?.sourceLimitReached === true);
420
426
  setLoadingMore(false);
421
427
  setNextOffset(held?.calls.length ?? 0);
@@ -660,7 +666,7 @@ function CallsListView({
660
666
  if (!detailOpen || !selectedCallId || selectedUpcoming || !access.emailVerified || !access.hasProAccess) return;
661
667
  // A binding change clears selection in an effect; do not start a request
662
668
  // for that previous selection during the same render's effect pass.
663
- if (ticker && selected?.ticker.toUpperCase() !== ticker) return;
669
+ if (ticker && selected?.ticker.toUpperCase() !== ticker && shelfTicker !== ticker) return;
664
670
  let cancelled = false;
665
671
  let timer: ReturnType<typeof setTimeout> | null = null;
666
672
  setTranscriptError(null);
@@ -705,7 +711,7 @@ function CallsListView({
705
711
  };
706
712
  // The call's identity is what matters; list refreshes must not restart this.
707
713
  // eslint-disable-next-line react-hooks/exhaustive-deps
708
- }, [detailOpen, selectedCallId, selectedUpcoming, ticker, access.emailVerified, access.hasProAccess]);
714
+ }, [detailOpen, selectedCallId, selectedUpcoming, ticker, shelfTicker, access.emailVerified, access.hasProAccess]);
709
715
 
710
716
  const scrollTranscriptBy = useCallback((delta: number) => {
711
717
  if (transcriptScrollRef.current) scrollByLines(transcriptScrollRef.current, delta);
@@ -458,6 +458,8 @@ const POLICY_DECISION_TITLES: Readonly<Record<string, string>> = {
458
458
  * `usda` every row the U.S. Department of Agriculture publishes.
459
459
  */
460
460
  export function matchesEventSearch(event: Pick<EconEvent, "country" | "event" | "actual" | "forecast" | "prior" | "source">, query: string): boolean {
461
+ const alternatives = query.split(/\s+OR\s+/i);
462
+ if (alternatives.length > 1) return alternatives.some((alternative) => alternative.trim() && matchesEventSearch(event, alternative));
461
463
  const words = query.split(/\s+/).map(compactName).filter(Boolean);
462
464
  if (words.length === 0) return true;
463
465
  const names = eventSearchNames(event);
@@ -528,6 +530,22 @@ export function figureGap(
528
530
  return releaseIn ? "none" : "awaiting";
529
531
  }
530
532
 
533
+ /**
534
+ * Whether a row's ACTUAL is blank with no figure missing: the release is
535
+ * still to come (by its time, or by its day where it has none), or it prints
536
+ * no figure at all (a speech, a meeting, with neither forecast nor prior).
537
+ * A release past its time with a figure due is not: figureGap says it is
538
+ * awaited for a day, and its blank after that is a figure the source lost.
539
+ */
540
+ export function actualMayBeBlank(
541
+ event: Pick<EconEvent, "actual" | "forecast" | "prior" | "date" | "time" | "timeNote">,
542
+ now: number,
543
+ ): boolean {
544
+ if (event.actual?.trim()) return false;
545
+ if (!event.forecast?.trim() && !event.prior?.trim()) return true;
546
+ return now < event.date.getTime() + (hasNoReleaseTime(event) ? AWAITING_FIGURE_MS : 0);
547
+ }
548
+
531
549
  /** What a release awaiting its figure says in place of it: "due 07:00 UTC, awaiting figure". */
532
550
  function awaitingFigureText(event: Pick<EconEvent, "date">): string {
533
551
  return `due ${timeLabel(event.date)} ${CALENDAR_TIME_ZONE_LABEL}, awaiting figure`;