Skip to content

Conversation

@eluce2
Copy link
Collaborator

@eluce2 eluce2 commented Aug 9, 2025

Checkpoint before follow-up message

Co-authored-by: eric.luce [email protected]

Add Mantine and Shadcn UI templates with core project structure

Co-authored-by: eric.luce [email protected]

Checkpoint before follow-up message

Co-authored-by: eric.luce [email protected]

Remove Mantine dependencies and migrate to Tailwind CSS styling

Co-authored-by: eric.luce [email protected]

fix template

Summary by CodeRabbit

  • New Features

    • New Next.js template using shadcn/ui, now the default for new projects.
    • Optional UI selection during init (shadcn or mantine); choice is saved in project settings.
    • Existing Mantine projects are auto-detected and fully supported.
  • Changes

    • For shadcn-based projects, adding pages or authentication via the CLI is temporarily disabled.
  • Documentation

    • Added README and configuration files for the shadcn template.

@vercel
Copy link

vercel bot commented Aug 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
proofkit-docs Ready Ready Preview Aug 22, 2025 1:06am

Copy link
Collaborator Author

eluce2 commented Aug 9, 2025

@eluce2 eluce2 mentioned this pull request Aug 9, 2025
@eluce2 eluce2 changed the base branch from main to graphite-base/58 August 12, 2025 01:04
@eluce2 eluce2 changed the base branch from graphite-base/58 to 06-25-custom_registry_base August 12, 2025 01:04
@eluce2 eluce2 force-pushed the 06-25-custom_registry_base branch from e23e93b to 4ebe2e2 Compare August 12, 2025 14:06
@eluce2 eluce2 force-pushed the 06-25-custom_registry_base branch from 4ebe2e2 to e767132 Compare August 12, 2025 14:30
@eluce2 eluce2 changed the base branch from 06-25-custom_registry_base to graphite-base/58 August 15, 2025 01:26
@graphite-app graphite-app bot changed the base branch from graphite-base/58 to main August 15, 2025 01:27
@eluce2 eluce2 mentioned this pull request Aug 16, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 16, 2025

Open in StackBlitz

@proofkit/better-auth

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/better-auth@58

@proofkit/cli

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/cli@58

create-proofkit

pnpm add https://pkg.pr.new/proofgeist/proofkit/create-proofkit@58

@proofkit/fmdapi

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmdapi@58

@proofkit/typegen

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/typegen@58

@proofkit/webviewer

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/webviewer@58

commit: d315ad9

Copy link
Collaborator Author

eluce2 commented Aug 25, 2025

Merge activity

  • Aug 25, 2:15 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Aug 25, 2:15 AM UTC: @eluce2 merged this pull request with Graphite.

@eluce2 eluce2 merged commit a79339f into main Aug 25, 2025
5 of 6 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Aug 25, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Introduces UI selection into the CLI (defaulting to shadcn/ui), persists it in settings, adds shadcn installation utilities and templates, updates project scaffolding and dependency installation paths, and inserts guards preventing add page/auth for shadcn projects. Expands dependency maps, state/schema, and build/dev configs. Adds Mantine template manifest.

Changes

Cohort / File(s) Summary
CLI init and settings pipeline
packages/cli/src/cli/init.ts, packages/cli/src/state.ts, packages/cli/src/utils/parseSettings.ts, packages/cli/src/consts.ts
Adds hidden --ui flag (default shadcn), persists ui in settings, introduces DEFAULT_REGISTRY_URL, extends Settings schema with ui and optional registryUrl, and stores initial settings.
Dependency execution and installation
packages/cli/src/helpers/installDependencies.ts, packages/cli/src/utils/addPackageDependency.ts
Extends runExecCommand/_runExecCommand with optional loadingMessage and default projectDir from state; addPackageDependency projectDir now optional with default from state; pnpm via dlx; spinner messaging customizable.
UI-specific project creation/scaffolding
packages/cli/src/helpers/createProject.ts, packages/cli/src/helpers/scaffoldProject.ts, packages/cli/src/installers/dependencyVersionMap.ts
Conditional deps and templates based on state.ui (mantine vs shadcn); adds Mantine deps and next-themes; chooses nextjs-mantine or nextjs-shadcn template for browser apps.
Shadcn helper utilities
packages/cli/src/helpers/shadcn-cli.ts
Adds shadcnInstall(components) with spinner messages and getRegistryUrl() resolving from settings or DEFAULT_REGISTRY_URL.
Add command guards
packages/cli/src/cli/add/index.ts, packages/cli/src/cli/add/auth.ts, packages/cli/src/cli/add/page/index.ts
Blocks add page/auth when settings.ui is "shadcn"; early cancellations with specific messages.
Build/dev config
packages/cli/tsup.config.ts
Enables replaceNodeEnv and prefixes dev run with IS_LOCAL_DEV=1.
Mantine template manifest
packages/cli/template/nextjs-mantine/proofkit.json
Adds proofkit.json with ui: "mantine" and basic settings.
Shadcn Next.js template (project config)
packages/cli/template/nextjs-shadcn/package.json, .../tsconfig.json, .../next.config.ts, .../postcss.config.cjs, .../.prettierrc, .../_gitignore, .../components.json, .../proofkit.json, .../README.md
Introduces full Next.js/shadcn template configuration, scripts, deps, TypeScript config, PostCSS/Tailwind setup, Prettier plugin, gitignore, shadcn components config, and template manifest with ui: "shadcn".
Shadcn template app structure
packages/cli/template/nextjs-shadcn/src/app/*
Adds root/app layouts, main page, navigation config, and env setup.
Shadcn template components/providers
packages/cli/template/nextjs-shadcn/src/components/**/*
Adds AppShell layout (header, mobile menu, slots), AppLogo, Providers, theme-provider, CSS module, and slot components.
Shadcn template styles and utils
packages/cli/template/nextjs-shadcn/src/config/theme/globals.css, .../src/utils/styles.ts, .../src/utils/notification-helpers.ts
Adds global Tailwind-based theme tokens, cn utility (clsx + tailwind-merge), and notification helpers (console-based placeholders).
Shadcn template server utilities
packages/cli/template/nextjs-shadcn/src/server/safe-action.ts
Exposes actionClient via next-safe-action.
Changeset
.changeset/ui-default-shadcn.md
Records minor version bump; documents default shadcn UI, hidden --ui flag, settings persistence, and shadcn limitations in add.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant CLI Init
  participant State
  participant Settings as Settings (proofkit.json)
  participant Installer as Dependency Installer
  participant Shadcn as Shadcn Helper
  participant Codegen

  User->>CLI Init: proofkit init [--ui shadcn|mantine]
  CLI Init->>State: parse flags (ui)
  CLI Init->>Settings: setSettings({ appType, ui, ... })
  Settings-->>CLI Init: { registryUrl }
  CLI Init->>Installer: installDependencies()
  alt ui === "shadcn"
    CLI Init->>Shadcn: getRegistryUrl() / shadcnInstall(components)
    Shadcn-->>CLI Init: components installed
  end
  CLI Init->>Codegen: generate types
  Codegen-->>User: init complete
