Skip to content

Commit 1eb7350

Browse files
committed
removed: maintenance banner and notice
1 parent 7ecae85 commit 1eb7350

File tree

3 files changed

+0
-346
lines changed

3 files changed

+0
-346
lines changed

frontend/src/app/(home)/_components/maintenance-banner.tsx

Lines changed: 0 additions & 216 deletions
This file was deleted.

frontend/src/app/(home)/_components/maintenance-notice.tsx

Lines changed: 0 additions & 93 deletions
This file was deleted.

frontend/src/app/(home)/layout.tsx

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@ import { useAccounts } from '@/hooks/use-accounts';
1313
import { Loader2 } from 'lucide-react';
1414
import { MaintenancePage } from '@/components/maintenance/maintenance-page';
1515
import { StatusOverlay } from '@/components/ui/status-overlay';
16-
import type { IMaintenanceNotice } from '@/lib/edge-flags';
17-
import { MaintenanceNotice } from './_components/maintenance-notice';
18-
import { MaintenanceBanner } from './_components/maintenance-banner';
1916
import { useApiHealth } from '@/hooks/react-query/usage/use-health';
2017

2118
interface HomeLayoutProps {
2219
children: React.ReactNode;
23-
maintenanceNotice?: IMaintenanceNotice;
2420
}
2521

2622
export default function HomeLayout({
2723
children,
28-
maintenanceNotice,
2924
}: HomeLayoutProps) {
3025
const { user, isLoaded } = useUser();
3126
const [sidebarOpen, setSidebarOpen] = useState(false);
@@ -35,8 +30,6 @@ export default function HomeLayout({
3530
// Enhanced features from layout-content.tsx
3631
const [showPricingAlert, setShowPricingAlert] = useState(false);
3732
const [showMaintenanceAlert, setShowMaintenanceAlert] = useState(false);
38-
// TODO: Implement maintenance notice fetching from API or server component
39-
const [currentMaintenanceNotice] = useState<IMaintenanceNotice>({ enabled: false });
4033
const { data: accounts } = useAccounts();
4134
const personalAccount = accounts?.find((account) => account.personal_account);
4235

@@ -70,34 +63,7 @@ export default function HomeLayout({
7063
return () => window.removeEventListener('toggleHomeSidebar', handleToggleSidebar);
7164
}, []);
7265

73-
// Enhanced: Smart Maintenance System
74-
if (currentMaintenanceNotice.enabled) {
75-
const now = new Date();
76-
const startTime = currentMaintenanceNotice.startTime;
77-
const endTime = currentMaintenanceNotice.endTime;
78-
79-
// If maintenance period has started, show maintenance page
80-
if (now > startTime) {
81-
return (
82-
<div className="w-screen h-screen flex items-center justify-center">
83-
<div className="max-w-xl">
84-
<MaintenanceNotice endTime={endTime.toISOString()} />
85-
</div>
86-
</div>
87-
);
88-
}
89-
}
9066

91-
// Enhanced: Maintenance banner for upcoming maintenance
92-
let maintenanceBanner: React.ReactNode | null = null;
93-
if (currentMaintenanceNotice.enabled) {
94-
maintenanceBanner = (
95-
<MaintenanceBanner
96-
startTime={currentMaintenanceNotice.startTime.toISOString()}
97-
endTime={currentMaintenanceNotice.endTime.toISOString()}
98-
/>
99-
);
100-
}
10167

10268
// Enhanced: Show loading state while checking auth or health
10369
if (!isClient || !isLoaded || isCheckingHealth) {
@@ -146,9 +112,6 @@ export default function HomeLayout({
146112
<SidebarProvider open={sidebarOpen} onOpenChange={setSidebarOpen}>
147113
<SidebarLeft />
148114
<SidebarInset>
149-
{/* Enhanced: Maintenance banner */}
150-
{maintenanceBanner}
151-
152115
<div
153116
className="w-full relative min-h-screen"
154117
style={!isThreadPage ? {

0 commit comments

Comments
 (0)