@tempoxyz/ds 0.3.14 → 0.3.16

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 (209) hide show
  1. package/dist/docs/AGENTS.md +75 -10
  2. package/dist/docs/arsenal.md +44 -0
  3. package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +32 -24
  4. package/dist/docs/product/components/actions.md +2110 -0
  5. package/dist/docs/product/components/blockchain.md +3969 -0
  6. package/dist/docs/product/components/data-display.md +5901 -0
  7. package/dist/docs/product/components/feedback-and-status.md +4138 -0
  8. package/dist/docs/product/components/forms-and-inputs.md +10543 -0
  9. package/dist/docs/product/components/layout.md +3339 -0
  10. package/dist/docs/product/components/navigation.md +2914 -0
  11. package/dist/docs/product/components/overlays.md +4917 -0
  12. package/dist/docs/product/components.md +125 -125
  13. package/dist/docs/product/foundations.md +4597 -0
  14. package/dist/docs/product/patterns.md +10110 -0
  15. package/dist/marketing/index.js.zyzz.json +1 -1
  16. package/dist/marketing/vars.d.ts +618 -758
  17. package/dist/marketing/vars.d.ts.map +1 -1
  18. package/dist/marketing/vars.js +8 -5
  19. package/dist/marketing/vars.js.map +1 -1
  20. package/dist/marketing/vars.js.zyzz.json +1 -1
  21. package/dist/marketing/zyzz.config.d.ts +3042 -3757
  22. package/dist/marketing/zyzz.config.d.ts.map +1 -1
  23. package/dist/marketing/zyzz.config.js +1 -1
  24. package/dist/marketing/zyzz.config.js.map +1 -1
  25. package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
  26. package/dist/mobile/components/Button.d.ts +115 -15
  27. package/dist/mobile/components/Button.d.ts.map +1 -1
  28. package/dist/mobile/components/Button.js +85 -14
  29. package/dist/mobile/components/Button.js.map +1 -1
  30. package/dist/mobile/components/IconButton.d.ts +129 -40
  31. package/dist/mobile/components/IconButton.d.ts.map +1 -1
  32. package/dist/mobile/components/IconButton.js +97 -28
  33. package/dist/mobile/components/IconButton.js.map +1 -1
  34. package/dist/mobile/components/TextInput.d.ts +132 -11
  35. package/dist/mobile/components/TextInput.d.ts.map +1 -1
  36. package/dist/mobile/components/TextInput.js +115 -14
  37. package/dist/mobile/components/TextInput.js.map +1 -1
  38. package/dist/mobile/index.d.ts +1 -0
  39. package/dist/mobile/index.d.ts.map +1 -1
  40. package/dist/mobile/index.js +1 -0
  41. package/dist/mobile/index.js.map +1 -1
  42. package/dist/mobile/vars.d.ts +103 -0
  43. package/dist/mobile/vars.d.ts.map +1 -1
  44. package/dist/mobile/vars.js +74 -0
  45. package/dist/mobile/vars.js.map +1 -1
  46. package/dist/mobile/zyzz.config.d.ts +408 -0
  47. package/dist/mobile/zyzz.config.d.ts.map +1 -1
  48. package/dist/web/components/AddressCard.js.zyzz.json +1 -1
  49. package/dist/web/components/Amount.css +1 -1
  50. package/dist/web/components/Amount.d.ts +9 -0
  51. package/dist/web/components/Amount.d.ts.map +1 -1
  52. package/dist/web/components/Amount.js +8 -5
  53. package/dist/web/components/Amount.js.map +1 -1
  54. package/dist/web/components/Amount.js.zyzz.json +1 -1
  55. package/dist/web/components/CopyButton.d.ts +6 -0
  56. package/dist/web/components/CopyButton.d.ts.map +1 -1
  57. package/dist/web/components/CopyButton.js +4 -1
  58. package/dist/web/components/CopyButton.js.map +1 -1
  59. package/dist/web/components/CopyButton.js.zyzz.json +1 -1
  60. package/dist/web/components/Hex.css +1 -1
  61. package/dist/web/components/Hex.d.ts +84 -3
  62. package/dist/web/components/Hex.d.ts.map +1 -1
  63. package/dist/web/components/Hex.js +20 -13
  64. package/dist/web/components/Hex.js.map +1 -1
  65. package/dist/web/components/Hex.js.zyzz.json +1 -1
  66. package/dist/web/components/Progress.css +1 -1
  67. package/dist/web/components/Progress.d.ts +12 -2
  68. package/dist/web/components/Progress.d.ts.map +1 -1
  69. package/dist/web/components/Progress.js +9 -5
  70. package/dist/web/components/Progress.js.map +1 -1
  71. package/dist/web/components/Progress.js.zyzz.json +1 -1
  72. package/dist/web/components/SecretValue.js.zyzz.json +1 -1
  73. package/dist/web/components/SidebarMenu.d.ts +4 -4
  74. package/dist/web/components/SidebarMenu.js +6 -6
  75. package/dist/web/components/SidebarMenu.js.map +1 -1
  76. package/dist/web/components/Snippet.js.zyzz.json +1 -1
  77. package/dist/web/index.js.zyzz.json +1 -1
  78. package/package.json +1 -1
  79. package/src/marketing/README.md +1 -1
  80. package/src/marketing/vars.ts +526 -604
  81. package/src/marketing/zyzz.config.ts +5 -4
  82. package/src/mobile/README.md +19 -6
  83. package/src/mobile/components/Button.tsx +94 -17
  84. package/src/mobile/components/IconButton.tsx +122 -30
  85. package/src/mobile/components/TextInput.tsx +139 -24
  86. package/src/mobile/index.ts +1 -0
  87. package/src/mobile/vars.ts +74 -0
  88. package/src/web/components/Amount.tsx +37 -3
  89. package/src/web/components/CopyButton.tsx +8 -0
  90. package/src/web/components/Hex.tsx +79 -13
  91. package/src/web/components/Progress.tsx +8 -2
  92. package/src/web/components/SidebarMenu.tsx +6 -6
  93. package/dist/docs/index.md +0 -145
  94. package/dist/docs/product/components/accordion.md +0 -489
  95. package/dist/docs/product/components/address-card.md +0 -147
  96. package/dist/docs/product/components/agent-logo.md +0 -194
  97. package/dist/docs/product/components/alert-dialog.md +0 -631
  98. package/dist/docs/product/components/alert.md +0 -448
  99. package/dist/docs/product/components/amount-input.md +0 -305
  100. package/dist/docs/product/components/amount.md +0 -794
  101. package/dist/docs/product/components/app-shell.md +0 -559
  102. package/dist/docs/product/components/asset-chip.md +0 -294
  103. package/dist/docs/product/components/autocomplete.md +0 -620
  104. package/dist/docs/product/components/avatar.md +0 -321
  105. package/dist/docs/product/components/badge.md +0 -339
  106. package/dist/docs/product/components/badged-logo.md +0 -116
  107. package/dist/docs/product/components/banner.md +0 -379
  108. package/dist/docs/product/components/bar-chart.md +0 -208
  109. package/dist/docs/product/components/breadcrumbs.md +0 -380
  110. package/dist/docs/product/components/button-group.md +0 -286
  111. package/dist/docs/product/components/button.md +0 -650
  112. package/dist/docs/product/components/calendar.md +0 -375
  113. package/dist/docs/product/components/callout.md +0 -96
  114. package/dist/docs/product/components/checkbox-group.md +0 -521
  115. package/dist/docs/product/components/checkbox.md +0 -467
  116. package/dist/docs/product/components/choice-group.md +0 -516
  117. package/dist/docs/product/components/choicebox.md +0 -641
  118. package/dist/docs/product/components/code.md +0 -100
  119. package/dist/docs/product/components/combobox.md +0 -939
  120. package/dist/docs/product/components/container.md +0 -257
  121. package/dist/docs/product/components/copy-button.md +0 -642
  122. package/dist/docs/product/components/date-picker.md +0 -514
  123. package/dist/docs/product/components/dialog.md +0 -1332
  124. package/dist/docs/product/components/drawer.md +0 -966
  125. package/dist/docs/product/components/empty.md +0 -340
  126. package/dist/docs/product/components/field.md +0 -570
  127. package/dist/docs/product/components/fieldset.md +0 -398
  128. package/dist/docs/product/components/frame.md +0 -434
  129. package/dist/docs/product/components/gauge.md +0 -299
  130. package/dist/docs/product/components/get-started-visual.md +0 -117
  131. package/dist/docs/product/components/grid.md +0 -288
  132. package/dist/docs/product/components/hero-visual.md +0 -155
  133. package/dist/docs/product/components/hex.md +0 -487
  134. package/dist/docs/product/components/icon-tile.md +0 -292
  135. package/dist/docs/product/components/identicon.md +0 -371
  136. package/dist/docs/product/components/inline.md +0 -233
  137. package/dist/docs/product/components/inset.md +0 -225
  138. package/dist/docs/product/components/kbd.md +0 -423
  139. package/dist/docs/product/components/list-group.md +0 -981
  140. package/dist/docs/product/components/loading-dots.md +0 -237
  141. package/dist/docs/product/components/menu.md +0 -934
  142. package/dist/docs/product/components/native-select.md +0 -204
  143. package/dist/docs/product/components/network-logo.md +0 -248
  144. package/dist/docs/product/components/number-field.md +0 -543
  145. package/dist/docs/product/components/otp-field.md +0 -616
  146. package/dist/docs/product/components/pagination.md +0 -516
  147. package/dist/docs/product/components/popover.md +0 -544
  148. package/dist/docs/product/components/progress.md +0 -388
  149. package/dist/docs/product/components/qr.md +0 -314
  150. package/dist/docs/product/components/radio-group.md +0 -528
  151. package/dist/docs/product/components/secret-value.md +0 -406
  152. package/dist/docs/product/components/select.md +0 -751
  153. package/dist/docs/product/components/separator.md +0 -379
  154. package/dist/docs/product/components/sidebar-menu.md +0 -922
  155. package/dist/docs/product/components/skeleton.md +0 -517
  156. package/dist/docs/product/components/slider.md +0 -539
  157. package/dist/docs/product/components/snippet.md +0 -424
  158. package/dist/docs/product/components/spinner.md +0 -216
  159. package/dist/docs/product/components/split-bar.md +0 -139
  160. package/dist/docs/product/components/split-button.md +0 -464
  161. package/dist/docs/product/components/stack.md +0 -299
  162. package/dist/docs/product/components/status-chip.md +0 -226
  163. package/dist/docs/product/components/status-indicator.md +0 -119
  164. package/dist/docs/product/components/status-row.md +0 -174
  165. package/dist/docs/product/components/stepper.md +0 -451
  166. package/dist/docs/product/components/success-hero.md +0 -157
  167. package/dist/docs/product/components/surface.md +0 -639
  168. package/dist/docs/product/components/switch.md +0 -472
  169. package/dist/docs/product/components/table.md +0 -968
  170. package/dist/docs/product/components/tabs.md +0 -627
  171. package/dist/docs/product/components/tempo-logo.md +0 -185
  172. package/dist/docs/product/components/text-input.md +0 -624
  173. package/dist/docs/product/components/textarea.md +0 -352
  174. package/dist/docs/product/components/toast.md +0 -535
  175. package/dist/docs/product/components/token-logo.md +0 -371
  176. package/dist/docs/product/components/token.md +0 -247
  177. package/dist/docs/product/components/tooltip.md +0 -490
  178. package/dist/docs/product/components/verification-code.md +0 -116
  179. package/dist/docs/product/components/visual.md +0 -249
  180. package/dist/docs/product/foundations/accessibility.md +0 -377
  181. package/dist/docs/product/foundations/agents.md +0 -159
  182. package/dist/docs/product/foundations/color.md +0 -522
  183. package/dist/docs/product/foundations/content/tone.md +0 -194
  184. package/dist/docs/product/foundations/content/voice.md +0 -194
  185. package/dist/docs/product/foundations/content/writing-style.md +0 -406
  186. package/dist/docs/product/foundations/iconography.md +0 -282
  187. package/dist/docs/product/foundations/intent.md +0 -360
  188. package/dist/docs/product/foundations/layout.md +0 -508
  189. package/dist/docs/product/foundations/linter.md +0 -523
  190. package/dist/docs/product/foundations/motion.md +0 -151
  191. package/dist/docs/product/foundations/radius-and-padding.md +0 -86
  192. package/dist/docs/product/foundations/typography.md +0 -331
  193. package/dist/docs/product/introduction/faq.md +0 -133
  194. package/dist/docs/product/introduction/getting-started.md +0 -377
  195. package/dist/docs/product/patterns/blockchain-values.md +0 -709
  196. package/dist/docs/product/patterns/dashboards.md +0 -638
  197. package/dist/docs/product/patterns/destructive-actions.md +0 -626
  198. package/dist/docs/product/patterns/empty-states.md +0 -612
  199. package/dist/docs/product/patterns/errors-and-validation.md +0 -808
  200. package/dist/docs/product/patterns/feedback-and-status.md +0 -518
  201. package/dist/docs/product/patterns/forms.md +0 -679
  202. package/dist/docs/product/patterns/loading.md +0 -630
  203. package/dist/docs/product/patterns/navigation.md +0 -397
  204. package/dist/docs/product/patterns/payments.md +0 -765
  205. package/dist/docs/product/patterns/responsive-layout.md +0 -997
  206. package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
  207. package/dist/docs/product/products/tempo-console.md +0 -671
  208. package/dist/docs/product/products/tempo-performance.md +0 -435
  209. package/dist/docs/product/products/tempo-wallet.md +0 -438
