Skip to content

feat: Add "Print Profile / Export to PDF" action on Public Profile Page#2744

Open
Doremon-tech-svg wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
Doremon-tech-svg:feat/2604-print-profile-export-pdf
Open

feat: Add "Print Profile / Export to PDF" action on Public Profile Page#2744
Doremon-tech-svg wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
Doremon-tech-svg:feat/2604-print-profile-export-pdf

Conversation

@Doremon-tech-svg

Copy link
Copy Markdown
Contributor

Closes #2604

What changed

  • Added a Print Profile / Export to PDF button to the /u/[username] public profile header
  • Button calls window.print() — zero external dependencies
  • Button carries print:hidden so it never appears in the printed PDF
  • Added @media print CSS rules in globals.css to:
    • Hide nav, footer, and all interactive elements
    • Remove card shadows for a clean paper layout
    • Prevent cards from splitting across pages
    • Set 1.5cm page margins

Acceptance criteria checklist

  • No external dependencies — uses native browser window.print()
  • Printed output is free from buttons and navigation
  • Works in Chrome, Firefox, and Safari print dialogs

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:design GSSoC type bonus: UI/design (+10 pts) type:feature GSSoC type bonus: new feature labels Jun 23, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Umbrella-io — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@github-actions github-actions Bot added type:bug GSSoC type bonus: bug fix type:performance GSSoC type bonus: performance (+15 pts) labels Jun 23, 2026
@Priyanshu-byte-coder

Copy link
Copy Markdown
Owner

Thanks for the contribution! We are currently in a code cleanup sprint and not accepting new features. Please see the discussion for details: #2651

This PR will be revisited once the sprint ends. In the meantime, contributions to testing, refactoring, bug fixes, or documentation are welcome.

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

Labels

gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:design GSSoC type bonus: UI/design (+10 pts) type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Add "Print Profile / Export to PDF" action on Public Profile Page

2 participants