refactor: redesign planos interface with design system patterns

- Create CreatePlanModal component with Headless UI Dialog
- Implement dark mode support throughout plans UI
- Update plans/page.tsx with professional card layout
- Update plans/[id]/page.tsx with consistent styling
- Add proper spacing, typography, and color consistency
- Implement smooth animations and transitions
- Add success/error message feedback
- Improve form UX with better input styling
This commit is contained in:
Erik Silva
2025-12-13 19:26:38 -03:00
parent 2f1cf2bb2a
commit 2a112f169d
26 changed files with 2580 additions and 119 deletions

View File

@@ -0,0 +1,68 @@
-- Seed the default plans
INSERT INTO plans (id, name, slug, description, min_users, max_users, monthly_price, annual_price, features, differentiators, storage_gb, is_active, created_at, updated_at)
VALUES
(
gen_random_uuid(),
'Ignição',
'ignition',
'Ideal para pequenas agências iniciantes',
1,
30,
199.99,
1919.90,
ARRAY['CRM', 'ERP', 'Projetos', 'Helpdesk', 'Pagamentos', 'Contratos', 'Documentos'],
ARRAY[]::text[],
1,
true,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
),
(
gen_random_uuid(),
'Órbita',
'orbit',
'Para agências em crescimento',
31,
100,
399.99,
3839.90,
ARRAY['CRM', 'ERP', 'Projetos', 'Helpdesk', 'Pagamentos', 'Contratos', 'Documentos'],
ARRAY['Suporte prioritário'],
1,
true,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
),
(
gen_random_uuid(),
'Cosmos',
'cosmos',
'Para agências consolidadas',
101,
300,
799.99,
7679.90,
ARRAY['CRM', 'ERP', 'Projetos', 'Helpdesk', 'Pagamentos', 'Contratos', 'Documentos'],
ARRAY['Gerente de conta dedicado', 'API integrações'],
1,
true,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
),
(
gen_random_uuid(),
'Enterprise',
'enterprise',
'Solução customizada para grandes agências',
301,
-1,
NULL,
NULL,
ARRAY['CRM', 'ERP', 'Projetos', 'Helpdesk', 'Pagamentos', 'Contratos', 'Documentos'],
ARRAY['Armazenamento customizado', 'Treinamento personalizado'],
1,
true,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
)
ON CONFLICT DO NOTHING;