Repository navigation
Conversation
Introduce createFormEditor on top of the LibreSign#84 field/widget model, with optional overlay sync, selection, interactive placement, and silent page restore via moveObjectToPage. Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
Add FORM_EDITING.md and cross-links covering the public editor session, overlay adapter contract, and coexistence with generic overlays. Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
lfals
force-pushed
the
feat/85-generic-form-field-editing
branch
from
November 9, 2026 13:44
4cea8d0 to
3fe527a
Compare
Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
This branch has not been deployed
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.
Resolves: #85
Stacked on: #164 (
feat/84-form-field-widget-model)📝 Summary
Builds the editor-level foundation for form fields on top of the #84 field/widget model. Adds a plain TypeScript editing session that creates/places/selects/updates logical fields and visual widgets, optionally syncing to the existing overlay API without depending on Vue internals.
createFormEditorPDFFormModel, selection, placement lifecycle, field/widget updatescreateFormEditorOverlayAdapterPDFElementsPublicApiwith id recovery and silent spill restorePDFElements.moveObjectToPagepdf-elements:delete-objectSupports one logical field ↔ N widgets, shared vs widget-specific properties, interactive placement via
adding-ended, and model/overlay rollback when geometry updates are rejected.Concrete per-type UX (text/checkbox/radio/dropdown), AcroForm parse/write, signing and LibreSign/Nextcloud workflow concepts remain outside scope.
Also adds:
docs/FORM_EDITING.mdplus API/README cross-links🧪 How to test
npm run test -- tests/utils/formEditing.spec.ts tests/components/formEditing.overlay.spec.tsdelete-object, and duplicateelementIdrejection.npm run test npm run build npm run validate:distValidation evidence
actfor Node CI and Tests workflows⚙️ Public API changes
createFormEditor/createFormEditorOverlayAdapterexported publiclymoveObjectToPageadded for silent page relocation🚧 Tasks
✅ Checklist
🤖 AI (if applicable)