Spaces:
Sleeping
Sleeping
Commit History
-
Drop the wheelchair emoji from the HF Space card
ClaudeUnverified signatureRemoved the 'emoji: ♿' line from the Space YAML frontmatter and renamed the title to 'Accessibility Toolkit' (matching the app's hero header).b970911 -
Add four accessibility checks/tools (now 14 tools)
ClaudeUnverified signature- check_slide_titles (pptx): reports slides with missing/empty or duplicated titles — key for screen-reader navigation. Read-only. - check_hyperlinks (pptx): flags non-descriptive link text ("click here", bare URLs, empty). Read-only. - check_font_size (pptx): reports runs below a minimum point size (default 18, configurable); runs with inherited sizes are counted as undetermined. Read-only. - set_pdf_title (pdf): sets the document title (/Info + XMP) and enables the DisplayDocTitle viewer preference so readers show the title, not the filename (PDF/UA). Produces a file. All wired into the registry/runners with structured reports; CLIs included. Smoke test bumped to 14 tools (7/7), acronym tests pass, all four verified on a purpose-built deck/PDF.e553423 -
Surface the built-in acronym list in the UI
ClaudeUnverified signatureThe "Keep acronyms" help text said a built-in list always applies, but there was no way to see it. Added GET /api/acronyms (served from acronyms.txt) and a lazy-loading "View the built-in acronym list" expander under the keep field that shows the preserved acronyms as chips. README links the source file too. Verified: endpoint returns the 72-entry sorted list, the option exposes the show_acronyms flag, smoke test 7/7.169d8a2 -
Add a per-file upload size limit
ClaudeUnverified signatureUploads are now capped per file (default 100 MB, configurable via the MAX_UPLOAD_MB env var) and enforced while streaming to disk, so an oversized file is rejected mid-transfer with HTTP 413 instead of landing in full. The work dir is cleaned up on rejection. /api/tools advertises the limit; the UI shows it and pre-checks file sizes before uploading. Verified: 413 on over-limit upload (with cleanup), normal uploads unaffected, smoke test 7/7.87a4624 -
UI niceties + accessibility polish
ClaudeUnverified signature- Drag-and-drop upload zone (keyboard-operable: the file input stays focusable and the zone shows a focus ring via :focus-within); selected files shown as chips with sizes. - Per-tool options remembered in localStorage and restored on tool select. - Accessibility: move focus to the results heading after a run, set aria-busy on the form while processing, associate the upload control with its label and help text, an aria-live region for selected files, and a prefers-reduced-motion guard. - README: list the new report_alt_text tool. Smoke test 7/7, acronym tests pass, JS syntax-checked, static assets serve.887cffc -
Add CI workflow
ClaudeUnverified signature.github/workflows/ci.yml runs on every push/PR: - tests job: installs deps + QPDF, runs the acronym regression tests, starts the app, and runs the HTTP smoke test against it. - docker job: runs scripts/docker_smoke.sh to build the image and smoke-test the container (covers the Dockerfile/HF image we can't build locally). README gets a CI status badge.d704a4f -
Add GitHub Action to sync to the Hugging Face Space
ClaudeUnverified signature.github/workflows/sync-to-hf.yml force-pushes the current ref to the Space's main branch on every push to main (and on manual dispatch), so the live app rebuilds automatically. Reads HF_TOKEN (secret) and HF_USERNAME / HF_SPACE (repo variables); fails early with a clear message if any are unset. README documents the one-time setup.5061d1f -
Make the app deployable as a Hugging Face Docker Space
ClaudeUnverified signature- README.md: add HF Space YAML frontmatter (sdk: docker, app_port: 8000) and a "Deploy to Hugging Face Spaces" section. - Dockerfile: run as non-root user 1000 (HF best practice), copy app with --chown, keep QPDF/libxml baked in; serves on port 8000. - .dockerignore: trim the runtime image (drop .git, tests, scripts, docs). Reuses the existing FastAPI backend + single-page UI unchanged. Smoke test still green (7/7) against a local server.36dd4d2 -
Add batch processing (multi-file upload -> zip)
ClaudeUnverified signature- /api/run/{tool} now accepts multiple files. One file returns that file directly (unchanged); multiple files are processed independently and zipped, with arcname de-duplication and a combined per-file report. Per-file errors are captured in the report so one bad file doesn't sink the batch. - Frontend: file input accepts multiple; status shows the file count. - smoke_test.sh: switch to the `files` field and add a batch (zip) check. Smoke test green (7/7), including batch.7246dc8 -
Wire all 9 tools into the FastAPI web app
ClaudeUnverified signature- runners.py: adapter layer that loads each CLI tool by file path (so tools/pptx never shadows the python-pptx package) and wraps its existing core function, capturing printed output as the report and normalising the report-only / dry-run / no-output cases. - registry.py: metadata + option schema + runner for each of the 9 tools. - main.py: POST /api/run/{tool} (multipart upload + typed options) and GET /api/result/{id} (download then clean up); /api/tools serves schemas. - frontend: tool picker + dynamic option fields, upload, report, download. - fix_slide_number_order: extract importable process_pptx() from main(). - replace_allcaps_pptx: fix double ._element deref in clear_font_allcaps (the script was previously untested and crashed on any run). All 9 tools verified end-to-end through the HTTP API with sample files.8bc7d4e -
Scaffold PPTX/PDF accessibility tools web app
ClaudeUnverified signatureLays out the structure from CLAUDE_CODE_BRIEF.md without implementing tool logic: empty FastAPI app with /api/health and /api/tools, static frontend stub, empty tool registry, Dockerfile + docker-compose with qpdf baked in for pikepdf. Existing CLI scripts moved into tools/.307de64