You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte-kit-vice/docs/audit/components/image-picker.md

31 lines
3.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# image-picker — ficha de auditoría (RE-AUDITADA 2026-07-07, profundidad piloto)
- **Familia**: pickers (media) · **Método**: solo análisis · demos fuera
- **Capas leídas**: [morfo](../../../src/uix/morfo/components/image-picker.ts) (143 líneas; eventos :31-64, partes :67-133) · pack ✓ existe
- **Máquina**: PASS limpio · tests ✓ · README ×2 ✓ — **PERO ver F-2: le pasó por alto un A-1.4 real**
## Dimensiones (evidencia leída)
| # | Dimensión | Estado | Evidencia |
| ----- | -------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | Composición | ✓ | Preview/Toolbar/Rotate/Remove (:88-133); compone cropper/zoom-pan (capa de la iniciativa 7da7285d) |
| 2 | Naming | hallazgo SYS-1 | **6 hooks-clase** en su CSS (segundo ofensor tras button/cropper) → censo SYS-1 |
| 3 | Coherencia semántica | ✓ | `commit-select` affirm + `commit-remove` neutral + `handle-rotate` neutral (:31-64); `expression: 'pack'` + pack ✓ coherentes |
| 8 | Contrato morfo | **hallazgo nuevo** | **F-2**: `apg:` AUSENTE (censo = 0) y la máquina lo dio por PASS — el censo A-1.4 del informe no lo lista: segundo agujero de regla detectado por la re-auditoría (con el A-3.1 de pin-input) |
| resto | | ✓ | R-rules limpias; tests ✓; README ×2 ✓ |
## Hallazgos y propuestas
| ID | Hallazgo | Propuesta |
| ------- | ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **F-1** | 6 hooks-clase | Migrar a `data-image-picker-*` con el codemod del censo SYS-1 (no parche aislado) |
| **F-2** | Sin cita APG y la regla A-1.4 no lo cazó | Declarar patrón (¿file-upload composite? sin APG oficial → usar la regla nueva "apg: none — rationale" que pide el censo) + arreglar la regla del script |
## Escalan al sistema
SYS-1 · censo A-1.4 (+1 y agujero de regla) · la regla "sin patrón APG oficial" (con media-player/drag-drop).
## Veredictos
_(pendiente — checkpoint post-barrido)_

Powered by TurnKey Linux.