@gloom-sh/terminal 0.19.5 → 0.19.6

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 (208) hide show
  1. package/package.json +1 -1
  2. package/patches/@opentui%2Fcore@0.3.2.patch +86 -25
  3. package/src/api-client/equity-screener.ts +23 -0
  4. package/src/app/pane-runtime/index.tsx +2 -0
  5. package/src/app/pane-runtime/plugin-bindings.ts +10 -1
  6. package/src/app.tsx +63 -16
  7. package/src/cli/commands/market.ts +149 -10
  8. package/src/cli/commands/search.ts +21 -3
  9. package/src/cli/commands/ticker.ts +74 -33
  10. package/src/cli/glossary.ts +3 -3
  11. package/src/cli/known-gaps.ts +8 -0
  12. package/src/cli/listing-arg.ts +12 -0
  13. package/src/cli/pane-functions/capabilities.ts +2 -0
  14. package/src/cli/pane-functions/catalog.ts +22 -4
  15. package/src/cli/pane-functions/function-help.ts +8 -5
  16. package/src/cli/pane-functions/headless.ts +4 -3
  17. package/src/cli/pane-functions/resolver.ts +75 -2
  18. package/src/cli/quote-answer.ts +9 -0
  19. package/src/cli/symbol-list.ts +54 -2
  20. package/src/cli/symbol-rows.ts +14 -2
  21. package/src/cli/ticker-resolution.ts +89 -20
  22. package/src/components/chart/composite/axis-overlays.tsx +60 -27
  23. package/src/components/chart/composite/composite-chart.tsx +118 -63
  24. package/src/components/chart/composite/cursor-source.ts +111 -0
  25. package/src/components/chart/composite/format.ts +168 -6
  26. package/src/components/chart/composite/legend.tsx +8 -4
  27. package/src/components/chart/composite/panel-labels.ts +20 -1
  28. package/src/components/chart/composite/panel-surface.tsx +201 -92
  29. package/src/components/chart/composite/price-axis-labels.tsx +92 -46
  30. package/src/components/chart/composite/price-series.ts +31 -8
  31. package/src/components/chart/composite/scene.ts +154 -59
  32. package/src/components/chart/composite/series-axis-tags.tsx +4 -2
  33. package/src/components/chart/composite/time-axis.ts +13 -5
  34. package/src/components/chart/composite/time-scale.ts +211 -56
  35. package/src/components/chart/composite/types.ts +11 -1
  36. package/src/components/chart/composite/use-composite-chart-keyboard.ts +32 -12
  37. package/src/components/chart/curve/curve-surface.tsx +5 -2
  38. package/src/components/chart/curve/model.ts +4 -1
  39. package/src/components/chart/native/use-bitmap-metrics.ts +81 -0
  40. package/src/components/chart/static/series.ts +3 -0
  41. package/src/components/command-bar/commands/collection-list.ts +81 -0
  42. package/src/components/command-bar/commands/direct/index.ts +6 -0
  43. package/src/components/command-bar/commands/registry.ts +8 -0
  44. package/src/components/command-bar/layout-items/current-layout.ts +22 -1
  45. package/src/components/command-bar/layout-items/focused-pane.ts +22 -1
  46. package/src/components/command-bar/pane-templates/items.ts +19 -3
  47. package/src/components/command-bar/pane-templates/workflow.ts +5 -0
  48. package/src/components/command-bar/routes/root/results.ts +23 -3
  49. package/src/components/command-bar/routes/root/selection.ts +4 -2
  50. package/src/components/command-bar/routes/root/shortcut-feedback.ts +1 -1
  51. package/src/components/command-bar/routes/root/shortcut-items.ts +3 -4
  52. package/src/components/command-bar/routes/root/shortcuts.ts +58 -14
  53. package/src/components/command-bar/routes/root/ticker-first.ts +32 -0
  54. package/src/components/command-bar/surface/environment.ts +2 -0
  55. package/src/components/command-bar/view-model.ts +7 -0
  56. package/src/components/command-bar/workflow/ops.ts +2 -1
  57. package/src/components/command-bar/workflow/tickers.ts +20 -0
  58. package/src/components/layout/shell/menu.ts +15 -1
  59. package/src/components/layout/shell/pane/actions.ts +4 -0
  60. package/src/components/layout/shell/ticker-link-menu.ts +12 -3
  61. package/src/components/layout/status-bar.tsx +20 -0
  62. package/src/components/onboarding/onboarding-keyboard.ts +5 -1
  63. package/src/components/onboarding/onboarding-wizard.tsx +15 -4
  64. package/src/components/onboarding/portfolio-step/positions-panel.tsx +8 -5
  65. package/src/components/onboarding/use-onboarding-progress.ts +20 -1
  66. package/src/components/price-sparkline/view.tsx +14 -6
  67. package/src/components/ticker/badge/index.tsx +8 -4
  68. package/src/components/ticker/badge/list.tsx +23 -7
  69. package/src/components/ui/column-grid.tsx +8 -2
  70. package/src/components/ui/data-table/opentui/model.ts +4 -1
  71. package/src/components/ui/tabs.tsx +5 -2
  72. package/src/core/state/app/layout.ts +18 -3
  73. package/src/core/state/app/state.ts +2 -0
  74. package/src/core/state/app/types.ts +5 -0
  75. package/src/data/config/layout.ts +3 -0
  76. package/src/data/config/store/normalize.ts +39 -4
  77. package/src/i18n/es.ts +10 -0
  78. package/src/i18n/ja.ts +10 -0
  79. package/src/i18n/ko.ts +10 -0
  80. package/src/i18n/zh-cn.ts +10 -0
  81. package/src/i18n/zh-tw.ts +10 -0
  82. package/src/layout/pane-manager/floating-placement.ts +7 -4
  83. package/src/layout/pane-manager/floating.ts +5 -2
  84. package/src/market-data/bond-funds.ts +19 -0
  85. package/src/market-data/futures-contract.ts +14 -3
  86. package/src/market-data/market/freshness.ts +18 -0
  87. package/src/market-data/market/status.ts +15 -2
  88. package/src/plugins/builtin/bond-calculator/headless.ts +2 -1
  89. package/src/plugins/builtin/bond-calculator/index.tsx +1 -1
  90. package/src/plugins/builtin/bond-calculator/model.ts +14 -5
  91. package/src/plugins/builtin/bond-calculator/pane.tsx +1 -1
  92. package/src/plugins/builtin/buildout/cells.tsx +25 -45
  93. package/src/plugins/builtin/buildout/detail/company.tsx +3 -3
  94. package/src/plugins/builtin/buildout/detail/index.tsx +1 -1
  95. package/src/plugins/builtin/buildout/detail/intel.tsx +4 -7
  96. package/src/plugins/builtin/buildout/detail/site.tsx +4 -4
  97. package/src/plugins/builtin/buildout/detail/ui.tsx +39 -38
  98. package/src/plugins/builtin/buildout/format.ts +23 -1
  99. package/src/plugins/builtin/buildout/model/types.ts +1 -0
  100. package/src/plugins/builtin/buildout/pane/index.tsx +2 -8
  101. package/src/plugins/builtin/buildout/table-model.ts +12 -4
  102. package/src/plugins/builtin/cds/headless.ts +1 -0
  103. package/src/plugins/builtin/cds/index.tsx +1 -1
  104. package/src/plugins/builtin/cloud/plugin.tsx +2 -0
  105. package/src/plugins/builtin/cloud/upgrade-status-widget.tsx +28 -3
  106. package/src/plugins/builtin/correlation/headless.ts +3 -2
  107. package/src/plugins/builtin/crypto-board/pane.tsx +5 -4
  108. package/src/plugins/builtin/debt-maturities/headless.ts +11 -2
  109. package/src/plugins/builtin/debt-maturities/model.ts +66 -0
  110. package/src/plugins/builtin/debt-maturities/pane.tsx +23 -4
  111. package/src/plugins/builtin/earnings-ripple/pane.tsx +1 -1
  112. package/src/plugins/builtin/econ/calendar-model.ts +28 -6
  113. package/src/plugins/builtin/equity-screener/client.ts +1 -1
  114. package/src/plugins/builtin/equity-screener/criterion-editor.tsx +4 -16
  115. package/src/plugins/builtin/equity-screener/headless.ts +4 -2
  116. package/src/plugins/builtin/equity-screener/ideas.ts +67 -3
  117. package/src/plugins/builtin/equity-screener/model.ts +180 -12
  118. package/src/plugins/builtin/equity-screener/pane.tsx +52 -12
  119. package/src/plugins/builtin/equity-screener/screen-check.ts +7 -4
  120. package/src/plugins/builtin/equity-screener/watchlist.ts +33 -0
  121. package/src/plugins/builtin/futures-curve/client.ts +19 -0
  122. package/src/plugins/builtin/futures-curve/headless.ts +52 -13
  123. package/src/plugins/builtin/futures-curve/index.tsx +1 -1
  124. package/src/plugins/builtin/futures-curve/model.ts +77 -6
  125. package/src/plugins/builtin/futures-curve/pane.tsx +19 -3
  126. package/src/plugins/builtin/macro-day/client.ts +41 -0
  127. package/src/plugins/builtin/macro-day/headless.ts +19 -9
  128. package/src/plugins/builtin/macro-day/model.ts +3 -1
  129. package/src/plugins/builtin/market-movers/index.tsx +4 -3
  130. package/src/plugins/builtin/mna/distress/headless.ts +1 -0
  131. package/src/plugins/builtin/perps/pane.tsx +3 -1
  132. package/src/plugins/builtin/portfolio-list/cli/bulk-symbols.ts +17 -0
  133. package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +2 -1
  134. package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +2 -1
  135. package/src/plugins/builtin/rate-path/headless.ts +24 -10
  136. package/src/plugins/builtin/research/event-model.ts +10 -3
  137. package/src/plugins/builtin/research/events-headless.ts +20 -2
  138. package/src/plugins/builtin/sec/fund-facts.ts +17 -1
  139. package/src/plugins/builtin/sec/index.tsx +1 -1
  140. package/src/plugins/builtin/shared/members-menu.tsx +103 -38
  141. package/src/plugins/builtin/short-interest/publications-model.ts +22 -1
  142. package/src/plugins/builtin/short-interest/publications-pane.tsx +13 -4
  143. package/src/plugins/builtin/short-interest/watch-model.ts +1 -1
  144. package/src/plugins/builtin/time-sales/pane.tsx +3 -2
  145. package/src/plugins/builtin/trace-bonds/client.ts +7 -4
  146. package/src/plugins/builtin/trace-bonds/index.tsx +1 -1
  147. package/src/plugins/builtin/volatility/client.ts +6 -1
  148. package/src/plugins/builtin/volatility/headless.ts +0 -1
  149. package/src/plugins/builtin/yield-curve/curves.ts +15 -0
  150. package/src/plugins/builtin/yield-curve/headless.ts +6 -1
  151. package/src/plugins/builtin/yield-curve/index.tsx +5 -8
  152. package/src/plugins/host-modules.ts +22 -3
  153. package/src/plugins/host-smoke.ts +6 -3
  154. package/src/portfolio/collection-name.ts +19 -0
  155. package/src/renderers/browser/http-proxy-transport.ts +78 -8
  156. package/src/renderers/cloudflare/http-proxy.ts +13 -2
  157. package/src/renderers/cloudflare/proxy-session.ts +47 -24
  158. package/src/renderers/cloudflare/worker.ts +15 -2
  159. package/src/renderers/desktop/geometry.ts +279 -0
  160. package/src/renderers/desktop/screen-setup.ts +246 -0
  161. package/src/renderers/desktop/sequential-window-host.ts +179 -0
  162. package/src/renderers/desktop/test-utils.ts +71 -0
  163. package/src/renderers/desktop/window-controller.ts +433 -0
  164. package/src/renderers/desktop/window-host.ts +70 -0
  165. package/src/renderers/desktop/window-layouts.ts +630 -0
  166. package/src/renderers/dom/data-frames.ts +15 -4
  167. package/src/renderers/electrobun/bun/application-menu/click.ts +1 -0
  168. package/src/renderers/electrobun/bun/application-menu/index.ts +4 -1
  169. package/src/renderers/electrobun/bun/desktop/backend-requests.ts +19 -8
  170. package/src/renderers/electrobun/bun/desktop/backend.ts +320 -19
  171. package/src/renderers/electrobun/bun/desktop/detached-windows.ts +83 -61
  172. package/src/renderers/electrobun/bun/desktop/host-requests.ts +4 -14
  173. package/src/renderers/electrobun/bun/desktop/initialization.ts +30 -11
  174. package/src/renderers/electrobun/bun/desktop/screen-setup-file.ts +55 -0
  175. package/src/renderers/electrobun/bun/desktop/state-broadcaster.ts +44 -8
  176. package/src/renderers/electrobun/bun/desktop/workspace/index.ts +298 -97
  177. package/src/renderers/electrobun/bun/desktop/workspace/requests.ts +44 -6
  178. package/src/renderers/electrobun/bun/index.ts +4 -97
  179. package/src/renderers/electrobun/bun/window/electrobun-window-host.ts +306 -0
  180. package/src/renderers/electrobun/bun/window/focus.ts +0 -25
  181. package/src/renderers/electrobun/bun/window/remembered-frame.ts +4 -82
  182. package/src/renderers/electrobun/shared/protocol.ts +44 -2
  183. package/src/renderers/electrobun/view/backend-rpc.ts +15 -0
  184. package/src/renderers/electrobun/view/desktop/window/bridge.ts +63 -3
  185. package/src/renderers/electrobun/view/main.tsx +13 -7
  186. package/src/series/fred-argument.ts +17 -0
  187. package/src/sources/provider-router/financial-routes.ts +7 -1
  188. package/src/state/app/context/index.tsx +16 -2
  189. package/src/state/desktop-windows.ts +63 -0
  190. package/src/sync/other-window-tabs.ts +62 -0
  191. package/src/tickers/company-name-listing.ts +23 -3
  192. package/src/tickers/listing-fate.ts +147 -1
  193. package/src/tickers/terminal-codes.ts +5 -0
  194. package/src/time-series/types.ts +6 -0
  195. package/src/types/config.ts +10 -1
  196. package/src/types/desktop-window.ts +71 -2
  197. package/src/types/financials.ts +4 -0
  198. package/src/types/headless.ts +19 -0
  199. package/src/types/plugin.ts +6 -0
  200. package/src/ui/index.tsx +14 -13
  201. package/src/ui/same-props.ts +58 -0
  202. package/src/utils/cli-output.ts +33 -4
  203. package/src/utils/format.ts +7 -2
  204. package/src/utils/futures-generic.ts +12 -0
  205. package/src/utils/http-proxy-upstream.ts +6 -2
  206. package/src/utils/plugin-proxy-hosts.json +0 -4
  207. package/src/utils/plugin-proxy-hosts.ts +22 -0
  208. package/src/utils/sec-filings.ts +7 -1
@@ -1,11 +1,11 @@
1
- import { Section, TickerBadgeList } from "../../../../components";
1
+ import { Section } from "../../../../components";
2
2
  import { colors } from "../../../../theme/colors";
3
3
  import { Box, Text } from "../../../../ui";
4
4
  import { truncateWithEllipsis } from "../../../../utils/text-wrap";
5
5
  import { activityColor, activityLabel, dateShort, sourceDomains } from "../format";
6
6
  import type { BuildoutSite } from "../model/types";
7
7
  import { SiteSatelliteImages } from "./satellite-images";
8
- import { DetailSpecGrid, InlineSources, MarkdownBlock, SourceDetailLines, type InlineTickerCatalog } from "./ui";
8
+ import { DetailSpecGrid, InlineSources, ListingBadges, MarkdownBlock, SourceDetailLines, type InlineTickerCatalog } from "./ui";
9
9
  import { booleanText, dateCell, metadataSpecs, reportSectionText } from "./values";
10
10
 
11
11
  export function SiteDetail({
@@ -28,7 +28,7 @@ export function SiteDetail({
28
28
  <>
29
29
  {site.ownerTicker ? (
30
30
  <Box flexDirection="row" height={1}>
31
- <TickerBadgeList symbols={[site.ownerTicker]} width={Math.min(bodyWidth, 16)} />
31
+ <ListingBadges tickers={[{ ticker: site.ownerTicker }]} width={Math.min(bodyWidth, 16)} />
32
32
  </Box>
33
33
  ) : null}
34
34
  <DetailSpecGrid
@@ -99,7 +99,7 @@ export function SiteDetail({
99
99
  <Box key={`${builder.companyName}-${index}`} flexDirection="column" marginTop={index === 0 ? 0 : 1}>
100
100
  <Box flexDirection="row" height={1}>
101
101
  {builder.companyTicker
102
- ? <TickerBadgeList symbols={[builder.companyTicker]} width={Math.min(12, bodyWidth)} />
102
+ ? <ListingBadges tickers={[{ ticker: builder.companyTicker }]} width={Math.min(12, bodyWidth)} />
103
103
  : null}
104
104
  <Text fg={colors.textMuted}>
105
105
  {truncateWithEllipsis(`${builder.companyName ?? "Company"}${builder.role ? ` - ${builder.role}` : ""}`, Math.max(0, bodyWidth - (builder.companyTicker ? 12 : 0)))}
@@ -1,3 +1,4 @@
1
+ import { useMemo } from "react";
1
2
  import { TickerBadgeList } from "../../../../components";
2
3
  import { MarkdownText } from "../../../../components/markdown-text";
3
4
  import { Button } from "../../../../components/ui/button";
@@ -7,8 +8,8 @@ import type { InlineTickerCatalogEntry } from "../../../../state/hooks/inline-ti
7
8
  import { colors } from "../../../../theme/colors";
8
9
  import { Box, Text, TextAttributes } from "../../../../ui";
9
10
  import { truncateWithEllipsis } from "../../../../utils/text-wrap";
10
- import { sourceDetailEntries, text, textOrNull, tickerSymbol } from "../format";
11
- import type { BuildoutCompany, BuildoutRelatedCompany, BuildoutSource } from "../model/types";
11
+ import { listingKey, sourceDetailEntries, text, textOrNull, tickerSymbol } from "../format";
12
+ import type { BuildoutRelatedCompany, BuildoutSource } from "../model/types";
12
13
 
13
14
  export type InlineTickerCatalog = Record<string, InlineTickerCatalogEntry>;
14
15
 
@@ -80,6 +81,38 @@ export function DetailListLine({
80
81
  );
81
82
  }
82
83
 
84
+ /** A ticker as the dataset writes it, with the venue it names when it names one. */
85
+ export interface DatasetTicker {
86
+ ticker?: string | null;
87
+ exchange?: string | null;
88
+ }
89
+
90
+ /**
91
+ * The dataset's tickers, drawn one way: a chip for each the app can look up,
92
+ * price and open, a number-only Asian listing through the venue the dataset
93
+ * names, and bold plain text for one it cannot read. Never a chip that skips
94
+ * the lookup and so looks different from the resolved ones.
95
+ */
96
+ export function ListingBadges({ tickers, width, fallbackColor = colors.textBright }: {
97
+ tickers: readonly DatasetTicker[];
98
+ width: number;
99
+ fallbackColor?: string;
100
+ }) {
101
+ const { symbols, listings } = useMemo(() => {
102
+ const shown: string[] = [];
103
+ const known: Record<string, string | null> = {};
104
+ for (const entry of tickers) {
105
+ const symbol = tickerSymbol(entry.ticker);
106
+ if (!symbol) continue;
107
+ shown.push(symbol);
108
+ const key = listingKey(entry.ticker, entry.exchange);
109
+ if (key !== symbol) known[symbol] = key;
110
+ }
111
+ return { symbols: shown, listings: known };
112
+ }, [tickers]);
113
+ return <TickerBadgeList symbols={symbols} width={width} fallbackColor={fallbackColor} listings={listings} />;
114
+ }
115
+
83
116
  export function RelatedCompaniesLine({
84
117
  label,
85
118
  companies,
@@ -93,25 +126,19 @@ export function RelatedCompaniesLine({
93
126
  if (items.length === 0) return null;
94
127
 
95
128
  const visible = items.slice(0, 8);
96
- const symbols = visible
97
- .map((company) => tickerSymbol(company.ticker))
98
- .filter((symbol): symbol is string => symbol != null);
129
+ const withTicker = visible.filter((company) => tickerSymbol(company.ticker) != null);
99
130
  const names = visible
100
131
  .filter((company) => !tickerSymbol(company.ticker))
101
132
  .map((company) => textOrNull(company.name))
102
133
  .filter((name): name is string => name != null);
103
134
  const overflow = items.length > visible.length ? ` +${items.length - visible.length}` : "";
104
135
  const prefix = `${label}: `;
105
- const badgeWidth = Math.min(Math.max(0, width - prefix.length - (names.length > 0 ? 1 : 0)), Math.max(0, symbols.length * 9));
136
+ const badgeWidth = Math.min(Math.max(0, width - prefix.length - (names.length > 0 ? 1 : 0)), Math.max(0, withTicker.length * 9));
106
137
  return (
107
138
  <Box flexDirection="row" width={width} height={1} overflow="hidden">
108
139
  <Text fg={colors.textMuted}>{prefix}</Text>
109
- {symbols.length > 0 ? (
110
- <TickerBadgeList
111
- symbols={symbols}
112
- width={badgeWidth}
113
- fallbackColor={colors.textBright}
114
- />
140
+ {withTicker.length > 0 ? (
141
+ <ListingBadges tickers={withTicker} width={badgeWidth} />
115
142
  ) : null}
116
143
  <ClippedText fg={colors.textDim} text={`${names.length > 0 ? names.join(", ") : ""}${overflow}`} width={Math.max(0, width - prefix.length - badgeWidth)} cut={truncateWithEllipsis} />
117
144
  </Box>
@@ -207,29 +234,3 @@ export function FavoriteCell({
207
234
  >{failed && !busy ? <Text fg={colors.negative} attributes={TextAttributes.BOLD}>!</Text> : undefined}</Button>
208
235
  );
209
236
  }
210
-
211
- export function CompanyCell({
212
- company,
213
- width,
214
- selected,
215
- }: {
216
- company: BuildoutCompany;
217
- width: number;
218
- selected: boolean;
219
- }) {
220
- const symbol = tickerSymbol(company.ticker);
221
- if (!symbol) {
222
- return <ClippedText fg={selected ? colors.selectedText : colors.text} text={company.name} width={width} cut={truncateWithEllipsis} />;
223
- }
224
- const badgeWidth = Math.min(11, width);
225
- return (
226
- <Box flexDirection="row" width={width} height={1} overflow="hidden">
227
- <TickerBadgeList
228
- symbols={[symbol]}
229
- width={badgeWidth}
230
- fallbackColor={selected ? colors.selectedText : colors.textBright}
231
- />
232
- <ClippedText fg={selected ? colors.selectedText : colors.text} text={company.name} width={Math.max(0, width - badgeWidth)} cut={truncateWithEllipsis} />
233
- </Box>
234
- );
235
- }
@@ -1,4 +1,6 @@
1
1
  import { colors, priceColor } from "../../../theme/colors";
2
+ import { collectUniqueTickerSymbols } from "../../../tickers/tokenizer";
3
+ import { isKnownExchangeCode } from "../../../utils/exchanges";
2
4
  import { formatDetailDate as sharedFormatDetailDate, parseDisplayDate } from "../../../utils/datetime-format";
3
5
  import type { BuildoutSource, BuildoutUpdate } from "./model/types";
4
6
 
@@ -141,9 +143,29 @@ export function tickerSymbol(value: string | null | undefined): string | null {
141
143
  return symbol ? symbol.toUpperCase() : null;
142
144
  }
143
145
 
146
+ /**
147
+ * The key the app looks a dataset ticker up and opens it by. A name-led
148
+ * symbol (NVDA, BRK.B) is its own. The dataset writes some Asian listings by
149
+ * number alone (2330, 005930), which a cashtag reads as money, so one takes
150
+ * the venue the dataset names (2330:TWSE, 005930:KRX). Null when the dataset
151
+ * names no venue the app knows: such a ticker is plain text, never a chip
152
+ * that looks different from the resolved ones around it.
153
+ */
154
+ export function listingKey(ticker: string | null | undefined, exchange?: string | null): string | null {
155
+ const symbol = tickerSymbol(ticker);
156
+ if (!symbol) return null;
157
+ let key: string | null = symbol;
158
+ if (!/^[A-Z]/.test(symbol)) {
159
+ const venue = tickerSymbol(exchange);
160
+ // `688795.SS` names its venue twice: the dataset's venue is the one kept.
161
+ key = venue && isKnownExchangeCode(venue) ? `${symbol.replace(/\.[A-Z]{1,4}$/, "")}:${venue}` : null;
162
+ }
163
+ return key && collectUniqueTickerSymbols([`$${key}`]).includes(key) ? key : null;
164
+ }
165
+
144
166
  export function tickerSearchText(symbols: readonly string[]) {
145
167
  return symbols
146
- .filter((symbol) => /^[A-Z]/.test(symbol))
168
+ .filter((symbol) => collectUniqueTickerSymbols([`$${symbol}`]).includes(symbol))
147
169
  .map((symbol) => `$${symbol}`)
148
170
  .join(" ");
149
171
  }
@@ -293,6 +293,7 @@ export type BuildoutColumnId =
293
293
  | "avgSectorGrowth"
294
294
  | "avgReturn1y"
295
295
  | "avgMargin"
296
+ | "ticker"
296
297
  | "company"
297
298
  | "description"
298
299
  | "sectorTech"
@@ -55,7 +55,7 @@ import {
55
55
  tabs,
56
56
  type BuildoutOpenTarget,
57
57
  } from "../table-model";
58
- import { tickerSearchText, tickerSymbol } from "../format";
58
+ import { listingKey, tickerSearchText, tickerSymbol } from "../format";
59
59
  import {
60
60
  activeBuildoutPage,
61
61
  renderBuildoutPageStatus,
@@ -70,12 +70,6 @@ const BUILDOUT_UPGRADE_URL = "https://thebuildout.ai/pricing";
70
70
  /** How long the cursor rests on a company before linked panes follow it. */
71
71
  const CURSOR_PUBLISH_MS = 150;
72
72
 
73
- /** A symbol the rest of the app can open: the dataset writes some Asian listings by number alone. */
74
- function linkableTicker(value: string | null | undefined): string | null {
75
- const symbol = tickerSymbol(value);
76
- return symbol && /^[A-Z][A-Z0-9.-]*$/.test(symbol) ? symbol : null;
77
- }
78
-
79
73
  function sameScope(left: GeoScope | null, right: GeoScope | null): boolean {
80
74
  return left?.key === right?.key && left?.label === right?.label;
81
75
  }
@@ -193,7 +187,7 @@ export function BuildoutPane({ focused, width, height }: PaneProps) {
193
187
  // Panes linked to this one follow the company under the cursor, and a linked map can widen to the
194
188
  // theme it belongs to. Off the company tabs both stay where they were.
195
189
  const cursorCompany = detailRow?.kind === "company" ? detailRow.item : selectedRow?.kind === "company" ? selectedRow.item : null;
196
- const cursorTicker = linkableTicker(cursorCompany?.ticker);
190
+ const cursorTicker = cursorCompany ? listingKey(cursorCompany.ticker, cursorCompany.exchange) : null;
197
191
  // Published once the cursor rests: arrowing down a theme would otherwise load every company it passes.
198
192
  useEffect(() => {
199
193
  if (!cursorTicker) return;
@@ -10,7 +10,7 @@ import type {
10
10
  } from "./model/types";
11
11
  import { dropColumnsToFit } from "../../../components/ui/table-layout";
12
12
  import type { SortDirection } from "../../../utils/sort-values";
13
- import { LIST_TIER_ORDER, metricNumber, sourceDetailEntries, textOrNull, tickerSymbol } from "./format";
13
+ import { LIST_TIER_ORDER, listingKey, metricNumber, sourceDetailEntries, textOrNull, tickerSymbol } from "./format";
14
14
 
15
15
  export const tabs: Array<{ label: string; value: BuildoutTabId }> = [
16
16
  { label: "Themes", value: "themes" },
@@ -31,8 +31,12 @@ const listColumns: BuildoutColumn[] = [
31
31
 
32
32
  const favoriteColumn: BuildoutColumn = { id: "favorite", label: "", width: 2, align: "left" };
33
33
 
34
+ /** A ticker chip takes its own column, as in every ticker and name table; the name takes the spare width. */
35
+ const tickerColumn: BuildoutColumn = { id: "ticker", label: "Ticker", width: 12, align: "left" };
36
+
34
37
  const companyColumns: BuildoutColumn[] = [
35
- { id: "company", label: "Company", width: 26, align: "left", flexGrow: 2 },
38
+ tickerColumn,
39
+ { id: "company", label: "Company", width: 16, align: "left", flexGrow: 2 },
36
40
  { id: "description", label: "Description", width: 34, align: "left", flexGrow: 2 },
37
41
  { id: "sectorTech", label: "Sector & Tech", width: 26, align: "left", flexGrow: 1 },
38
42
  { id: "criticality", label: "Criticality", width: 12, align: "left" },
@@ -49,7 +53,8 @@ const companyColumns: BuildoutColumn[] = [
49
53
 
50
54
  /** A theme's companies under its board: what each does in the theme, then the figures. */
51
55
  const themeCompanyColumns: BuildoutColumn[] = [
52
- { id: "company", label: "Company", width: 26, align: "left", flexGrow: 2 },
56
+ tickerColumn,
57
+ { id: "company", label: "Company", width: 16, align: "left", flexGrow: 2 },
53
58
  { id: "listRole", label: "Role", width: 15, align: "left" },
54
59
  { id: "listTier", label: "Tier", width: 9, align: "left" },
55
60
  { id: "marketCap", label: "Mkt Cap", width: 10, align: "right" },
@@ -280,6 +285,8 @@ function sortValue(row: BuildoutRow, columnId: BuildoutColumnId): SortComparable
280
285
  switch (columnId) {
281
286
  case "favorite":
282
287
  return numberSort(company.starred ? 1 : 0);
288
+ case "ticker":
289
+ return stringSort(listingKey(company.ticker, company.exchange) ?? tickerSymbol(company.ticker));
283
290
  case "company":
284
291
  return stringSort(company.name);
285
292
  case "description":
@@ -397,7 +404,8 @@ export function defaultSortDirection(columnId: BuildoutColumnId | null): SortDir
397
404
  export function rowTickerSymbols(row: BuildoutRow): string[] {
398
405
  switch (row.kind) {
399
406
  case "company":
400
- return [tickerSymbol(row.item.ticker)].filter((symbol): symbol is string => symbol != null);
407
+ return [listingKey(row.item.ticker, row.item.exchange) ?? tickerSymbol(row.item.ticker)]
408
+ .filter((symbol): symbol is string => symbol != null);
401
409
  case "site":
402
410
  return [
403
411
  tickerSymbol(row.item.ownerTicker),
@@ -375,6 +375,7 @@ export function createCdsHeadless(
375
375
  description: "Days of a named issuer's daily 5Y levels, the report's Daily section (fn CDS F --csv --section daily).",
376
376
  },
377
377
  ],
378
+ discovery: { aliases: ["CDS", "CDSW"] },
378
379
  describe: (args) => typeof args.argument === "string" ? `CDS | ${args.argument}` : "Single-Name CDS",
379
380
  async load(args, ctx) {
380
381
  const issuer = typeof args.argument === "string" ? args.argument : null;
@@ -21,7 +21,7 @@ export const cdsModule: PluginModule = {
21
21
  label: "Single-Name CDS",
22
22
  description: "Single-name corporate CDS from DTCC public dissemination: with no argument, the issuers traded in the last 5 days with their 5Y spread and its 1W and 1M moves (in points upfront past 2,000bp), ranked by any column (fn CDS --sort 1m); with a ticker or issuer, its 5Y spread history, trades and daily levels (fn CDS F --csv --section daily exports them).",
23
23
  keywords: ["cds", "credit", "default", "swap", "spread", "single name", "issuer", "dtcc", "protection"],
24
- shortcut: { prefix: "CDS", argPlaceholder: "ticker", argKind: "ticker", argOptional: true },
24
+ shortcut: { prefix: "CDS", aliases: ["CDSW"], argPlaceholder: "ticker", argKind: "ticker", argOptional: true, focusedIssuer: true },
25
25
  headless: cdsHeadless,
26
26
  createInstance: (_context, options) => {
27
27
  const symbol = explicitSymbol(options);
@@ -188,6 +188,8 @@ export function createGloomberbCloudPlugin(): GloomPlugin {
188
188
  description: "Free market, macro, and chat services. Chat requires signup.",
189
189
  toggleable: true,
190
190
  order: 10,
191
+ // TheBuildout's panes read its API directly.
192
+ hosts: ["api.thebuildout.ai"],
191
193
  modules: [
192
194
  createCloudDataModule(),
193
195
  chatModule,
@@ -3,12 +3,21 @@ import { apiClient } from "../../../api-client";
3
3
  import { t, tf } from "../../../i18n";
4
4
  import { useAppLanguage } from "../../../i18n/react";
5
5
  import { Button } from "../../../components/ui/button";
6
- import { DelayedMark } from "../../../components/ui/delayed-mark";
6
+ import { DelayedMark, delayedMarkWidth } from "../../../components/ui/delayed-mark";
7
7
  import { Box, useCommandBarShortcut, useUiCapabilities } from "../../../ui";
8
8
  import { chatController, type ChatController } from "../chat/controller";
9
9
  import { useCloudPlanAction, useCloudUpgradeAction } from "../shared/cloud-upgrade";
10
10
  import { CLOUD_QUOTE_DELAY_MINUTES, resolvePlanAccess } from "../../../api-client/plan-access";
11
11
  import { useTrialOfferShowing } from "./trial-offer-status-widget";
12
+ import {
13
+ STATUS_WIDGET_COLUMNS,
14
+ useOtherStatusWidgetClaims,
15
+ useStatusWidgetClaim,
16
+ useStatusWidgetRoom,
17
+ } from "../../../components/layout/status-widget-space";
18
+ import { displayWidth } from "../../../utils/format";
19
+
20
+ const CLAIM_ID = "cloud-upgrade";
12
21
 
13
22
  interface CloudUpgradeStatusWidgetProps {
14
23
  controller?: Pick<ChatController, "getSnapshot" | "subscribe">;
@@ -29,6 +38,22 @@ export function CloudUpgradeStatusWidget({ controller = chatController }: CloudU
29
38
  // The status bar takes no keyboard focus; the chip names the command instead.
30
39
  const commandBarKey = useCommandBarShortcut();
31
40
  const [access, setAccess] = useState(() => resolvePlanAccess(apiClient.getCurrentUser()));
41
+ // The bar holds back its usual columns for the widgets' own text, which
42
+ // this one shares with the chat's sign-in: half of them are its own. The
43
+ // label never shrinks into Feedback beside it: "delayed data · upgrade"
44
+ // where the row has room for what the mark and "upgrade" draw past that
45
+ // half and the words before it, else "upgrade". What it draws past the
46
+ // usual columns is claimed, so the version chip gives way to it.
47
+ const room = useStatusWidgetRoom();
48
+ const othersClaimed = useOtherStatusWidgetClaims(CLAIM_ID);
49
+ const free = !access.isTrialActive && !access.hasProAccess && !offerShowing;
50
+ const longLabel = t("delayed data · upgrade");
51
+ const shortLabel = t("upgrade");
52
+ const overflow = Math.max(0, delayedMarkWidth(CLOUD_QUOTE_DELAY_MINUTES, false) + 1 + displayWidth(shortLabel) + 1
53
+ - STATUS_WIDGET_COLUMNS / 2);
54
+ const extra = displayWidth(longLabel) - displayWidth(shortLabel);
55
+ const long = nativePaneChrome || room - STATUS_WIDGET_COLUMNS - othersClaimed >= overflow + extra;
56
+ useStatusWidgetClaim(CLAIM_ID, free && !nativePaneChrome ? long ? extra : overflow : 0);
32
57
 
33
58
  useEffect(
34
59
  // The chat widget already drives session refreshes; this only follows them.
@@ -52,11 +77,11 @@ export function CloudUpgradeStatusWidget({ controller = chatController }: CloudU
52
77
 
53
78
  const mark = <DelayedMark minutes={CLOUD_QUOTE_DELAY_MINUTES} />;
54
79
  return (
55
- <Box flexDirection="row" alignItems="center" gap={1} paddingRight={offerShowing || !nativePaneChrome ? 1 : 0} data-gloom-role="delayed-status">
80
+ <Box flexDirection="row" alignItems="center" gap={1} flexShrink={0} paddingRight={offerShowing || !nativePaneChrome ? 1 : 0} data-gloom-role="delayed-status">
56
81
  {mark}
57
82
  {offerShowing ? null : (
58
83
  <Button
59
- label={t("delayed data · upgrade")}
84
+ label={long ? longLabel : shortLabel}
60
85
  title={tf("Upgrade to Pro ({key}, then {command})", { key: commandBarKey, command: "UPGRADE" })}
61
86
  variant="plain"
62
87
  compact
@@ -1,6 +1,6 @@
1
1
  import type { HeadlessPaneDefinition } from "../../../types/headless";
2
2
  import type { TimeRange } from "../../../time-series/range";
3
- import { formatNumber, formatSignificant } from "../../../utils/format";
3
+ import { formatNumber, formatSignificant, significantDecimals } from "../../../utils/format";
4
4
  import { logFailure } from "../../../utils/log-failure";
5
5
  import { mixedSessionCloseNote } from "../../../market-data/market/session-close-note";
6
6
  import { resolveHeadlessInstrument, loadHeadlessSymbols } from "../shared/headless-market-data";
@@ -124,7 +124,8 @@ export const relationshipHeadless: HeadlessPaneDefinition<"series"> = {
124
124
  return {
125
125
  symbols,
126
126
  series: [
127
- { id: "ratio", label: `${symbols[0]}/${symbols[1]}`, points: analysis.ratioPoints.map(({ date, close }) => ({ date: date.toISOString(), value: close })) },
127
+ // The latest ratio reads as Statistics reads it, to four significant digits (1.123, 0.8904), not every float digit.
128
+ { id: "ratio", label: `${symbols[0]}/${symbols[1]}`, ...analysis.latestRatio != null ? { textDecimals: significantDecimals(analysis.latestRatio) } : {}, points: analysis.ratioPoints.map(({ date, close }) => ({ date: date.toISOString(), value: close })) },
128
129
  { id: "correlation", label: `Rolling correlation (${correlationWindow})`, textDecimals: 3, points: analysis.returns.slice(correlationWindow - 1).map(({ date }) => ({ date: date.toISOString(), value: correlations.get(date.getTime()) ?? null })) },
129
130
  ],
130
131
  stats: [
@@ -295,15 +295,16 @@ export function CryptoBoardPane({ width, height, focused }: PaneProps) {
295
295
  }, [stablecoins, supply]);
296
296
  const supplyError = !supply && supplyResource.error ? supplyResource.error : null;
297
297
 
298
- const tabItems = CRYPTO_TABS.map((tab) => ({
298
+ // Kept between quotes, so the tab strip skips the renders a board update gives the pane.
299
+ const tabItems = useMemo(() => CRYPTO_TABS.map((tab) => ({
299
300
  label: tab.label,
300
301
  value: tab.value,
301
- }));
302
- const selectTab = (value: string) => {
302
+ })), []);
303
+ const selectTab = useCallback((value: string) => {
303
304
  setActiveTab(value as CryptoTab);
304
305
  setSelectedId(null);
305
306
  setVisibleRange(INITIAL_STREAM_RANGE);
306
- };
307
+ }, [setActiveTab, setSelectedId]);
307
308
  const { strip: tabStrip } = usePaneTabs({ tabs: tabItems, activeValue: activeTab, onSelect: selectTab, focused, compact: true, variant: "bare" });
308
309
 
309
310
  usePaneNoticeFooter({
@@ -1,6 +1,6 @@
1
1
  import type { HeadlessPaneDefinition } from "../../../types/plugin";
2
2
  import { fetchDebtMaturities } from "./client";
3
- import { bucketShare, debtAmount, debtNewestAsOf, debtNewestForm, debtNotices, debtPercent, newerQuarter } from "./model";
3
+ import { bucketShare, debtAmount, debtCostProxyNote, debtHistoryRows, debtNewestAsOf, debtNewestForm, debtNotices, debtPercent, newerQuarter } from "./model";
4
4
  import { SEC_FILINGS } from "../shared/report-freshness";
5
5
  import { resolveHeadlessIssuerListing } from "../shared/headless-market-data";
6
6
 
@@ -46,6 +46,7 @@ export const debtMaturitiesHeadless: HeadlessPaneDefinition<"bundle"> = {
46
46
  const symbol = args.symbols[0]!;
47
47
  const data = await fetchDebtMaturities(symbol, ctx.apiClient, await resolveHeadlessIssuerListing(ctx, symbol));
48
48
  const quarter = newerQuarter(data);
49
+ const costNote = debtCostProxyNote(data.history);
49
50
  return {
50
51
  complete: data.status === "available",
51
52
  errors: debtNotices(data),
@@ -111,12 +112,20 @@ export const debtMaturitiesHeadless: HeadlessPaneDefinition<"bundle"> = {
111
112
  align: "right",
112
113
  textFormat: percent,
113
114
  },
115
+ {
116
+ // What the proxy divides: exports keep `filed` or `average-principal`, the text says it in words.
117
+ key: "borrowingCostBasis",
118
+ header: "Cost basis",
119
+ optional: true,
120
+ textFormat: (value) => value === "filed" ? "Filed" : value === "average-principal" ? "Avg principal" : "",
121
+ },
114
122
  { key: "currency", header: "Currency" },
115
123
  { key: "filed", header: "Filed" },
116
124
  ],
117
- rows: data.history.toReversed().map((point) => ({ ...point })),
125
+ rows: debtHistoryRows(data.history).map((row) => ({ ...row })),
118
126
  },
119
127
  ],
128
+ ...(costNote ? { notes: [costNote] } : {}),
120
129
  metadata: { ...data },
121
130
  // The latest filing dates the report (a newer 10-Q's balance date), named by its form so the date is
122
131
  // not read as the schedule's; the history rows are past years, not stale data.
@@ -200,6 +200,72 @@ export function sortedDebtHistory(
200
200
  b.asOf.localeCompare(a.asOf),
201
201
  );
202
202
  }
203
+ /**
204
+ * What a year's cost proxy divides: `filed`, the filing's debt-only interest
205
+ * over the debt balances it reports; `average-principal`, the year's interest
206
+ * expense over its average scheduled principal.
207
+ */
208
+ export type DebtCostProxyKind = "filed" | "average-principal";
209
+
210
+ /** A year's cost proxy: the value, what it divides when there is one, and why not when there is none. */
211
+ export interface DebtCostProxy {
212
+ value: number | null;
213
+ kind: DebtCostProxyKind | null;
214
+ basis: string | null;
215
+ reason: string | null;
216
+ }
217
+
218
+ /**
219
+ * A year's borrowing cost proxy, in percent. The filing's own when it has
220
+ * one (debt interest over its reported debt balances, as the server reads
221
+ * it); else the year's interest expense over the average of its opening and
222
+ * closing scheduled principal, the opening one being the schedule a year
223
+ * earlier in `history`. With neither, null and the reason.
224
+ */
225
+ export function debtCostProxy(history: readonly DebtHistoryPoint[], point: DebtHistoryPoint): DebtCostProxy {
226
+ if (point.borrowingCostPercent !== null) {
227
+ return { value: point.borrowingCostPercent, kind: "filed", basis: point.borrowingCostDebtTags, reason: null };
228
+ }
229
+ const none = (reason: string): DebtCostProxy => ({ value: null, kind: null, basis: null, reason });
230
+ if (point.interestExpense === null) return none("no annual interest expense reported");
231
+ if (point.totalPrincipal === null) return none("partial principal schedule");
232
+ const opening = history.find((row) => {
233
+ const days = (Date.parse(point.asOf) - Date.parse(row.asOf)) / DAY_MS;
234
+ return days >= 350 && days <= 380;
235
+ });
236
+ if (!opening) return none("no schedule a year earlier to average");
237
+ if (opening.totalPrincipal === null) return none(`partial principal schedule at ${opening.asOf}`);
238
+ const average = (opening.totalPrincipal + point.totalPrincipal) / 2;
239
+ if (average <= 0) return none("no principal to average");
240
+ return {
241
+ value: (100 * point.interestExpense) / average,
242
+ kind: "average-principal",
243
+ basis: `Interest over average principal since ${opening.asOf}`,
244
+ reason: null,
245
+ };
246
+ }
247
+
248
+ /**
249
+ * The annual history as DDIS prints and exports it, newest first: each year's
250
+ * cost proxy as `debtCostProxy` reads it, and `borrowingCostBasis` naming what
251
+ * it divides (`filed` or `average-principal`; null with no proxy).
252
+ */
253
+ export function debtHistoryRows(history: readonly DebtHistoryPoint[]): Array<DebtHistoryPoint & { borrowingCostBasis: DebtCostProxyKind | null }> {
254
+ return history.toReversed().map((point) => {
255
+ const cost = debtCostProxy(history, point);
256
+ return { ...point, borrowingCostPercent: cost.value, borrowingCostBasis: cost.kind };
257
+ });
258
+ }
259
+
260
+ /** The note for the years a cost proxy cannot be read for: "Cost proxy %: none for 2021-12-31 (no schedule a year earlier to average)." */
261
+ export function debtCostProxyNote(history: readonly DebtHistoryPoint[]): string | null {
262
+ const missing = history.toReversed().flatMap((point) => {
263
+ const { reason } = debtCostProxy(history, point);
264
+ return reason ? [`${point.asOf} (${reason})`] : [];
265
+ });
266
+ return missing.length > 0 ? `Cost proxy %: none for ${missing.join(", ")}.` : null;
267
+ }
268
+
203
269
  export function debtNotices(data: DebtMaturitiesPayload): string[] {
204
270
  // Standing scope and open-ended bucket methodology are documented, not repeated as
205
271
  // active failures. The backend stops sending them; this covers older servers and caches.
@@ -51,6 +51,7 @@ import {
51
51
  bucketShare,
52
52
  datedBucketScale,
53
53
  debtAmount,
54
+ debtCostProxy,
54
55
  debtFilingUrl,
55
56
  debtMetricCaption,
56
57
  debtMetricValue,
@@ -165,17 +166,22 @@ function QuarterFactRow({ label, fact }: { label: string; fact: DebtFact | null
165
166
  }
166
167
  function FilingDetail({
167
168
  latest,
169
+ history,
168
170
  quarter,
169
171
  width,
170
172
  height,
171
173
  }: {
172
174
  latest: DebtLatest;
175
+ history: readonly DebtHistoryPoint[];
173
176
  quarter: DebtQuarter | null;
174
177
  width: number;
175
178
  height: number;
176
179
  }) {
177
180
  const expense = latest.interestExpenseFact,
178
181
  evidence = latest.borrowingCostEvidence;
182
+ // No debt-only proxy in the filing: interest over the year's average scheduled principal, or why there is none.
183
+ const point = history.at(-1);
184
+ const cost = latest.borrowingCostPercent.value === null && point ? debtCostProxy(history, point) : null;
179
185
  return (
180
186
  <DetailScroll width={width} height={height}>
181
187
  <KeyValueRow
@@ -205,7 +211,16 @@ function FilingDetail({
205
211
  value={`${expense.start} to ${expense.end}`}
206
212
  />
207
213
  ) : null}
208
- <MetricRow label="Debt cost proxy" metric={latest.borrowingCostPercent} />
214
+ {cost ? (
215
+ <KeyValueRow
216
+ labelWidth={20}
217
+ label="Debt cost proxy"
218
+ value={debtPercent(cost.value)}
219
+ detail={cost.basis ?? cost.reason ?? undefined}
220
+ />
221
+ ) : (
222
+ <MetricRow label="Debt cost proxy" metric={latest.borrowingCostPercent} />
223
+ )}
209
224
  <KeyValueRow
210
225
  labelWidth={20}
211
226
  label="Debt concepts"
@@ -250,13 +265,16 @@ function FilingDetail({
250
265
  }
251
266
  function HistoryDetail({
252
267
  point,
268
+ history,
253
269
  width,
254
270
  height,
255
271
  }: {
256
272
  point: DebtHistoryPoint;
273
+ history: readonly DebtHistoryPoint[];
257
274
  width: number;
258
275
  height: number;
259
276
  }) {
277
+ const cost = debtCostProxy(history, point);
260
278
  return (
261
279
  <DetailScroll width={width} height={height}>
262
280
  <KeyValueRow
@@ -297,8 +315,8 @@ function HistoryDetail({
297
315
  <KeyValueRow
298
316
  labelWidth={20}
299
317
  label="Debt cost proxy"
300
- value={debtPercent(point.borrowingCostPercent)}
301
- detail={point.borrowingCostDebtTags ?? undefined}
318
+ value={debtPercent(cost.value)}
319
+ detail={cost.basis ?? cost.reason ?? undefined}
302
320
  />
303
321
  </DetailScroll>
304
322
  );
@@ -559,7 +577,7 @@ export function DebtMaturitiesPane({ width, height, focused }: PaneProps) {
559
577
  {latest ? (
560
578
  <>
561
579
  {tab === "filing" ? (
562
- <FilingDetail latest={latest} quarter={quarter} width={width} height={bodyHeight} />
580
+ <FilingDetail latest={latest} history={data?.history ?? []} quarter={quarter} width={width} height={bodyHeight} />
563
581
  ) : tab === "maturities" ? (
564
582
  <DataTableStackView<DebtBucket, BucketColumn>
565
583
  emptyStateTitle="No maturity buckets available."
@@ -679,6 +697,7 @@ export function DebtMaturitiesPane({ width, height, focused }: PaneProps) {
679
697
  openHistoryRow ? (
680
698
  <HistoryDetail
681
699
  point={openHistoryRow}
700
+ history={data?.history ?? []}
682
701
  width={width}
683
702
  height={bodyHeight - 2}
684
703
  />
@@ -23,7 +23,7 @@ const TABS = [{ value: "direct", label: "1 hop" }, { value: "two-hop", label: "2
23
23
  const COLUMNS: DataTableColumn[] = [
24
24
  { id: "date", label: "Date", width: 11, align: "left" },
25
25
  { id: "timing", label: "Time", width: 5, align: "left" },
26
- { id: "company", label: "Reports", width: 24, align: "left" },
26
+ { id: "company", label: "Reports", width: 24, flexGrow: 1, align: "left" },
27
27
  { id: "link", label: "Link", width: 13, align: "left" },
28
28
  { id: "holding", label: "Holding", width: 9, align: "left" },
29
29
  { id: "pct", label: "Revenue share", width: 15, align: "right" },