Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import AnnouncementAlert from './components/AnnouncementAlert';
import BAICard from './components/BAICard';
import BAIErrorBoundary, { ErrorView } from './components/BAIErrorBoundary';
import {
Expand Down Expand Up @@ -70,7 +69,9 @@ const UserCredentialsPage = React.lazy(
const AgentSummaryPage = React.lazy(() => import('./pages/AgentSummaryPage'));
const MaintenancePage = React.lazy(() => import('./pages/MaintenancePage'));
const StatisticsPage = React.lazy(() => import('./pages/StatisticsPage'));
const ConfigurationsPage = React.lazy(() => import('./pages/ConfigurationsPage'));
const ConfigurationsPage = React.lazy(
() => import('./pages/ConfigurationsPage'),
);
const SessionDetailAndContainerLogOpenerLegacy = React.lazy(
() => import('./components/SessionDetailAndContainerLogOpenerLegacy'),
);
Expand Down Expand Up @@ -155,25 +156,13 @@ const router = createBrowserRouter([
{
path: '/summary',
Component: () => {
const { token } = theme.useToken();
const location = useLocation();
const [experimentalDashboard] = useBAISettingUserState(
'experimental_dashboard',
);
return (
<>
<AnnouncementAlert
showIcon
icon={undefined}
banner={false}
style={{ marginBottom: token.paddingContentVerticalLG }}
closable
/>
{experimentalDashboard ? (
<WebUINavigate to={'/dashboard' + location.search} replace />
) : null}
</>
);
return experimentalDashboard ? (
<WebUINavigate to={'/dashboard' + location.search} replace />
) : null;
},
handle: { labelKey: 'webui.menu.Summary' },
},
Expand Down
2 changes: 1 addition & 1 deletion react/src/pages/StartPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const StartPage: React.FC = () => {
<Row gutter={[16, 16]}>
{_.map(items, (item, idx) => {
return (
<Col key={item.id} xs={24} md={12} xl={6}>
<Col key={item.id} xs={24} md={12} xl={6} xxl={4}>
<Card
style={{ height: 340 }}
styles={{
Expand Down
10 changes: 8 additions & 2 deletions resources/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"colorInfo": "#028DF2",
"colorError": "#FF4D4F",
"colorSuccess": "#00BD9B",
"colorFillSecondary": "#D9D9D9"
"colorFillSecondary": "#D9D9D9",
"screenXLMax": 1919,
"screenXXLMin": 1920,
"screenXXL": 1920
},
"components": {
"Tag": {
Expand All @@ -34,7 +37,10 @@
"colorInfo": "#009BDD",
"colorError": "#DC4446",
"colorSuccess": "#03A487",
"colorFillSecondary": "#262626"
"colorFillSecondary": "#262626",
"screenXLMax": 1919,
"screenXXLMin": 1920,
"screenXXL": 1920
},
"components": {
"Tag": {
Expand Down