Skip to content

feat(ux): inline editing for text, dropdown, checkbox (#2274) - #2315

Open
alfonsodg wants to merge 1 commit into
OpenSignLabs:stagingfrom
alfonsodg:pr/2274-inline-editing
Open

alfonsodg wants to merge 1 commit into
OpenSignLabs:stagingfrom
alfonsodg:pr/2274-inline-editing

Conversation

@alfonsodg

Copy link
Copy Markdown

Problem

Field values could only be edited in a separate configuration window that
opened below the document. Filling a document therefore required a constant
switch between the document surface and the panel, which is slow and error
prone, and it is far from the industry-standard form-filling experience.

Affected files

  • apps/OpenSign/src/components/pdf/Placeholder.jsx
  • apps/OpenSign/src/components/pdf/PlaceholderType.jsx
  • apps/OpenSign/src/pages/PlaceHolderSign.jsx
  • README.md

Fix

Text, dropdown and checkbox fields are now edited directly on the document
surface:

  • In the authoring flow the value is edited in place and the widget value is
    persisted as you type.
  • In the signing flow the same inline editing applies.
  • The bottom configuration panel no longer opens when clicking a field; the
    gear icon still opens the settings for the selected field.
  • Fields keep a static height while typing, so they do not overlap each other.

Acceptance criteria

  • Text, dropdown and checkbox fields are editable directly on the document
  • The value is persisted while typing in the authoring flow
  • Clicking a field no longer opens the bottom configuration window
  • The settings panel is still reachable from the gear icon
  • Fields do not resize or overlap while typing

Copilot AI balanced review requested due to automatic review settings October 21, 2026 23:09
@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@alfonsodg is attempting to deploy a commit to the OpenSign's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Editing-path regressions, blocked settings access and bypassed validation affect core authoring and signing workflows.

7 open issues
What changed in this PR

Moves PDF field entry onto the document surface to reduce switching between fields and the bottom configuration panel during authoring and signing.

Changes:

  • Adds inline text, dropdown and checkbox controls with immediate value updates.
  • Changes field-click behavior to suppress value modals.
  • Disables automatic text-field height growth during inline editing.
File Description
apps/​OpenSign/​src/​components/​pdf/​PlaceholderType.jsx Adds inline controls, persistence handlers and an auto-height guard.
apps/​OpenSign/​src/​components/​pdf/​Placeholder.jsx Changes modal routing for signing and authoring field clicks.

Review effort: Balanced

Comment on lines +296 to +298
if (props?.isNeedSign) {
dispatch(setIsShowModal({ [props.pos.key]: true }));
}
(props.pos.options?.isReadOnly ||
props.data?.signerObjId !== props.signerObjId);
const canEditInline =
(props.isPlaceholder && !props.isNeedSign) ||
Comment on lines +47 to +49
const canEditInline =
(props.isPlaceholder && !props.isNeedSign) ||
(props.isNeedSign && iswidgetEnable && !isReadOnly);
Comment on lines +270 to +272
"email"
];
if (!textTypes.includes(props.pos.type)) {
Comment on lines +341 to +342
if (isChecked) {
updateSelectedCheckbox.push(ind);
Comment on lines +399 to +403
onChange={(e) => {
if (canEditInline) {
const val = e.target.value;
setwidgetValue(val);
if (props.setXyPosition) {
Comment on lines +883 to +885
onClick={(e) => {
if (canEditInline) e.stopPropagation();
}}
@alfonsodg alfonsodg changed the title feat(ux): inline field editing for text, dropdown and checkbox widgets (#2274) feat(ux): inline editing for text, dropdown, checkbox (#2274) Oct 22, 2026
@alfonsodg
alfonsodg force-pushed the pr/2274-inline-editing branch from 04e53d2 to 180716e Compare October 22, 2026 17:08

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants