Skip to content

Conversation

@Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Oct 28, 2025

Purpose

Make ODT export available, including support for necessary frontend blocks and features.

issue 487

exportODT.mov

Proposal

  • Enable ODT export feature
  • Implement callout, upload loader, image, and interlinking support for export
  • Add e2e tests to validate ODT export and interlinking

@Ovgodd Ovgodd requested a review from AntoLC October 28, 2025 07:43
@Ovgodd Ovgodd self-assigned this Oct 28, 2025
@Ovgodd Ovgodd added frontend feature add a new feature labels Oct 28, 2025
@Ovgodd Ovgodd changed the title (frontend) Export docs on ODT ✨(frontend) Export docs on ODT Oct 28, 2025
@Ovgodd Ovgodd changed the title ✨(frontend) Export docs on ODT ✨(frontend) enable ODT export for documents Oct 28, 2025
@Ovgodd Ovgodd force-pushed the feat/export-odf branch 2 times, most recently from 47a5216 to 5285d3b Compare October 28, 2025 07:52
@Ovgodd Ovgodd marked this pull request as ready for review October 28, 2025 07:53
@Ovgodd Ovgodd force-pushed the feat/export-odf branch 2 times, most recently from 59bacbd to 7cac499 Compare October 28, 2025 08:39
@github-actions
Copy link

github-actions bot commented Oct 28, 2025

Size Change: +388 kB (+10.56%) ⚠️

Total Size: 4.07 MB

Filename Size Change
apps/impress/out/_next/static/3a1e778f/_buildManifest.js 0 B -883 B (removed) 🏆
apps/impress/out/_next/static/chunks/6164.js 0 B -648 kB (removed) 🏆
apps/impress/out/_next/static/chunks/8495.js 57.7 kB +660 B (+1.16%)
apps/impress/out/_next/static/chunks/framework.js 116 kB +56.4 kB (+94.55%) 🆘
apps/impress/out/_next/static/chunks/6052.js 72.5 kB +72.5 kB (new file) 🆕
apps/impress/out/_next/static/chunks/9390.js 702 kB +702 kB (new file) 🆕
apps/impress/out/_next/static/chunks/e194128b.js 204 kB +204 kB (new file) 🆕
apps/impress/out/_next/static/f2fd4e5b/_buildManifest.js 883 B +883 B (new file) 🆕

compressed-size-action

@Ovgodd Ovgodd added the preview label Oct 29, 2025
@github-actions
Copy link

🚀 Preview will be available at https://1524-docs.ppr-docs.beta.numerique.gouv.fr/

You can use the existing account with these credentials:

  • username: docs
  • password: docs

You can also create a new account if you want to.

Once this Pull Request is merged, the preview will be destroyed.

Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

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

Seems to work well, bravo !

Comment on lines 74 to 88
{
'text:style-name':
block.props.textAlignment === 'center'
? 'center'
: block.props.textAlignment === 'right'
? 'right'
: 'left',
},
React.createElement(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Images seems everytime centered, same with svg btw.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch !! fixed in a fixup !

@AntoLC AntoLC linked an issue Nov 6, 2025 that may be closed by this pull request
@Ovgodd Ovgodd requested a review from AntoLC November 12, 2025 12:22
CHANGELOG.md Outdated
- ✨(frontend) create skeleton component for DocEditor #1491
- ✨(frontend) add an EmojiPicker in the document tree and title #1381
- ✨(frontend) ajustable left panel #1456
- ✨(frontend) enable ODT export for documents #1524
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should be under "Unreleased".

provides ODT export with support for callout, upload, interlinking and tests

Signed-off-by: Cyril <c.gromoff@gmail.com>

✨(frontend) add image and interlinking support for odt export

Added image mapping with SVG conversion and clickable document links.

Signed-off-by: Cyril <c.gromoff@gmail.com>

✅(e2e) add e2e tests for odt export and interlinking features

covers odt document export and cross-section interlinking use cases

Signed-off-by: Cyril <c.gromoff@gmail.com>

✨(odt) add generic helper and style callout block for odt export

create odtRegisterParagraphStyleForBlock and apply background/padding styles

Signed-off-by: Cyril <c.gromoff@gmail.com>
@Ovgodd Ovgodd merged commit 3e410e3 into main Nov 13, 2025
21 of 22 checks passed
@Ovgodd Ovgodd deleted the feat/export-odf branch November 13, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add export to standard OpenDocument format (ODF)

3 participants