Skip to content

Optimising for mobile - #21

Merged
ElTimuro merged 3 commits into
documenso:mainfrom
Esther-Lita:DOC-185-buttons-alignment
Mar 21, 2023
Merged

ElTimuro merged 3 commits into
documenso:mainfrom
Esther-Lita:DOC-185-buttons-alignment

Conversation

@Esther-Lita

@Esther-Lita Esther-Lita commented Mar 21, 2023 •

Copy link
Copy Markdown
Contributor

fixes #18

Waiting for review

@ElTimuro ElTimuro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems to be working, but pls fix broken css

@ElTimuro
ElTimuro merged commit 2d69783 into documenso:main Mar 21, 2023
Dun-sin pushed a commit to Dun-sin/documenso that referenced this pull request Dec 24, 2023
…alidation

Doc-79-recipient-form-validation
Abzaek added a commit to Abzaek/documenso that referenced this pull request Jun 24, 2026
Apply fixes for the still-present bugs from the Faultmark scan:

- Bug #7: document-edit-form localStorage cleanup was skipping every other
  key because it removed items while forward-iterating the index. Collect
  keys first, then remove.
- Bug documenso#8: envelope signer page renderer was destroying the loading spinner
  in .finally() while the SIGNATURE field's re-auth dialog was still open
  (executeActionAuthProcedure resolves synchronously after opening). Move
  spinner teardown into onReauthFormSubmit and the non-auth branch so it
  only runs after the sign actually completes.
- Bug #9: security.sessions columns useMemo had empty deps but captured
  t, session, and refetch. Add them to the dependency array.
- Bug documenso#10: replace module-level UAParser instance (mutated across renders)
  with a per-cell `new UAParser(userAgent).getResult()` call.
- Bug documenso#11: sanitize site-banner HTML with isomorphic-dompurify before
  passing to dangerouslySetInnerHTML.
- Bug documenso#12/documenso#13: include signingOrder in the useCallback dep arrays for
  handleSigningOrderChange and onDragEnd so they don't close over a stale
  ordering mode.
- Bug documenso#14: field duplication now uses lastActiveField.signerEmail and
  recipientId unconditionally instead of preferring the currently selected
  recipient — duplicates were being re-assigned away from the field owner.
- Bug documenso#15: Math.max($page.offsetHeight, DEFAULT_HEIGHT_PX) and matching
  width; the previous single-arg Math.max calls dropped the page-size
  source entirely.
- Bug documenso#18: AppCommandMenu toggleOpen now computes newOpen once instead of
  passing the stale outer-scope isOpen to onOpenChange.
- Bug #19: goToDocuments/goToTemplates guard for empty link arrays so the
  shortcuts no longer throw when teamUrl is null.
- Bug documenso#20: public-profile-template-manage-dialog step calculation reads
  the freshly-derived newSelectedId rather than the (still-stale)
  selectedTemplateId state.
- Bug documenso#21: editor-field-radio-form computes the full final state and
  writes once instead of two sequential setValue calls that could briefly
  leave the previous option still checked.
- Bug documenso#22: team-delete-dialog forwards transferTeamId only when > 0, so
  the "Don't transfer" sentinel value of -1 is converted to undefined.
- Bug documenso#23: document-signing-number-field auto-sign effect adds onSign to
  its dep array so the captured closure stays in sync with the form state.
- Bug documenso#24: org teams settings effect now early-returns when the rebuilt
  URLSearchParams matches the current one, breaking the
  setSearchParams → searchParams change → effect re-runs loop.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
prom-star pushed a commit to prom-star/documenso that referenced this pull request Jul 22, 2026
…o#21)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
prom-star pushed a commit to prom-star/documenso that referenced this pull request Jul 22, 2026
…umenso#23)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* feat(signing): show enter text/number on recipient field placeholders

Hide editor-defined labels in the recipient signing UI for text and
number fields while keeping stored field metadata unchanged.

Co-authored-by: Cursor <[email protected]>

* fix(signing): preserve prefilled text and number values on recipient edit

Prefilled fields were cleared when recipients clicked to edit because inserted
fields returned a null value. Open the dialog with the existing value instead.

Co-authored-by: Cursor <[email protected]>

* fix(signing): display editor-prefilled text and number on recipient canvas

Show fieldMeta prefilled values on the signing surface instead of the
generic enter prompt when the field has not been inserted yet.

Co-authored-by: Cursor <[email protected]>

* fix(signing): narrow field meta type for prefilled field rendering

Fix TypeScript build errors by narrowing text/number fieldMeta before
accessing alignment properties on the recipient signing surface.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add pre-deploy checks and railway deploy gate

