Conversation
Rebase brought in the gobl v0.502.2 upgrade, which restructured several APIs used by the WIP convertor: - github.com/invopop/gobl/pkg/api was removed upstream; use the repo's own api.WriteError instead. - Upgrade converters to versions compatible with v0.502.2: gobl.cii v0.39.0, gobl.ubl v0.56.0, gobl.html v0.101.0. - Temporarily disable FatturaPA: gobl.fatturapa v0.69.0 still calls the removed xmldsig.WithXAdES and conflicts with gobl.ubl's xmldsig v0.14.0. Import, format entry, and test case are commented out with TODOs to re-enable after a fatturapa release migrated to WithXAdESConfig. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a format convertor to the browser editor: the viewer pane can render a GOBL envelope as UBL, CII, or an HTML preview, backed by new
/_editor/convertand/_editor/formatsroutes plus a curated set of example invoices.Contents
editor/convert.go— output formats and/_editor/convert//_editor/formatshandlers (UBL EN 16931 / Peppol / XRechnung / Peppol FR CIUS, CII / Factur-X / XRechnung, HTML preview).editor/examples/— curated starter invoices per country/addon (de, es, fr, gb, it, nl, pt, us, and profile variants).editor/geo.go— country helpers.editor.templ,editor.js,editor-data.js, CSS).Notes
This branch was rebased onto
main(gobl v0.502.2) and adapted to the restructured APIs:gobl/pkg/apiremoved upstream → uses the repo's ownapi.WriteError.gobl.fatturapa v0.69.0 still calls the removed
xmldsig.WithXAdESand conflicts with gobl.ubl's xmldsig v0.14.0. The import, format entry, and test case are commented out with TODOs; re-enable once a gobl.fatturapa release migrated toWithXAdESConfigis available.Still WIP — draft.
🤖 Generated with Claude Code