Skip to content

Conversation

nxglabs
Copy link
Collaborator

@nxglabs nxglabs commented Jun 19, 2025

  1. improve cell widgets UI
  2. show move cursor on placeholder border
  3. support close widget popup while invalid value of widgets
  4. ssn regex support
@Copilot Copilot AI review requested due to automatic review settings June 19, 2025 09:31
Copy link

vercel bot commented Jun 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
open-sign ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 9:32am
@prafull-opensignlabs prafull-opensignlabs changed the title Merge pull request #866 from nxglabs/fix_main_issues fix: resolve issues Jun 19, 2025
@prafull-opensignlabs prafull-opensignlabs merged commit 7204183 into staging Jun 19, 2025
5 checks passed
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A series of fixes to placeholder rendering, cell widgets, and modal validation in the OpenSign app.

  • Simplify and correct validation logic (including SSN support) in widget modals.
  • Introduce an isEnabled prop for cell-based widgets and adjust related styling.
  • Refactor placeholder selection outline to a border overlay and update cursor behavior.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
apps/OpenSign/src/pages/PlaceHolderSign.jsx Removed conditional validation object and added text-base-content style class.
apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx Enabled CellsWidget by default, added SSN regex validation, and changed modal close handler.
apps/OpenSign/src/components/pdf/WidgetNameModal.jsx Introduced handleChangeValidateInput for SSN type and updated default validation regex.
apps/OpenSign/src/components/pdf/PlaceholderType.jsx Passed isEnabled prop to CellsWidget.
apps/OpenSign/src/components/pdf/Placeholder.jsx Updated cursor style to move and replaced selection outline with a border overlay.
apps/OpenSign/src/components/pdf/CellsWidget.jsx Added isEnabled prop to Cell and CellsWidget components.
apps/OpenSign/src/components/pdf/BorderResize.jsx Consolidated multi-line style object into a single-line inline style.
Comments suppressed due to low confidence (3)

apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx:1879

  • [nitpick] Function name handleclose does not follow camelCase conventions; consider renaming it to handleClose for consistency.
 const handleclose = () => { 

apps/OpenSign/src/pages/PlaceHolderSign.jsx:1611

  • The validation object is now always empty, disabling conditional validation. Restore the previous logic that set validation based on isSubscribe and inputype.
 {}, 

apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx:1949

  • Removing the conditional guard allows the modal to close even when validation errors are shown. Consider preserving the !isShowValidation check to prevent premature closing.
 handleClose={() => handleclose()} 
import { useState, useEffect, useRef } from "react";

const Cell = ({
isEnabled,
Copy link

Copilot AI Jun 19, 2025

Choose a reason for hiding this comment

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

Consider providing a default value for isEnabled (e.g., isEnabled = true) in the parameter destructuring to avoid it being undefined in callers that omit this prop.

Suggested change
isEnabled,
isEnabled = true,

Copilot uses AI. Check for mistakes.

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

Labels

None yet

2 participants