Add typecheck, lint, unit tests, and a deploy gate job so Railway can
wait for CI before deploying. Docker build runs in parallel after lint.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run pre-deploy checks on development branch

Extend CI triggers and the Railway deploy gate to main and development,
including pull requests targeting development.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run e2e tests on development branch

Run Playwright tests on push and pull requests targeting development
as well as main.

Co-authored-by: Cursor <[email protected]>

* chore(ci): limit tests and docker build to main branch

Run unit tests, Docker build, and E2E only on main. Development keeps
typecheck, lint, build, and a lighter deploy gate for Railway.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add scheduled staging start/stop workflow

chore(ci): add scheduled staging start/stop workflow

* Chore: staging toggle (#6)

* chore(ci): add manual staging on/off workflow

Split manual start/stop into a dedicated Staging Toggle workflow so it
can be run from the Actions tab without touching the schedule.

Co-authored-by: Cursor <[email protected]>

* chore(ci): keep manual staging toggle in schedule workflow

Restore workflow_dispatch start/stop on Staging Schedule and remove the
separate toggle workflow so scheduled and manual control live in one place.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(date-field): enhance date field with editable value and read-only control (#7)

* feat(date-field): enhance date field with editable value and read-only control

- Add `value` property to ZDateFieldMeta schema for editor-set dates
- Add date picker (calendar) + text input in editor settings form
- Add label field to date editor settings
- Add "Read Only" checkbox to lock date value for recipients
- Replace recipient toggle behavior with calendar picker dialog
- Preserve existing value when recipient clicks field (same as text/number)
- Show "Select Date" placeholder when field is empty on signing surface
- Add DATE to ADVANCED_FIELD_TYPES_WITH_OPTIONAL_SETTING (no longer always required)
- Auto-insert readOnly date fields with value on document distribute
- Only auto-insert required DATE fields at completion time
- Update sign-envelope-field types to accept string date values
- Format recipient-selected dates using document's configured date format

Co-authored-by: Cursor <[email protected]>

* fix(date-field): guard text layout props in readonly date rendering

Only apply verticalAlign, letterSpacing, and lineHeight for text and
number fields in the readonly fallback path. Date field meta does not
include those properties.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(remix): add date-fns dependency for react-day-picker runtime (documenso#8)

Calendar date picker requires date-fns as a peer dependency of
react-day-picker. Add it directly to @documenso/remix so turbo prune
includes it in the production Docker image on Railway.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(signing): use static titles for text number date dialogs (documenso#10)

Use fixed signer dialog titles instead of field labels.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* chore(ci): add upstream release check workflow (documenso#14)

Open a repo issue when documenso/documenso publishes a new release.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add required checkbox to date field settings (documenso#16)

Expose the existing required fieldMeta option in the envelope editor date
field form so editors can mark date fields as mandatory before signing.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add editor-only label to dropdown field settings (documenso#17)

Expose dropdown field labels in the envelope editor while keeping the
recipient signing surface on the generic Select Option placeholder.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add label and required settings to signature field (documenso#18)

Expose editor-only labels and an optional required toggle for signature
fields while keeping existing signatures required by default.

Co-authored-by: Cursor <[email protected]>

* fix(lint): sort imports and fix subscription formatting (documenso#20)

Resolves Biome check errors blocking npm run lint.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings and signing preview (documenso#21)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings, signing preview, and text field defaults (documenso#22)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): default vertical overflow and top align

Simplify editor overflow to vertical, horizontal, and crop with
vertical as default. New text fields persist top vertical alignment
without changing render behavior for existing templates.

Co-authored-by: Cursor <[email protected]>

* refactor(text-field): remove signing dialog text preview

Overflow is visible on the document after save; the inline preview
added unnecessary complexity to the enter-text dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* chore(i18n): sync translation catalogs

Update extracted strings across all locale files after upstream
feature additions (bulk cancel, CSC signing audit logs, etc.).

Co-authored-by: Cursor <[email protected]>

* fix(lib): remove duplicate imports from merge conflict

Resolve duplicate assertCompatibleRecipientRole and
resolveSignatureLevel imports introduced when main was merged
into release/text-field-overflow.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>
prom-star pushed a commit to prom-star/documenso that referenced this pull request Jul 22, 2026
* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* feat(signing): show enter text/number on recipient field placeholders

Hide editor-defined labels in the recipient signing UI for text and
number fields while keeping stored field metadata unchanged.

Co-authored-by: Cursor <[email protected]>

* fix(signing): preserve prefilled text and number values on recipient edit

Prefilled fields were cleared when recipients clicked to edit because inserted
fields returned a null value. Open the dialog with the existing value instead.

Co-authored-by: Cursor <[email protected]>

* fix(signing): display editor-prefilled text and number on recipient canvas

Show fieldMeta prefilled values on the signing surface instead of the
generic enter prompt when the field has not been inserted yet.

Co-authored-by: Cursor <[email protected]>

* fix(signing): narrow field meta type for prefilled field rendering

Fix TypeScript build errors by narrowing text/number fieldMeta before
accessing alignment properties on the recipient signing surface.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add pre-deploy checks and railway deploy gate

Add typecheck, lint, unit tests, and a deploy gate job so Railway can
wait for CI before deploying. Docker build runs in parallel after lint.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run pre-deploy checks on development branch

Extend CI triggers and the Railway deploy gate to main and development,
including pull requests targeting development.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run e2e tests on development branch

Run Playwright tests on push and pull requests targeting development
as well as main.

Co-authored-by: Cursor <[email protected]>

* chore(ci): limit tests and docker build to main branch

Run unit tests, Docker build, and E2E only on main. Development keeps
typecheck, lint, build, and a lighter deploy gate for Railway.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add scheduled staging start/stop workflow

chore(ci): add scheduled staging start/stop workflow

* Chore: staging toggle (#6)

* chore(ci): add manual staging on/off workflow

Split manual start/stop into a dedicated Staging Toggle workflow so it
can be run from the Actions tab without touching the schedule.

Co-authored-by: Cursor <[email protected]>

* chore(ci): keep manual staging toggle in schedule workflow

Restore workflow_dispatch start/stop on Staging Schedule and remove the
separate toggle workflow so scheduled and manual control live in one place.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(date-field): enhance date field with editable value and read-only control (#7)

* feat(date-field): enhance date field with editable value and read-only control

- Add `value` property to ZDateFieldMeta schema for editor-set dates
- Add date picker (calendar) + text input in editor settings form
- Add label field to date editor settings
- Add "Read Only" checkbox to lock date value for recipients
- Replace recipient toggle behavior with calendar picker dialog
- Preserve existing value when recipient clicks field (same as text/number)
- Show "Select Date" placeholder when field is empty on signing surface
- Add DATE to ADVANCED_FIELD_TYPES_WITH_OPTIONAL_SETTING (no longer always required)
- Auto-insert readOnly date fields with value on document distribute
- Only auto-insert required DATE fields at completion time
- Update sign-envelope-field types to accept string date values
- Format recipient-selected dates using document's configured date format

Co-authored-by: Cursor <[email protected]>

* fix(date-field): guard text layout props in readonly date rendering

Only apply verticalAlign, letterSpacing, and lineHeight for text and
number fields in the readonly fallback path. Date field meta does not
include those properties.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(remix): add date-fns dependency for react-day-picker runtime (documenso#8)

Calendar date picker requires date-fns as a peer dependency of
react-day-picker. Add it directly to @documenso/remix so turbo prune
includes it in the production Docker image on Railway.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(signing): use static titles for text number date dialogs (documenso#10)

Use fixed signer dialog titles instead of field labels.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* chore(ci): add upstream release check workflow (documenso#14)

Open a repo issue when documenso/documenso publishes a new release.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add required checkbox to date field settings (documenso#16)

Expose the existing required fieldMeta option in the envelope editor date
field form so editors can mark date fields as mandatory before signing.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add editor-only label to dropdown field settings (documenso#17)

Expose dropdown field labels in the envelope editor while keeping the
recipient signing surface on the generic Select Option placeholder.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add label and required settings to signature field (documenso#18)

Expose editor-only labels and an optional required toggle for signature
fields while keeping existing signatures required by default.

Co-authored-by: Cursor <[email protected]>

* fix(lint): sort imports and fix subscription formatting (documenso#20)

Resolves Biome check errors blocking npm run lint.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings and signing preview (documenso#21)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings, signing preview, and text field defaults (documenso#22)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): default vertical overflow and top align

Simplify editor overflow to vertical, horizontal, and crop with
vertical as default. New text fields persist top vertical alignment
without changing render behavior for existing templates.

Co-authored-by: Cursor <[email protected]>

* refactor(text-field): remove signing dialog text preview

Overflow is visible on the document after save; the inline preview
added unnecessary complexity to the enter-text dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(checkbox): add editor label setting and hide from recipients (documenso#24)

Expose fieldMeta.label in envelope editor checkbox settings while keeping it off the signing UI.

Co-authored-by: Cursor <[email protected]>

* feat(signing): add per-field signature picker and change dialog (documenso#26)

* feat(signing): add per-field signature picker and change dialog

Let recipients sign each signature field independently with a picker for
document and profile signatures, tiered re-auth, and replace/remove on
re-click across V1 and V2 signing flows.

Co-authored-by: Cursor <[email protected]>

* feat(signing): auto-apply default signature on empty field click

When a default signature is set, clicking an unsigned field applies it
immediately without opening the picker dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>
prom-star pushed a commit to prom-star/documenso that referenced this pull request Jul 22, 2026
* chore(release): sync fork with upstream (documenso#13)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* feat(signing): show enter text/number on recipient field placeholders

Hide editor-defined labels in the recipient signing UI for text and
number fields while keeping stored field metadata unchanged.

Co-authored-by: Cursor <[email protected]>

* fix(signing): preserve prefilled text and number values on recipient edit

Prefilled fields were cleared when recipients clicked to edit because inserted
fields returned a null value. Open the dialog with the existing value instead.

Co-authored-by: Cursor <[email protected]>

* fix(signing): display editor-prefilled text and number on recipient canvas

Show fieldMeta prefilled values on the signing surface instead of the
generic enter prompt when the field has not been inserted yet.

Co-authored-by: Cursor <[email protected]>

* fix(signing): narrow field meta type for prefilled field rendering

Fix TypeScript build errors by narrowing text/number fieldMeta before
accessing alignment properties on the recipient signing surface.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add pre-deploy checks and railway deploy gate

Add typecheck, lint, unit tests, and a deploy gate job so Railway can
wait for CI before deploying. Docker build runs in parallel after lint.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run pre-deploy checks on development branch

Extend CI triggers and the Railway deploy gate to main and development,
including pull requests targeting development.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run e2e tests on development branch

Run Playwright tests on push and pull requests targeting development
as well as main.

Co-authored-by: Cursor <[email protected]>

* chore(ci): limit tests and docker build to main branch

Run unit tests, Docker build, and E2E only on main. Development keeps
typecheck, lint, build, and a lighter deploy gate for Railway.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add scheduled staging start/stop workflow

chore(ci): add scheduled staging start/stop workflow

* Chore: staging toggle (#6)

* chore(ci): add manual staging on/off workflow

Split manual start/stop into a dedicated Staging Toggle workflow so it
can be run from the Actions tab without touching the schedule.

Co-authored-by: Cursor <[email protected]>

* chore(ci): keep manual staging toggle in schedule workflow

Restore workflow_dispatch start/stop on Staging Schedule and remove the
separate toggle workflow so scheduled and manual control live in one place.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(date-field): enhance date field with editable value and read-only control (#7)

* feat(date-field): enhance date field with editable value and read-only control

- Add `value` property to ZDateFieldMeta schema for editor-set dates
- Add date picker (calendar) + text input in editor settings form
- Add label field to date editor settings
- Add "Read Only" checkbox to lock date value for recipients
- Replace recipient toggle behavior with calendar picker dialog
- Preserve existing value when recipient clicks field (same as text/number)
- Show "Select Date" placeholder when field is empty on signing surface
- Add DATE to ADVANCED_FIELD_TYPES_WITH_OPTIONAL_SETTING (no longer always required)
- Auto-insert readOnly date fields with value on document distribute
- Only auto-insert required DATE fields at completion time
- Update sign-envelope-field types to accept string date values
- Format recipient-selected dates using document's configured date format

Co-authored-by: Cursor <[email protected]>

* fix(date-field): guard text layout props in readonly date rendering

Only apply verticalAlign, letterSpacing, and lineHeight for text and
number fields in the readonly fallback path. Date field meta does not
include those properties.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(remix): add date-fns dependency for react-day-picker runtime (documenso#8)

Calendar date picker requires date-fns as a peer dependency of
react-day-picker. Add it directly to @documenso/remix so turbo prune
includes it in the production Docker image on Railway.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(signing): use static titles for text number date dialogs (documenso#10)

Use fixed signer dialog titles instead of field labels.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* chore(ci): add upstream release check workflow (documenso#14) (documenso#15)

Open a repo issue when documenso/documenso publishes a new release.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add required checkbox to date field settings (documenso#16)

Expose the existing required fieldMeta option in the envelope editor date
field form so editors can mark date fields as mandatory before signing.

Co-authored-by: Cursor <[email protected]>

* feat(field): dropdown signature field settings main (#19)

* feat(editor): add editor-only label to dropdown field settings (documenso#17)

Expose dropdown field labels in the envelope editor while keeping the
recipient signing surface on the generic Select Option placeholder.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add label and required settings to signature field (documenso#18)

Expose editor-only labels and an optional required toggle for signature
fields while keeping existing signatures required by default.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings and top-aligned defaults (documenso#23)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* feat(signing): show enter text/number on recipient field placeholders

Hide editor-defined labels in the recipient signing UI for text and
number fields while keeping stored field metadata unchanged.

Co-authored-by: Cursor <[email protected]>

* fix(signing): preserve prefilled text and number values on recipient edit

Prefilled fields were cleared when recipients clicked to edit because inserted
fields returned a null value. Open the dialog with the existing value instead.

Co-authored-by: Cursor <[email protected]>

* fix(signing): display editor-prefilled text and number on recipient canvas

Show fieldMeta prefilled values on the signing surface instead of the
generic enter prompt when the field has not been inserted yet.

Co-authored-by: Cursor <[email protected]>

* fix(signing): narrow field meta type for prefilled field rendering

Fix TypeScript build errors by narrowing text/number fieldMeta before
accessing alignment properties on the recipient signing surface.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add pre-deploy checks and railway deploy gate

Add typecheck, lint, unit tests, and a deploy gate job so Railway can
wait for CI before deploying. Docker build runs in parallel after lint.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run pre-deploy checks on development branch

Extend CI triggers and the Railway deploy gate to main and development,
including pull requests targeting development.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run e2e tests on development branch

Run Playwright tests on push and pull requests targeting development
as well as main.

Co-authored-by: Cursor <[email protected]>

* chore(ci): limit tests and docker build to main branch

Run unit tests, Docker build, and E2E only on main. Development keeps
typecheck, lint, build, and a lighter deploy gate for Railway.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add scheduled staging start/stop workflow

chore(ci): add scheduled staging start/stop workflow

* Chore: staging toggle (#6)

* chore(ci): add manual staging on/off workflow

Split manual start/stop into a dedicated Staging Toggle workflow so it
can be run from the Actions tab without touching the schedule.

Co-authored-by: Cursor <[email protected]>

* chore(ci): keep manual staging toggle in schedule workflow

Restore workflow_dispatch start/stop on Staging Schedule and remove the
separate toggle workflow so scheduled and manual control live in one place.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(date-field): enhance date field with editable value and read-only control (#7)

* feat(date-field): enhance date field with editable value and read-only control

- Add `value` property to ZDateFieldMeta schema for editor-set dates
- Add date picker (calendar) + text input in editor settings form
- Add label field to date editor settings
- Add "Read Only" checkbox to lock date value for recipients
- Replace recipient toggle behavior with calendar picker dialog
- Preserve existing value when recipient clicks field (same as text/number)
- Show "Select Date" placeholder when field is empty on signing surface
- Add DATE to ADVANCED_FIELD_TYPES_WITH_OPTIONAL_SETTING (no longer always required)
- Auto-insert readOnly date fields with value on document distribute
- Only auto-insert required DATE fields at completion time
- Update sign-envelope-field types to accept string date values
- Format recipient-selected dates using document's configured date format

Co-authored-by: Cursor <[email protected]>

* fix(date-field): guard text layout props in readonly date rendering

Only apply verticalAlign, letterSpacing, and lineHeight for text and
number fields in the readonly fallback path. Date field meta does not
include those properties.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(remix): add date-fns dependency for react-day-picker runtime (documenso#8)

Calendar date picker requires date-fns as a peer dependency of
react-day-picker. Add it directly to @documenso/remix so turbo prune
includes it in the production Docker image on Railway.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(signing): use static titles for text number date dialogs (documenso#10)

Use fixed signer dialog titles instead of field labels.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* chore(ci): add upstream release check workflow (documenso#14)

Open a repo issue when documenso/documenso publishes a new release.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add required checkbox to date field settings (documenso#16)

Expose the existing required fieldMeta option in the envelope editor date
field form so editors can mark date fields as mandatory before signing.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add editor-only label to dropdown field settings (documenso#17)

Expose dropdown field labels in the envelope editor while keeping the
recipient signing surface on the generic Select Option placeholder.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add label and required settings to signature field (documenso#18)

Expose editor-only labels and an optional required toggle for signature
fields while keeping existing signatures required by default.

Co-authored-by: Cursor <[email protected]>

* fix(lint): sort imports and fix subscription formatting (documenso#20)

Resolves Biome check errors blocking npm run lint.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings and signing preview (documenso#21)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings, signing preview, and text field defaults (documenso#22)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): default vertical overflow and top align

Simplify editor overflow to vertical, horizontal, and crop with
vertical as default. New text fields persist top vertical alignment
without changing render behavior for existing templates.

Co-authored-by: Cursor <[email protected]>

* refactor(text-field): remove signing dialog text preview

Overflow is visible on the document after save; the inline preview
added unnecessary complexity to the enter-text dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* chore(i18n): sync translation catalogs

Update extracted strings across all locale files after upstream
feature additions (bulk cancel, CSC signing audit logs, etc.).

Co-authored-by: Cursor <[email protected]>

* fix(lib): remove duplicate imports from merge conflict

Resolve duplicate assertCompatibleRecipientRole and
resolveSignatureLevel imports introduced when main was merged
into release/text-field-overflow.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(checkbox): add editor label setting and hide from recipients (documenso#25)

Expose fieldMeta.label in envelope editor checkbox settings while keeping it off the signing UI.

Co-authored-by: Cursor <[email protected]>

* chore(release): sync development to main (documenso#27)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* feat(signing): show enter text/number on recipient field placeholders

Hide editor-defined labels in the recipient signing UI for text and
number fields while keeping stored field metadata unchanged.

Co-authored-by: Cursor <[email protected]>

* fix(signing): preserve prefilled text and number values on recipient edit

Prefilled fields were cleared when recipients clicked to edit because inserted
fields returned a null value. Open the dialog with the existing value instead.

Co-authored-by: Cursor <[email protected]>

* fix(signing): display editor-prefilled text and number on recipient canvas

Show fieldMeta prefilled values on the signing surface instead of the
generic enter prompt when the field has not been inserted yet.

Co-authored-by: Cursor <[email protected]>

* fix(signing): narrow field meta type for prefilled field rendering

Fix TypeScript build errors by narrowing text/number fieldMeta before
accessing alignment properties on the recipient signing surface.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add pre-deploy checks and railway deploy gate

Add typecheck, lint, unit tests, and a deploy gate job so Railway can
wait for CI before deploying. Docker build runs in parallel after lint.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run pre-deploy checks on development branch

Extend CI triggers and the Railway deploy gate to main and development,
including pull requests targeting development.

Co-authored-by: Cursor <[email protected]>

* chore(ci): run e2e tests on development branch

Run Playwright tests on push and pull requests targeting development
as well as main.

Co-authored-by: Cursor <[email protected]>

* chore(ci): limit tests and docker build to main branch

Run unit tests, Docker build, and E2E only on main. Development keeps
typecheck, lint, build, and a lighter deploy gate for Railway.

Co-authored-by: Cursor <[email protected]>

* chore(ci): add scheduled staging start/stop workflow

chore(ci): add scheduled staging start/stop workflow

* Chore: staging toggle (#6)

* chore(ci): add manual staging on/off workflow

Split manual start/stop into a dedicated Staging Toggle workflow so it
can be run from the Actions tab without touching the schedule.

Co-authored-by: Cursor <[email protected]>

* chore(ci): keep manual staging toggle in schedule workflow

Restore workflow_dispatch start/stop on Staging Schedule and remove the
separate toggle workflow so scheduled and manual control live in one place.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* feat(date-field): enhance date field with editable value and read-only control (#7)

* feat(date-field): enhance date field with editable value and read-only control

- Add `value` property to ZDateFieldMeta schema for editor-set dates
- Add date picker (calendar) + text input in editor settings form
- Add label field to date editor settings
- Add "Read Only" checkbox to lock date value for recipients
- Replace recipient toggle behavior with calendar picker dialog
- Preserve existing value when recipient clicks field (same as text/number)
- Show "Select Date" placeholder when field is empty on signing surface
- Add DATE to ADVANCED_FIELD_TYPES_WITH_OPTIONAL_SETTING (no longer always required)
- Auto-insert readOnly date fields with value on document distribute
- Only auto-insert required DATE fields at completion time
- Update sign-envelope-field types to accept string date values
- Format recipient-selected dates using document's configured date format

Co-authored-by: Cursor <[email protected]>

* fix(date-field): guard text layout props in readonly date rendering

Only apply verticalAlign, letterSpacing, and lineHeight for text and
number fields in the readonly fallback path. Date field meta does not
include those properties.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(remix): add date-fns dependency for react-day-picker runtime (documenso#8)

Calendar date picker requires date-fns as a peer dependency of
react-day-picker. Add it directly to @documenso/remix so turbo prune
includes it in the production Docker image on Railway.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(signing): use static titles for text number date dialogs (documenso#10)

Use fixed signer dialog titles instead of field labels.

Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* chore(ci): add upstream release check workflow (documenso#14)

Open a repo issue when documenso/documenso publishes a new release.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add required checkbox to date field settings (documenso#16)

Expose the existing required fieldMeta option in the envelope editor date
field form so editors can mark date fields as mandatory before signing.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add editor-only label to dropdown field settings (documenso#17)

Expose dropdown field labels in the envelope editor while keeping the
recipient signing surface on the generic Select Option placeholder.

Co-authored-by: Cursor <[email protected]>

* feat(editor): add label and required settings to signature field (documenso#18)

Expose editor-only labels and an optional required toggle for signature
fields while keeping existing signatures required by default.

Co-authored-by: Cursor <[email protected]>

* fix(lint): sort imports and fix subscription formatting (documenso#20)

Resolves Biome check errors blocking npm run lint.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings and signing preview (documenso#21)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(text-field): add overflow settings, signing preview, and text field defaults (documenso#22)

* feat(text-field): add overflow settings and signing preview

Allow text fields to overflow beyond field bounds with configurable
auto/horizontal/vertical/crop modes, defaulting to auto for new fields.

Co-authored-by: Cursor <[email protected]>

* fix(text-field): resolve overflow typecheck errors

Keep overflow optional on ZTextFieldMeta output type and narrow
validateTextField input to only the fields it validates.

Co-authored-by: Cursor <[email protected]>

* feat(text-field): default vertical overflow and top align

Simplify editor overflow to vertical, horizontal, and crop with
vertical as default. New text fields persist top vertical alignment
without changing render behavior for existing templates.

Co-authored-by: Cursor <[email protected]>

* refactor(text-field): remove signing dialog text preview

Overflow is visible on the document after save; the inline preview
added unnecessary complexity to the enter-text dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* feat(checkbox): add editor label setting and hide from recipients (documenso#24)

Expose fieldMeta.label in envelope editor checkbox settings while keeping it off the signing UI.

Co-authored-by: Cursor <[email protected]>

* feat(signing): add per-field signature picker and change dialog (documenso#26)

* feat(signing): add per-field signature picker and change dialog

Let recipients sign each signature field independently with a picker for
document and profile signatures, tiered re-auth, and replace/remove on
re-click across V1 and V2 signing flows.

Co-authored-by: Cursor <[email protected]>

* feat(signing): auto-apply default signature on empty field click

When a default signature is set, clicking an unsigned field applies it
immediately without opening the picker dialog.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>

* fix(pdf): skip optional unsigned signature fields when sealing (documenso#28) (documenso#29)

Optional signature fields left empty were burned into completed PDFs as
the literal text "SIGNATURE". Only insert signed fields during V2 sealing
and default export rendering to blank for unsigned fields.

Co-authored-by: Cursor <[email protected]>

* fix(certificate): show signed field when recipient has multiple signatures (documenso#31)

The signing certificate used the first signature field per recipient, so an
unsigned optional field could hide the actual signature from a required field.
Prefer fields with signature content in both PDF and HTML certificate paths.

Co-authored-by: Cursor <[email protected]>

* fix(emails): prevent duplicate completion emails on job retry (documenso#33)

Skip recipients who already received a completion email and log failed
addresses when sends fail so retries only target missing deliveries.

Co-authored-by: Cursor <[email protected]>

* chore(sync): merge upstream v2.14.0 into main (documenso#34)

* fix: update new quota and rates UX (documenso#2954)

* docs: clarify email verification instructions for free and paid plans (documenso#2959)

* fix: guard missing password reset token and fix broken reset link URL (documenso#2928)

* fix: point Railway deploy button at the working template URL (documenso#2962)

* fix: ensures new expire on setSessionCookie (documenso#2708)

* fix: exclude rejected documents from inbox count (documenso#2893)

* chore: update docs trusted emails (documenso#2964)

* chore: extract translations (documenso#2923)

* feat: allow changing field types (documenso#2873)

* fix: load typed signature font on profile page (documenso#2963)

* feat: enhance document signing page with field canvas style integration (documenso#2876)

* fix: correctly strip background job values (documenso#2965)

* chore: add translations (documenso#2929)

* fix: link signing brand logos (documenso#2881)

* fix: correctly orphan envelopes and stripe cancel on delete (documenso#2967)

* chore: update verify email docs (documenso#2970)

* fix(i18n): add space between tag and text (documenso#2972)

* fix: rework stripe webhooks into idempotent subscription sync (documenso#2977)

Replace per-event webhook handlers with a single sync function that
fetches the current state from Stripe and converges the local
subscription, claim, and organisation type.

- Create organisations upfront before checkout, restricted as
  "pending payment" until the first payment syncs
- Add rate-limited subscription sync route, triggered on checkout
  success so the UI doesn't wait on webhooks
- Surface pending payment state in banner, billing table, and limits

* fix: use correct property for embed edit editor config (documenso#2985)

* chore: add translations (documenso#2975)

* fix: reconcile billing when stripe subscription is missing (documenso#2988)

Catch resource_missing in the subscription route, return null so the
billing page still loads, and fire a sync to converge the stale row.

* fix: add early quota warning (documenso#2986)

## Description

- Add banners when plans near fair use limits
- Automated email alerts to our support when nearing fair use limits

* v2.12.0

* feat: add CSC AES/QES signing (v1 instance-wide config) (documenso#2874)

Adds Cloud Signature Consortium (CSC) integration for AES/QES signing
against a configured TSP. v1 ships as instance-wide configuration via
environment variables, with per-envelope signature level selection,
license gating, and an OAuth-driven signing flow (capture + FIFO
signers, SAD session, blocking/in-progress recipient pages).

Includes signature level compatibility checks (role, signing order,
dictate next signer), envelope mutability assertions, Prisma migration
for signature level and CSC tables, and docs for the new signing
certificate options.

* feat: add cancellable document status (documenso#2992)

Adds a CANCELLED envelope status that privileged members (owner or team
admin/manager) can move a pending document into. Sending recipient
notifications via a background job while retaining the document in the
dashboard as proof of distribution.

Includes a dedicated Cancelled tab, single and bulk cancel actions,
the ENVELOPE_CANCELLED mutability guard, and e2e coverage for
permissions
and visibility.

* fix: include envelopeId in webhook payload (documenso#2998)

* v2.13.0

* fix: improve team member removal ux (documenso#3001)

* fix: only send S3 checksums when required to support S3-compatible storage (documenso#2984)

* fix: render unicode characters in typed signatures (documenso#2728)

* fix: signing request email renders blank when organisation/team branding is enabled (documenso#2968)

* fix: remove old dialogs (documenso#3006)

* feat: add custom brand colours to emails (documenso#3005)

* feat: allow additional envelope duplicate settings (documenso#3008)

* fix: respect branding enabled for recipient routes (documenso#3009)

* chore: extract translations (documenso#2987)

* fix: correctly use default distribute envelope tab (documenso#3010)

* fix: set send status on resend (documenso#3011)

* feat: add API endpoint to reject documents on behalf of recipients (documenso#3007)

Programmatically record an external rejection on behalf of a recipient
who declined outside the platform. Flags the rejection as external in
the audit log, optionally attributes it to a specific team member via
actAsEmail, and enforces team membership and document visibility.

* feat: cap automated reminders before resend (documenso#3016)

Stop sending automated reminders after a configurable threshold
(default 5) and reset the count on manual resend.

* fix: show warning on overlapping fields (documenso#3017)

* chore: add translations (documenso#3012)

* chore(i18n): update Polish translation (documenso#3020)

* fix: migrate emails to jobs (documenso#3024)

* chore: general repo maintenance and docs cleanup (documenso#3030)

Refresh README/docs for the current stack, add a security policy,
note the external-PR pause, and remove dead config and workflows.

* feat: add API endpoints for downloading certificate and audit log PDFs (documenso#3025)

Add V2 API routes to download an envelope's certificate and audit log
separately, and align the internal cert/audit log downloads to use
envelopeId.

Enforces document visibility via getEnvelopeWhereInput and loads field
signatures so certificates render correctly.

* fix: resolve permission issues (documenso#3029)

* chore: add tests for cert and audit log download via api (documenso#3043)

* v2.14.0

* fix: auto select field on drop (documenso#3028)

* feat: add field multiselect (documenso#3031)

* fix: invite email placeholder (documenso#3045)

- **fix: interpolate inviterEmail in invite email mailto link**
- **fix: add alt attributes to email template images**

* fix: tighten permission and validation checks (documenso#3046)

* fix: scope organisation group deletion (documenso#3047)

* fix: add missing teams branding guard (documenso#3049)

* fix(email): render Preview inside Body across all email templates (documenso#3004)

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: David Nguyen <[email protected]>
Co-authored-by: roshboi <[email protected]>
Co-authored-by: Arun Kumar <[email protected]>
Co-authored-by: Ephraim Duncan <[email protected]>
Co-authored-by: Clayton Chew <[email protected]>
Co-authored-by: Rana Pratap Sarangi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Romone6 <[email protected]>
Co-authored-by: Catalin Pit <[email protected]>
Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Konrad <[email protected]>
Co-authored-by: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Abdelrahman Abdelhamed <[email protected]>
Co-authored-by: Nandini Dhanrale <[email protected]>
Co-authored-by: Martin Glaser <[email protected]>
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.

[DOC-185] Buttons Alignment

2 participants