@mastra/playground-ui 27.0.0-alpha.14 → 27.0.0-alpha.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.
- package/CHANGELOG.md +29 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 27.0.0-alpha.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`105e454`](https://github.com/mastra-ai/mastra/commit/105e454c95af06a7c741c15969d8f9b0f02463a7)]:
|
|
8
|
+
- @mastra/core@1.33.0-alpha.15
|
|
9
|
+
- @mastra/client-js@1.18.0-alpha.16
|
|
10
|
+
- @mastra/react@0.3.0-alpha.16
|
|
11
|
+
|
|
12
|
+
## 27.0.0-alpha.15
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Changed the default Observability list mode to branches (all traces, including nested). The query logic still recognizes `?listMode=traces` to opt back into the top-level-only view. ([#16493](https://github.com/mastra-ai/mastra/pull/16493))
|
|
17
|
+
|
|
18
|
+
**Before**
|
|
19
|
+
|
|
20
|
+
`/observability` → top-level traces only
|
|
21
|
+
|
|
22
|
+
**After**
|
|
23
|
+
|
|
24
|
+
`/observability` → branches (all traces, nested too)
|
|
25
|
+
`/observability?listMode=traces` → top-level traces only
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`05dab92`](https://github.com/mastra-ai/mastra/commit/05dab92b3373306a4791c3a035a3100dd9a76b7f), [`05dab92`](https://github.com/mastra-ai/mastra/commit/05dab92b3373306a4791c3a035a3100dd9a76b7f)]:
|
|
28
|
+
- @mastra/react@0.3.0-alpha.15
|
|
29
|
+
- @mastra/client-js@1.18.0-alpha.15
|
|
30
|
+
- @mastra/core@1.33.0-alpha.14
|
|
31
|
+
|
|
3
32
|
## 27.0.0-alpha.14
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -20257,7 +20257,7 @@ const fetchTracesFn = async ({
|
|
|
20257
20257
|
page,
|
|
20258
20258
|
perPage,
|
|
20259
20259
|
filters,
|
|
20260
|
-
listMode = "
|
|
20260
|
+
listMode = "branches"
|
|
20261
20261
|
}) => {
|
|
20262
20262
|
const params = {
|
|
20263
20263
|
pagination: {
|
|
@@ -20298,7 +20298,7 @@ function selectUniqueTraces(data) {
|
|
|
20298
20298
|
}
|
|
20299
20299
|
return { spans, threadTitles };
|
|
20300
20300
|
}
|
|
20301
|
-
const useTraces = ({ filters, listMode = "
|
|
20301
|
+
const useTraces = ({ filters, listMode = "branches" }) => {
|
|
20302
20302
|
const client = react.useMastraClient();
|
|
20303
20303
|
const { inView: isEndOfListInView, setRef: setEndOfListElement } = useInView();
|
|
20304
20304
|
const query = reactQuery.useInfiniteQuery({
|
|
@@ -20476,7 +20476,7 @@ function useTraceUrlState(searchParams, setSearchParams, options) {
|
|
|
20476
20476
|
const scoreIdParam = searchParams.get(SCORE_ID_PARAM) || void 0;
|
|
20477
20477
|
const listMode = React.useMemo(() => {
|
|
20478
20478
|
const value = searchParams.get(TRACE_LIST_MODE_PARAM);
|
|
20479
|
-
return value && TRACE_LIST_MODE_VALUES.has(value) ? value : "
|
|
20479
|
+
return value && TRACE_LIST_MODE_VALUES.has(value) ? value : "branches";
|
|
20480
20480
|
}, [searchParams]);
|
|
20481
20481
|
const selectedEntityOption = React.useMemo(
|
|
20482
20482
|
() => ROOT_ENTITY_TYPE_OPTIONS.find((option) => option.entityType === searchParams.get(TRACE_ROOT_ENTITY_TYPE_PARAM)),
|
|
@@ -20643,7 +20643,7 @@ function useTraceUrlState(searchParams, setSearchParams, options) {
|
|
|
20643
20643
|
setSearchParams(
|
|
20644
20644
|
(prev) => {
|
|
20645
20645
|
const next = new URLSearchParams(prev);
|
|
20646
|
-
if (mode === "
|
|
20646
|
+
if (mode === "branches") {
|
|
20647
20647
|
next.delete(TRACE_LIST_MODE_PARAM);
|
|
20648
20648
|
} else {
|
|
20649
20649
|
next.set(TRACE_LIST_MODE_PARAM, mode);
|