Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion apps/dashboard/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";
import "./.next/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
5 changes: 4 additions & 1 deletion apps/dashboard/src/app/(dashboard)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { AppSidebar } from "@/components/nav/app-sidebar";
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
import {
SidebarInset,
SidebarProvider,
} from "@openstatus/ui/components/ui/sidebar";
import { cookies } from "next/headers";

export default async function Layout({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SidebarProvider } from "@/components/ui/sidebar";
import { getQueryClient, trpc } from "@/lib/trpc/server";
import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
import { Sidebar } from "../sidebar";

export default async function Layout({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SidebarProvider } from "@/components/ui/sidebar";
import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
import { Sidebar } from "../sidebar";

export default function Layout({ children }: { children: React.ReactNode }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SidebarProvider } from "@/components/ui/sidebar";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
import { Sidebar } from "../sidebar";

export default async function Layout({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SidebarProvider } from "@/components/ui/sidebar";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
import { Sidebar } from "../sidebar";

export default async function Layout({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SidebarProvider } from "@/components/ui/sidebar";
import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";
import { SidebarProvider } from "@openstatus/ui/components/ui/sidebar";
import { Sidebar } from "../sidebar";

export default async function Layout({
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/nav/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
SidebarRail,
SidebarTrigger,
useSidebar,
} from "@/components/ui/sidebar";
} from "@openstatus/ui/components/ui/sidebar";
import {
Tooltip,
TooltipContent,
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/nav/nav-banner-checklist.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"use client";

import { Link } from "@/components/common/link";
import { useTRPC } from "@/lib/trpc/client";
import {
SidebarGroup,
SidebarGroupLabel,
SidebarMenu,
SidebarMenuAction,
SidebarMenuItem,
} from "@/components/ui/sidebar";
import { useTRPC } from "@/lib/trpc/client";
} from "@openstatus/ui/components/ui/sidebar";
import { useQuery } from "@tanstack/react-query";
import { CircleCheck, CircleDashed, X } from "lucide-react";

Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/nav/nav-banner-upgrade.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"use client";

import { useTRPC } from "@/lib/trpc/client";
import {
SidebarGroup,
SidebarGroupLabel,
SidebarMenu,
SidebarMenuAction,
SidebarMenuButton,
SidebarMenuItem,
} from "@/components/ui/sidebar";
import { useTRPC } from "@/lib/trpc/client";
} from "@openstatus/ui/components/ui/sidebar";
import { useQuery } from "@tanstack/react-query";
import { Rocket, X } from "lucide-react";
import { useState } from "react";
Expand Down
16 changes: 8 additions & 8 deletions apps/dashboard/src/components/nav/nav-help.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
"use client";

import { FormDialogSupportContact } from "@/components/forms/support-contact/dialog";
import {
SidebarGroup,
SidebarGroupContent,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
} from "@/components/ui/sidebar";
import { useSidebar } from "@/components/ui/sidebar";
import { DiscordIcon } from "@openstatus/icons";
import { GitHubIcon } from "@openstatus/icons";
import {
Expand All @@ -18,6 +10,14 @@ import {
DropdownMenuLabel,
DropdownMenuTrigger,
} from "@openstatus/ui/components/ui/dropdown-menu";
import {
SidebarGroup,
SidebarGroupContent,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
} from "@openstatus/ui/components/ui/sidebar";
import { useSidebar } from "@openstatus/ui/components/ui/sidebar";
import {
Book,
Braces,
Expand Down
14 changes: 7 additions & 7 deletions apps/dashboard/src/components/nav/nav-main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

import { ChevronRight, type LucideIcon } from "lucide-react";

import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@openstatus/ui/components/ui/collapsible";
import {
SidebarGroup,
SidebarGroupLabel,
Expand All @@ -11,13 +16,8 @@ import {
SidebarMenuSub,
SidebarMenuSubButton,
SidebarMenuSubItem,
} from "@/components/ui/sidebar";
import { useSidebar } from "@/components/ui/sidebar";
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@openstatus/ui/components/ui/collapsible";
} from "@openstatus/ui/components/ui/sidebar";
import { useSidebar } from "@openstatus/ui/components/ui/sidebar";
import Link from "next/link";
export function NavMain({
items,
Expand Down
6 changes: 3 additions & 3 deletions apps/dashboard/src/components/nav/nav-monitors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { MoreHorizontal, Plus } from "lucide-react";
import { ExportCodeDialog } from "@/components/dialogs/export-code";
import { UpgradeDialog } from "@/components/dialogs/upgrade";
import { QuickActions } from "@/components/dropdowns/quick-actions";
import { getActions } from "@/data/monitors.client";
import { useTRPC } from "@/lib/trpc/client";
import {
SidebarGroup,
SidebarGroupLabel,
Expand All @@ -16,9 +18,7 @@ import {
SidebarMenuItem,
SidebarMenuSkeleton,
useSidebar,
} from "@/components/ui/sidebar";
import { getActions } from "@/data/monitors.client";
import { useTRPC } from "@/lib/trpc/client";
} from "@openstatus/ui/components/ui/sidebar";
import { Skeleton } from "@openstatus/ui/components/ui/skeleton";
import {
Tooltip,
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/nav/nav-overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
SidebarMenuButton,
SidebarMenuItem,
useSidebar,
} from "@/components/ui/sidebar";
} from "@openstatus/ui/components/ui/sidebar";
import Link from "next/link";
import { usePathname } from "next/navigation";

Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/nav/nav-status-pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { MoreHorizontal, Plus } from "lucide-react";

import { QuickActions } from "@/components/dropdowns/quick-actions";
import { getActions } from "@/data/status-pages.client";
import {
SidebarGroup,
SidebarGroupLabel,
Expand All @@ -12,8 +13,7 @@ import {
SidebarMenuItem,
SidebarMenuSkeleton,
useSidebar,
} from "@/components/ui/sidebar";
import { getActions } from "@/data/status-pages.client";
} from "@openstatus/ui/components/ui/sidebar";
import {
Tooltip,
TooltipContent,
Expand Down
12 changes: 6 additions & 6 deletions apps/dashboard/src/components/nav/nav-user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ import {
User,
} from "lucide-react";

import {
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
useSidebar,
} from "@/components/ui/sidebar";
import { useTRPC } from "@/lib/trpc/client";
import {
Avatar,
Expand All @@ -36,6 +30,12 @@ import {
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from "@openstatus/ui/components/ui/dropdown-menu";
import {
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
useSidebar,
} from "@openstatus/ui/components/ui/sidebar";
import { useQuery } from "@tanstack/react-query";
import { signOut } from "next-auth/react";
import { useTheme } from "next-themes";
Expand Down
10 changes: 5 additions & 5 deletions apps/dashboard/src/components/nav/sidebar-metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import {
EmptyStateContainer,
EmptyStateDescription,
} from "@/components/content/empty-state";
import {
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
} from "@/components/ui/sidebar";
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@openstatus/ui/components/ui/collapsible";
import {
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
} from "@openstatus/ui/components/ui/sidebar";
import {
Table,
TableBody,
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/nav/sidebar-right.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import * as React from "react";

import { Button } from "@openstatus/ui/components/ui/button";
import {
Sidebar,
SidebarContent,
Expand All @@ -13,8 +14,7 @@ import {
SidebarProvider,
SidebarSeparator,
useSidebar,
} from "@/components/ui/sidebar";
import { Button } from "@openstatus/ui/components/ui/button";
} from "@openstatus/ui/components/ui/sidebar";
import {
Tooltip,
TooltipContent,
Expand Down
12 changes: 6 additions & 6 deletions apps/dashboard/src/components/nav/workspace-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

import { ChevronsUpDown, Plus } from "lucide-react";

import {
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
useSidebar,
} from "@/components/ui/sidebar";
import { useTRPC } from "@/lib/trpc/client";
import {
DropdownMenu,
Expand All @@ -17,6 +11,12 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@openstatus/ui/components/ui/dropdown-menu";
import {
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
useSidebar,
} from "@openstatus/ui/components/ui/sidebar";
import { useQuery } from "@tanstack/react-query";
import { Link } from "../common/link";

Expand Down
Loading
Loading