Skip to content

Commit 159a049

Browse files
committed
Renamed mata schema to only meta
1 parent 6b17656 commit 159a049

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

client/src/components/ToolResults.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const ToolResults = ({
156156
)}
157157
{structuredResult._meta && (
158158
<div className="mb-4">
159-
<h5 className="font-semibold mb-2 text-sm">Meta Schema:</h5>
159+
<h5 className="font-semibold mb-2 text-sm">Meta:</h5>
160160
<div className="bg-gray-50 dark:bg-gray-900 p-3 rounded-lg">
161161
<JsonView data={structuredResult._meta} />
162162
</div>

client/src/components/ToolsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ const ToolsTab = ({
529529
selectedTool._meta && (
530530
<div className="bg-gray-50 dark:bg-gray-900 p-3 rounded-lg">
531531
<div className="flex items-center justify-between mb-2">
532-
<h4 className="text-sm font-semibold">Meta Schema:</h4>
532+
<h4 className="text-sm font-semibold">Meta:</h4>
533533
<Button
534534
size="sm"
535535
variant="ghost"

client/src/components/__tests__/ToolsTab.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ describe("ToolsTab", () => {
738738
selectedTool: toolWithMeta,
739739
});
740740

741-
expect(screen.getByText("Meta Schema:")).toBeInTheDocument();
741+
expect(screen.getByText("Meta:")).toBeInTheDocument();
742742
expect(
743743
screen.getByRole("button", { name: /expand/i }),
744744
).toBeInTheDocument();
@@ -750,8 +750,8 @@ describe("ToolsTab", () => {
750750
selectedTool: toolWithMeta,
751751
});
752752

753-
// There might be multiple Expand buttons (Output Schema, Meta Schema). We need the one within Meta Schema section
754-
const metaHeading = screen.getByText("Meta Schema:");
753+
// There might be multiple Expand buttons (Output Schema, Meta). We need the one within Meta section
754+
const metaHeading = screen.getByText("Meta:");
755755
const metaContainer = metaHeading.closest("div");
756756
expect(metaContainer).toBeTruthy();
757757
const toggleButton = within(metaContainer as HTMLElement).getByRole(
@@ -815,7 +815,7 @@ describe("ToolsTab", () => {
815815
});
816816
});
817817

818-
describe("ToolResults Meta Schema", () => {
818+
describe("ToolResults Meta", () => {
819819
it("should display meta information when present in toolResult", () => {
820820
const resultWithMeta = {
821821
content: [],
@@ -828,7 +828,7 @@ describe("ToolsTab", () => {
828828
});
829829

830830
// Only ToolResults meta should be present since selectedTool has no _meta
831-
expect(screen.getAllByText("Meta Schema:")).toHaveLength(1);
831+
expect(screen.getAllByText("Meta:")).toHaveLength(1);
832832
expect(screen.getByText(/info/i)).toBeInTheDocument();
833833
expect(screen.getByText(/version/i)).toBeInTheDocument();
834834
});

0 commit comments

Comments
 (0)