Spaces:
Sleeping
Sleeping
Commit History
-
Make findings tables easier to interpret
ClaudeUnverified signature- Status badges: 'status' cells render as colored pills — green (OK, decorative), amber (weak, vague, bare URL), red (missing, duplicate, empty) — so problems jump out of long reports. Terse codes get human labels (URL_AS_TEXT -> 'bare URL'). - Friendly XML-part names: 'file' cells show 'Layout 5' / 'Master 1' / 'Slide 3' / 'Presentation' instead of raw zip paths; full path stays in a tooltip. - Row tinting: the PPTX lang runner marks non-target-language rows with _flag, and the UI tints them amber — the rows that will actually change are instantly visible. Smoke test 7/7; flag and statuses verified.84762f6 -
Remove the 'View this Space on Hugging Face' link
ClaudeUnverified signatureDropped the link below the tool picker and its now-unused CSS classes (.panel-footer, .external-link).f34ade1 -
Simplify the file chip: one chip, 'Reusing' only after a run
ClaudeUnverified signatureThe upload area showed two redundant chips ('Reusing X' + 'X (size)'). Now a single chip shows 'name (size)' on first upload, and switches to 'Reusing: name (size)' (accent-styled) only after a run, when carry-over is actually in play. Batches collapse to 'N files (total size)'. The flag resets on a new selection/drop, on Clear, and when switching file types.51a5ba2 -
Accessibility polish: 5 markup-level fixes
ClaudeUnverified signature- Update stale <title> to 'Accessibility Toolkit'. - Add a 'Skip to main content' link (hidden until focused) and id='main' on <main> for landmark navigation. - External HF link: hide the decorative arrow from screen readers and add a visually-hidden '(opens in new tab)' so the new-window behaviour is announced. - Move the file-chip aria-live region off the <ul> (which re-announced the whole list on every change) onto a dedicated visually-hidden #file-status paragraph that gets a concise, change-focused message. - Findings tables now carry a visually-hidden <caption> (the result summary) and <th scope='col'>, improving screen-reader table navigation. Smoke test 7/7.65f0e13
-
Add 'View this Space on Hugging Face' link next to the tool picker
ClaudeUnverified signatureA clickable link inside a <select>'s options isn't possible in HTML, so the link sits just below the dropdown's description in the same panel. Opens the Space in a new tab with rel=noopener.5952490
-
Suggest other audits after an audit result
ClaudeUnverified signatureThe four read-only PPTX checks (check_slide_titles, check_hyperlinks, check_font_size, report_alt_text) now carry an 'audit' flag (exposed via /api/tools). After an audit result renders, a 'Run another audit on this file:' chip row appears listing the other audits — one click switches the tool and submits, so stacking audits on a single deck is one-click discoverable rather than a hidden feature of the kept-upload behavior.c4f6326 -
Keep the uploaded file across tool changes
ClaudeUnverified signatureAfter a run, the file stays in the form so you can pick another tool and run again without re-uploading — useful for stacking the read-only audits (titles, alt text, links, font size) on one deck. The file is cleared only when switching between PPTX and PDF tools (different accept types). A 'Reusing <name>' chip and a small 'Clear' button make the carry-over visible and reversible.3418807 -
Fix doubled focus ring on the tool select
ClaudeUnverified signatureThe global :focus-visible outline (with a 2px offset gap) was applying to form controls on top of their own focus style, producing two concentric rings. Scope the outline ring to buttons/links/summary; inputs and selects now show a single gap-free box-shadow ring (also handled for :focus-visible).b78ae72 -
Remove the wheelchair icon from the hero header
ClaudeUnverified signature15e9087 -
Refresh the UI styling
ClaudeUnverified signature- Gradient hero header with a badge; renamed the page to "Accessibility Toolkit". - Card surfaces with soft shadows and rounded corners; refined typography. - Indigo/violet accent across buttons (gradient + hover lift), links, focus rings, chips, and table header/row hover. - Nicer form controls (custom select caret, consistent focus rings), a softer dropzone with hover/drag states, and pill-style file chips. - Full dark-mode support via prefers-color-scheme (CSS variables) and a prefers-reduced-motion guard. All class names/IDs preserved, so the frontend JS is unchanged; pages serve and smoke test 7/7.c57a9b4 -
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 -
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 -
Structured reports instead of scraped stdout
ClaudeUnverified signatureRunners now return a structured RunResult (summary, counts, findings table rows + columns, and a collapsible raw_log) rather than a captured-text blob. The structured data comes from each tool's return value or an additive, non-breaking hook (an optional changes list, or a return dict where the function previously returned None) — the CLIs are byte-for-byte unchanged. - tools: convert_caps/replace_allcaps/remove_footer_text expose before->after changes; fix_pptx_lang_tags/fix_pdf_lang_tags return their findings counters; fix_math_italics returns structured replacements; fix_slide_number_order lists the slides it reordered. - API: /api/run/{tool} now returns one structured block per file (unifying single + batch); per-file errors are reported in-band rather than aborting. - frontend: renders summary, count chips, a findings table, and a "Show log" details pane per result. Verified: structured output end-to-end, all CLIs unchanged, acronym tests and smoke test (7/7) green.154b1f0 -
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