Skip to content

Commit 60aeab9

Browse files
committed
cleanup[
1 parent 0b9c84c commit 60aeab9

File tree

2 files changed

+7
-87
lines changed

2 files changed

+7
-87
lines changed

apps/dashboard/app/demo/layout.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
1-
import { AutumnProvider } from "autumn-js/react";
21
import { Sidebar } from "@/components/layout/sidebar";
3-
import { BillingProvider } from "@/components/providers/billing-provider";
42

53
export default function DemoLayout({
64
children,
75
}: {
86
children: React.ReactNode;
97
}) {
108
return (
11-
<AutumnProvider
12-
backendUrl={process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001"}
13-
>
14-
<BillingProvider>
15-
<div className="h-screen overflow-hidden text-foreground">
16-
<Sidebar />
17-
<div className="relative h-screen pl-0 md:pl-76 lg:pl-84">
18-
<div className="h-screen overflow-y-auto overflow-x-hidden pt-16 md:pt-0">
19-
{children}
20-
</div>
21-
</div>
9+
<div className="h-screen overflow-hidden text-foreground">
10+
<Sidebar />
11+
<div className="relative h-screen pl-0 md:pl-76 lg:pl-84">
12+
<div className="h-screen overflow-y-auto overflow-x-hidden pt-16 md:pt-0">
13+
{children}
2214
</div>
23-
</BillingProvider>
24-
</AutumnProvider>
15+
</div>
16+
</div>
2517
);
2618
}

apps/dashboard/components/layout/navigation/navigation-config.tsx

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ import {
2222
IdentificationCardIcon,
2323
KeyIcon,
2424
MapPinIcon,
25-
MonitorIcon,
2625
PlayIcon,
2726
PlugIcon,
2827
PlusIcon,
29-
PulseIcon,
3028
ReceiptIcon,
3129
RepeatIcon,
3230
RoadHorizonIcon,
@@ -284,19 +282,6 @@ export const websiteNavigation: NavigationSection[] = [
284282
// gatedFeature: GATED_FEATURES.AI_AGENT,
285283
}),
286284
]),
287-
createNavSection(
288-
"Pulse",
289-
HeartbeatIcon,
290-
[
291-
createNavItem("Uptime", ChartLineUpIcon, "/pulse", {
292-
rootLevel: false,
293-
alpha: true,
294-
}),
295-
],
296-
{
297-
flag: "pulse",
298-
}
299-
),
300285
];
301286

302287
export const websiteSettingsNavigation: NavigationSection[] = [
@@ -326,55 +311,6 @@ const createCategoryConfig = (
326311
navigationMap: Record<string, NavigationSection[]>
327312
) => ({ categories, defaultCategory, navigationMap });
328313

329-
export const createPulseNavigation = (
330-
monitors: Array<{
331-
id: string;
332-
websiteId: string | null;
333-
url: string | null;
334-
name: string | null;
335-
website: { id: string; name: string | null; domain: string } | null;
336-
}>
337-
): NavigationSection[] => {
338-
const monitorItems = monitors.map((monitor) => {
339-
const isWebsiteMonitor = !!monitor.websiteId;
340-
const displayName = isWebsiteMonitor
341-
? monitor.website?.name || monitor.website?.domain || "Unknown"
342-
: monitor.name || monitor.url || "Unknown";
343-
const href = isWebsiteMonitor
344-
? `/websites/${monitor.websiteId}/pulse`
345-
: "/pulse";
346-
return createNavItem(displayName, HeartbeatIcon, href, {
347-
highlight: true,
348-
domain: monitor.website?.domain || monitor.url || undefined,
349-
});
350-
});
351-
352-
return [
353-
createNavSection("Monitors", MonitorIcon, [
354-
createNavItem("All Monitors", MonitorIcon, "/pulse", {
355-
highlight: true,
356-
}),
357-
...monitorItems,
358-
]),
359-
createNavSection("Status Pages", GlobeSimpleIcon, [
360-
createNavItem("Status Pages", GlobeSimpleIcon, "/pulse/status-pages", {
361-
disabled: true,
362-
tag: "soon",
363-
}),
364-
]),
365-
];
366-
};
367-
368-
export const createLoadingPulseNavigation = (): NavigationSection[] =>
369-
createLoadingNavigation(
370-
"Monitors",
371-
MonitorIcon,
372-
"All Monitors",
373-
"/pulse",
374-
"Loading monitors...",
375-
HeartbeatIcon
376-
);
377-
378314
export const categoryConfig = {
379315
main: createCategoryConfig(
380316
[
@@ -384,12 +320,6 @@ export const categoryConfig = {
384320
icon: GlobeSimpleIcon,
385321
production: true,
386322
},
387-
{
388-
id: "pulse",
389-
name: "Pulse",
390-
icon: PulseIcon,
391-
production: true,
392-
},
393323
{
394324
id: "organizations",
395325
name: "Organizations",
@@ -419,7 +349,6 @@ export const categoryConfig = {
419349
"websites",
420350
{
421351
websites: [],
422-
pulse: [],
423352
organizations: organizationNavigation,
424353
billing: billingNavigation,
425354
settings: personalNavigation,
@@ -458,7 +387,6 @@ const CATEGORY_PATH_MAP = [
458387
{ pattern: "/organizations", category: "organizations" as const },
459388
{ pattern: "/billing", category: "billing" as const },
460389
{ pattern: "/settings", category: "settings" as const },
461-
{ pattern: "/pulse", category: "pulse" as const },
462390
] as const;
463391

464392
export const getContextConfig = (pathname: string) => {

0 commit comments

Comments
 (0)