Codex Engineering Report — 2025-09-22 16:30 UTC

Objective

Integrate the RDF export plugin’s Preamble controls into the Diagram format panel so they render as a first-class section ahead of the default “View” group, align the CSV/Base URI inputs with native styling, and synchronize automated tests with the new attachment flag.

Key Changes

  • Refactored the installCsvPathProperty hook to assemble a dedicated geFormatSection node, assign it the data-rdfexport-preamble-section marker, and insert it ahead of existing FormatPanel sections.

  • Reused createTitle/createOption helpers while re-styling their outputs to hide the stub checkbox, convert labels to <label> elements, and stretch the text fields with native spacing (including the 6px trailing margin on the CSV input).

  • Ensured the Base URI/CSV fields and the Edit Preamble button append to the new section while preserving the model listeners that keep inputs synchronized with document attributes.

  • Added DOM fallbacks so tests running with minimal stubs still mount the section even when no parent container is available.

  • Updated tests to understand the new section attribute, assert placement before the legacy “View” group, validate style adjustments, and target __rdfexportPreambleAttached.

  • Regenerated the compiled plugins/rdfexport.js bundle so runtime environments pick up the revised logic and attribute markers.

Testing

  • bun install within src/main/webapp/plugins/rdfexport

  • bun build src/rdfexport.ts --minify --outfile=../rdfexport.js

  • bun test src/main/webapp/plugins/rdfexport/tests/rdfexport.test.ts

Notes

  • Extended the ElementStub utility with insertBefore/firstChild semantics to emulate the DOM APIs used during section insertion.

  • Verified the compiled bundle contains the new data attribute flag to guard against regression.