From c925b4d9959aedd8ad82e9b37acf62062a4c045e Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Sun, 3 May 2026 12:05:35 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`develop?= =?UTF-8?q?ment`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @daikictrl. * https://github.com/daikictrl/Ghost_Workflow/pull/2#issuecomment-4366124771 The following files were modified: * `.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/layout.tsx` * `.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/page.tsx` * `app/editor/layout.tsx` * `app/editor/page.tsx` * `app/layout.tsx` * `app/page.tsx` * `app/sign-in/[[...sign-in]]/page.tsx` * `app/sign-up/[[...sign-up]]/page.tsx` * `components/auth/auth-page-shell.tsx` * `components/editor/editor-navbar.tsx` --- .../templates/nextjs-basic-auth/app/layout.tsx | 10 ++++++++++ .../templates/nextjs-basic-auth/app/page.tsx | 5 +++++ app/editor/layout.tsx | 5 +++++ app/editor/page.tsx | 8 ++++++++ app/layout.tsx | 6 ++++++ app/page.tsx | 5 +++++ app/sign-in/[[...sign-in]]/page.tsx | 10 ++++++++++ app/sign-up/[[...sign-up]]/page.tsx | 10 ++++++++++ components/auth/auth-page-shell.tsx | 8 ++++++++ components/editor/editor-navbar.tsx | 10 ++++++++++ 10 files changed, 77 insertions(+) diff --git a/.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/layout.tsx b/.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/layout.tsx index aec51d9..b13ee1e 100644 --- a/.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/layout.tsx +++ b/.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/layout.tsx @@ -1,5 +1,15 @@ import { ClerkProvider, Show, SignInButton, SignUpButton, UserButton } from '@clerk/nextjs' +/** + * Wraps the application with the root HTML structure and Clerk authentication provider. + * + * Renders an and
, nests a ClerkProvider that supplies auth state, displays + * sign-in and sign-up controls when the user is signed out and a user menu when signed in, + * then renders the provided children beneath the header. + * + * @param children - The page or app content to render inside the layout + * @returns The top-level HTML element containing the ClerkProvider, header, and `children` + */ export default function RootLayout({ children }: { children: React.ReactNode }) { return ( diff --git a/.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/page.tsx b/.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/page.tsx index 3e62e69..e163515 100644 --- a/.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/page.tsx +++ b/.agents/skills/clerk-nextjs-patterns/templates/nextjs-basic-auth/app/page.tsx @@ -1,3 +1,8 @@ +/** + * Render the Home page. + * + * @returns A React element containing an `