DataMachineMicro
components/data/machine/Micro.vue
A DataMachine shrunk to a summary cell (design c109): title · hairline · value + device, about 200 × 52. The same number its listing's machine shows, one altitude up. Its protocol is a strict subset of DataMachine's under the same names, so a machine becomes a micro by deleting props — description, provenance, #below, #title / #title-right, reserve, fadeKey and valueSize are gone; a switcher freezes at its default view. null renders "—" (never 0, never a spinner).
its listing machine (DataMachine), for scale
Tokens
Excluding cache
48.2
m
+12%
36.9Minput
8.7Moutput
2.6Mreasoning
in 36.9M · out 8.7M · reasoning 2.6M
Device forms
Tokens
48.2
m
+12%
Spend
$
4.2k
Spend · top 1
$
4.2k
anthropic71 %
Harness installs
37
Tool success
94
%
Tool success · ring
94
%
Sessions started
1.2
k
User coverage
87
%
Providers
4
Needing attention
7
2 critical
Workspaces
63
Scenarios
states — in a group, value rows align across siblings
Loading
—
Failed
—
Empty · honest zero
0
Minimal
42
Typical
1.3
k
github38 %
Device only (no val)
github38 %
With delta
$
3.1k
-4%
Error rate (hot)
12
%
+8
overflow — long title, 7-digit value, 12-segment bar, very long ranked label
standalone — the micro fills its container; the device takes what the value leaves (160 · 200 · 260 px)
Spend
$
4.2k
anthropic71 %
Spend
$
4.2k
anthropic71 %
Spend
$
4.2k
anthropic71 %
mixed band — micros beside DataMachines in one group still share the value row
Spend
Billed where reported
$
4.2k
Spend (micro)
$
4.2k
anthropic71 %
Tokens (micro)
48.2
m
components/data/machine/Micro.vue
Usage
<DataMachineMicro
title = "—"
:val = "val"
unit = "undefined"
:delta = "delta"
deltaUnit = "undefined"
:healthMode = "healthModes.NEVER_HOT"
to = "_none_"
:card = "card"
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | String | '' | The machine's name — 12 px medium muted, one line; truncates (full text in its tooltip) |
| val | Number | null | undefined | The headline (20 px bold). null = loading or failed-with-nothing-loaded → an em-dash (honest states, R31 / c108 D1–D2). Omit for a device-only micro |
| unit | String | undefined | As DataMachine: 'bytes' | 'duration' | 'ms' | '%' | '$' (renders before the number) | any suffix |
| delta | Number | undefined | Passed to DataMetricTrend as `change`, at its 12 px --mini size; omit to hide |
| deltaUnit | String | undefined | Passed to DataMetricTrend as `unit` |
| healthMode | Function | healthModes.NEVER_HOT | Shared health evaluator for value and delta |
| to | String | '_none_' | The whole card links (its listing) — rendered as a real NuxtLink (keyboard focus, middle-click); hover turns the value primary. '_none_' = static, as DataMachine |
| card | Boolean | undefined | White card, 12 px corners, 14 px padding, soft two-layer shadow (hairline border in dark). Unset inherits from a surrounding DataIndexSection (cards on there), else flat — Mark's preset B, c109 micro-cards thread |
Slots
| Slot | Description |
|---|---|
| right | The micro device — fills the row after the value (min-w-0, flex-1), so right edges line up down a column. The micro doesn't know which device it holds |
| mark | A tiny glyph after the title that never truncates — a qualifier for the whole micro, e.g. the "projected" mark for a staged denominator (qdash R24). On the title, not #right, because it qualifies the name and #right is usually taken by the device |