@mastra/playground-ui 26.1.0-alpha.3 → 27.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +272 -0
- package/dist/index.cjs.js +4635 -3188
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +293 -62
- package/dist/index.es.js +4604 -3189
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/logs/hooks/use-logs-filter-persistence.d.ts +1 -1
- package/dist/src/domains/metrics/components/card-action-buttons.d.ts +15 -0
- package/dist/src/domains/metrics/components/index.d.ts +4 -2
- package/dist/src/domains/metrics/components/latency-card-view.d.ts +10 -1
- package/dist/src/domains/metrics/components/memory-card-view.d.ts +25 -0
- package/dist/src/domains/metrics/components/model-usage-cost-card-view.d.ts +8 -1
- package/dist/src/domains/metrics/components/token-usage-by-agent-card-view.d.ts +8 -1
- package/dist/src/domains/metrics/components/traces-volume-card-view.d.ts +14 -1
- package/dist/src/domains/metrics/drilldown.d.ts +49 -0
- package/dist/src/domains/metrics/hooks/index.d.ts +7 -0
- package/dist/src/domains/metrics/hooks/use-active-resources-kpi-metrics.d.ts +13 -0
- package/dist/src/domains/metrics/hooks/use-active-threads-kpi-metrics.d.ts +13 -0
- package/dist/src/domains/metrics/hooks/use-drilldown.d.ts +9 -0
- package/dist/src/domains/metrics/hooks/use-latency-metrics.d.ts +5 -0
- package/dist/src/domains/metrics/hooks/use-metrics-filters.d.ts +41 -3
- package/dist/src/domains/metrics/hooks/use-metrics.d.ts +40 -11
- package/dist/src/domains/metrics/hooks/use-top-active-threads-metrics.d.ts +15 -0
- package/dist/src/domains/metrics/hooks/use-top-resources-by-threads-metrics.d.ts +14 -0
- package/dist/src/domains/metrics/metrics-filters.d.ts +96 -0
- package/dist/src/domains/traces/components/index.d.ts +1 -0
- package/dist/src/domains/traces/components/no-traces-info.d.ts +7 -0
- package/dist/src/domains/traces/components/traces-toolbar.d.ts +5 -1
- package/dist/src/domains/traces/hooks/use-trace-filter-persistence.d.ts +1 -1
- package/dist/src/domains/traces/hooks/use-trace-url-state.d.ts +2 -1
- package/dist/src/domains/traces/hooks/use-traces.d.ts +8 -6
- package/dist/src/domains/traces/trace-filters.d.ts +3 -0
- package/dist/src/ds/components/ButtonsGroup/buttons-group.d.ts +30 -5
- package/dist/src/ds/components/ButtonsGroup/buttons-group.stories.d.ts +5 -0
- package/dist/src/ds/components/Combobox/combobox-styles.d.ts +13 -12
- package/dist/src/ds/components/Combobox/combobox.stories.d.ts +1 -0
- package/dist/src/ds/components/Combobox/index.d.ts +1 -0
- package/dist/src/ds/components/HorizontalBars/horizontal-bars.d.ts +16 -5
- package/dist/src/ds/components/InputGroup/index.d.ts +1 -0
- package/dist/src/ds/components/InputGroup/input-group.d.ts +44 -0
- package/dist/src/ds/components/InputGroup/input-group.stories.d.ts +17 -0
- package/dist/src/ds/components/MetricsCard/metrics-card-actions.d.ts +7 -0
- package/dist/src/ds/components/MetricsCard/metrics-card.d.ts +2 -0
- package/dist/src/ds/components/MetricsDataTable/metrics-data-table.d.ts +9 -1
- package/dist/src/ds/components/MetricsLineChart/metrics-line-chart.d.ts +3 -1
- package/dist/src/ds/components/PropertyFilter/property-filter-applied.d.ts +11 -1
- package/dist/src/ds/components/PropertyFilter/property-filter-creator.d.ts +7 -1
- package/dist/src/ds/components/ScrollArea/scroll-area.d.ts +28 -7
- package/dist/src/ds/components/ScrollArea/scroll-area.stories.d.ts +4 -0
- package/dist/src/ds/components/Tabs/tabs-list.d.ts +7 -2
- package/dist/src/ds/components/Tabs/tabs.stories.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,277 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 27.0.0-alpha.11
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **Updated agent traces tab to use the rich observability traces UI** ([#16405](https://github.com/mastra-ai/mastra/pull/16405))
|
|
8
|
+
|
|
9
|
+
The agent traces tab now shows the dense 7-column trace list with a side-panel detail view featuring colored timeline spans (Agent/Workflow/Model/Scorer), expandable nested spans, Evaluate Trace, and Save as Dataset Item.
|
|
10
|
+
|
|
11
|
+
**Locked scope filter pills**
|
|
12
|
+
|
|
13
|
+
When viewing agent-scoped traces, the Primitive Type and Primitive ID filter pills are now read-only — they display the agent context, show a lock icon and tooltip, and cannot be edited or removed. The Add Filter dropdown no longer lists scope-controlled fields so users cannot accidentally override the active scope.
|
|
14
|
+
|
|
15
|
+
`PropertyFilterApplied` accepts a new `lockedFieldIds` (and optional `lockedTooltipContent`) prop. `PropertyFilterCreator` accepts a new `hiddenFieldIds` prop. Both are opt-in and unset by default, so existing usages are unaffected.
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
// Before
|
|
19
|
+
<PropertyFilterApplied fields={fields} tokens={tokens} onTokensChange={setTokens} />
|
|
20
|
+
|
|
21
|
+
// After — pills for the listed fields render locked with a tooltip
|
|
22
|
+
<PropertyFilterApplied
|
|
23
|
+
fields={fields}
|
|
24
|
+
tokens={tokens}
|
|
25
|
+
onTokensChange={setTokens}
|
|
26
|
+
lockedFieldIds={['rootEntityType', 'entityId']}
|
|
27
|
+
lockedTooltipContent="This filter is set by the current context."
|
|
28
|
+
/>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- Improved `ScrollArea` to use Base UI internally and added a richer mask API. Edges now fade by default based on `orientation` (top/bottom for vertical, left/right for horizontal, all four for both), so most scrollers get the polished fade-out automatically. ([#16415](https://github.com/mastra-ai/mastra/pull/16415))
|
|
32
|
+
|
|
33
|
+
**Heads up — default behavior change:** `ScrollArea` previously rendered without any edge fade unless `showMask` was passed. It now fades the edges that match `orientation` by default. Pass `mask={false}` on the callsites where you want to keep the old hard edges.
|
|
34
|
+
|
|
35
|
+
**New `mask` prop.** Accepts a boolean (`false` disables the fade entirely) or an object to override individual sides. The `x` and `y` keys are shorthands for the matching axis.
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
// Default — fades follow `orientation`
|
|
39
|
+
<ScrollArea>...</ScrollArea>
|
|
40
|
+
|
|
41
|
+
// Opt out entirely
|
|
42
|
+
<ScrollArea mask={false}>...</ScrollArea>
|
|
43
|
+
|
|
44
|
+
// Keep only the top fade
|
|
45
|
+
<ScrollArea mask={{ bottom: false }}>...</ScrollArea>
|
|
46
|
+
|
|
47
|
+
// Vertical fades only on a two-axis scroller
|
|
48
|
+
<ScrollArea orientation="both" mask={{ x: false }}>...</ScrollArea>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Migrating from `showMask`.** The `showMask` boolean is now deprecated but still works — `mask` wins when both are set.
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
// Before
|
|
55
|
+
<ScrollArea showMask>...</ScrollArea>
|
|
56
|
+
<ScrollArea showMask={false}>...</ScrollArea>
|
|
57
|
+
|
|
58
|
+
// After
|
|
59
|
+
<ScrollArea>...</ScrollArea> // default fade matches orientation
|
|
60
|
+
<ScrollArea mask={false}>...</ScrollArea> // explicitly disable
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- Added a new `pill` variant on `TabList` with an animated background indicator that slides behind the active trigger. The default `line` variant now animates its underline smoothly between tabs as well. Implemented by migrating the underlying Tabs component from Radix UI to Base UI. ([#16414](https://github.com/mastra-ai/mastra/pull/16414))
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
// Before — only the line (underline) style was available
|
|
67
|
+
<Tabs defaultTab="overview">
|
|
68
|
+
<TabList>
|
|
69
|
+
<Tab value="overview">Overview</Tab>
|
|
70
|
+
<Tab value="projects">Projects</Tab>
|
|
71
|
+
</TabList>
|
|
72
|
+
</Tabs>
|
|
73
|
+
|
|
74
|
+
// After — opt into the new pill style via the `variant` prop on TabList
|
|
75
|
+
<Tabs defaultTab="overview">
|
|
76
|
+
<TabList variant="pill">
|
|
77
|
+
<Tab value="overview">Overview</Tab>
|
|
78
|
+
<Tab value="projects">Projects</Tab>
|
|
79
|
+
</TabList>
|
|
80
|
+
</Tabs>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The public API (`Tabs`, `TabList`, `Tab`, `TabContent`) is unchanged; existing call-sites keep the default `line` variant.
|
|
84
|
+
|
|
85
|
+
- Added `InputGroup` and extended `ButtonsGroup` in playground-ui design system. ([#16417](https://github.com/mastra-ai/mastra/pull/16417))
|
|
86
|
+
|
|
87
|
+
**New `InputGroup` component**
|
|
88
|
+
|
|
89
|
+
Compose inputs with leading or trailing icons, buttons, text labels, and keyboard hints. Supports inline (left/right) and block (top/bottom) addon alignment, and works with both inputs and textareas.
|
|
90
|
+
|
|
91
|
+
```tsx
|
|
92
|
+
import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupButton } from '@mastra/playground-ui';
|
|
93
|
+
import { SearchIcon, XIcon } from 'lucide-react';
|
|
94
|
+
|
|
95
|
+
<InputGroup>
|
|
96
|
+
<InputGroupAddon>
|
|
97
|
+
<SearchIcon />
|
|
98
|
+
</InputGroupAddon>
|
|
99
|
+
<InputGroupInput placeholder="Search..." />
|
|
100
|
+
<InputGroupAddon align="inline-end">
|
|
101
|
+
<InputGroupButton aria-label="Clear">
|
|
102
|
+
<XIcon />
|
|
103
|
+
</InputGroupButton>
|
|
104
|
+
</InputGroupAddon>
|
|
105
|
+
</InputGroup>;
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Extended `ButtonsGroup`**
|
|
109
|
+
|
|
110
|
+
Added `orientation` (`horizontal` | `vertical`), and new `ButtonsGroupSeparator` and `ButtonsGroupText` slots. Existing API unchanged.
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
<ButtonsGroup spacing="close">
|
|
114
|
+
<Button variant="outline">−</Button>
|
|
115
|
+
<ButtonsGroupText>42</ButtonsGroupText>
|
|
116
|
+
<Button variant="outline">+</Button>
|
|
117
|
+
</ButtonsGroup>
|
|
118
|
+
|
|
119
|
+
<ButtonsGroup orientation="vertical">
|
|
120
|
+
<Button variant="ghost">Copy</Button>
|
|
121
|
+
<ButtonsGroupSeparator />
|
|
122
|
+
<Button variant="ghost">Cut</Button>
|
|
123
|
+
</ButtonsGroup>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Tweaked `Button` ghost variant**
|
|
127
|
+
|
|
128
|
+
Aligned hover/active progression with the outline variant (`surface3` → `surface4`) so click feedback is perceptible on transparent backgrounds. Existing ghost buttons throughout the playground will appear one shade lighter on hover and active.
|
|
129
|
+
|
|
130
|
+
### Patch Changes
|
|
131
|
+
|
|
132
|
+
- Filter pills (`PropertyFilterApplied`) now match the rest of the design system — single 1px border, consistent rounded segments, no custom styling. Labels stay on one line and no longer compress when long values are present. ([#16426](https://github.com/mastra-ai/mastra/pull/16426))
|
|
133
|
+
|
|
134
|
+
`ButtonsGroupText` segments also no longer wrap to multiple lines or shrink under flex pressure, which makes them safer to drop into any tight layout.
|
|
135
|
+
|
|
136
|
+
- **Polished Combobox dropdown items** ([#16411](https://github.com/mastra-ai/mastra/pull/16411))
|
|
137
|
+
- Moved the selection check to the right of each item so unselected rows no longer carry an awkward left padding gap and the whole list aligns consistently.
|
|
138
|
+
- Tightened popup search/empty padding and softened the trigger hover for a calmer command-palette feel.
|
|
139
|
+
|
|
140
|
+
**Added `ComboboxPrimitive` export for advanced compositions**
|
|
141
|
+
|
|
142
|
+
Re-exports the raw `@base-ui/react/combobox` parts (Root, Trigger, Input, List, Item, Chips, etc.) so callers needing virtualization, async status, chips, or creatable patterns can compose them directly with the shared `comboboxStyles` tokens — without growing the monolithic `<Combobox>` prop surface.
|
|
143
|
+
|
|
144
|
+
```tsx
|
|
145
|
+
import { ComboboxPrimitive, comboboxStyles } from '@mastra/playground-ui';
|
|
146
|
+
|
|
147
|
+
<ComboboxPrimitive.Root items={items}>
|
|
148
|
+
<ComboboxPrimitive.Input className={comboboxStyles.searchInput} />
|
|
149
|
+
<ComboboxPrimitive.Portal>
|
|
150
|
+
<ComboboxPrimitive.Positioner>
|
|
151
|
+
<ComboboxPrimitive.Popup className={comboboxStyles.popup}>
|
|
152
|
+
<ComboboxPrimitive.List className={comboboxStyles.list}>
|
|
153
|
+
{item => (
|
|
154
|
+
<ComboboxPrimitive.Item value={item} className={comboboxStyles.item}>
|
|
155
|
+
{item.label}
|
|
156
|
+
</ComboboxPrimitive.Item>
|
|
157
|
+
)}
|
|
158
|
+
</ComboboxPrimitive.List>
|
|
159
|
+
</ComboboxPrimitive.Popup>
|
|
160
|
+
</ComboboxPrimitive.Positioner>
|
|
161
|
+
</ComboboxPrimitive.Portal>
|
|
162
|
+
</ComboboxPrimitive.Root>;
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
- Updated dependencies [[`7ad5585`](https://github.com/mastra-ai/mastra/commit/7ad55856406f1de398dc713f6a9eaa78b2784bb6), [`210ea7a`](https://github.com/mastra-ai/mastra/commit/210ea7af559791b73a44fc9c12179908aaa3183f), [`83218c8`](https://github.com/mastra-ai/mastra/commit/83218c88b37773c9424fbe733b37be556e55e94d), [`265ec9f`](https://github.com/mastra-ai/mastra/commit/265ec9f887b5c81255c873a76ff7796f16e4f99b), [`6ce80bf`](https://github.com/mastra-ai/mastra/commit/6ce80bf4872a891e0bddf8b80561a80584efb14b), [`9268531`](https://github.com/mastra-ai/mastra/commit/9268531e7ec4be98beeba3b3ae8be0a7ea380662), [`13ead79`](https://github.com/mastra-ai/mastra/commit/13ead79149486b88144db7e11e6ff551caef5be1), [`bd36d8e`](https://github.com/mastra-ai/mastra/commit/bd36d8eb6de8c9a0310352649dbd4b06703c2299), [`8ac9141`](https://github.com/mastra-ai/mastra/commit/8ac9141439caa8fdd674944c4d84f29b3c730296)]:
|
|
166
|
+
- @mastra/core@1.33.0-alpha.10
|
|
167
|
+
- @mastra/client-js@1.18.0-alpha.11
|
|
168
|
+
- @mastra/react@0.2.36-alpha.11
|
|
169
|
+
|
|
170
|
+
## 27.0.0-alpha.10
|
|
171
|
+
|
|
172
|
+
### Patch Changes
|
|
173
|
+
|
|
174
|
+
- Updated dependencies [[`e281ae5`](https://github.com/mastra-ai/mastra/commit/e281ae50e6087affc242de13f471112835bc60b4)]:
|
|
175
|
+
- @mastra/client-js@1.18.0-alpha.10
|
|
176
|
+
- @mastra/react@0.2.36-alpha.10
|
|
177
|
+
|
|
178
|
+
## 27.0.0-alpha.9
|
|
179
|
+
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- Updated dependencies [[`5688881`](https://github.com/mastra-ai/mastra/commit/5688881669c7ed157f31ac77f6fc5f8d95ceea32)]:
|
|
183
|
+
- @mastra/core@1.33.0-alpha.9
|
|
184
|
+
- @mastra/client-js@1.18.0-alpha.9
|
|
185
|
+
- @mastra/react@0.2.36-alpha.9
|
|
186
|
+
|
|
187
|
+
## 27.0.0-alpha.8
|
|
188
|
+
|
|
189
|
+
### Patch Changes
|
|
190
|
+
|
|
191
|
+
- Updated dependencies [[`7c275a8`](https://github.com/mastra-ai/mastra/commit/7c275a810595e1a6c41ccc39720531ab65734700), [`890b24c`](https://github.com/mastra-ai/mastra/commit/890b24cc7d32ed6aa4dfe253e54dc6bf4099f690), [`0f48ebf`](https://github.com/mastra-ai/mastra/commit/0f48ebfc7ac7897b2092a189f45751924cf56d1c), [`f180e49`](https://github.com/mastra-ai/mastra/commit/f180e4990e71b04c9a475b523584071712f0048f), [`9260e01`](https://github.com/mastra-ai/mastra/commit/9260e015276fb1b500f7878ee452b47476bf1583), [`2f6c54e`](https://github.com/mastra-ai/mastra/commit/2f6c54e17c041cac1def54baaa6b771647836414), [`e06a159`](https://github.com/mastra-ai/mastra/commit/e06a1598ca07a6c3778aefc2a2d288363c6294ff), [`db34bc6`](https://github.com/mastra-ai/mastra/commit/db34bc6fb36cf125bda0c46be4d3fdc774b70cc4)]:
|
|
192
|
+
- @mastra/core@1.33.0-alpha.8
|
|
193
|
+
- @mastra/client-js@1.18.0-alpha.8
|
|
194
|
+
- @mastra/react@0.2.36-alpha.8
|
|
195
|
+
|
|
196
|
+
## 27.0.0-alpha.7
|
|
197
|
+
|
|
198
|
+
### Patch Changes
|
|
199
|
+
|
|
200
|
+
- Refined Combobox and Select trigger interactions with an active state and fixed value truncation when a leading badge is rendered. Refreshed PanelSeparator with a clearer hover/active affordance, an enlarged hit area, and a focus-visible accent. Removed the default `bg-surface2` background from `Threads` so consumers can control the surface color. ([#16269](https://github.com/mastra-ai/mastra/pull/16269))
|
|
201
|
+
|
|
202
|
+
- Updated dependencies [[`6742347`](https://github.com/mastra-ai/mastra/commit/6742347d71955d7639adc9ddf6ff8282de7ee3ba), [`7b0ad1f`](https://github.com/mastra-ai/mastra/commit/7b0ad1f5c53dc118c6da12ae82ae2587037dc2b8), [`62666c3`](https://github.com/mastra-ai/mastra/commit/62666c367eaeac3941ead454b1d38810cc855721), [`4af2160`](https://github.com/mastra-ai/mastra/commit/4af2160322f4718cac421930cce85641e9512389), [`136c959`](https://github.com/mastra-ai/mastra/commit/136c9592fb0eeb0cd212f28629d8a29b7557a2fc), [`4df7cc7`](https://github.com/mastra-ai/mastra/commit/4df7cc79342fd065fe7fdeef93c094db14b12bcd), [`284b0d7`](https://github.com/mastra-ai/mastra/commit/284b0d78d0edb306413447e5268007491006937c), [`aca3121`](https://github.com/mastra-ai/mastra/commit/aca31211233dac25459f140ea4fcfb3a5af64c18), [`9cdf38e`](https://github.com/mastra-ai/mastra/commit/9cdf38e58506e1109c8b38f97cd7770978a4218e), [`990851e`](https://github.com/mastra-ai/mastra/commit/990851edcb0e30be5c2c18b6532f1a876cc2d335), [`6068a6c`](https://github.com/mastra-ai/mastra/commit/6068a6c42950fad3ebfc92346417896ba60803d2), [`00106be`](https://github.com/mastra-ai/mastra/commit/00106bede59b81e5b0e9cd6aad8d3b5dbc336387), [`e2a079c`](https://github.com/mastra-ai/mastra/commit/e2a079cc3755b1895f7bd5dc36e9be81b11c7c22), [`534a456`](https://github.com/mastra-ai/mastra/commit/534a456a25e4df1e5407e7e632f4cb3b1fa14f9d), [`36bae07`](https://github.com/mastra-ai/mastra/commit/36bae07c0e70b1b3006f2fd20830e8883dcbd066)]:
|
|
203
|
+
- @mastra/core@1.33.0-alpha.7
|
|
204
|
+
- @mastra/client-js@1.18.0-alpha.7
|
|
205
|
+
- @mastra/react@0.2.36-alpha.7
|
|
206
|
+
|
|
207
|
+
## 27.0.0-alpha.6
|
|
208
|
+
|
|
209
|
+
### Patch Changes
|
|
210
|
+
|
|
211
|
+
- Fixed Studio streaming render behavior for interleaved reasoning and improved chat autoscroll during rapid output. ([#16331](https://github.com/mastra-ai/mastra/pull/16331))
|
|
212
|
+
|
|
213
|
+
- Updated dependencies [[`b560d6f`](https://github.com/mastra-ai/mastra/commit/b560d6f88b9b904b15c10f75c949eb145bc27684), [`f176145`](https://github.com/mastra-ai/mastra/commit/f1761458eaa602f59c5499bd0855ae7a5fd9baf3), [`d416efd`](https://github.com/mastra-ai/mastra/commit/d416efdee26c1755328e21cc62584f8566e21432), [`36b3bbf`](https://github.com/mastra-ai/mastra/commit/36b3bbf5a8d59f7e23d47e29340e76c681b4929c), [`b275631`](https://github.com/mastra-ai/mastra/commit/b275631dc10541a482b2e2d4a3e3cfa843bd5fa1)]:
|
|
214
|
+
- @mastra/core@1.33.0-alpha.6
|
|
215
|
+
- @mastra/react@0.2.36-alpha.6
|
|
216
|
+
- @mastra/client-js@1.18.0-alpha.6
|
|
217
|
+
|
|
218
|
+
## 27.0.0-alpha.5
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- Updated dependencies [[`bae019e`](https://github.com/mastra-ai/mastra/commit/bae019ecb6694da96909f7ec7b9eb3a0a33aa887), [`33f5061`](https://github.com/mastra-ai/mastra/commit/33f5061cd1c0335020c3faae61ce96de822854fa), [`99869ec`](https://github.com/mastra-ai/mastra/commit/99869ecb1f2aa6dfcc44fa4e843e5ee0344efa64), [`d86f031`](https://github.com/mastra-ai/mastra/commit/d86f031eb6b0b2570145afafea664e59bf688962)]:
|
|
223
|
+
- @mastra/core@1.33.0-alpha.5
|
|
224
|
+
- @mastra/client-js@1.18.0-alpha.5
|
|
225
|
+
- @mastra/react@0.2.36-alpha.5
|
|
226
|
+
|
|
227
|
+
## 27.0.0-alpha.4
|
|
228
|
+
|
|
229
|
+
### Minor Changes
|
|
230
|
+
|
|
231
|
+
- Added opt-in interactivity and per-page filter persistence support for observability UI components. ([#15747](https://github.com/mastra-ai/mastra/pull/15747))
|
|
232
|
+
- `MetricsLineChart` accepts an `onPointClick` callback so chart points can drive drilldowns.
|
|
233
|
+
- `HorizontalBars` accepts row-level and segment-level hrefs for linked metric bars without nested anchors.
|
|
234
|
+
- `MetricsDataTable` accepts `getRowHref(row)` for linked rows with consistent hover and focus styling.
|
|
235
|
+
- `MetricsCard` exposes an `Actions` slot in the top bar for contextual icon links.
|
|
236
|
+
- Observability filter helpers for Metrics, Traces, and Logs each keep their own saved-filters storage key so pages remember filters independently.
|
|
237
|
+
|
|
238
|
+
All additions are optional, so existing consumers continue to render the same way unless they pass the new props.
|
|
239
|
+
|
|
240
|
+
```tsx
|
|
241
|
+
<MetricsLineChart
|
|
242
|
+
data={points}
|
|
243
|
+
series={series}
|
|
244
|
+
onPointClick={point => navigate(`/observability?dateFrom=${point.from}&dateTo=${point.to}`)}
|
|
245
|
+
/>
|
|
246
|
+
|
|
247
|
+
<HorizontalBars data={[{ name: 'agent-a', values: [42, 3], href: '/observability?filterEntityName=agent-a' }]} />
|
|
248
|
+
|
|
249
|
+
<MetricsDataTable columns={cols} data={rows} getRowHref={row => `/observability?filterThreadId=${row.threadId}`} />
|
|
250
|
+
|
|
251
|
+
<MetricsCard>
|
|
252
|
+
<MetricsCard.TopBar>
|
|
253
|
+
<MetricsCard.TitleAndDescription title="Latency" />
|
|
254
|
+
<MetricsCard.Actions>
|
|
255
|
+
<IconButton href="/observability" />
|
|
256
|
+
</MetricsCard.Actions>
|
|
257
|
+
</MetricsCard.TopBar>
|
|
258
|
+
</MetricsCard>
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### Patch Changes
|
|
262
|
+
|
|
263
|
+
- Fixed three issues on the Logs and Traces pages: ([#16306](https://github.com/mastra-ai/mastra/pull/16306))
|
|
264
|
+
- Column widths now stay stable while scrolling — they no longer jump as different rows scroll into view.
|
|
265
|
+
- Scrolling far down the Logs list no longer scrambles rows (duplicates, gaps, or empty rows after additional pages load).
|
|
266
|
+
- Changing a filter or the date range now scrolls the list back to the top, instead of leaving an empty band above the new data until you nudge the scroll. Logs and Traces now behave the same way on filter changes.
|
|
267
|
+
|
|
268
|
+
- Added `NoTracesInfo` component that informs the user there are no traces for the active date range. ([#16303](https://github.com/mastra-ai/mastra/pull/16303))
|
|
269
|
+
|
|
270
|
+
- Updated dependencies [[`9f17410`](https://github.com/mastra-ai/mastra/commit/9f1741080def23d42ee50b39887a385ae316a3c6), [`c6eb39e`](https://github.com/mastra-ai/mastra/commit/c6eb39ea6dca381c6563cb240237fbe608e02f93), [`c6eb39e`](https://github.com/mastra-ai/mastra/commit/c6eb39ea6dca381c6563cb240237fbe608e02f93), [`900d086`](https://github.com/mastra-ai/mastra/commit/900d086bb737b9cf2fcf68f11b0389b801a2738c), [`4c0e286`](https://github.com/mastra-ai/mastra/commit/4c0e28637c9cfb4f416549b55e97ebfa13319dfc), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`aebde9c`](https://github.com/mastra-ai/mastra/commit/aebde9cfacf56592c6b6350cae721740fe090b8a)]:
|
|
271
|
+
- @mastra/core@1.33.0-alpha.4
|
|
272
|
+
- @mastra/client-js@1.18.0-alpha.4
|
|
273
|
+
- @mastra/react@0.2.36-alpha.4
|
|
274
|
+
|
|
3
275
|
## 26.1.0-alpha.3
|
|
4
276
|
|
|
5
277
|
### Patch Changes
|