Build an Admin Dashboard
A gated admin area with metrics, list management and edit actions, protected at both the page and the data.
When to use it
Internal tools
Build an admin dashboard for this project. Access: - Only users with the admin role can reach it, enforced on the page AND on every data request. - Non-admins are redirected, and admin data requests fail for them. Content: - A metrics row showing [LIST THE 4-6 NUMBERS YOU CARE ABOUT]. - A management list for each main content type with search, filters, sorting and pagination. - Create, edit and publish or unpublish actions, with confirmation on destructive actions. - A submissions view for any forms on the site. Every list needs loading, empty and error states. Keep the layout dense and readable rather than decorative.
Build your version of this prompt
Fill in your details and the prompt below updates as you type. Anything you skip stays as a square-bracket placeholder so you can see what's still missing.
Build an admin dashboard for this project. Access: - Only users with the admin role can reach it, enforced on the page AND on every data request. - Non-admins are redirected, and admin data requests fail for them. Content: - A metrics row showing [List the 4 6 numbers you care about]. - A management list for each main content type with search, filters, sorting and pagination. - Create, edit and publish or unpublish actions, with confirmation on destructive actions. - A submissions view for any forms on the site. Every list needs loading, empty and error states. Keep the layout dense and readable rather than decorative.
1 field still empty — the prompt works better when they're filled in.
How to use this prompt
- Fill in the fields above — plain language beats jargon.
- Copy the prompt and paste it into Lovable as a single message.
- Let it finish before you send anything else, then read what changed.
- If the result is close but not right, describe the difference rather than restating the whole prompt.
Suggested follow-up prompt
Review what you just built for Build an Admin Dashboard. 1. List anything you changed that I did not ask for, and undo it. 2. Check it works on a 375px-wide phone screen: no horizontal scrolling, tap targets at least 44px. 3. Confirm every form shows a clear error and a clear success state. 4. Tell me in plain language what is still missing before this is safe to publish. Do not add new features in this step.
Why it works
It separates page protection from data protection, which is the distinction most generated admin areas miss.
Was this prompt helpful?
Related questions
- PromptCreate an Onboarding FlowA multi-step first-run experience that saves progress and can be resumed.
- PromptBuild a Client PortalA secure area where each client sees only their own files, updates and messages.
- PromptBuild a CRM With LovableA working contact and pipeline CRM with the data model spelled out, so it scales past the demo.
You might also need
Guides that use this prompt
How to Create an Admin Dashboard
A secure internal area with real metrics, list views and edit actions — not just a page called /admin.
How to Build a SaaS MVP with Lovable
The order to build things in — accounts, data model, core loop, billing — so you do not rebuild the foundations twice.