Skip to content

Commit

Permalink
add tests for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianka committed Nov 3, 2024
1 parent e97c838 commit a72f6df
Show file tree
Hide file tree
Showing 7 changed files with 185 additions and 537 deletions.
164 changes: 83 additions & 81 deletions nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,83 +1,85 @@
{
"name": "studytutor",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"type-check": "tsc --noEmit",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"prepare": "cd .. && husky nextjs/.husky"
},
"dependencies": {
"@headlessui/react": "^2.1.8",
"@heroicons/react": "^2.1.5",
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-alert-dialog": "^1.1.2",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-progress": "^1.1.0",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@shadcn/ui": "^0.0.4",
"@supabase/ssr": "^0.5.1",
"@supabase/supabase-js": "^2.45.4",
"@tanstack/react-table": "^8.20.5",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"framer-motion": "^11.11.10",
"lucide-react": "^0.439.0",
"next": "^14.2.14",
"openai": "^4.61.1",
"react": "^18",
"react-dom": "^18",
"react-dom-confetti": "^0.2.0",
"react-hook-form": "^7.53.0",
"recharts": "^2.12.7",
"swr": "^2.2.5",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@chromatic-com/storybook": "^2.0.1",
"@playwright/test": "^1.48.2",
"@storybook/addon-essentials": "^8.1.11",
"@storybook/addon-interactions": "^8.1.11",
"@storybook/addon-links": "^8.1.11",
"@storybook/addon-mdx-gfm": "^8.1.11",
"@storybook/addon-onboarding": "^8.1.11",
"@storybook/addon-themes": "^8.1.11",
"@storybook/blocks": "^8.1.11",
"@storybook/nextjs": "^8.3.0",
"@storybook/react": "^8.3.0",
"@storybook/test": "^8.3.0",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"eslint": "^8",
"eslint-config-next": "14.2.7",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.36.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-storybook": "^0.8.0",
"husky": "^9.1.6",
"postcss": "^8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"storybook": "^8.3.0",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
"name": "studytutor",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"type-check": "tsc --noEmit",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"prepare": "cd .. && husky nextjs/.husky",
"test": "playwright test",
"test-ui": "playwright test --ui"
},
"dependencies": {
"@headlessui/react": "^2.1.8",
"@heroicons/react": "^2.1.5",
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-alert-dialog": "^1.1.2",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-progress": "^1.1.0",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@shadcn/ui": "^0.0.4",
"@supabase/ssr": "^0.5.1",
"@supabase/supabase-js": "^2.45.4",
"@tanstack/react-table": "^8.20.5",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"framer-motion": "^11.11.10",
"lucide-react": "^0.439.0",
"next": "^14.2.14",
"openai": "^4.61.1",
"react": "^18",
"react-dom": "^18",
"react-dom-confetti": "^0.2.0",
"react-hook-form": "^7.53.0",
"recharts": "^2.12.7",
"swr": "^2.2.5",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@chromatic-com/storybook": "^2.0.1",
"@playwright/test": "^1.48.2",
"@storybook/addon-essentials": "^8.1.11",
"@storybook/addon-interactions": "^8.1.11",
"@storybook/addon-links": "^8.1.11",
"@storybook/addon-mdx-gfm": "^8.1.11",
"@storybook/addon-onboarding": "^8.1.11",
"@storybook/addon-themes": "^8.1.11",
"@storybook/blocks": "^8.1.11",
"@storybook/nextjs": "^8.3.0",
"@storybook/react": "^8.3.0",
"@storybook/test": "^8.3.0",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"eslint": "^8",
"eslint-config-next": "14.2.7",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.36.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-storybook": "^0.8.0",
"husky": "^9.1.6",
"postcss": "^8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"storybook": "^8.3.0",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
2 changes: 1 addition & 1 deletion nextjs/src/app/register/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Metadata } from "next";

export const metadata: Metadata = {
title: "Login - Study Tutor"
title: "Register - Study Tutor"
};

export default function FlashCardsLayout({
Expand Down
3 changes: 3 additions & 0 deletions nextjs/src/components/landing_page/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,23 @@ export const Hero = async () => {
<div className="flex flex-row items-start space-y-3 sm:flex-row sm:items-center sm:space-x-4 sm:space-y-0">
<Link
href="/dashboard"
id="dashboardButton"
className="rounded-md bg-indigo-600 px-6 py-2 text-white md:ml-5"
>
Dashboard
</Link>

<Link
href="/flashcards"
id="flashcardsButton"
className="rounded-md bg-indigo-600 px-6 py-2 text-white md:ml-5"
>
Flashcards
</Link>

<Link
href="/chat"
id="chatButton"
className="rounded-md bg-indigo-600 px-6 py-2 text-white md:ml-5"
>
Study Chat
Expand Down
Loading

0 comments on commit a72f6df

Please sign in to comment.