Skip to content

feat(#645): PDF export via window.print() with styled print template - #908

Open
Shan7Usmani wants to merge 8 commits into
shouri123:mainfrom
Shan7Usmani:feat/645-pdf-export
Open

feat(#645): PDF export via window.print() with styled print template#908
Shan7Usmani wants to merge 8 commits into
shouri123:mainfrom
Shan7Usmani:feat/645-pdf-export

Conversation

@Shan7Usmani

Copy link
Copy Markdown

Description

Adds PDF export functionality to the meeting dashboard using window.print() with a clean, styled print template. Users can now export meeting summaries as PDF documents directly from the browser.

Changes

  • dashboard.ts: Added generatePrintHTML() function that creates a print-friendly HTML document with all meeting sections (attendees, summary, topics, decisions, action items, insights, timeline, transcript)
  • Added printPDF() function that opens a new window with the template and triggers window.print()
  • Wired the existing header PDF button to the new functionality
  • Print template includes @page CSS rules, clean typography, and section headers

Testing

  • TypeScript compiles clean (tsc --noEmit)
  • Existing tests pass

Fixes #645

Shan7Usmani and others added 8 commits June 24, 2026 20:02
…icipant names

- Fix initials derivation in createTranscriptEntryHTML to use escaped speaker
- Use sanitizeDataAttr for data-* attributes instead of escapeHtml
- Consolidate duplicate escapeHtml: deprecate sanitize.ts version, keep domHelpers.ts canonical
- Harden getEmptyStateHTML and truncatedNoticeHtml with escapeHtml for defense-in-depth
- Add domHelpers.test.ts with XSS, attribute-context, and regression tests
- Update sanitize.test.ts to import escapeHtml from canonical source
- Remove redundant DOM mock from sanitize.test.ts

Audit result: 0 active XSS vulnerabilities across all 47 innerHTML assignments.
@Shan7Usmani
Shan7Usmani requested a review from shouri123 as a code owner July 25, 2026 07:43
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Thank You for Contributing to Late-Meet

Please ensure that:

  • the issue was assigned to you before opening this PR
  • the PR references the related issue
  • your changes follow repository contribution guidelines
  • the project builds successfully before submission

Unassigned, duplicate, or low-quality PRs may be closed.

Thank you for contributing 💙

@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Shan7Usmani, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 58 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 77d02721-db90-4516-909e-87396420818a

📥 Commits

Reviewing files that changed from the base of the PR and between d216444 and 138c418.

📒 Files selected for processing (10)
  • README.md
  • src/background.ts
  • src/dashboard.ts
  • src/manifest.json
  • src/offscreen.ts
  • src/offscreenAudioGraph.ts
  • src/utils/domHelpers.test.ts
  • src/utils/sanitize.test.ts
  • src/utils/sanitize.ts
  • tests/offscreenAudioGraph.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added gssoc Official GSSoC contribution issue gssoc:approved GSSoC: PR approved and scored size/L type:design Type: Design / UI / UX (Optional bonus) type:feature Type: New Feature type:testing Type: Testing (Optional bonus) labels Jul 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thank you @Shan7Usmani for your contribution to Late-Meet!

✅ Verified: You are assigned to the linked issue #645.

Please review any automated suggestions or code review comments that may appear below! We will review your PR as soon as possible!


Please consider starring the repository ⭐ to show your support!

@github-actions github-actions Bot added type:docs Type: Documentation type:code Type: Code change type:test Type: Test files security-review Requires security review before merge labels Jul 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC: PR approved and scored gssoc Official GSSoC contribution issue security-review Requires security review before merge size/L type:code Type: Code change type:design Type: Design / UI / UX (Optional bonus) type:docs Type: Documentation type:feature Type: New Feature type:test Type: Test files type:testing Type: Testing (Optional bonus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Support export of meeting sessions as PDF with clean styling template

2 participants