Files
daniel 41cbbea00c perf(dashboard): reducir payload del home 87% y restaurar caching en Cloudflare
- Split components.json: índice sin content (1.9 MB / 249 KB br vs 15.6 MB / 4.15 MB br).
  Generador produce component-content/{type}/{slug}.json por componente y auto-copia
  a dashboard/public/. Página de detalle carga contenido on-demand via fetchComponentContent().
- Restaurar cabeceras de caché y seguridad perdidas en la migración Vercel→Cloudflare:
  _headers con Cache-Control max-age=86400 para JSONs, immutable para _astro/*,
  y HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy en todas las rutas.
- Eliminar dashboard/vercel.json (config muerta desde migración a Cloudflare Pages).
- Diferir hidratación: ClerkIsland y AuthButton client:load → client:idle;
  SaveToCollectionButton → client:visible.
- Eliminar gpt-tokenizer del bundle del navegador: reemplazado por estimación chars/4.
- Actualizar .claude/rules/dashboard.md para reflejar hosting en Cloudflare Pages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 16:58:13 -04:00

1 line
2.3 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [framework] | --cypress | --playwright | --webdriver | --puppeteer | --mobile\ndescription: Configure comprehensive end-to-end testing suite with framework selection and CI integration\n---\n\n# E2E Setup\n\nConfigure comprehensive end-to-end testing suite with framework optimization: **$ARGUMENTS**\n\n## Current E2E Context\n\n- Application type: !`find . -name \"index.html\" -o -name \"app.js\" -o -name \"App.tsx\" | head -1 && echo \"Web app\" || echo \"Detect app type\"`\n- Framework: !`grep -l \"react\\\\|vue\\\\|angular\" package.json 2>/dev/null || echo \"Detect framework\"`\n- Existing tests: !`find . -name \"cypress\" -o -name \"playwright\" -o -name \"e2e\" | head -1 || echo \"No E2E setup\"`\n- CI system: !`find . -name \".github\" -o -name \".gitlab-ci.yml\" | head -1 || echo \"No CI detected\"`\n\n## Task\n\nImplement comprehensive end-to-end testing with framework selection and optimization:\n\n**Framework Focus**: Use $ARGUMENTS to specify Cypress, Playwright, WebDriver, Puppeteer, mobile testing, or auto-detect best fit\n\n**E2E Testing Framework**:\n\n1. **Framework Selection & Setup** - Choose optimal E2E tool, install dependencies, configure basic settings, setup project structure\n2. **Test Environment Configuration** - Setup test environments, configure base URLs, implement environment switching, optimize test isolation\n3. **Page Object Patterns** - Design page object model, create reusable components, implement element selectors, optimize maintainability\n4. **Test Data Management** - Setup test data strategies, implement fixtures, configure database seeding, design cleanup procedures\n5. **Cross-Browser Testing** - Configure multi-browser execution, setup mobile testing, implement responsive testing, optimize compatibility\n6. **CI/CD Integration** - Configure automated execution, setup parallel testing, implement reporting, optimize performance\n\n**Advanced Features**: Visual regression testing, accessibility testing, performance monitoring, API testing integration, mobile device testing.\n\n**Quality Assurance**: Test reliability optimization, flaky test prevention, execution speed optimization, debugging capabilities.\n\n**Output**: Complete E2E testing setup with framework configuration, test suites, CI integration, and maintenance workflows.\n"}