Skip to content

Comments

Implement PDF Export Logic#14

Draft
google-labs-jules[bot] wants to merge 53 commits intomainfrom
feature/implement-pdf-export-5197928371512491579
Draft

Implement PDF Export Logic#14
google-labs-jules[bot] wants to merge 53 commits intomainfrom
feature/implement-pdf-export-5197928371512491579

Conversation

@google-labs-jules
Copy link
Contributor

Implemented the core PDF export functionality:

  • Added requests to requirements.txt.
  • Enhanced src/papyrus/utils/helpers.py with:
    • fetch_url (using requests)
    • extract_readable_content (using readability-lxml)
    • wrap_text_in_html
    • generate_pdf_from_html (using weasyprint)
  • Updated src/papyrus/core/app.py to:
    • Use ExportWorker (QThread) for background PDF generation.
    • Connect the "Export PDF" button to the worker.
    • Handle success/error signals.
  • Added tests/test_core_logic.py to test the new helpers.

PR created automatically by Jules for task 5197928371512491579 started by @RazorBackRoar

@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

RazorBackRoar and others added 28 commits February 17, 2026 00:46
Co-authored-by: RazorBackRoar <184320956+RazorBackRoar@users.noreply.github.com>
…pendencies

Co-authored-by: RazorBackRoar <184320956+RazorBackRoar@users.noreply.github.com>
Co-authored-by: RazorBackRoar <184320956+RazorBackRoar@users.noreply.github.com>
deleted .kiro/specs/ui-redesign/requirements.md
deleted .kiro/specs/ui-redesign/tasks.md
- Fix Qt6 enum references (AlignTop, Key_Return, Key_Enter)
- Fix method signatures for keyPressEvent and paintEvent
- Add safe method calling for open_in_browser
- Fix return type annotation in test GUI
- All type checks now pass
- All tests continue to pass
modified:   src/papyrus/utils/helpers.py
modified:   tests/test_core_logic.py
RazorBackRoar and others added 24 commits February 18, 2026 07:15
Co-authored-by: RazorBackRoar <184320956+RazorBackRoar@users.noreply.github.com>
Adopt centralized Ruff config via Apps/ruff.toml, add app-local extend file, add CI guard against [tool.ruff] in pyproject, and run ruff/ty compliance updates needed for Python 3.13 strict gates.
Fetch shared Ruff config from razorcore so app-local ruff.toml extend=../ruff.toml resolves in standalone GitHub Actions checkouts.
Materialize ../ruff.toml from repo-local ruff.ci.toml so app-local ruff.toml extends resolve in standalone CI without cross-repo fetches.
Create the expected 3.13 site-packages paths before ty check so strict type checking works on GitHub macOS runners with workspace-pinned ty config.
Include fontconfig library and pkg-config directories so WeasyPrint can resolve libfontconfig-1 during pytest collection on macOS runners.
Co-authored-by: RazorBackRoar <184320956+RazorBackRoar@users.noreply.github.com>
Co-authored-by: RazorBackRoar <184320956+RazorBackRoar@users.noreply.github.com>
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.

1 participant