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
installCsvPathPropertyhook to assemble a dedicatedgeFormatSectionnode, assign it thedata-rdfexport-preamble-sectionmarker, and insert it ahead of existing FormatPanel sections.Reused
createTitle/createOptionhelpers 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.jsbundle so runtime environments pick up the revised logic and attribute markers.
Testing
bun installwithinsrc/main/webapp/plugins/rdfexportbun build src/rdfexport.ts --minify --outfile=../rdfexport.jsbun test src/main/webapp/plugins/rdfexport/tests/rdfexport.test.ts
Notes
Extended the ElementStub utility with
insertBefore/firstChildsemantics to emulate the DOM APIs used during section insertion.Verified the compiled bundle contains the new data attribute flag to guard against regression.