Skip to content

add shadcn admin app template #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

add shadcn admin app template #17

wants to merge 1 commit into from

Conversation

vincanger
Copy link
Contributor

@vincanger vincanger commented Mar 31, 2025

Adds shadcn-admin as a starter template:

  • replaced tanstack-router with react-router and Wasp routes.
  • uses Wasp auth and authUI.
  • configured shadcn-ui and other ui libraries to work with Wasp.

@vincanger vincanger requested a review from Martinsos March 31, 2025 13:47
@infomiho infomiho requested review from infomiho and Copilot March 31, 2025 14:26
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new admin app template using shadcn-admin, integrating react-router, Wasp auth, and customized shadcn-ui components. Key changes include new layout components (nav-user, nav-group, header, main, app-sidebar), implementation of a command menu and confirm dialog, and configuration updates such as the PostCSS setup.

Reviewed Changes

Copilot reviewed 136 out of 144 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/components/layout/nav-user.tsx Adds user navigation with dropdown functionality
src/components/layout/nav-group.tsx Implements grouped navigation with collapsible and dropdown behaviors
src/components/layout/main.tsx Introduces a Main layout component with optional fixed styling
src/components/layout/header.tsx Creates a header component with scroll shadow effect
src/components/layout/data/sidebar-data.ts Supplies sidebar data with team and nav group definitions
src/components/layout/app-sidebar.tsx Constructs the app sidebar integrating layout components and nav groups
src/components/confirm-dialog.tsx Provides a reusable confirm dialog component
src/components/command-menu.tsx Implements a command menu with theme switching and navigation support
src/components/coming-soon.tsx Simple coming soon page component
postcss.config.cjs Configures PostCSS with TailwindCSS and autoprefixer
README.md Basic project introduction
Files not reviewed (8)
  • shadcn-admin/.cursorrules: Language not supported
  • shadcn-admin/.gitignore: Language not supported
  • shadcn-admin/.waspignore: Language not supported
  • shadcn-admin/.wasproot: Language not supported
  • shadcn-admin/components.json: Language not supported
  • shadcn-admin/main.wasp: Language not supported
  • shadcn-admin/package.json: Language not supported
  • shadcn-admin/schema.prisma: Language not supported
Comments suppressed due to low confidence (1)

shadcn-admin/src/components/command-menu.tsx:55

  • [nitpick] The class 'size-2' might not correctly set the icon size in Tailwind CSS. It is recommended to use explicit width and height classes (e.g., 'w-4 h-4') to define the icon size.
<IconArrowRightDashed className='size-2 text-muted-foreground/80' />

@vincanger vincanger removed the request for review from Martinsos March 31, 2025 14:49
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.

1 participant