@@ -1,435 +0,0 @@
1
- # Tempo Performance
2
-
3
- Tempo Performance is the public benchmark dashboard for the Tempo network.
4
-
5
- > [!NOTE]
6
- > The reference layout on this page is a composition of library components and `style`, not a shipped component. `@tempoxyz/ds` exports no `MetricTile` or `BenchmarkDashboard`. Copy the layout into your app and adapt it. The library has no chart component, so the layout marks where a chart goes.
7
-
8
- ## Overview
9
-
10
- Tempo Performance runs at [perf.tempo.xyz](https://perf.tempo.xyz). It shows one benchmark run at a time:
11
-
12
- * **Headline:** Settled TPS, block time, and gas throughput.
13
- * **Charts:** Block validation, payload building, the transaction pool, persistence, and server resources.
14
-
15
- A Methodology page describes the benchmark host, the workload, and the derivation of each metric.
16
-
17
- Roles:
18
-
19
- * **Protocol and Node Engineers:** Compare nightly runs to catch regressions.
20
- * **Anyone Evaluating Tempo:** Read the public results.
21
-
22
- ## Surfaces
23
-
24
- Tempo Performance is a responsive web app built with `@tempoxyz/ds`. No native app is documented.
25
-
26
- On a phone, the run selects stack at full width, the settled TPS tile spans the column, and the other metric tiles form two columns.
27
-
28
- ## Key Screens
29
-
30
- ### Dashboard
31
-
32
- ```tsx
33
- import { Button, ChoiceGroup, Field, Grid, Popover, Select, style, Surface, Table } from '@tempoxyz/ds'
34
- import { InfoCircle } from '@tempoxyz/ds/icons'
35
- import { useState } from 'react'
36
-
37
- export const fill = true
38
- const nightlies = [
39
- 'main-2026-10-19-296be2ab',
40
- 'main-2026-10-17-2c25f7cd',
41
- 'main-2026-10-16-dee08cf9',
42
- ]
43
-
44
- const scenarios = { 'public-mix': 'Public mix · multi-region' }
45
-
46
- const metrics = [
47
- {
48
- definition: 'Number of blocks produced during the benchmark run.',
49
- label: 'Blocks',
50
- value: '142',
51
- },
52
- {
53
- definition: 'Average wall-clock time between consecutive blocks.',
54
- label: 'Block time',
55
- value: '633 ms',
56
- },
57
- {
58
- definition:
59
- 'Average gas per second across the entire run: total gas used ÷ total run duration.',
60
- label: 'Avg gas/s',
61
- value: '1.38 Ggas/s',
62
- },
63
- {
64
- definition:
65
- 'Highest gas per second achieved by any single block, from its gas usage and block time.',
66
- label: 'Peak gas/s',
67
- value: '2.00 Ggas/s',
68
- },
69
- {
70
- definition:
71
- 'Total configured account set for this run, including txgen senders and pre-state recipients.',
72
- label: 'Accounts',
73
- value: '1,000',
74
- },
75
- {
76
- definition: 'Number of TIP-20 tokens configured for this benchmark run.',
77
- label: 'TIP-20 tokens',
78
- value: '4',
79
- },
80
- ]
81
-
82
- const quantiles = [
83
- ['p50', '219.1 ms'],
84
- ['p95', '264.4 ms'],
85
- ['p99', '452.3 ms'],
86
- ]
87
-
88
- function Definition(props: Definition.Props) {
89
- return (
90
- <Popover.Root>
91
- <Popover.Trigger
92
- aria-label={`About ${props.label}`}
93
- render={<Button shape="icon" size="small" variant="tertiary" />}
94
- >
95
- <InfoCircle />
96
- </Popover.Trigger>
97
- <Popover.Popup>
98
- <Popover.Title>{props.label}</Popover.Title>
99
- <Popover.Description>{props.children}</Popover.Description>
100
- </Popover.Popup>
101
- </Popover.Root>
102
- )
103
- }
104
-
105
- declare namespace Definition {
106
- type Props = { children: string; label: string }
107
- }
108
-
109
- export function Demo() {
110
- const [nightly, setNightly] = useState<string | null>(nightlies[0] ?? null)
111
- const [scenario, setScenario] = useState<string | null>('public-mix')
112
- const commit = (nightly ?? '').slice(-8, -1)
113
-
114
- return (
115
- <div {...styles.page()}>
116
- <header {...styles.bar()}>
117
- <span {...styles.brand()}>Tempo Performance</span>
118
- <nav aria-label="Performance" {...styles.nav()}>
119
- <Button.Link aria-current="page" href="#dashboard" size="small" variant="secondary">
120
- Dashboard
121
- </Button.Link>
122
- <Button.Link href="#methodology" size="small" variant="tertiary">
123
- Methodology
124
- </Button.Link>
125
- </nav>
126
- </header>
127
-
128
- <div {...styles.run()}>
129
- <div>
130
- <h1 {...styles.title()}>Benchmark run</h1>
131
- <p {...styles.meta()}>
132
- Oct 20, 2026, 3:01 AM ·{' '}
133
- <a href="#commit" {...styles.commit()}>
134
- {commit}
135
- </a>{' '}
136
- · 2m 35s ·{' '}
137
- <a href="#workflow" {...styles.link()}>
138
- GitHub workflow
139
- </a>
140
- </p>
141
- </div>
142
- <div {...styles.filters()}>
143
- <Field.Root {...styles.filter()}>
144
- <Field.Label>Nightly</Field.Label>
145
- <Select.Root onValueChange={setNightly} value={nightly}>
146
- <Select.Trigger>
147
- <Select.Value>
148
- {(value: string) => <span {...styles.mono()}>{value}</span>}
149
- </Select.Value>
150
- <Select.Icon />
151
- </Select.Trigger>
152
- <Select.Popup size="small">
153
- {nightlies.map((value) => (
154
- <Select.Item key={value} value={value}>
155
- <Select.ItemText>
156
- <span {...styles.mono()}>{value}</span>
157
- </Select.ItemText>
158
- </Select.Item>
159
- ))}
160
- </Select.Popup>
161
- </Select.Root>
162
- </Field.Root>
163
- <Field.Root {...styles.filter()}>
164
- <Field.Label>Scenario</Field.Label>
165
- <Select.Root items={scenarios} onValueChange={setScenario} value={scenario}>
166
- <Select.Trigger>
167
- <Select.Value />
168
- <Select.Icon />
169
- </Select.Trigger>
170
- <Select.Popup size="small">
171
- {Object.entries(scenarios).map(([value, label]) => (
172
- <Select.Item key={value} label={label} value={value}>
173
- <Select.ItemText>{label}</Select.ItemText>
174
- </Select.Item>
175
- ))}
176
- </Select.Popup>
177
- </Select.Root>
178
- </Field.Root>
179
- </div>
180
- </div>
181
-
182
- <Surface size="medium">
183
- <div {...styles.label()}>
184
- Settled TPS
185
- <Definition label="Settled TPS">
186
- Median transactions per second that landed in blocks for this benchmark run.
187
- </Definition>
188
- </div>
189
- <p {...styles.hero()}>
190
- 14,960 <span {...styles.unit()}>TPS</span>
191
- </p>
192
- <p {...styles.caption()}>
193
- Median settled throughput across 142 measured blocks. Run duration: 2m 35s.
194
- </p>
195
- </Surface>
196
-
197
- <Grid fit="small" gap="16">
198
- {metrics.map((metric) => (
199
- <Surface key={metric.label} size="medium">
200
- <div {...styles.label()}>
201
- {metric.label}
202
- <Definition label={metric.label}>{metric.definition}</Definition>
203
- </div>
204
- <p {...styles.value()}>{metric.value}</p>
205
- </Surface>
206
- ))}
207
- </Grid>
208
-
209
- <Surface>
210
- <Surface.Header {...styles.section()}>
211
- <Surface.Title>Block validation</Surface.Title>
212
- <ChoiceGroup.Root aria-label="Metric scope" defaultValue="network" size="small">
213
- <ChoiceGroup.Item value="network">Network</ChoiceGroup.Item>
214
- <ChoiceGroup.Item value="rpc">RPC node</ChoiceGroup.Item>
215
- <ChoiceGroup.Item value="validators">Validators</ChoiceGroup.Item>
216
- </ChoiceGroup.Root>
217
- </Surface.Header>
218
- <div {...styles.label()}>
219
- <h3 {...styles.heading()}>New payload validation latency</h3>
220
- <Definition label="New payload validation latency">
221
- Latency percentiles reported by the consensus engine while validating newPayload
222
- requests.
223
- </Definition>
224
- </div>
225
- <div {...styles.chart()}>Time-series chart. The library has no chart component yet.</div>
226
- <Table.Root size="small">
227
- <Table.Caption>Average latency by quantile for this run</Table.Caption>
228
- <Table.Head>
229
- <Table.Row>
230
- <Table.HeaderCell>Quantile</Table.HeaderCell>
231
- <Table.HeaderCell>Average</Table.HeaderCell>
232
- </Table.Row>
233
- </Table.Head>
234
- <Table.Body>
235
- {quantiles.map(([quantile, average]) => (
236
- <Table.Row key={quantile}>
237
- <Table.Cell mono>{quantile}</Table.Cell>
238
- <Table.Cell numeric>{average}</Table.Cell>
239
- </Table.Row>
240
- ))}
241
- </Table.Body>
242
- </Table.Root>
243
- </Surface>
244
- </div>
245
- )
246
- }
247
-
248
- namespace styles {
249
- export const bar = style({
250
- alignItems: 'center',
251
- display: 'flex',
252
- flexWrap: 'wrap',
253
- gap: '12',
254
- justifyContent: 'space-between',
255
- })
256
-
257
- export const brand = style({ typography: 'body.b1Strong' })
258
-
259
- export const caption = style({ color: 'content.secondary', margin: '0', typography: 'body.b3' })
260
-
261
- export const chart = style({
262
- alignItems: 'center',
263
- borderColor: 'line.secondary',
264
- borderRadius: 'xs',
265
- borderStyle: 'dashed',
266
- borderWidth: 'regular',
267
- color: 'content.secondary',
268
- display: 'flex',
269
- justifyContent: 'center',
270
- marginBlock: '16',
271
- minHeight: '200',
272
- padding: '16',
273
- textAlign: 'center',
274
- typography: 'body.b3',
275
- })
276
-
277
- export const commit = style({ color: 'content.primary', typography: 'mono.m1' })
278
-
279
- export const filter = style({ flex: '1 1 14rem !custom', minWidth: '0' })
280
-
281
- export const filters = style({ display: 'flex', flexWrap: 'wrap', gap: '12' })
282
-
283
- export const heading = style({ margin: '0', typography: 'body.b2Strong' })
284
-
285
- export const hero = style({
286
- alignItems: 'baseline',
287
- columnGap: '8',
288
- display: 'flex',
289
- fontVariantNumeric: 'tabular-nums !custom',
290
- margin: '0',
291
- marginBlock: '8',
292
- typography: 'value.v3',
293
- })
294
-
295
- export const label = style({
296
- alignItems: 'center',
297
- color: 'content.secondary',
298
- columnGap: '4',
299
- display: 'flex',
300
- typography: 'body.b3',
301
- })
302
-
303
- export const link = style({ color: 'content.primary' })
304
-
305
- export const meta = style({ color: 'content.secondary', margin: '0', typography: 'body.b3' })
306
-
307
- export const mono = style({ typography: 'mono.m1' })
308
-
309
- export const nav = style({ columnGap: '4', display: 'flex' })
310
-
311
- export const page = style({
312
- backgroundColor: 'background.primary',
313
- display: 'flex',
314
- flexDirection: 'column',
315
- padding: '16',
316
- rowGap: '16',
317
- })
318
-
319
- export const run = style({
320
- alignItems: 'flex-end',
321
- display: 'flex',
322
- flexWrap: 'wrap',
323
- gap: '16',
324
- justifyContent: 'space-between',
325
- })
326
-
327
- export const section = style({ flexWrap: 'wrap', rowGap: '12' })
328
-
329
- export const title = style({ margin: '0', typography: 'heading.h3' })
330
-
331
- export const unit = style({ color: 'content.secondary', typography: 'body.b2' })
332
-
333
- export const value = style({
334
- fontVariantNumeric: 'tabular-nums !custom',
335
- margin: '0',
336
- marginBlockStart: '4',
337
- typography: 'body.b1Strong',
338
- })
339
- }
340
- ```
341
-
342
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Products/PerformanceDashboard.tsx)
343
-
344
- The dashboard names the run and offers a run picker. Content runs from the headline metric down to the detailed sections.
345
-
346
- * **Page Links (aria-current):** Links to Dashboard and Methodology mark the current page. Use links, not tabs, since each is its own page.
347
- * **Run Header:** Shows the date, the short commit as a monospace link, the duration, and a link to the GitHub workflow.
348
- * **Run and Scenario (Select):** Selects pick the nightly run and the scenario. Run IDs, such as `main-2026-10-19-296be2ab`, render in monospace.
349
- * **Hero Metric (Surface):** Holds the settled TPS value and a caption that states its computation.
350
- * **Metric Tiles (fit=small):** A fitted grid holds one surface per metric. An info button opens each metric's definition.
351
- * **Sections (ChoiceGroup):** Switches the metric scope (Network, RPC node, or Validators) above a chart and a quantile table.
352
-
353
- Patterns:
354
-
355
- * [Dashboards](../patterns/dashboards.md) for the hero metric, tile grid, filters, and sections.
356
- * [Tables and Lists](../patterns/tables-and-lists.md) for the quantile table.
357
- * [Blockchain Values](../patterns/blockchain-values.md) for commit hashes, gas units, and block counts.
358
-
359
- ## Content
360
-
361
- ### Lead With One Hero Metric
362
-
363
- Settled TPS is the headline of the run. Give it a caption that states the aggregate and the sample, such as Median settled throughput across 142 measured blocks.
364
-
365
- ### Define Every Metric
366
-
367
- Give every tile and chart a one-sentence definition of the measurement and its aggregate. Start with the noun, as in Average wall-clock time between consecutive blocks.
368
-
369
- Open definitions in a [Popover](../components/popover.md) from an icon button. A [Tooltip](../components/tooltip.md) stays closed on touch input, so a phone never shows the definition.
370
-
371
- **Do:** Open a metric's definition in a `Popover`, with the metric name as its `Popover.Title`.
372
-
373
- **Don't:** Put a definition in a `Tooltip`, which stays closed on touch screens.
374
-
375
- ### Put the Unit With the Value
376
-
377
- Write the full unit beside the number, such as 1.38 Ggas/s, and use one format per metric across tiles, legends, and tables.
378
-
379
- **Do:** Label the tile Avg gas/s and show 1.38 Ggas/s.
380
-
381
- **Don't:** Show 633ms in a tile and 219.1 ms in a legend for the same kind of value.
382
-
383
- ### Say Submitted or Settled
384
-
385
- * **Submitted TPS:** The input of the load generator.
386
- * **Settled TPS:** The count of transactions included in blocks.
387
-
388
- Name the kind in every label, legend, and caption.
389
-
390
- ### Identify Runs Exactly
391
-
392
- Show run IDs in full in the Nightly select, since two runs can share a date. In the run header, use the seven-character commit and link it to GitHub.
393
-
394
- ### Name Quantiles the Same Way Everywhere
395
-
396
- Write quantiles as p50, p95, and p99 everywhere. State whether a chart shows one quantile, as in Persistence (p50), or several.
397
-
398
- ## Open Gaps
399
-
400
- The library has no part for these needs yet. Before you add one, propose it as an issue in the Design System project.
401
-
402
- * **Charts:** No time-series, stacked, or bar chart exists, and no axis, legend, or hover readout. Legends also toggle series with Show only this series.
403
- * **Metric Tile:** A surface with a label, a definition button, and a value. All three Tempo products repeat it.
404
- * **Monospace Display Type (mono.m1):** The only mono set, at 12px. Hero and tile values pair `fontFamily: 'mono'` with a size token.
405
- * **Info Button:** Each screen composes the info button and popover for definitions again.
406
-
407
- ## Related
408
-
409
- [Dashboards](../patterns/dashboards.md)
410
-
411
- Covers metric layouts.
412
-
413
- [Tables and Lists](../patterns/tables-and-lists.md)
414
-
415
- Covers quantile and timing tables.
416
-
417
- [Surface](../components/surface.md)
418
-
419
- Use for tiles and sections.
420
-
421
- [Grid](../components/grid.md)
422
-
423
- Use for the tile layout.
424
-
425
- [Popover](../components/popover.md)
426
-
427
- Use for metric definitions.
428
-
429
- [Select](../components/select.md)
430
-
431
- Use for run and scenario filters.
432
-
433
- [ChoiceGroup](../components/choice-group.md)
434
-
435
- Use for the metric scope.