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
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Guru Updesh Singh <guruupdeshsingh@gmail.com>
Guru Updesh Singh <guruupdeshsingh@gmail.com>
Guru Updesh Singh <guruupdeshsingh@gmail.com>
Guru Updesh Singh <guruupdeshsingh@gmail.com>
106 changes: 0 additions & 106 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"geist": "^1.1.0",
"lucide-react": "^0.292.0",
"next": "^14.0.0",
"next-auth": "^4.24.4",
"openai": "^4.20.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
21 changes: 21 additions & 0 deletions src/app/(application)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import "~/styles/globals.css";
import { UserButton } from "@clerk/nextjs";

export const metadata = {
title: "Taskly",
description: "Simplified project management tool",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};

export default function ApplicationLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<div>
<UserButton afterSignOutUrl="/" />
{children}
</div>
);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getAllProjects } from "~/actions/projectActions";
import ProjectTable from "~/components/project/ProjectTable";
import { getAllProjects } from "~/app/(application)/projects/_actions/project-actions";
import ProjectTable from "~/app/(application)/projects/project-table";

export default async function ProjectsPage() {
const projects = await getAllProjects();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ import {
FormItem,
FormMessage,
} from "~/components/ui/form";
import { Input } from "../ui/input";
import { Button } from "../ui/button";
import { createProject, deleteProject } from "~/actions/projectActions";
import ProjectChip, { type projectChipVariants } from "./ProjectChip";
import { Input } from "../../../components/ui/input";
import { Button } from "../../../components/ui/button";
import {
createProject,
deleteProject,
} from "~/app/(application)/projects/_actions/project-actions";
import ProjectChip, { type projectChipVariants } from "./project-chip";
import { ChevronRight, Target, Loader2, Trash } from "lucide-react";
import { Checkbox } from "../ui/checkbox";
import { Checkbox } from "../../../components/ui/checkbox";

type OptimisticProject = Project & { pending: boolean };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Label } from "~/components/ui/label";
import { Bot, ChevronRight, Loader2 } from "lucide-react";
import { DialogClose } from "@radix-ui/react-dialog";
import { type Task, insertTaskSchema } from "~/server/db/schema";
import { createTask } from "~/actions/taskActions";
import { createTask } from "~/app/(application)/tasks/_actions/task-actions";

type AiTask = { [K in keyof Omit<Task, "id">]?: Task[K] };

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getAllTasks } from "~/actions/taskActions";
import TaskTable from "~/components/task/TaskTable";
import { getAllTasks } from "~/app/(application)/tasks/_actions/task-actions";
import TaskTable from "~/app/(application)/tasks/task-table";
import { env } from "~/env.mjs";

export default async function TaskPage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ import {
FormItem,
FormMessage,
} from "~/components/ui/form";
import { Input } from "../ui/input";
import { Button } from "../ui/button";
import { createTask, deleteTask } from "~/actions/taskActions";
import TaskChip, { type taskChipVariants } from "./TaskChip";
import { Input } from "../../../components/ui/input";
import { Button } from "../../../components/ui/button";
import {
createTask,
deleteTask,
} from "~/app/(application)/tasks/_actions/task-actions";
import TaskChip, { type taskChipVariants } from "./task-chip";

import {
ChevronRight,
Expand All @@ -50,8 +53,8 @@ import {
Component,
Trash,
} from "lucide-react";
import { Checkbox } from "../ui/checkbox";
import AiDialog from "./AiDialog";
import { Checkbox } from "../../../components/ui/checkbox";
import AiDialog from "./ai-dialog";

type OptimisticTask = Task & { pending: boolean };

Expand Down
File renamed without changes.
8 changes: 2 additions & 6 deletions src/app/page.tsx → src/app/(landing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import { getAllTasks } from "~/actions/taskActions";
import { IBM_Plex_Sans } from "next/font/google";
import { cn } from "~/lib/utils";
import { Brain, LampDesk, Rabbit } from "lucide-react";
import { Button } from "~/components/ui/button";
import Grid from "~/components/branding/Grid";
import Grid from "~/app/(landing)/backgroun-grid";
import Link from "next/link";

const plexSans = IBM_Plex_Sans({ weight: ["700"], subsets: ["latin"] });

export default async function HomePage() {
const tasks = await getAllTasks();
if (tasks === undefined) return null;

export default function HomePage() {
return (
<main className="flex h-screen justify-center bg-blue-500/10">
<div className="z-30 flex max-w-[900px] flex-col gap-6 py-28 text-center">
Expand Down
7 changes: 0 additions & 7 deletions src/app/api/auth/[...nextauth]/route.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/api/cron/route.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextRequest } from "next/server";
import { env } from "~/env.mjs";
import { Resend } from "resend";
import SampleEmail from "~/emails/SampleEmail";
import SampleEmail from "~/components/email/sample-email";

export async function GET(request: NextRequest) {
const authHeader = request.headers.get("authorization");
Expand Down
36 changes: 0 additions & 36 deletions src/app/api/tasks/route.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/email/_actions/send-email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Resend } from "resend";
import { env } from "~/env.mjs";
import { render } from "@react-email/render";
import SampleEmail from "~/emails/SampleEmail";
import SampleEmail from "~/components/email/sample-email";

export async function sendSampleEmailAction(userName: string, emailTo: string) {
const resend = new Resend(env.RESEND_API_KEY);
Expand Down
6 changes: 1 addition & 5 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "~/styles/globals.css";
import { GeistSans } from "geist/font/sans";
import { ClerkProvider } from "@clerk/nextjs";
import { UserButton } from "@clerk/nextjs";

export const metadata = {
title: "Taskly",
Expand All @@ -20,10 +19,7 @@ export default function RootLayout({
lang="en"
className="min-h-screen bg-background font-sans antialiased"
>
<body className={GeistSans.className}>
<UserButton afterSignOutUrl="/" />
{children}
</body>
<body className={GeistSans.className}>{children}</body>
</html>
</ClerkProvider>
);
Expand Down
File renamed without changes.
Loading