Skip to content

Commit 890c3d2

Browse files
Merge branch 'staging' of https://github.com/OpenSignLabs/OpenSign into feat_bulksend
2 parents 7e4f12e + 2433ad5 commit 890c3d2

File tree

12 files changed

+250
-62
lines changed

12 files changed

+250
-62
lines changed

apps/OpenSign/src/components/pdf/DefaultSignature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function DefaultSignature({ defaultSignImg, xyPostion, setDefaultSignAlert }) {
1717
};
1818

1919
return (
20-
<div>
20+
<div data-tut="reactourThird">
2121
<div
2222
style={{
2323
background: themeColor,

apps/OpenSign/src/components/pdf/PdfHeader.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ function Header({
331331
user exist than show finish button else no
332332
*/}
333333
{currentSigner && (
334-
<>
334+
<div className="flex items-center" data-tut="reactourFifth">
335335
{decline && (
336336
<div
337337
onClick={() => handleDeclinePdfAlert()}
@@ -372,7 +372,7 @@ function Header({
372372
<DropdownMenu.Root>
373373
<DropdownMenu.Trigger asChild>
374374
<div
375-
className="border-none font-[650] text-[18px] pl-2"
375+
className="border-none font-[650] text-[18px] px-2 ml-[4px]"
376376
style={{ color: themeColor }}
377377
>
378378
<i
@@ -399,7 +399,7 @@ function Header({
399399
</DropdownMenu.Content>
400400
</DropdownMenu.Portal>
401401
</DropdownMenu.Root>
402-
</>
402+
</div>
403403
)}
404404
</div>
405405
)}
@@ -464,8 +464,8 @@ function Header({
464464
{completeBtnTitle
465465
? completeBtnTitle
466466
: isMailSend
467-
? "Sent"
468-
: "Send"}
467+
? "Sent"
468+
: "Send"}
469469
</button>
470470
</div>
471471
</>
@@ -505,7 +505,7 @@ function Header({
505505
</button>
506506
</div>
507507
) : (
508-
<div className="flex">
508+
<div className="flex" data-tut="reactourFifth">
509509
<button
510510
onClick={() => navigate(-1)}
511511
type="button"

apps/OpenSign/src/components/pdf/RenderPdf.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ function RenderPdf({
334334
{successEmail && <Alert type={"success"}>Email sent successfully!</Alert>}
335335
{isMobile && scale ? (
336336
<div
337+
data-tut="reactourForth"
337338
style={{
338339
border: "0.1px solid #ebe8e8",
339340
marginTop: isGuestSigner && "30px"
@@ -517,6 +518,7 @@ function RenderPdf({
517518
noScrollX={pdfNewWidth < pdfOriginalWidth ? false : true}
518519
>
519520
<div
521+
data-tut="reactourForth"
520522
style={{
521523
border: "0.1px solid #ebe8e8",
522524
width: pdfOriginalWidth

apps/OpenSign/src/components/pdf/WidgetNameModal.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { textInputWidget } from "../../constant/Utils";
66
import PremiumAlertHeader from "../../primitives/PremiumAlertHeader";
77
import Upgrade from "../../primitives/Upgrade";
88
import { isEnableSubscription } from "../../constant/const";
9+
import Tooltip from "../../primitives/Tooltip";
910

1011
const WidgetNameModal = (props) => {
1112
const [formdata, setFormdata] = useState({
@@ -140,16 +141,21 @@ const WidgetNameModal = (props) => {
140141
props.widgetName === textInputWidget) && (
141142
<>
142143
<div className="form-section">
143-
<label
144-
htmlFor="textvalidate"
145-
className={
146-
!props.isSubscribe && isEnableSubscription && "disabled"
147-
}
148-
style={{ fontSize: 13 }}
149-
>
150-
Validation
151-
</label>
152-
{!props.isSubscribe && isEnableSubscription && <Upgrade />}
144+
<div className="flex items-center gap-1">
145+
<label
146+
htmlFor="textvalidate"
147+
className={
148+
!props.isSubscribe && isEnableSubscription && "disabled"
149+
}
150+
style={{ fontSize: 13 }}
151+
>
152+
Validation
153+
</label>
154+
<Tooltip
155+
url={"https://www.w3schools.com/jsref/jsref_obj_regexp.asp"}
156+
/>
157+
{!props.isSubscribe && isEnableSubscription && <Upgrade />}
158+
</div>
153159
<div
154160
className={
155161
!props.isSubscribe && isEnableSubscription && "disabled"
@@ -165,7 +171,7 @@ const WidgetNameModal = (props) => {
165171
<input
166172
className="relative z-20 w-[87%] md:w-[92%] p-2.5 border-[1px] border-[#d1d5db] rounded-l-md outline-none text-xs"
167173
name="textvalidate"
168-
placeholder="Enter custom expression"
174+
placeholder="Enter custom regular expression"
169175
value={formdata.textvalidate}
170176
onChange={(e) => handleChange(e)}
171177
// onBlur={() => handleBlurRegex()}

apps/OpenSign/src/constant/Utils.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ export async function fetchSubscription(
1919
isGuestSign = false
2020
) {
2121
try {
22-
const extClass = localStorage.getItem("Extand_Class");
22+
const Extand_Class = localStorage.getItem("Extand_Class");
23+
const extClass = Extand_Class && JSON.parse(Extand_Class);
24+
// console.log("extClass ", extClass);
2325
let extUser;
24-
if (extClass) {
25-
const jsonSender = JSON.parse(extClass);
26-
extUser = jsonSender[0].objectId;
26+
if (extClass && extClass.length > 0) {
27+
extUser = extClass[0].objectId;
2728
} else {
2829
extUser = extUserId;
2930
}
@@ -171,11 +172,10 @@ export const contractUsers = async (email) => {
171172
.then((Listdata) => {
172173
const json = Listdata.data;
173174
let data = [];
174-
175175
if (json && json.result) {
176176
data.push(json.result);
177-
return data;
178177
}
178+
return data;
179179
})
180180
.catch((err) => {
181181
console.log("Err ", err);
@@ -1351,8 +1351,8 @@ export const multiSignEmbed = async (
13511351
position.type === radioButtonWidget
13521352
? 10
13531353
: position.type === "checkbox"
1354-
? 10
1355-
: newUpdateHeight;
1354+
? 10
1355+
: newUpdateHeight;
13561356
const newHeight = ind ? (ind > 0 ? widgetHeight : 0) : widgetHeight;
13571357

13581358
if (signyourself) {

apps/OpenSign/src/json/plansArr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ const plans = [
5252
"API Access",
5353
"100 API signatures included",
5454
"DocumentId removal from signed docs",
55-
"Custom email templates"
55+
"Custom email templates",
56+
"Auto reminders"
5657
]
5758
},
5859
{

apps/OpenSign/src/pages/GuestLogin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ function GuestLogin() {
136136
`Parse/${parseId}/currentUser`,
137137
JSON.stringify(_user)
138138
);
139-
if (contractUserDetails) {
139+
// console.log("contractUserDetails ", contractUserDetails);
140+
if (contractUserDetails && contractUserDetails.length > 0) {
140141
localStorage.setItem(
141142
"Extand_Class",
142143
JSON.stringify(contractUserDetails)

0 commit comments

Comments
 (0)