The Krafta admin panel atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/PloutusLab/krafta-web/llms.txt
Use this file to discover all available pages before exploring further.
/admin is the central operations hub for the platform. It surfaces live KPI metrics derived directly from the database and provides navigation to every management section. Access is restricted to users whose account carries the ADMIN role — Next.js middleware redirects any other authenticated session to /creator with an error message, and unauthenticated requests are redirected to the login page.
Dashboard metrics
When the database is reachable, the admin panel computes six live KPIs from Prisma queries:| Metric | Source |
|---|---|
| Ingresos Confirmados | Sum of total across all Order records with status: "CONFIRMED" |
| Pedidos Confirmados | Count of Order records with status: "CONFIRMED" |
| Margen Promedio | Fixed at ~40 % whenever at least one confirmed order exists |
| Usuarios Registrados | Count of all User records |
| Productos Base | Count of all Product records |
| ROI Estimado | Displayed as — until business expense tracking is enabled |
Navigation sections
Catálogo & Mockups
Manage base products with variants, SKUs, pricing tiers, print template coordinates, and mockup images. Supports bulk CSV import and the three-step product creation wizard.
Comprobantes y Pagos
Manual verification pipeline for Banesco bank transfers and Pago Móvil receipts submitted by customers. Confirm or reject payments to advance orders into production.
Configuración de Talleres
CRUD for allied workshop records. Configure production capacity, SLA commitments, payment policy, and geographic coverage for each workshop.
Gestión de Usuarios
View all registered users, change roles between CLIENTE, CREADOR, TALLER, and ADMIN, manage creator storefronts, and reset passwords.
Template Studio
Configure versioned surface templates with SVG print areas, mockup scene layers, DPI rules, and transform constraints for the design editor.
Pipeline de Pedidos
View and manage the full order pipeline from Confirmed through In Production, Shipped, and Delivered. Assign workshops, dispatch production notifications, and review quotes. See the Orders API reference for the underlying data model.
- Pipeline de Pedidos (
/admin/orders) — Displays all confirmed orders, allows workshop assignment, and links to payment verification for each order. Order status advances throughCONFIRMED → IN_PRODUCTION → SHIPPED → DELIVERED. - CMS de Portada (
/admin/content) — Dynamic content editor for the storefront Hero section, promotional banners, and landing page announcements.
Granting admin access
TheADMIN role is not self-assignable through the UI. To promote a user to admin for the first time, set the role field directly in the database. Using Prisma Studio:
- Open the User table.
- Find the target user by email.
- Change the
rolefield fromCLIENTEtoADMIN. - Save the record.
ADMIN role is issued. Existing sessions retain the previous role until they expire (24 hours) or until the user re-authenticates.