From 74af23136cb71ae5151bc52eae88b2a0f9d42537 Mon Sep 17 00:00:00 2001
From: spandev <143828642+Spandan-Mishra@users.noreply.github.com>
Date: Tue, 18 Nov 2025 01:36:39 +0530
Subject: [PATCH] fix: empty screen added in routing position page when no
options are present (#25170)
Co-authored-by: Dhairyashil Shinde <93669429+dhairyashiil@users.noreply.github.com>
---
.../modules/insights/insights-virtual-queues-view.tsx | 11 +++++++++++
apps/web/public/static/locales/en/common.json | 2 ++
2 files changed, 13 insertions(+)
diff --git a/apps/web/modules/insights/insights-virtual-queues-view.tsx b/apps/web/modules/insights/insights-virtual-queues-view.tsx
index c82b0e733d..8e36612941 100644
--- a/apps/web/modules/insights/insights-virtual-queues-view.tsx
+++ b/apps/web/modules/insights/insights-virtual-queues-view.tsx
@@ -9,6 +9,7 @@ import { Label } from "@calcom/ui/components/form";
import { Select } from "@calcom/ui/components/form";
import { TestForm } from "../../components/apps/routing-forms/TestForm";
+import { EmptyScreen } from "@calcom/ui/components/empty-screen";
export default function InsightsVirtualQueuesPage() {
const { t } = useLocale();
@@ -23,6 +24,16 @@ export default function InsightsVirtualQueuesPage() {
setSelectedForm(routingForms[0]);
}
+ if (routingForms && routingForms.length === 0) {
+ return (
+
+ )
+ }
+
return (
<>
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index bd4fab2bfe..b72b8daf6f 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -3274,6 +3274,8 @@
"calibration": "Calibration",
"shortfall": "Shortfall",
"routing_form": "Routing Form",
+ "no_routing_forms": "No Routing Forms created yet.",
+ "empty_routing_forms_description": "Create routing forms to select projects to view their routing positions",
"go_back_and_save": "Go back and save",
"save_changes": "Save changes",
"leave_without_saving": "Leave without saving",