Skip to content

Commit 2fdc1e2

Browse files
committed
Removed Scheduler app
1 parent 636b9c1 commit 2fdc1e2

File tree

114 files changed

+514
-1341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+514
-1341
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ node_modules
1212
.env.test.local
1313
.env.production.local
1414

15+
# Log files
16+
logs
17+
1518
# Testing
1619
coverage
1720

apps/dashboard-app/ actions/login.ts

-44
This file was deleted.

apps/dashboard-app/ actions/new-verification.ts

-36
This file was deleted.

apps/dashboard-app/ actions/reset-password-settings.ts

-30
This file was deleted.

apps/dashboard-app/ actions/forgot-password.ts renamed to apps/dashboard-app/actions/auth/forgot-password.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
"use server"
22

3-
import { getResetTokenByEmail, getResetTokenByToken,createResetToken } from '@repo/prisma-db/repo/forgot-password';
4-
import db from '@repo/prisma-db/client';
3+
import { createResetToken } from '@repo/prisma-db/repo/forgot-password';
54
import { sendResetEmail } from '@repo/resend-email/mail';
6-
import { get } from 'http';
75
import { getUserByEmail } from '@repo/prisma-db/repo/user';
86

97
export const ForgotPassword = async (email: string) => {

apps/scheduler-app/actions/login.ts renamed to apps/dashboard-app/actions/auth/login.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { LoginSchema } from '@repo/zod/index';
44
import * as z from 'zod';
55
import { signIn } from '@repo/next-auth/auth';
6-
import { DEFAULT_LOGIN_REDIRECT } from '../routes';
76
import { AuthError } from 'next-auth';
87
import { createVerificationToken } from '@repo/prisma-db/repo/verification';
98
import { getUserByEmail } from '@repo/prisma-db/repo/user';

apps/scheduler-app/actions/new-verification.ts renamed to apps/dashboard-app/actions/auth/new-verification.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import db from "@repo/prisma-db/client"
44

5-
import { getVerificationTokenByEmail, getVerificationTokenByToken } from "@repo/prisma-db/repo/verification"
5+
import { getVerificationTokenByToken } from "@repo/prisma-db/repo/verification"
66
import { getUserByEmail } from "@repo/prisma-db/repo/user"
77

88
export const newVerification = async (token: string) =>{

apps/scheduler-app/actions/reset-password-settings.ts renamed to apps/dashboard-app/actions/settings/reset-password-settings.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use server"
22

33
import db from "@repo/prisma-db/client"
4-
import { getResetTokenByToken } from "@repo/prisma-db/repo/forgot-password"
54
import { getUserByEmail } from "@repo/prisma-db/repo/user"
65
import bcrypt from "bcryptjs"
76

apps/dashboard-app/app/auth/error/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use client"
2-
import QuoteClient from '../../../components/QuoteClient';
2+
import QuoteClient from '../../../components/auth/QuoteClient';
33
import ErrorClient from '../../../components/ErrorClient';
44

55
export default function page() {

apps/dashboard-app/app/auth/forgot-password/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22

3-
import QuoteClient from '../../../components/QuoteClient';
4-
import ForgotPasswordClient from '../../../components/ForgotPasswordClient';
3+
import QuoteClient from '../../../components/auth/QuoteClient';
4+
import ForgotPasswordClient from '../../../components/auth/ForgotPasswordClient';
55
import { Suspense } from 'react';
66
import LoadingClient from '../../../components/LoadingClient';
77

apps/dashboard-app/app/auth/login/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client"
2-
import LoginClient from '../../../components/LoginClient';
3-
import QuoteClient from '../../../components/QuoteClient';
2+
import LoginClient from '../../../components/auth/LoginClient';
3+
import QuoteClient from '../../../components/auth/QuoteClient';
44
import { Suspense } from 'react';
55
import LoadingClient from '../../../components/LoadingClient';
66

apps/dashboard-app/app/auth/new-verification/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22
import { Suspense } from 'react';
3-
import QuoteClient from '../../../components/QuoteClient';
4-
import VerificationClient from '../../../components/VerificationClient';
3+
import QuoteClient from '../../../components/auth/QuoteClient';
4+
import VerificationClient from '../../../components/auth/VerificationClient';
55
import LoadingClient from '../../../components/LoadingClient';
66

77
export default function page() {

apps/dashboard-app/app/auth/register/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22

3-
import QuoteClient from '../../../components/QuoteClient';
4-
import RegisterClient from '../../../components/RegisterClient';
3+
import QuoteClient from '../../../components/auth/QuoteClient';
4+
import RegisterClient from '../../../components/auth/RegisterClient';
55
import { Suspense } from 'react';
66
import LoadingClient from '../../../components/LoadingClient';
77

apps/dashboard-app/app/auth/reset-password/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22

3-
import QuoteClient from '../../../components/QuoteClient';
4-
import ResetPasswordClient from '../../../components/ResetPasswordClient';
3+
import QuoteClient from '../../../components/auth/QuoteClient';
4+
import ResetPasswordClient from '../../../components/settings/ResetPasswordClient';
55
import { Suspense } from 'react';
66
import LoadingClient from '../../../components/LoadingClient';
77

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react'
2+
3+
const page = () => {
4+
return (
5+
<div>page</div>
6+
)
7+
}
8+
9+
export default page

apps/dashboard-app/app/layout.tsx

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import type { Metadata } from "next";
2-
import { Inter } from "next/font/google";
2+
import { Inter,DM_Sans } from "next/font/google";
33
import "@repo/ui/styles/shadcn-rose"
4-
import { ThemeProvider } from "./theme-provider"
5-
import { SessionProviders } from "./session-provider";
4+
import { ThemeProvider } from "../providers/theme-provider"
5+
import { SessionProviders } from "../providers/session-provider";
66

77

8-
const inter = Inter({
9-
subsets: ["latin"],
10-
variable: "--font-sans",
8+
const font = DM_Sans({
9+
subsets: ["latin"]
1110
})
1211

1312
export const metadata: Metadata = {
@@ -22,7 +21,7 @@ export default function RootLayout({
2221
}>) {
2322
return (
2423
<html lang="en" suppressHydrationWarning>
25-
<body className={inter.className}>
24+
<body className={font.className}>
2625
<SessionProviders>
2726
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
2827
{children}

apps/dashboard-app/components/LeftSidebarClient.tsx

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

3-
import LeftSidebar from "@repo/ui/organisms/common/LeftSidebar";
4-
import { BadgeCentIcon, Briefcase, BriefcaseIcon, Library, LibraryIcon, Notebook, NotebookIcon } from "lucide-react";
3+
import LeftSidebar from "@repo/ui/organisms/home/LeftSidebar";
4+
import { BadgeCentIcon, BluetoothConnectedIcon, Briefcase, BriefcaseIcon, Library, LibraryIcon, Notebook, NotebookIcon, WorkflowIcon } from "lucide-react";
55
import { useRouter } from "next/navigation";
66

77

@@ -26,6 +26,16 @@ const sidebarItems = [
2626
title: "Knowledge Base",
2727
icon: LibraryIcon,
2828
href: "/dashboard/knowledge-base"
29+
},
30+
{
31+
title: "Workflows",
32+
icon: WorkflowIcon,
33+
href: "/dashboard/workflows"
34+
},
35+
{
36+
title: "Connections",
37+
icon: BluetoothConnectedIcon,
38+
href: "/dashboard/connections"
2939
}
3040
]
3141

apps/dashboard-app/components/LoadingClient.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client"
22

3-
import LoadingCard from '@repo/ui/organisms/common/LoadingCard';
3+
import LoadingCard from '@repo/ui/organisms/auth/LoadingCard';
44

55

66
export default function LoadingClient() {

apps/dashboard-app/components/LoginClient.tsx

-35
This file was deleted.

apps/dashboard-app/components/NavbarClient.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use client'
22

3-
import { Navbar } from "@repo/ui/organisms/common/Navbar"
3+
import { Navbar } from "@repo/ui/organisms/home/Navbar"
44
import { useTheme } from "next-themes"
55
import { useRouter } from "next/navigation";
66
import { useCurrentUser } from "../hooks/useCurrentUser";
7-
import { resetPasswordSettings } from "../ actions/reset-password-settings";
7+
import { resetPasswordSettings } from "../actions/settings/reset-password-settings";
88
import { signOut } from "next-auth/react";
99

1010
export default function NavbarClient() {

apps/dashboard-app/components/ResetPasswordClient.tsx

-49
This file was deleted.

apps/dashboard-app/components/ErrorClient.tsx renamed to apps/dashboard-app/components/auth/ErrorClient.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client"
22

3-
import ErrorCard from '@repo/ui/organisms/common/ErrorCard';
3+
import ErrorCard from '@repo/ui/organisms/auth/ErrorCard';
44
import { useRouter } from 'next/navigation';
55

66

0 commit comments

Comments
 (0)