diff --git a/app/(auth)/auth-code-error/page.tsx b/app/(auth)/auth-code-error/page.tsx new file mode 100644 index 0000000..70be6a6 --- /dev/null +++ b/app/(auth)/auth-code-error/page.tsx @@ -0,0 +1,19 @@ +import { Metadata } from "next"; + +import { Heading3 } from "@/components/ui/typography/Heading3"; + +export const metadata: Metadata = { + title: "Error", + description: "Failed to sign in", +}; + +export default async function AuthCodeError() { + return ( + <> +
+ Error +

Failed to sign in

+
+ + ); +} diff --git a/app/(auth)/layout.tsx b/app/(auth)/layout.tsx index 26d6243..6192bf4 100644 --- a/app/(auth)/layout.tsx +++ b/app/(auth)/layout.tsx @@ -8,7 +8,7 @@ export default function AuthLayout({ children }: AuthLayoutProps) { return (
-
+
- +
-
+
diff --git a/app/apps/layout.tsx b/app/apps/layout.tsx index becddcb..faa99cb 100644 --- a/app/apps/layout.tsx +++ b/app/apps/layout.tsx @@ -34,7 +34,7 @@ export default async function AppLayout({ children }: AppLayoutProps) {
-
+
{children} diff --git a/app/layout.tsx b/app/layout.tsx index 6665151..20567dc 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,6 +1,7 @@ import { AxiomWebVitals } from "next-axiom"; import "./globals.css"; + import { Metadata, Viewport } from "next"; import { Analytics } from "@vercel/analytics/react"; import { GeistMono, GeistSans } from "geist/font"; diff --git a/components/modules/apps/app-side-bar/AppSideBarItem.tsx b/components/modules/apps/app-side-bar/AppSideBarItem.tsx index d75c376..2d9cf6e 100644 --- a/components/modules/apps/app-side-bar/AppSideBarItem.tsx +++ b/components/modules/apps/app-side-bar/AppSideBarItem.tsx @@ -25,7 +25,7 @@ export const AppSideBarItem = ({ ) : null} -
+
diff --git a/components/modules/apps/chat/ChatHistoryItem.tsx b/components/modules/apps/chat/ChatHistoryItem.tsx index 5f26eaa..4b89cd3 100644 --- a/components/modules/apps/chat/ChatHistoryItem.tsx +++ b/components/modules/apps/chat/ChatHistoryItem.tsx @@ -47,7 +47,7 @@ export const ChatHistoryItem = ({ )} >
-
+
{renderControlSidebar()}
-
+
{renderControlSidebar()}
diff --git a/components/modules/apps/chat/control-side-bar/ControlSidebar.tsx b/components/modules/apps/chat/control-side-bar/ControlSidebar.tsx index c6b0829..8cd485c 100644 --- a/components/modules/apps/chat/control-side-bar/ControlSidebar.tsx +++ b/components/modules/apps/chat/control-side-bar/ControlSidebar.tsx @@ -15,14 +15,14 @@ import { toast } from "@/components/ui/use-toast"; import { SystemPromptControl } from "../SystemPromptControl"; import { ChatParams } from "../types"; +import { updateChatSettings } from "./action"; +import { models, types } from "./data/models"; import { FrequencyPenaltySelector } from "./FrequencyPenaltySelector"; import { MaxLengthSelector } from "./MaxLengthSelector"; import { ModelSelector } from "./ModelSelector"; import { PresencePenaltySelector } from "./PresencePenaltySelector"; import { TemperatureSelector } from "./TemperatureSelector"; import { TopPSelector } from "./TopPSelector"; -import { updateChatSettings } from "./action"; -import { models, types } from "./data/models"; type ControlSidebarProps = Pick & { closeSidebarSheet?: () => void; diff --git a/components/modules/apps/chat/control-side-bar/FrequencyPenaltySelector.tsx b/components/modules/apps/chat/control-side-bar/FrequencyPenaltySelector.tsx index 954d64e..bfa52cb 100644 --- a/components/modules/apps/chat/control-side-bar/FrequencyPenaltySelector.tsx +++ b/components/modules/apps/chat/control-side-bar/FrequencyPenaltySelector.tsx @@ -3,12 +3,12 @@ import * as React from "react"; import { useFormContext } from "react-hook-form"; +import { SliderField } from "@/components/ui/form/form-fields"; import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/components/ui/HoverCard"; -import { SliderField } from "@/components/ui/form/form-fields"; import { ChatParams } from "../types"; @@ -26,7 +26,7 @@ export function FrequencyPenaltySelector() { min={-2} max={2} step={0.1} - className="[&_[role=slider]]:h-4 [&_[role=slider]]:w-4" + className="[&_[role=slider]]:size-4" control={control} formState={formState} aria-label="Word Variation" diff --git a/components/modules/apps/chat/control-side-bar/MaxLengthSelector.tsx b/components/modules/apps/chat/control-side-bar/MaxLengthSelector.tsx index 75e7dfc..87152b4 100644 --- a/components/modules/apps/chat/control-side-bar/MaxLengthSelector.tsx +++ b/components/modules/apps/chat/control-side-bar/MaxLengthSelector.tsx @@ -3,12 +3,12 @@ import * as React from "react"; import { useFormContext } from "react-hook-form"; +import { SliderField } from "@/components/ui/form/form-fields"; import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/components/ui/HoverCard"; -import { SliderField } from "@/components/ui/form/form-fields"; import { ChatParams } from "../types"; @@ -26,7 +26,7 @@ export function MaxLengthSelector() { min={0} max={1000} step={10} - className="[&_[role=slider]]:h-4 [&_[role=slider]]:w-4" + className="[&_[role=slider]]:size-4" control={control} formState={formState} aria-label="Length Limit" diff --git a/components/modules/apps/chat/control-side-bar/ModelSelector.tsx b/components/modules/apps/chat/control-side-bar/ModelSelector.tsx index 7b049fa..964802a 100644 --- a/components/modules/apps/chat/control-side-bar/ModelSelector.tsx +++ b/components/modules/apps/chat/control-side-bar/ModelSelector.tsx @@ -91,7 +91,7 @@ export function ModelSelector({ models, types, ...props }: ModelSelectorProps) { className="w-full justify-between" > {selectedModel ? selectedModel.name : "Select a model..."} - + @@ -172,7 +172,7 @@ function ModelItem({ model, isSelected, onSelect, onPeek }: ModelItemProps) { {model.name} diff --git a/components/modules/apps/chat/control-side-bar/PresencePenaltySelector.tsx b/components/modules/apps/chat/control-side-bar/PresencePenaltySelector.tsx index e7adb34..45ef09b 100644 --- a/components/modules/apps/chat/control-side-bar/PresencePenaltySelector.tsx +++ b/components/modules/apps/chat/control-side-bar/PresencePenaltySelector.tsx @@ -3,12 +3,12 @@ import * as React from "react"; import { useFormContext } from "react-hook-form"; +import { SliderField } from "@/components/ui/form/form-fields"; import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/components/ui/HoverCard"; -import { SliderField } from "@/components/ui/form/form-fields"; import { ChatParams } from "../types"; @@ -26,7 +26,7 @@ export function PresencePenaltySelector() { min={-2} max={2} step={0.1} - className="[&_[role=slider]]:h-4 [&_[role=slider]]:w-4" + className="[&_[role=slider]]:size-4" control={control} formState={formState} aria-label="Topic Relevance" diff --git a/components/modules/apps/chat/control-side-bar/TemperatureSelector.tsx b/components/modules/apps/chat/control-side-bar/TemperatureSelector.tsx index 9d76ad6..a04aaef 100644 --- a/components/modules/apps/chat/control-side-bar/TemperatureSelector.tsx +++ b/components/modules/apps/chat/control-side-bar/TemperatureSelector.tsx @@ -3,12 +3,12 @@ import * as React from "react"; import { useFormContext } from "react-hook-form"; +import { SliderField } from "@/components/ui/form/form-fields/SliderField"; import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/components/ui/HoverCard"; -import { SliderField } from "@/components/ui/form/form-fields/SliderField"; import { ChatParams } from "../types"; @@ -26,7 +26,7 @@ export function TemperatureSelector() { min={0} max={2} step={0.1} - className="[&_[role=slider]]:h-4 [&_[role=slider]]:w-4" + className="[&_[role=slider]]:size-4" control={control} formState={formState} aria-label="Creativity" diff --git a/components/modules/apps/chat/control-side-bar/TopPSelector.tsx b/components/modules/apps/chat/control-side-bar/TopPSelector.tsx index 2095448..7c76c7e 100644 --- a/components/modules/apps/chat/control-side-bar/TopPSelector.tsx +++ b/components/modules/apps/chat/control-side-bar/TopPSelector.tsx @@ -3,12 +3,12 @@ import * as React from "react"; import { useFormContext } from "react-hook-form"; +import { SliderField } from "@/components/ui/form/form-fields"; import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/components/ui/HoverCard"; -import { SliderField } from "@/components/ui/form/form-fields"; import { ChatParams } from "../types"; @@ -26,7 +26,7 @@ export function TopPSelector() { min={0} max={1} step={0.1} - className="[&_[role=slider]]:h-4 [&_[role=slider]]:w-4" + className="[&_[role=slider]]:size-4" control={control} formState={formState} aria-label="Focus" diff --git a/components/modules/auth/LogoutButton.tsx b/components/modules/auth/LogoutButton.tsx index b80f2f8..22e0bf2 100644 --- a/components/modules/auth/LogoutButton.tsx +++ b/components/modules/auth/LogoutButton.tsx @@ -9,7 +9,7 @@ export default function LogoutButton() { return (
diff --git a/components/modules/auth/UserAuthForm.tsx b/components/modules/auth/UserAuthForm.tsx index 50827dc..a82a359 100644 --- a/components/modules/auth/UserAuthForm.tsx +++ b/components/modules/auth/UserAuthForm.tsx @@ -13,8 +13,8 @@ import { Button } from "@/components/ui/Button"; import { InputField } from "@/components/ui/form/form-fields"; import { useToast } from "@/components/ui/use-toast"; -import { SocialLoginOptions } from "./SocialLoginOptions"; import { credentialAuthSchema } from "./schema"; +import { SocialLoginOptions } from "./SocialLoginOptions"; type UserAuthFormProps = React.HTMLAttributes; @@ -83,7 +83,7 @@ export function UserAuthForm({ className, ...props }: UserAuthFormProps) { {...fieldProps} />
diff --git a/components/modules/auth/UserSignupForm.tsx b/components/modules/auth/UserSignupForm.tsx index c02f35b..5a06d13 100644 --- a/components/modules/auth/UserSignupForm.tsx +++ b/components/modules/auth/UserSignupForm.tsx @@ -116,7 +116,7 @@ export function UserSignupForm({ className, ...props }: UserSignupFormProps) { />
diff --git a/components/modules/home/FeatureItems.tsx b/components/modules/home/FeatureItems.tsx index 0d27552..3e4ee24 100644 --- a/components/modules/home/FeatureItems.tsx +++ b/components/modules/home/FeatureItems.tsx @@ -35,7 +35,7 @@ export const FeatureItems = () => {
- + Next.js 14 @@ -46,7 +46,7 @@ export const FeatureItems = () => { - + React 18 @@ -58,7 +58,7 @@ export const FeatureItems = () => { { - + Components @@ -127,7 +127,7 @@ export const FeatureItems = () => { fill="none" stroke="#249361" strokeWidth="1" - className="mb-2 h-12 w-12 fill-[#3ECF8E]" + className="mb-2 size-12 fill-[#3ECF8E]" > @@ -144,7 +144,7 @@ export const FeatureItems = () => { viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg" - className="mb-2 h-12 w-12 fill-current" + className="mb-2 size-12 fill-current" > - + Profile diff --git a/components/modules/profile/Header.tsx b/components/modules/profile/Header.tsx index 8f04fc8..250c054 100644 --- a/components/modules/profile/Header.tsx +++ b/components/modules/profile/Header.tsx @@ -25,7 +25,7 @@ export const Header = ({ username={username} avatarUrl={avatarUrl} email={email} - className="h-24 w-24 border-2" + className="size-24 border-2" />
diff --git a/components/modules/profile/ProfileForm.tsx b/components/modules/profile/ProfileForm.tsx index 85155d8..74d70a7 100644 --- a/components/modules/profile/ProfileForm.tsx +++ b/components/modules/profile/ProfileForm.tsx @@ -105,9 +105,7 @@ export function ProfileForm({ Cancel
diff --git a/components/navigation/SideBar.tsx b/components/navigation/SideBar.tsx index b5762f2..871cfa8 100644 --- a/components/navigation/SideBar.tsx +++ b/components/navigation/SideBar.tsx @@ -4,9 +4,9 @@ import Link from "next/link"; import { siteConfig } from "@/config/site"; import { ThemeToggle } from "../theme"; +import { AppLogo } from "../ui/common/AppLogo"; import { CustomIcon } from "../ui/CustomIcon"; import { Separator } from "../ui/Separator"; -import { AppLogo } from "../ui/common/AppLogo"; export const Sidebar = () => { return ( diff --git a/components/ui/Accordion.tsx b/components/ui/Accordion.tsx index 8004f8f..9a129a5 100644 --- a/components/ui/Accordion.tsx +++ b/components/ui/Accordion.tsx @@ -34,7 +34,7 @@ const AccordionTrigger = React.forwardRef< {...props} > {children} - + )); diff --git a/components/ui/Avatar.tsx b/components/ui/Avatar.tsx index a114517..ee8f4ef 100644 --- a/components/ui/Avatar.tsx +++ b/components/ui/Avatar.tsx @@ -12,7 +12,7 @@ const Avatar = React.forwardRef< (({ className, ...props }, ref) => ( )); @@ -39,7 +39,7 @@ const AvatarFallback = React.forwardRef< { return ( - + {children} @@ -42,7 +42,7 @@ const CommandInput = React.forwardRef< React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => (
- + {children} - + Close diff --git a/components/ui/DropdownMenu.tsx b/components/ui/DropdownMenu.tsx index e301ff1..15629d3 100644 --- a/components/ui/DropdownMenu.tsx +++ b/components/ui/DropdownMenu.tsx @@ -34,7 +34,7 @@ const DropdownMenuSubTrigger = React.forwardRef< {...props} > {children} - + )); DropdownMenuSubTrigger.displayName = @@ -105,9 +105,9 @@ const DropdownMenuCheckboxItem = React.forwardRef< checked={checked} {...props} > - + - + {children} @@ -128,9 +128,9 @@ const DropdownMenuRadioItem = React.forwardRef< )} {...props} > - + - + {children} diff --git a/components/ui/Flex.tsx b/components/ui/Flex.tsx index 114f92e..2e89874 100644 --- a/components/ui/Flex.tsx +++ b/components/ui/Flex.tsx @@ -1,7 +1,7 @@ "use client"; import React from "react"; -import { VariantProps, cva } from "class-variance-authority"; +import { cva, VariantProps } from "class-variance-authority"; import { cn } from "@/lib/utils"; diff --git a/components/ui/Input.tsx b/components/ui/Input.tsx index 54adc7b..2de9513 100644 --- a/components/ui/Input.tsx +++ b/components/ui/Input.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { VariantProps, cva } from "class-variance-authority"; +import { cva, VariantProps } from "class-variance-authority"; import { cn } from "@/lib/utils"; diff --git a/components/ui/NavigationMenu.tsx b/components/ui/NavigationMenu.tsx index c3401d1..69db48e 100644 --- a/components/ui/NavigationMenu.tsx +++ b/components/ui/NavigationMenu.tsx @@ -55,7 +55,7 @@ const NavigationMenuTrigger = React.forwardRef< > {children}{" "}