Skip to content

revert: remove server-side PDF table export#239

Merged
felixevers merged 1 commit into
mainfrom
claude/remove-pdf-export
Jun 3, 2026
Merged

revert: remove server-side PDF table export#239
felixevers merged 1 commit into
mainfrom
claude/remove-pdf-export

Conversation

@felixevers
Copy link
Copy Markdown
Member

What

Removes the table Print button and the backend PDF rendering it relied on, plus all dependencies introduced for the feature (originally added in #232 / #235).

The browser's native print view (Ctrl+P) is a separate feature and is left untouched.

Changes

Frontend

  • Delete TableExportButton and the tableExport util (downloadTablePdf etc.).
  • Remove the button from the task and patient table toolbars.
  • Remove the now-unused print translation key from every locale (.arb + generated translations.ts).

Backend

  • Delete the POST /export/table.pdf router and its unit tests.
  • Stop registering the export router in main.py.
  • Drop weasyprint and jinja2 from requirements.txt.
  • Drop the Pango/fontconfig/font runtime libraries from the backend Dockerfile.

Proxy

  • Stop forwarding /export/* to the backend (revert the regex to ^/(graphql|callback)$) and update the proxy README.

Verification

  • Translation key check passes (check-translation-keys.mjs): all used keys exist in every locale.
  • All .arb files remain valid JSON.
  • backend/main.py compiles; no remaining references to the export router.
  • No remaining references to TableExportButton / tableExport in the web app.

400 deletions; the only insertions are the small router-registration / import tidy-ups.

https://claude.ai/code/session_01Pz8wqwQhDmEKGpHayg8CPs


Generated by Claude Code

Removes the table Print button and the backend PDF rendering it relied on,
along with the dependencies introduced for it.

Frontend:
- Delete TableExportButton and the tableExport util.
- Drop the button from the task and patient table toolbars.
- Remove the now-unused 'print' translation key from every locale.

Backend:
- Delete the /export/table.pdf router and its unit tests.
- Stop registering the export router in main.py.
- Drop weasyprint and jinja2 from requirements and the Pango/fontconfig/font
  runtime libraries from the Dockerfile.

Proxy:
- Stop forwarding /export/* to the backend.

The browser's native print view (Ctrl+P) is unaffected.
@felixevers felixevers merged commit 34a189d into main Jun 3, 2026
19 checks passed
@felixevers felixevers deleted the claude/remove-pdf-export branch June 3, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants