Overview
Quality Hub GINEZ is built with Next.js 14 and can be extensively customized to match your organization’s needs. This guide covers common customization scenarios.Project Architecture
Technology Stack
- Framework: Next.js 14 (App Router)
- UI Library: React 18
- Styling: Tailwind CSS 3 + shadcn/ui
- Database: Supabase (PostgreSQL)
- Charts: Recharts
- Icons: Lucide React
Directory Structure
Branding and Styling
Changing Colors
Edittailwind.config.ts to customize the color scheme:
Customizing the Logo
- Replace logo images in
public/directory - Update references in
components/AppShell.tsx:
Changing Typography
app/layout.tsx:
Customizing Navigation
Adding a New Menu Item
Editcomponents/AppShell.tsx to add navigation items:
Restricting Access by Role
Customizing the Dashboard
Adding Custom KPIs
Editapp/page.tsx to add new dashboard metrics:
Adding Custom Charts
Use Recharts to create custom visualizations:Modifying Quality Logic
Customizing Conformity Calculation
Editlib/analysis-utils.ts to change how conformity is determined:
Adding New Quality Parameters
- Update Database Schema:
- Add Standards:
- Update Bitácora Form:
- Add to Analysis:
Creating Custom Reports
Adding a New Report Tab
Editapp/reportes/page.tsx:
Exporting Reports to PDF
Install a PDF library:Adding Email Notifications
Set Up Email Service
.env.local:
Create Email Notification
Trigger on Non-Conformity
Internationalization (i18n)
Setting Up i18n
Performance Optimization
Enable Static Generation
For pages that don’t change often:Add Database Indexes
Implement Caching
Next Steps
Local Setup
Set up your development environment
Adding Products
Add new products and standards
Database Migrations
Manage database changes
