Repository navigation
feat(editor): pixelar, recortar, zoom y salida con save_annotated (M3c) - #8
Merged
Merged
Conversation
… tocarlo (T1, S3-S5)
…/pan (T2-T4, S1-S2)
… con confirmacion (T5, S3)
…ort ya no queda tainted; cierra la ventana por IPC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué y por qué
Tercera y última entrega del editor (M3c — annotate-output, flujo 4 del
BRIEF.md), según el plan deodd/tasks/m3c-annotate-output.md. Rama desdedev(e5d7099, tras el merge de M3b).save_annotateden Rust: recibe el PNG anotado y el original, valida que los bytes sean un PNG real, escribecaptura_<fecha>_<hora>_anotada.pngjunto al original y devuelve la ruta. El original nunca se toca (hash verificado). Pruebas contra carpeta temporal: escritura junto al original, rechazo de PNG vacío/falso/original inexistente.PixelateyBlurde Konva aplicados al recorte del fondo; la región se rasteriza al exportar para que los datos sensibles queden ocultos de verdad.copy_image), Guardar y cerrar (Ctrl+S) con confirmaciónbeforeunloadsi hay cambios sin guardar.Dos problemas reales corregidos durante la verificación
toBlobcon SecurityError. Solución: comando nuevoget_editor_capture_png(Rust lee el objetivo del editor, sin rutas arbitrarias) y la web pinta desde undata:URL, que nunca contamina el canvas.window.close()no cierra webviews creadas por el shell: cierre por la API de Tauri (core:window:allow-closeañadido al capability).Cómo se verificó
cargo test43/43 (3 nuevos desave_annotated), clippy limpio,cargo fmt.pnpm test43/43 (5 nuevos: crop, undo del espacio, redact, save_annotated), typecheck, lint, arch sin violaciones.pnpm dev:debug+ CDP): dibujar → Ctrl+S → fichero_anotada.pngnuevo en disco (PNG válido, 6 KB), hash del original intacto, la copia colgada en la línea (get_shelfla contiene víascreenshot:added), ventana editor cerrada. Zoom verificado (1 → 2,22 con Ctrl+rueda).Feature Map actualizada
Sí: la entrada del editor queda completa con
save_annotated,get_editor_capture_pngy los selectores nuevos (en el commit de cierre de la entrega).Nueva constraint propuesta
No.