diff --git a/frontend/src/i18n/en/index.ts b/frontend/src/i18n/en/index.ts
index 2ae7725d2..99354e913 100644
--- a/frontend/src/i18n/en/index.ts
+++ b/frontend/src/i18n/en/index.ts
@@ -172,13 +172,17 @@ How would you categorize this email?`,
body: 'You cannot publish an API for the bot that is not shared.',
},
deploying: {
- title: 'The API deployment is in PROGRESS.',
+ title: 'The API deployment is in PROGRESS',
body: 'Please wait until the deployment is complete.',
},
deployed: {
- title: 'The API has been DEPLOYED.',
+ title: 'The API has been DEPLOYED',
body: 'You can access the API from the Client using the API Endpoint and API Key.',
},
+ deployError: {
+ title: 'FAILED to deploy the API',
+ body: 'Please delete the API and re-create the API.',
+ },
},
deleteApiDaialog: {
title: 'Delete?',
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
index 098dbcc67..56506bc67 100644
--- a/frontend/src/main.tsx
+++ b/frontend/src/main.tsx
@@ -9,7 +9,7 @@ import './i18n';
import BotExplorePage from './pages/BotExplorePage.tsx';
import BotEditPage from './pages/BotEditPage.tsx';
import BotApiSettingsPage from './pages/BotApiSettingsPage.tsx';
-import AdminPublicBotsPage from './pages/AdminPublicBotsPage.tsx';
+import AdminPublicBotUsagesPage from './pages/AdminPublicBotUsagesPage.tsx';
import AdminBotApisPage from './pages/AdminBotApisPage.tsx';
import AdminBotApiManagePage from './pages/AdminBotApiManagePage.tsx';
@@ -44,7 +44,7 @@ const router = createBrowserRouter([
},
{
path: '/admin/public-bot/usages',
- element: ,
+ element: ,
},
{
path: '/admin/publish-apis',
diff --git a/frontend/src/pages/AdminPublicBotsPage.tsx b/frontend/src/pages/AdminPublicBotUsagesPage.tsx
similarity index 93%
rename from frontend/src/pages/AdminPublicBotsPage.tsx
rename to frontend/src/pages/AdminPublicBotUsagesPage.tsx
index abfe9619b..343ecee0b 100644
--- a/frontend/src/pages/AdminPublicBotsPage.tsx
+++ b/frontend/src/pages/AdminPublicBotUsagesPage.tsx
@@ -1,4 +1,4 @@
-import React, { useMemo, useState } from 'react';
+import React, { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import Help from '../components/Help';
import usePublicBotsForAdmin from '../hooks/usePublicBotsForAdmin';
@@ -10,10 +10,11 @@ import Button from '../components/Button';
import { PiArrowDown } from 'react-icons/pi';
import Skeleton from '../components/Skeleton';
import { twMerge } from 'tailwind-merge';
+import { useNavigate } from 'react-router-dom';
const DATA_FORMAT = 'YYYYMMDD';
-const AdminPublicBotsPage: React.FC = () => {
+const AdminPublicBotUsagesPage: React.FC = () => {
const { t } = useTranslation();
const [searchDateFrom, setSearchDateFrom] = useState(
@@ -42,6 +43,15 @@ const AdminPublicBotsPage: React.FC = () => {
: t('admin.validationError.period');
}, [searchDateFrom, searchDateTo, t]);
+ const navigate = useNavigate();
+
+ const onClickViewBot = useCallback(
+ (botId: string) => {
+ navigate(`/admin/bot/${botId}`);
+ },
+ [navigate]
+ );
+
return (
<>