Skip to content

feat(record): printable export options for PDF and Word - #4354

Open
peroza wants to merge 15 commits into
masterfrom
feat/record-printable-export-options
Open

feat(record): printable export options for PDF and Word#4354
peroza wants to merge 15 commits into
masterfrom
feat/record-printable-export-options

Conversation

@peroza

@peroza peroza commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a shared record printable-export modal (scope, orientation, PDF/Word) opened from a single Export Document button in data entry.
  • Passes exportScope, entity UUIDs, and orientation through the record PDF/DOCX API.
  • Adds designer Print tab for per-entity printOrientation.
  • Includes design/plan docs for the feature.

Depends on

Note: After arena-server is merged and published, bump @openforis/arena-server in this PR (currently still ^1.3.27, same as master). Until then, full export options need a local linked arena-server.

Test plan

  • Experimental features on → Export Document opens the modal
  • Current page only: document/file title uses entity label; own-page children excluded
  • Full survey: respects entity Print orientation (mixed portrait/landscape after server publish)
  • PDF and Word both work from the modal
  • Ambiguous nested page instance disables download with hint
  • Designer Print tab saves/clears orientation (publish survey before export picks it up)
  • No portal: / symlink changes in package.json / yarn.lock

peroza and others added 13 commits August 5, 2026 22:10
Capture PDF/DOCX modal, current-page scope, and entity Print props
(orientation refined A) for Trello Sg5rV9qc.
Align the design with recent record-entry conventions: new files
TypeScript-only, no new SCSS, theme tokens / sx for layout.
Task-by-task plan across arena-core, arena-server, and Arena UI/API.
Align current-page entity resolution with form navigation via getPageEntity
and hasUnresolvedMultipleAncestor instead of inline pagesUuidMap guessing.
Reject current-page exports when entityNodeUuid does not belong to entityDefUuid, and add printProps i18n for es/fr/pt/ru/mn Print tab.
Open the shared printable export modal from a single ButtonDownload, matching the Records export pattern.
@mergify

mergify Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@sonarqubecloud

Copy link
Copy Markdown

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