-
- Sharing a chat is not supported yet... But it is on our roadmap!
-
+
+
);
}
+ const isChat = assetType === 'chat' || !!chatId;
+
return (
-
+
diff --git a/apps/web/src/routes/embed/chat.$chatId.tsx b/apps/web/src/routes/embed/chat.$chatId.tsx
index 7546229da..507ebf0f4 100644
--- a/apps/web/src/routes/embed/chat.$chatId.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId.tsx
@@ -1,10 +1,18 @@
-import { createFileRoute } from '@tanstack/react-router';
+import { createFileRoute, Outlet } from '@tanstack/react-router';
import * as chatLayoutServerContext from '@/context/BusterAssets/chat-server/chatLayoutServer';
export const Route = createFileRoute('/embed/chat/$chatId')({
...chatLayoutServerContext,
ssr: false,
- component: () => {
- return Hello "/embed/chat/$chatId"!
;
- },
+ component: RouteComponent,
});
+
+function RouteComponent() {
+ return (
+
+
+ {chatLayoutServerContext.component()}
+
+
+ );
+}
diff --git a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/_layout.tsx b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/_layout.tsx
similarity index 70%
rename from apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/_layout.tsx
rename to apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/_layout.tsx
index 1260e3415..1421daf36 100644
--- a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/_layout.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/_layout.tsx
@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router';
import * as dashboardLayoutServerAssetContext from '@/context/BusterAssets/dashboard-server/dashboardLayoutServerAssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/dashboards/$dashboardId/_layout')({
+export const Route = createFileRoute('/embed/chat/$chatId/dashboards/$dashboardId/_layout')({
...dashboardLayoutServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/_layout/index.tsx b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/_layout/index.tsx
similarity index 68%
rename from apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/_layout/index.tsx
rename to apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/_layout/index.tsx
index 1f822c28f..0aebb52c5 100644
--- a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/_layout/index.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/_layout/index.tsx
@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router';
import * as dashboardContentServerContext from '@/context/BusterAssets/dashboard-server/dashboardContentContext';
-export const Route = createFileRoute('/embed/chats/$chatId/dashboards/$dashboardId/_layout/')({
+export const Route = createFileRoute('/embed/chat/$chatId/dashboards/$dashboardId/_layout/')({
...dashboardContentServerContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content.tsx b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content.tsx
similarity index 81%
rename from apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content.tsx
rename to apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content.tsx
index 660b1d707..7ee39950e 100644
--- a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricLayoutServerContext from '@/context/BusterAssets/metric-server/metricLayoutServerAssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/dashboards/$dashboardId/metrics/$metricId/_content'
+ '/embed/chat/$chatId/dashboards/$dashboardId/metrics/$metricId/_content'
)({
...metricLayoutServerContext,
loader: metricLayoutServerContext.loader<{ metricId: string; dashboardId: string }>,
diff --git a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/chart.tsx b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/chart.tsx
similarity index 75%
rename from apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/chart.tsx
rename to apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/chart.tsx
index b72397805..cf454d285 100644
--- a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/chart.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/chart.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricChartServerAssetContext from '@/context/BusterAssets/metric-server/metricChartServerAssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/dashboards/$dashboardId/metrics/$metricId/_content/chart'
+ '/embed/chat/$chatId/dashboards/$dashboardId/metrics/$metricId/_content/chart'
)({
...metricChartServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/index.tsx b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/index.tsx
similarity index 76%
rename from apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/index.tsx
rename to apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/index.tsx
index d1c23582a..5fd44d95a 100644
--- a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/index.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/index.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricIndexServerContext from '@/context/BusterAssets/metric-server/metricIndexServerAssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/dashboards/$dashboardId/metrics/$metricId/_content/'
+ '/embed/chat/$chatId/dashboards/$dashboardId/metrics/$metricId/_content/'
)({
...metricIndexServerContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/results.tsx b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/results.tsx
similarity index 75%
rename from apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/results.tsx
rename to apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/results.tsx
index d31d20e16..4dff91373 100644
--- a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/results.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/results.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricResultsServerAssetContext from '@/context/BusterAssets/metric-server/metricResultsServerAssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/dashboards/$dashboardId/metrics/$metricId/_content/results'
+ '/embed/chat/$chatId/dashboards/$dashboardId/metrics/$metricId/_content/results'
)({
...metricResultsServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/sql.tsx b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/sql.tsx
similarity index 76%
rename from apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/sql.tsx
rename to apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/sql.tsx
index 5e1a645f2..93339e6d2 100644
--- a/apps/web/src/routes/embed/chats.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/sql.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/dashboards.$dashboardId/metrics.$metricId/_content/sql.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricSQLServerAsssetContext from '@/context/BusterAssets/metric-server/metricSQLServerAsssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/dashboards/$dashboardId/metrics/$metricId/_content/sql'
+ '/embed/chat/$chatId/dashboards/$dashboardId/metrics/$metricId/_content/sql'
)({
...metricSQLServerAsssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/index.tsx b/apps/web/src/routes/embed/chat.$chatId/index.tsx
similarity index 56%
rename from apps/web/src/routes/embed/chats.$chatId/index.tsx
rename to apps/web/src/routes/embed/chat.$chatId/index.tsx
index 82922f1d1..8d932b3b2 100644
--- a/apps/web/src/routes/embed/chats.$chatId/index.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/index.tsx
@@ -1,7 +1,10 @@
import { createFileRoute } from '@tanstack/react-router';
-export const Route = createFileRoute('/embed/chats/$chatId/')({
+export const Route = createFileRoute('/embed/chat/$chatId/')({
component: RouteComponent,
+ staticData: {
+ assetType: 'chat',
+ },
});
function RouteComponent() {
diff --git a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout.tsx b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout.tsx
similarity index 75%
rename from apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout.tsx
rename to apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout.tsx
index a939a80c1..fdc3cd1f9 100644
--- a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout.tsx
@@ -1,7 +1,7 @@
import { createFileRoute } from '@tanstack/react-router';
import * as metricLayoutServerContext from '@/context/BusterAssets/metric-server/metricLayoutServerAssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/metrics/$metricId/_layout')({
+export const Route = createFileRoute('/embed/chat/$chatId/metrics/$metricId/_layout')({
...metricLayoutServerContext,
loader: metricLayoutServerContext.loader<{ metricId: string }>,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/chart.tsx b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/chart.tsx
similarity index 69%
rename from apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/chart.tsx
rename to apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/chart.tsx
index 345678564..db0a85be3 100644
--- a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/chart.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/chart.tsx
@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router';
import * as metricChartServerAssetContext from '@/context/BusterAssets/metric-server/metricChartServerAssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/metrics/$metricId/_layout/chart')({
+export const Route = createFileRoute('/embed/chat/$chatId/metrics/$metricId/_layout/chart')({
...metricChartServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/index.tsx b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/index.tsx
similarity index 69%
rename from apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/index.tsx
rename to apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/index.tsx
index 4629f6b25..45706c378 100644
--- a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/index.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/index.tsx
@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router';
import * as metricIndexServerContext from '@/context/BusterAssets/metric-server/metricIndexServerAssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/metrics/$metricId/_layout/')({
+export const Route = createFileRoute('/embed/chat/$chatId/metrics/$metricId/_layout/')({
...metricIndexServerContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/results.tsx b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/results.tsx
similarity index 69%
rename from apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/results.tsx
rename to apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/results.tsx
index 9f8c8c064..13b12a542 100644
--- a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/results.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/results.tsx
@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router';
import * as metricResultsServerAssetContext from '@/context/BusterAssets/metric-server/metricResultsServerAssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/metrics/$metricId/_layout/results')({
+export const Route = createFileRoute('/embed/chat/$chatId/metrics/$metricId/_layout/results')({
...metricResultsServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/sql.tsx b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/sql.tsx
similarity index 69%
rename from apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/sql.tsx
rename to apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/sql.tsx
index 139d0068e..030858021 100644
--- a/apps/web/src/routes/embed/chats.$chatId/metrics.$metricId/_layout/sql.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/metrics.$metricId/_layout/sql.tsx
@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router';
import * as metricSQLServerAsssetContext from '@/context/BusterAssets/metric-server/metricSQLServerAsssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/metrics/$metricId/_layout/sql')({
+export const Route = createFileRoute('/embed/chat/$chatId/metrics/$metricId/_layout/sql')({
...metricSQLServerAsssetContext,
});
diff --git a/apps/web/src/routes/embed/chat.$chatId/reasoning.$messageId/index.tsx b/apps/web/src/routes/embed/chat.$chatId/reasoning.$messageId/index.tsx
new file mode 100644
index 000000000..c1e7c4320
--- /dev/null
+++ b/apps/web/src/routes/embed/chat.$chatId/reasoning.$messageId/index.tsx
@@ -0,0 +1,6 @@
+import { createFileRoute } from '@tanstack/react-router';
+import * as reportContent from '@/context/BusterAssets/reasoning-server/reasoningContent';
+
+export const Route = createFileRoute('/embed/chat/$chatId/reasoning/$messageId/')({
+ ...reportContent,
+});
diff --git a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout.tsx b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout.tsx
similarity index 71%
rename from apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout.tsx
rename to apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout.tsx
index e71331cde..58411e101 100644
--- a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout.tsx
@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router';
import * as reportLayoutServerAssetContext from '@/context/BusterAssets/report-server/reportLayoutServerAssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/reports/$reportId/_layout')({
+export const Route = createFileRoute('/embed/chat/$chatId/reports/$reportId/_layout')({
...reportLayoutServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout/content.tsx b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout/content.tsx
similarity index 68%
rename from apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout/content.tsx
rename to apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout/content.tsx
index 3874dea3d..860d88a77 100644
--- a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout/content.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout/content.tsx
@@ -2,6 +2,6 @@ import { createFileRoute } from '@tanstack/react-router';
import * as reportContentServerContext from '@/context/BusterAssets/report-server/reportContentServerAssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/reports/$reportId/_layout/content')({
+export const Route = createFileRoute('/embed/chat/$chatId/reports/$reportId/_layout/content')({
...reportContentServerContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout/index.tsx b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout/index.tsx
similarity index 70%
rename from apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout/index.tsx
rename to apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout/index.tsx
index 86b0b68fc..5e71a8f97 100644
--- a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/_layout/index.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/_layout/index.tsx
@@ -1,6 +1,6 @@
import { createFileRoute } from '@tanstack/react-router';
import * as reportIndexServerAssetContext from '@/context/BusterAssets/report-server/reportContentServerAssetContext';
-export const Route = createFileRoute('/embed/chats/$chatId/reports/$reportId/_layout/')({
+export const Route = createFileRoute('/embed/chat/$chatId/reports/$reportId/_layout/')({
...reportIndexServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content.tsx b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content.tsx
similarity index 81%
rename from apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content.tsx
rename to apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content.tsx
index eadd9eebc..346d4a99d 100644
--- a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricLayoutServerContext from '@/context/BusterAssets/metric-server/metricLayoutServerAssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/reports/$reportId/metrics/$metricId/_content'
+ '/embed/chat/$chatId/reports/$reportId/metrics/$metricId/_content'
)({
...metricLayoutServerContext,
loader: metricLayoutServerContext.loader<{ metricId: string }>,
diff --git a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/chart.tsx b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/chart.tsx
similarity index 77%
rename from apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/chart.tsx
rename to apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/chart.tsx
index dfcd3143e..8ba3a35d3 100644
--- a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/chart.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/chart.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricChartServerAssetContext from '@/context/BusterAssets/metric-server/metricChartServerAssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/reports/$reportId/metrics/$metricId/_content/chart'
+ '/embed/chat/$chatId/reports/$reportId/metrics/$metricId/_content/chart'
)({
...metricChartServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/index.tsx b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/index.tsx
similarity index 77%
rename from apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/index.tsx
rename to apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/index.tsx
index bebaf1f01..77210094c 100644
--- a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/index.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/index.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricIndexServerContext from '@/context/BusterAssets/metric-server/metricIndexServerAssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/reports/$reportId/metrics/$metricId/_content/'
+ '/embed/chat/$chatId/reports/$reportId/metrics/$metricId/_content/'
)({
...metricIndexServerContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/results.tsx b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/results.tsx
similarity index 77%
rename from apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/results.tsx
rename to apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/results.tsx
index a02f3b368..d9c49f560 100644
--- a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/results.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/results.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricResultsServerAssetContext from '@/context/BusterAssets/metric-server/metricResultsServerAssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/reports/$reportId/metrics/$metricId/_content/results'
+ '/embed/chat/$chatId/reports/$reportId/metrics/$metricId/_content/results'
)({
...metricResultsServerAssetContext,
});
diff --git a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/sql.tsx b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/sql.tsx
similarity index 77%
rename from apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/sql.tsx
rename to apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/sql.tsx
index fc0185248..711977afc 100644
--- a/apps/web/src/routes/embed/chats.$chatId/reports.$reportId/metrics.$metricId/_content/sql.tsx
+++ b/apps/web/src/routes/embed/chat.$chatId/reports.$reportId/metrics.$metricId/_content/sql.tsx
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
import * as metricSQLServerAsssetContext from '@/context/BusterAssets/metric-server/metricSQLServerAsssetContext';
export const Route = createFileRoute(
- '/embed/chats/$chatId/reports/$reportId/metrics/$metricId/_content/sql'
+ '/embed/chat/$chatId/reports/$reportId/metrics/$metricId/_content/sql'
)({
...metricSQLServerAsssetContext,
});