Repository navigation
Conversation
lfals
force-pushed
the
feat/85-generic-form-field-editing
branch
from
November 9, 2026 13:44
4cea8d0 to
3fe527a
Compare
lfals
force-pushed
the
feat/85-generic-form-field-editing
branch
2 times, most recently
from
November 23, 2026 23:37
8fa835d to
bad99eb
Compare
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 <principal@felps.zip>
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 <principal@felps.zip>
Signed-off-by: Luis Amorim <principal@felps.zip>
…hots isInternalMutation() only exists on the adapter returned by createFormEditorOverlayAdapter, not on PDFElements. Show the adapter in the delete-object example so hosts actually skip rollback deletes. Add editor-level regression tests: getSnapshot rejects values JSON cannot represent losslessly, and bridge extras cannot override the widget-owned overlay id or geometry. Signed-off-by: Luis Amorim <principal@felps.zip>
lfals
force-pushed
the
feat/85-generic-form-field-editing
branch
from
November 25, 2026 21:33
bad99eb to
1045c3f
Compare
lfals
marked this pull request as ready for review
November 25, 2026 21:35
…eField
- updateWidget compared patch.docIndex with the raw widget.docIndex, so
{ docIndex: 0 } threw for widgets that omit docIndex (document 0).
Compare against resolveDocIndex(widget) instead.
- removeField snapshotted its widgets and then threw "Form widget not
found" when a host delete-object handler re-entered removeField and
already removed the remaining widgets. Skip widgets that are gone.
Signed-off-by: Luis Amorim <principal@felps.zip>
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)