diff --git a/.env b/.env index 98c85da..d2431d2 100644 --- a/.env +++ b/.env @@ -1,3 +1,4 @@ -VITE_BASE_URI="https://officially-powerful-goat.ngrok-free.app" +# VITE_BASE_URI="https://officially-powerful-goat.ngrok-free.app" # VITE_BASE_URI="https://python-amused-adder.ngrok-free.app" -# VITE_BASE_URI="https://concrete-gladly-mullet.ngrok-free.app" \ No newline at end of file +# VITE_BASE_URI="https://concrete-gladly-mullet.ngrok-free.app" +VITE_BASE_URI="https://wired-terminally-muskrat.ngrok-free.app" \ No newline at end of file diff --git a/src/components/auth/UsertAuthUI.tsx b/src/components/auth/UsertAuthUI.tsx index 44224dc..202d9bc 100644 --- a/src/components/auth/UsertAuthUI.tsx +++ b/src/components/auth/UsertAuthUI.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from "react"; -import "../styles/style.css"; +// import "../styles/style.css"; import { useNavigate, useLocation } from "react-router-dom"; import LoginForm from "./LoginForm"; import RegisterForm from "./RegisterForm"; @@ -37,7 +37,7 @@ function UserAuthUI() { return (
{/* Left Side - Branding */} -
+
{/* Logos */}
diff --git a/src/components/process/processStepOne/RecipientAddCard.tsx b/src/components/process/processStepOne/RecipientAddCard.tsx index d4d6f26..4ce3cf0 100644 --- a/src/components/process/processStepOne/RecipientAddCard.tsx +++ b/src/components/process/processStepOne/RecipientAddCard.tsx @@ -399,27 +399,13 @@ const RecipientAddCard = ({ transactionTemplateToggle, editRecipient, editCase,
{/* Permission Status Text - Always Visible */} -
-
- {/* {recipient.allowSenderToEdit && recipient.allowSenderToDelete && "Full permissions granted"} - {recipient.allowSenderToEdit && !recipient.allowSenderToDelete && "Edit permission granted"} - {!recipient.allowSenderToEdit && recipient.allowSenderToDelete && "Delete permission granted"} - {!recipient.allowSenderToEdit && !recipient.allowSenderToDelete && "No permissions granted"} */} - Permissions granted : -
-
{/* Permission Controls - Always Visible */}
{/* Edit Permission */}
-
{/* Delete Permission */}
-
diff --git a/src/components/process/processStepOne/RecipientCards.tsx b/src/components/process/processStepOne/RecipientCards.tsx index 6ad5e37..608257e 100644 --- a/src/components/process/processStepOne/RecipientCards.tsx +++ b/src/components/process/processStepOne/RecipientCards.tsx @@ -130,48 +130,28 @@ const RecipientCards = ({ ) => { const identifier = getRecipientIdentifier(recipient); const currentValue = getCurrentValue(recipient, fieldName); - const isEditing = editingField?.recipientId === identifier && editingField?.fieldName === fieldName; - const showValue = hasValue(recipient, fieldName); const error = errors[identifier]?.[fieldName]; const editable = isEditable(recipient); - if (isEditing && editable) { - return ( -
- handleFieldFocus(identifier, fieldName)} - onBlur={(e) => handleFieldBlur(recipient, fieldName, e.target.value)} - onChange={(e) => handleFieldChange(recipient, fieldName, e.target.value)} - onKeyPress={(e) => { - if (e.key === "Enter") { - e.currentTarget.blur(); - } - }} - className={`w-full px-3 py-1 border ${error ? "border-red-500 placeholder-red-500 text-xs" : "border-gray-300" - } rounded-lg text-sm focus:outline-none focus:ring-0 focus:ring-gray-300 ${className}`} - /> - {/* {error && ( - {`${placeholder} is required`} - )} */} -
- ); - } - return ( - handleFieldFocus(identifier, fieldName) : undefined} - className={`${editable - ? "cursor-pointer hover:bg-gray-100 rounded px-1 transition-colors" - : "cursor-not-allowed" - } ${showValue ? "text-gray-800" : "text-gray-400 italic"} ${className}`} - title={editable ? "Click to edit" : "Editing disabled"} - > - {showValue ? currentValue : placeholder} - +
+ handleFieldFocus(identifier, fieldName)} + onBlur={(e) => handleFieldBlur(recipient, fieldName, e.target.value)} + onChange={(e) => handleFieldChange(recipient, fieldName, e.target.value)} + onKeyPress={(e) => { + if (e.key === "Enter") { + e.currentTarget.blur(); + } + }} + disabled={!editable} + className={`w-full px-4 py-2 font-normal border focus:outline-none focus:ring-2 focus:ring-[var(--primary)] transition ${error ? "border-red-500 placeholder-red-500 text-xs" : "border-gray-300"} rounded-lg text-sm ${className} ${!editable ? "bg-gray-100 cursor-not-allowed" : ""}`} + title={editable ? "Edit field" : "Editing disabled"} + /> +
); }; @@ -254,13 +234,13 @@ const RecipientCards = ({
)} -
+
{recipients.map((recipient, idx) => (
@@ -298,133 +278,122 @@ const RecipientCards = ({ {getInitials(`${recipient.firstName} ${recipient.lastName || ""}`)}
-

- {renderEditableField(recipient, "firstName", "First Name")} - {renderEditableField(recipient, "lastName", "Last Name")} - {transactionTemplateToggle === TRANSACTION_TEMPLATE_TOGGLE.TEMPLATES && ( - - | Permissions granted : - - dispatch( - updateRecipient({ - ...recipient, - allowSenderToEdit: !recipient.allowSenderToEdit, - uuid: getRecipientIdentifier(recipient), - }) - ) - } - /> - - dispatch( - updateRecipient({ - ...recipient, - allowSenderToDelete: !recipient.allowSenderToDelete, - uuid: getRecipientIdentifier(recipient), - }) - ) - } - /> - - )} -

-

- {renderEditableField(recipient, "email", "Recipient Email", "", "email")} | - handleFieldFocus(getRecipientIdentifier(recipient), "type") - : undefined - } - className={`${isEditable(recipient) - ? "cursor-pointer hover:bg-gray-100" - : "cursor-not-allowed" - } rounded px-1 transition-colors`} - > - {recipient.type} - - {(hasValue(recipient, "roleName") || - transactionTemplateToggle === TRANSACTION_TEMPLATE_TOGGLE.TEMPLATES) && ( - - {" | Role: "} - {renderEditableField(recipient, "roleName", "Role name")} - +

+
+

+ {renderEditableField(recipient, "roleName", "Role name")} +

+
+
+ {transactionTemplateToggle === TRANSACTION_TEMPLATE_TOGGLE.TEMPLATES && ( +
+ {/* Permissions granted: */} + + + + +
)} - {recipient.type === recipientType.INPERSONSIGNER && ( - <> - - {" | Host Name: "} + +
+
+
+
+

+ {renderEditableField(recipient, "firstName", "First Name")} + {renderEditableField(recipient, "lastName", "Last Name")} + {renderEditableField(recipient, "email", "Recipient Email", "", "email")} +

+
+
+ {recipient.type === recipientType.INPERSONSIGNER && ( +
+
+

{renderEditableField(recipient, "hostName", "Host Name")} - {" | Host Email: "} {renderEditableField(recipient, "hostEmail", "Host Email", "", "email")} - - - )} -

- {editingField?.recipientId === getRecipientIdentifier(recipient) && - editingField?.fieldName === "type" && - isEditable(recipient) && ( -
- - - +

- )} +
+ )} +
+ + + +
+ {signType !== "self-sign" && ( -
+