Codex Report - 2025-09-21T20:36:24Z
Summary
Refactored the RDF export plugin to reuse the core
DiagramFormatPanelhelpers when inserting the CSV path property.Introduced localized labels for the new “Preamble” section and CSV field without trailing punctuation.
Rebuilt the published
rdfexport.jsbundle and expanded the Bun test harness to validate layout, resources, and persistence.
Implementation Notes
Hooked the plugin into
DiagramFormatPanel.prototype.addOptions, delegating tocreateTitle/createOptionwhen available so the CSV field inherits native spacing, hidden checkboxes, and alignment.Added flexible DOM traversal guards so the customization works with both real DOM elements and the lightweight
ElementStubused in tests.Registered resource bundle entries via
mxResources.parseusing newline terminators to avoid stray semicolons in resolved labels.Styled the generated label/input pair with flexbox (
flex-wrap: nowrap,flexshorthand) to keep the textbox aligned with existing option rows.
Testing
bun installbun build src/rdfexport.ts --minify --outfile=../rdfexport.jsbun test src/main/webapp/plugins/rdfexport/tests/rdfexport.test.ts
Follow-ups
Consider extracting the DOM child collection helper into a shared utility if additional format panel customizations are needed in future plugins.
Monitor for translation updates so that localized bundles provide friendly strings for the new “Preamble” section.