Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Admin Ui
salimi-my/admin-dashboard-template
cursor
inertia
wayfinder
admin-dashboard
ui-components
sidebar-nav
table-params
theme-tokens

Conventions for the admin dashboard UI (layout, nav, tables, forms)

Install
php artisan boost:add-skill salimi-my/admin-dashboard-template

Save this content to: .cursor/rules/admin-ui.mdc

# Admin dashboard UI

- Reuse `resources/js/components/ui/*` and `components/content-card.tsx`. Do not write one-off versions of components that already exist.
- Pages declare `Page.layout = { breadcrumbs: [...] }`. The layout already provides padding, so do not add outer padding or a page `<h1>` styled heading.
- Sidebar items live in `resources/js/lib/nav.ts` and must use Wayfinder route functions. Use `adminOnly: true` for admin pages.
- List pages must use `components/table/*` with `useTableParams` (query-string driven, Inertia visits). Do not fetch table data on the client.
- Forms use Inertia `<Form>` with `Field`, `FieldLabel` and `FieldError`. Do not add react-hook-form or zod.
- Use Wayfinder (`@/actions`, `@/routes`) for every URL. Never hardcode paths.
- Colors come from the theme variables in `resources/css/app.css` (`--brand`, `--primary`, ...). Do not hardcode brand colors in components.
- Run `pnpm run check:fix` and `pnpm run types:check` after changing frontend code.

Admin dashboard UI

  • Reuse resources/js/components/ui/* and components/content-card.tsx. Do not write one-off versions of components that already exist.
  • Pages declare Page.layout = { breadcrumbs: [...] }. The layout already provides padding, so do not add outer padding or a page <h1> styled heading.
  • Sidebar items live in resources/js/lib/nav.ts and must use Wayfinder route functions. Use adminOnly: true for admin pages.
  • List pages must use components/table/* with useTableParams (query-string driven, Inertia visits). Do not fetch table data on the client.
  • Forms use Inertia <Form> with Field, FieldLabel and FieldError. Do not add react-hook-form or zod.
  • Use Wayfinder (@/actions, @/routes) for every URL. Never hardcode paths.
  • Colors come from the theme variables in resources/css/app.css (--brand, --primary, ...). Do not hardcode brand colors in components.
  • Run pnpm run check:fix and pnpm run types:check after changing frontend code.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package