Spaces:
Sleeping
Sleeping
Commit History
-
Update template sizing/box wrapping fixes
dd94ad9
-
V0.1.5
74b1b27
-
Normalize uploaded photos' EXIF orientation
Add image normalization for uploaded photos using Pillow. Import Image, ImageOps and UnidentifiedImageError; introduce EXIF_NORMALIZE_EXTS and a _normalize_uploaded_photo(path) helper that applies ImageOps.exif_transpose, converts incompatible modes for JPEG, and saves with reasonable JPEG options. Call the normalizer for files categorized as "photos" and update the stored file size afterward. Errors decoding the image are caught and the original bytes are preserved.b434fc2 -
Standardize rating labels and sync PDF export
Harmonize rating/priority text and badge formatting across frontend and PDF generation, and convert Playwright PDF export to the sync API. Front-end: updated rating/priority labels to include parentheses, removed the hyphen in badge text ("key - label" -> "key label"), changed empty-badge fallback from "-" to empty string, adjusted rating key extraction logic in several components, and added an empty PdfPreviewPanel.tsx placeholder. Also minor cleanup of an effect cleanup callback in EditReportPage. Server: pdf_export switched from async Playwright to the sync API (render_pdf now returns Path), simplified lifecycle handling and removed the asyncio/proactor helper, and increased PDF page margins to 10mm. pdf_reportlab was updated to match the new label formatting and use empty strings where badges/fields are missing so frontend and PDF outputs are consistent.1ebea81 -
Make category/priority badges adaptive
Replace qualitative category labels with percentage-based labels (e.g. 100% Original Strength, 95-100% Original Strength, 75-95%, 50-75%, <50%). Replace the fixed badge width with dynamic sizing: measure text widths via pdf.stringWidth (Helvetica-Bold, size 10), add padding, clamp to min/max widths, and compute badge_gap so both badges stay centered. If badges overflow the content area, shrink the gap or scale badge widths to fit. Update label positions and roundedRect draws to use the computed cat_w/pr_w values and adjust minor layout constants for improved responsiveness and readability.e722874
-
Add page template system and UI
Introduce a reusable page template feature and related UX. Adds a new LayoutTemplatesPage for creating, editing and persisting custom page templates and a built-in template list (frontend/src/lib/pageTemplates.ts). Integrates templates into EditLayoutsPage (select defaults per-section, pick template per-page, apply templates when adding pages) and exposes a Templates navigation link. Adds page_template field and PageTemplateDefinition types to session types. Enhance report editor to support selecting/uploading a company logo for page templates and update photo-splitting logic to use primary (2) and continuation (6) photo limits. ImagePlacementPage now offers photo-layout presets and drag/drop application. UploadPage includes an Excel data template download (public/templates/repex-data-input-template.xlsx) and guidance. Server API/schemas/services updated to handle page_templates and related import/upload flows. Misc: various UI and state wiring to merge, persist and apply templates acr…25058c7
-
Cleanup
28157f5 -
PDF Template Update
802cdd2 -
Refresh sections UI and templates
Normalize sections/headings storage and guard autosave to prevent headings flicker. Improve Edit Layouts UX (collapsible sections, page counts, clearer controls). Align job sheet templates in viewer/editor/PDF and remove the redundant 'Document No' label. Add ImagePlacementPage scaffold.15a4294
-
Merge dev into main
45527f3 -
Paginate photo-only PDF pages by capacity
Compute the max number of images that can fit on a photo-only page based on available height and minimum cell size. Chunk overflow photos across additional continued pages instead of shrinking frames too far. Align spacing constants for photo grids so continued pages match the main template.4bed098 -
Fix PDF export to honor section page variants
<body above>1f0784e -
Multi-Image Web Fixed
ed33547 -
Pre Data Trans
bcb6323 -
Update pdf_reportlab.py
6df55ab -
PDF Export V1
8c60160 -
Website
eb56c6b
-
PDF Export
39f81e0 -
Imported Data Rework
303d067
-
Data Input Rework
41178f4 -
Legacy Files
9b70d7b -
Initial React Transcription
1643ce8 -
HTML Static Setup Web
51c39cf
-
Trim
minimal server + web starterbdfdb65 -
Init
73b6f92