icamarillo be762585d2 feat: Mejoras en auditoría - incidentes de seguridad y esquema de colores
- Backend:
  * Agregado endpoint /v1/audit/security/incidents con paginación y filtros
  * Nuevos schemas SecurityIncidentResponse y SecurityIncidentListResponse
  * Fix timezone: datetime.utcnow() → datetime.now(timezone.utc) en 4 ubicaciones
  * Detección automática de incidentes: mass deletion, brute force, privilege escalation

- Frontend (Internal):
  * Nueva sección de Incidentes de Seguridad con modal de detalles
  * Filtros por severidad, estado y tipo de incidente
  * Conversión completa a esquema grayscale (gray-100 a gray-900)
  * Eliminados todos los emojis de páginas audit y security
  * Implementada paginación para incidentes

- Fixes:
  * Resuelto error 500: TypeError con datetimes timezone-aware/naive
  * Resuelto error 404: endpoint de incidentes faltante
2026-02-16 12:45:33 -07:00
2026-01-12 08:17:17 -07:00
2026-01-12 08:17:17 -07:00
2026-02-12 14:00:04 -07:00
2026-01-12 08:17:17 -07:00
2026-01-12 08:17:17 -07:00
2026-02-12 14:00:04 -07:00
2026-01-12 08:17:17 -07:00
2026-02-12 14:00:04 -07:00

ServiceManagerWeb - Mesa de Ayuda B2B

Sistema multi-tenant de Mesa de Ayuda/Soporte Técnico empresarial para Aduanasoft.

Arquitectura

  • Frontend: SvelteKit + TypeScript (portal clientes + panel interno)
  • Backend: Python FastAPI + Pydantic v2
  • Workers: Celery + Redis (notificaciones, SLAs, jobs)
  • BD: PostgreSQL + Alembic migrations
  • Auth: JWT + Refresh tokens + 2FA opcional (TOTP)
  • Infra: Docker Compose local, preparado para producción

Estructura del Monorepo

ServiceManagerWeb/
├── backend/               # FastAPI app
├── frontend-client/       # SvelteKit app para clientes
├── frontend-internal/     # SvelteKit app para staff interno
├── workers/              # Celery tasks
├── db/                   # Migrations y esquemas
├── docker/               # Dockerfiles específicos
├── docs/                 # Documentación adicional
├── scripts/              # Scripts de desarrollo/despliegue
├── docker-compose.yml    # Orquestación completa
└── .env.example          # Variables de entorno

Stack Tecnológico

Backend (Python)

  • FastAPI (async)
  • Pydantic v2
  • SQLAlchemy 2.0 (async)
  • Alembic (migrations)
  • Argon2 (hashing passwords)
  • PyJWT
  • Celery + Redis

Frontend (JavaScript/TypeScript)

  • SvelteKit
  • TypeScript
  • TailwindCSS
  • shadcn/ui o similar
  • Zod (validación)

Infraestructura

  • PostgreSQL 15+
  • Redis 7+
  • Docker & Docker Compose
  • Nginx (reverse proxy)

Dominios del Sistema

  1. Auth: Usuarios, roles, permisos, 2FA
  2. Tenants: Multi-tenancy, organizaciones
  3. Tickets: Gestión de tickets, estados, SLAs
  4. Notifications: Email, plantillas, logs
  5. Audit: Bitácora de acciones

Roles de Usuario

Internos (Staff)

  • ADMIN: Control total del sistema
  • SUPPORT_MANAGER: Gestión de equipos y SLAs
  • AGENT: Atención de tickets
  • AUDITOR: Solo lectura para auditoría

Clientes

  • CLIENT_ADMIN: Gestión de organización cliente
  • CLIENT_USER: Creación y seguimiento de tickets

Quick Start

# Clonar y configurar
git clone <repo>
cd ServiceManagerWeb
cp .env.example .env

# Levantar servicios
docker-compose up -d

# Verificar estado
docker-compose ps

URLs por Defecto

Scripts de Desarrollo

# Backend
cd backend
python -m uvicorn app.main:app --reload --port 8000

# Frontend Cliente
cd frontend-client
npm run dev -- --port 3000

# Frontend Interno  
cd frontend-internal
npm run dev -- --port 3001

# Workers
cd workers
celery -A app.worker worker --loglevel=info
celery -A app.worker beat --loglevel=info

Testing

# Backend tests
cd backend
pytest

# Frontend tests
cd frontend-client
npm test
cd ../frontend-internal
npm test

Contribución

  1. Fork del proyecto
  2. Crear feature branch (git checkout -b feature/nueva-funcionalidad)
  3. Commit cambios (git commit -am 'Agregar nueva funcionalidad')
  4. Push a branch (git push origin feature/nueva-funcionalidad)
  5. Crear Pull Request

Licencia

Propietario - Aduanasoft © 2026

Description
sistema interno de gestion de tickets
https://servicemanager.aduanasoft.com
Readme 2.4 MiB
Languages
Python 53.1%
Svelte 38.3%
TypeScript 3.4%
PowerShell 1.7%
PLpgSQL 1.2%
Other 2.3%