Skip to content

chore: add print stylesheet for ApiDetailPage (#173)#318

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
ironhood:task/print-stylesheet
Jun 29, 2026
Merged

chore: add print stylesheet for ApiDetailPage (#173)#318
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
ironhood:task/print-stylesheet

Conversation

@ironhood

Copy link
Copy Markdown
Contributor

Summary

  • Adds a docs-grade @media print block at the end of src/index.css for ApiDetailPage printouts
  • Introduces a .no-print utility and applies it to global nav, footer, deposit CTAs, in-page tabs, sidebar, and interactive controls
  • Forces black-on-white print output, expands code samples without clipping, and appends full URLs after inline links (excluding # and javascript: hrefs)
  • Adds CSS contract tests (src/print.test.ts) and a manual print-preview checklist

Motivation

Developers sometimes print ApiDetailPage as a quick API reference. The app shell, dark theme, and interactive chrome were bleeding into print output.

Test plan

  • npm test -- src/print.test.ts passes
  • Chrome Print Preview on /details/weather-001: no nav/tabs/sidebar/CTA; white background; readable text
  • Firefox Print Preview: same checks
  • Inline links (e.g. provider URL) show Link text (https://…) after anchor text
  • Long code snippets wrap; no horizontal page overflow in code blocks
  • Screen content unchanged when not printing

Closes #173

Made with Cursor

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@ironhood Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me greatest0fallt1me merged commit 79ca28c into CalloraOrg:main Jun 29, 2026
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.

Add print stylesheet for ApiDetailPage (docs-grade printout)

2 participants