diff --git a/src/components/CommonNav.tsx b/src/components/CommonNav.tsx index d9f273c..03f4792 100644 --- a/src/components/CommonNav.tsx +++ b/src/components/CommonNav.tsx @@ -301,7 +301,7 @@ const CommonNav: React.FC = () => { aria-expanded={open} aria-haspopup="true" > -
+
{user ? ( {(user?.name?.slice(0, 2)).toUpperCase()} @@ -316,7 +316,7 @@ const CommonNav: React.FC = () => {
-
+
{user ? ( {(user?.name?.slice(0, 2)).toUpperCase()} diff --git a/src/components/accounts/TransactionDataTable.tsx b/src/components/accounts/TransactionDataTable.tsx index bb65ba8..0488efc 100644 --- a/src/components/accounts/TransactionDataTable.tsx +++ b/src/components/accounts/TransactionDataTable.tsx @@ -92,12 +92,14 @@ const TransactionDataTable = () => {
{/* Header */} + {location.pathname !== '/transactions' &&

Recent Transactions

-
+ View all +
} {/* Scrollable Table Container */} -
+
{/* Sticky Header */} diff --git a/src/components/contacts/Contacts.tsx b/src/components/contacts/Contacts.tsx index 7471975..e1d5d8e 100644 --- a/src/components/contacts/Contacts.tsx +++ b/src/components/contacts/Contacts.tsx @@ -126,7 +126,7 @@ const Contacts = () => { setShowModal((prev) => !prev); setActionStatus("Add") }} - className="flex items-center gap-2 bg-[var(--mainPrimaryBtn)] px-3 py-1.5 rounded-sm hover:opacity-90 "> + className="flex items-center gap-1 bg-gradient-to-br from-[var(--primary)] to-blue-600 px-3 py-1.5 rounded-sm hover:opacity-90 "> -
-
- +
+
+ - - - - + + + + - + {loading ? ( + )} +
First NameLast NameEmailActionsFirst NameLast NameEmailActions
diff --git a/src/components/contacts/ContactsFormModal.tsx b/src/components/contacts/ContactsFormModal.tsx index 7b5a119..c349e0c 100644 --- a/src/components/contacts/ContactsFormModal.tsx +++ b/src/components/contacts/ContactsFormModal.tsx @@ -170,7 +170,7 @@ const ContactFormModal = ({ return ( -
+

{`${actionStatus} Contact`}

@@ -262,7 +262,7 @@ const ContactFormModal = ({ type="button" onClick={handleSubmit} disabled={loading} - className="bg-gray-300 px-5 py-1.5 rounded-md text-slate-700 text-sm font-medium hover:bg-opacity-90 transition disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer" + className="bg-gradient-to-br from-[var(--primary)] to-blue-600 px-5 py-1.5 rounded-md text-white text-sm font-medium hover:bg-opacity-90 transition disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer" > {loading ? ( <> diff --git a/src/components/dashboard/Loader.tsx b/src/components/dashboard/Loader.tsx index 8e094ca..48a0be7 100644 --- a/src/components/dashboard/Loader.tsx +++ b/src/components/dashboard/Loader.tsx @@ -14,7 +14,7 @@ const Loader = () => {
{/* Loader */} -
+

diff --git a/src/components/dashboard/SideBar.tsx b/src/components/dashboard/SideBar.tsx index 341a857..b6463a6 100644 --- a/src/components/dashboard/SideBar.tsx +++ b/src/components/dashboard/SideBar.tsx @@ -23,11 +23,11 @@ type MenuPathMap = { } const menuPathMap: MenuPathMap = { - '/': 'Home', - '/templates': 'Templates', - // '/accounts': 'Accounts', - '/transactions': 'Transactions', - '/contacts': 'Contacts' + '/': 'Home', + '/templates': 'Templates', + // '/accounts': 'Accounts', + '/transactions': 'Transactions', + '/contacts': 'Contacts' }; const SideBar: React.FC = ({ showSideBar, setShowSideBar }) => { @@ -78,8 +78,9 @@ const SideBar: React.FC = ({ showSideBar, setShowSideBar }) => { onClick={() => setShowSideBar(!showSideBar)} className='absolute top-[100%] translate-y-[-100%] right-0 bg-[var(--dashBoardBg)] p-2 rounded-tl-sm rounded-bl-sm cursor-pointer transition-colors' > -

-
+
+
+ {showSideBar ? ( ) : ( diff --git a/src/components/home/StartNow.tsx b/src/components/home/StartNow.tsx index 0834a75..641c8ca 100644 --- a/src/components/home/StartNow.tsx +++ b/src/components/home/StartNow.tsx @@ -64,7 +64,7 @@ const StartNow = () => {

diff --git a/src/components/home/StartSection.tsx b/src/components/home/StartSection.tsx index 1f36bac..1807ef3 100644 --- a/src/components/home/StartSection.tsx +++ b/src/components/home/StartSection.tsx @@ -83,60 +83,26 @@ const StartSection = () => { return (
-

Upload Document

- -
+

+ Upload Document +

+ {/* Upload card */} +
- - {/*
- {cards.map((card, index) => ( -
handleStartSectionClick(card.link)} - key={index} - className={`${card.bg} w-full cursor-pointer relative border border-gray-200 rounded-xl p-4 shadow-sm hover:shadow-md transition-all flex flex-col justify-between`} - > - -
-
- {card.icon} -
- -

{card.title}

-

{card.description}

-
- -
- {card.buttonText ? ( - - ) : ( -
- )} - - -
-
- ))} -
*/} -
- {/*
*/} - {/*

Recent Activities

*/} -
-
+ {/* Recent Data Section */} +
+
-
+
- {/*
*/} - -
+ ); }; diff --git a/src/components/process/CompletionScreen/DocumentCompletionScreen.tsx b/src/components/process/CompletionScreen/DocumentCompletionScreen.tsx index 3ba00f5..ff8a318 100644 --- a/src/components/process/CompletionScreen/DocumentCompletionScreen.tsx +++ b/src/components/process/CompletionScreen/DocumentCompletionScreen.tsx @@ -47,45 +47,45 @@ type Signer = { const SignersList: React.FC<{ signers: Signer[] }> = ({ signers }) => { return ( //
-
-
-

- - Signature Status -

- - {signers.filter(s => s.completed).length} of {signers.length} signed - -
- -
- {signers.map((signer) => ( -
-
- {signer.name.length > 2 ? signer.name.split(" ").map(n => n[0].toUpperCase()).join("") : signer.email.split("").map(n => n[0].toUpperCase()).join("")} -
-
-
{signer.name}
-
{signer.email}
-
Order: {signer.routingOrder}
-
-
- {signer.completed ? ( -
- - Signed -
- ) : ( -
- - Pending -
- )} -
-
- ))} -
+
+
+

+ + Signature Status +

+ + {signers.filter(s => s.completed).length} of {signers.length} signed +
+ +
+ {signers.map((signer) => ( +
+
+ {signer.name.length > 2 ? signer.name.split(" ").map(n => n[0].toUpperCase()).join("") : signer.email.split("").map(n => n[0].toUpperCase()).join("")} +
+
+
{signer.name}
+
{signer.email}
+
Order: {signer.routingOrder}
+
+
+ {signer.completed ? ( +
+ + Signed +
+ ) : ( +
+ + Pending +
+ )} +
+
+ ))} +
+
//
); }; @@ -122,78 +122,79 @@ const SigningOrderDiagram: React.FC<{ signers: Signer[] }> = ({ signers }) => { return ( //
-
-

Signing Flow

-
-
- {/* Mail icon */} -
-
- -
-

Sent

+
+

+ Signing Flow

+
+
+ {/* Mail icon */} +
+
+
+

Sent

+
- {/* Dotted line */} -
-
-
+ {/* Dotted line */} +
+
+
- {/* Signers by routing order */} -
- {sortedOrders.map((order, index) => ( - -
-
- Step {order} -
-
- {grouped[order].map((signer) => { - let bgColor = ""; - let icon = null; - - if (signer.completed) { - bgColor = "bg-[var(--primary)]"; - icon = ; - } else if (order === currentProcessingOrder) { - bgColor = "bg-yellow-500"; - icon = ; - } else { - bgColor = "bg-gray-400"; - icon = ; - } - - return ( -
-
- {getInitials(signer.name)} - - {icon} - -
-

- {signer.name.split(" ")[0] || signer.firstName.split(0,1)} -

-
- ); - })} -
+ {/* Signers by routing order */} +
+ {sortedOrders.map((order, index) => ( + +
+
+ Step {order}
+
+ {grouped[order].map((signer) => { + let bgColor = ""; + let icon = null; - {index < sortedOrders.length - 1 && ( -
-
-
- )} - - ))} -
+ if (signer.completed) { + bgColor = "bg-[var(--primary)]"; + icon = ; + } else if (order === currentProcessingOrder) { + bgColor = "bg-yellow-500"; + icon = ; + } else { + bgColor = "bg-gray-400"; + icon = ; + } + + return ( +
+
+ {getInitials(signer.name)} + + {icon} + +
+

+ {signer.name.split(" ")[0] || signer.firstName.split(0, 1)} +

+
+ ); + })} +
+
+ + {index < sortedOrders.length - 1 && ( +
+
+
+ )} + + ))}
+
//
); }; @@ -216,7 +217,7 @@ const DocumentSubmissionOptions = () => { // const selectedDocuments = useSelector((state: RootState) => state.selectedDocuments.selectedDocuments) const selectedDocuments = useSelector((state: RootState) => state.documents.documents) console.log('Line 218', selectedDocuments) - const [transactionData,setTransactionData] = useState({}) + const [transactionData, setTransactionData] = useState({}) useEffect(() => { @@ -394,7 +395,7 @@ const DocumentSubmissionOptions = () => {

Document Send Successfully!

{selectedDocuments?.map((docs) => (

Your document "{docs.name}" has been sent for signature.

- ) )} + ))}
@@ -415,7 +416,7 @@ const DocumentSubmissionOptions = () => { case 'redirect': return ( <> - + ); @@ -433,26 +434,25 @@ const DocumentSubmissionOptions = () => { return ( -
-
+
+
+ + + +
+

🎉 Awesome! The document’s been sent for signature. 🎉

+
+
{/* Header */} -
- - - -
-

🎉 Awesome! The document’s been sent for signature. 🎉

-
-
- {/* Left Panel - Configuration */} + {/*
- {/* Action Selection */} +

@@ -502,7 +502,7 @@ const DocumentSubmissionOptions = () => {

- {/* Selection indicator */} + {isSelected && (
@@ -517,10 +517,8 @@ const DocumentSubmissionOptions = () => {
- {/* Custom Image Section */} +
- - {/* Right Panel - Preview */}
@@ -535,7 +533,25 @@ const DocumentSubmissionOptions = () => {
+
*/} + +
+
+ +
+
+

Document Send Successfully!

+
+
+
+ +
+
+
+ +
+
); diff --git a/src/components/setting/ContactForm.tsx b/src/components/setting/ContactForm.tsx index 2bdefe6..dbf5e01 100644 --- a/src/components/setting/ContactForm.tsx +++ b/src/components/setting/ContactForm.tsx @@ -213,7 +213,7 @@ const ContactForm = ({ onSubmit, loading }: Props) => { type="button" onClick={handleSubmit} disabled={loading} - className="bg-gray-300 px-5 py-2 rounded-md text-slate-700 text-sm font-medium hover:bg-opacity-90 transition disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer" + className="bg-gradient-to-br from-[var(--primary)] to-blue-600 px-5 py-2 rounded-md text-white text-sm font-medium hover:bg-opacity-90 transition disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer" > {loading ? ( <> diff --git a/src/components/setting/CreateAndInvite.tsx b/src/components/setting/CreateAndInvite.tsx index c8d8f13..7925a26 100644 --- a/src/components/setting/CreateAndInvite.tsx +++ b/src/components/setting/CreateAndInvite.tsx @@ -177,7 +177,7 @@ const CreateAndInvite = ({
- diff --git a/src/components/signature/SignCon.tsx b/src/components/signature/SignCon.tsx index 02fdf31..1a73a15 100644 --- a/src/components/signature/SignCon.tsx +++ b/src/components/signature/SignCon.tsx @@ -543,7 +543,7 @@ const AddSignatureModal: React.FC = ({ }, []); return ( -
+
{/* Sidebar Navigation */} diff --git a/src/components/templates/TemplateTable.tsx b/src/components/templates/TemplateTable.tsx index b04e469..1c1b75d 100644 --- a/src/components/templates/TemplateTable.tsx +++ b/src/components/templates/TemplateTable.tsx @@ -90,127 +90,139 @@ const TemplateTable = () => { } return ( <> -
-
-

Recent Template

-
- - - - {/* */} - - {loaction.pathname === '/templates' && (<> - - - )} - - - - +
+ {/* Header */} + {location.pathname !== '/templates' && +
+

Recent Template

+ View all +
} - {loading ? ( -
- - + {/* Scrollable Table Container */} +
+
-
- -
-
NameCreatedLast UpdatedUseAction
- -
+ {/* Sticky Header */} + + + + {location.pathname === '/templates' && ( + <> + + + + )} + + - - ) : templates.length > 0 ? ( - - {templates.map((item, index) => ( - - {/* */} - + + - {loaction.pathname === '/templates' && (<> - - - )} - + + ) : templates.length > 0 ? ( + <> + {/* Scrollable Body */} + + {templates.map((item, index) => ( + - - Use - - + - {/* Action Menu */} - + + + )} - {showMenu === index && ( + + + + + ))} + + + ) : ( + + + - ))} - - ) : ( - - - - - - )} -
NameCreatedLast UpdatedUseAction
-
- -
-
- {item.name || 'Untitled'} + + {loading ? ( +
+ - {formatTimestamp(item.createdAt)} - - {formatTimestamp(item.lastModifiedAt)} - handleUseClick(item)} +
+
+ {item.name || 'Untitled'} +
+
-
{ - if (!e.currentTarget.contains(e.relatedTarget)) { - setShowMenu(null); - } - }} - > - + {location.pathname === '/templates' && ( + <> +
+ + {formatTimestamp(item.createdAt)} + + + + {formatTimestamp(item.lastModifiedAt)} + + + +
{ + if (!e.currentTarget.contains(e.relatedTarget)) { + setShowMenu(null); + } + }} > - + + {showMenu === index && ( +
+ + +
+ )}
- )} +
+
+ Record Not Found
-
- Record Not Found -
-
+
+
) diff --git a/src/components/templates/Templates.tsx b/src/components/templates/Templates.tsx index 9ae6c49..8f0c866 100644 --- a/src/components/templates/Templates.tsx +++ b/src/components/templates/Templates.tsx @@ -67,7 +67,7 @@ const Templates = () => {
+ className="flex items-center gap-1 bg-gradient-to-br from-[var(--primary)] to-blue-600 px-2.5 py-1.5 rounded-sm cursor-pointer hover:opacity-90"> @@ -203,22 +219,25 @@ const TransactionView = () => {
}
-
- -
-

abc.pdf

-
- -
-

- 1 of 10 - -

+
+ {documentsData.map((docsD, index) => ( +
+

{docsD.name}

+
+ {docsD?.pages[0]?.src ? + + : + } +
+

+ 1 of {docsD?.pages?.length} + +

+
- -
+ ))}