Skip to content

Solves problems in "feat(pdf): add optional tile borders to PDF export (#1954)" PR#2079

Open
magush27 wants to merge 8 commits intocboard-org:masterfrom
magush27:feature/pdf-tile-borders
Open

Solves problems in "feat(pdf): add optional tile borders to PDF export (#1954)" PR#2079
magush27 wants to merge 8 commits intocboard-org:masterfrom
magush27:feature/pdf-tile-borders

Conversation

@magush27
Copy link
Collaborator

This PR fixes several issues found in #1960 that prevented the tile borders feature from working correctly:

Things fixed

  1. CHANGELOG.md - Removed the changelog entry as asked by one of the mantainers.
  2. Export.component.js - Fixed incorrect method name reference
  3. Export.helpers.js - Removed broken code block, fixed parameter passing throughout the call chain and implemented actual border rendering logic
  4. Export.messages.js - Added proper internationalization
  5. Export.component.js - Fixed UI layout overlap

Testing
To test:

  1. Navigate to Settings > Export
  2. Select a board
  3. Toggle "Show borders around tiles in PDF" checkbox
  4. Choose PDF export
  5. Export with checkbox unchecked, tiles should have subtle internal borders (default)
  6. Export with checkbox checked, tiles should have visible black borders around them

Fixes #1960

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR repairs and completes the “optional tile borders in PDF export” feature by wiring the UI option through the export pipeline, adding i18n for the new label, and fixing related export/PDF rendering logic.

Changes:

  • Add an “Show borders around tiles in PDF” checkbox and i18n message for it.
  • Thread a showTileBorders flag through the export container/helpers into PDF generation.
  • Adjust PDF tile rendering to apply per-tile borders when the flag is enabled.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/components/Settings/Export/Export.messages.js Adds i18n string for the new PDF tile border option (plus minor formatting).
src/components/Settings/Export/Export.helpers.js Adds showTileBorders plumbing and applies border/borderColor on generated PDF table cells.
src/components/Settings/Export/Export.container.js Adds showTileBorders parameter to export handler and passes it into export helpers.
src/components/Settings/Export/Export.component.js Adds the checkbox UI and state handling for the showTileBorders setting.

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.

3 participants