Loading
sequenceDiagram
  autonumber
  actor User
  participant CLI Add
  participant Settings

  User->>CLI Add: proofkit add [page|auth|...]
  CLI Add->>Settings: getSettings()
  alt ui === "shadcn" and (type is page or auth)
    CLI Add-->>User: cancel("Adding ... not yet supported for shadcn-based projects.")
  else
    CLI Add-->>User: proceed with selected add flow
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • add shadcn to template #44 — Adds shadcn UI support across CLI and templates; overlaps with UI selection, templates, and dependency logic.
  • shadcn registry #43 — Introduces shadcn component registry app targeted by the CLI’s getRegistryUrl/shadcnInstall flow.
  • Restructure all packages #39 — Modifies core CLI files (state, settings, consts) that this PR also updates for UI support.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between d9de836 and d315ad9.

⛔ Files ignored due to path filters (4)
  • packages/cli/template/nextjs-mantine/public/favicon.ico is excluded by !**/*.ico
  • packages/cli/template/nextjs-mantine/public/proofkit.png is excluded by !**/*.png
  • packages/cli/template/nextjs-shadcn/public/favicon.ico is excluded by !**/*.ico
  • packages/cli/template/nextjs-shadcn/public/proofkit.png is excluded by !**/*.png
📒 Files selected for processing (47)
  • .changeset/ui-default-shadcn.md (1 hunks)
  • packages/cli/src/cli/add/auth.ts (1 hunks)
  • packages/cli/src/cli/add/index.ts (1 hunks)
  • packages/cli/src/cli/add/page/index.ts (1 hunks)
  • packages/cli/src/cli/init.ts (7 hunks)
  • packages/cli/src/consts.ts (1 hunks)
  • packages/cli/src/helpers/createProject.ts (3 hunks)
  • packages/cli/src/helpers/installDependencies.ts (7 hunks)
  • packages/cli/src/helpers/scaffoldProject.ts (1 hunks)
  • packages/cli/src/helpers/shadcn-cli.ts (1 hunks)
  • packages/cli/src/installers/dependencyVersionMap.ts (1 hunks)
  • packages/cli/src/state.ts (1 hunks)
  • packages/cli/src/utils/addPackageDependency.ts (1 hunks)
  • packages/cli/src/utils/parseSettings.ts (3 hunks)
  • packages/cli/template/nextjs-mantine/proofkit.json (1 hunks)
  • packages/cli/template/nextjs-shadcn/.prettierrc (1 hunks)
  • packages/cli/template/nextjs-shadcn/README.md (1 hunks)
  • packages/cli/template/nextjs-shadcn/_gitignore (1 hunks)
  • packages/cli/template/nextjs-shadcn/components.json (1 hunks)
  • packages/cli/template/nextjs-shadcn/next.config.ts (1 hunks)
  • packages/cli/template/nextjs-shadcn/package.json (1 hunks)
  • packages/cli/template/nextjs-shadcn/postcss.config.cjs (1 hunks)
  • packages/cli/template/nextjs-shadcn/proofkit.json (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/app/(main)/layout.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/app/(main)/page.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/app/layout.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/app/navigation.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppLogo.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/internal/AppShell.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/internal/Header.module.css (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/internal/Header.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/internal/HeaderMobileMenu.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/internal/HeaderNavLink.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/internal/config.ts (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/slot-header-center.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/slot-header-left.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/slot-header-mobile-content.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/AppShell/slot-header-right.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/providers.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/components/theme-provider.tsx (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/config/env.ts (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/config/theme/globals.css (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/server/safe-action.ts (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/utils/notification-helpers.ts (1 hunks)
  • packages/cli/template/nextjs-shadcn/src/utils/styles.ts (1 hunks)
  • packages/cli/template/nextjs-shadcn/tsconfig.json (1 hunks)
  • packages/cli/tsup.config.ts (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch shadcn

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai bot mentioned this pull request Aug 26, 2025
@coderabbitai coderabbitai bot mentioned this pull request Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants