Skip to content

Doc 162 - #12

Merged
ElTimuro merged 6 commits into
developmentfrom
doc-162
Mar 19, 2023
Merged

ElTimuro merged 6 commits into
developmentfrom
doc-162

Conversation

@ElTimuro

Copy link
Copy Markdown
Member

No description provided.

@ElTimuro
ElTimuro merged commit 36b075c into development Mar 19, 2023
@ElTimuro
ElTimuro deleted the doc-162 branch March 19, 2023 13:13
Dun-sin pushed a commit to Dun-sin/documenso that referenced this pull request Dec 24, 2023
Custom 500 page created, started Buttons component customise.
ryanwang520 added a commit to ryanwang520/documenso that referenced this pull request Apr 29, 2025
Revert "Add Sentry integration and update configuration files"
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
* 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]>

* 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]>

* 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): 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: Jhon Harry <[email protected]>
Co-authored-by: Cursor <[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.

1 participant