diff --git a/apps/web/pages/documents.tsx b/apps/web/pages/documents.tsx index 8ff1fd1b0..f6cfc8c82 100644 --- a/apps/web/pages/documents.tsx +++ b/apps/web/pages/documents.tsx @@ -4,6 +4,7 @@ import type { NextPageWithLayout } from "./_app"; import Head from "next/head"; import { CheckBadgeIcon, + CheckIcon, DocumentPlusIcon, EnvelopeIcon, EyeIcon, @@ -151,11 +152,11 @@ const DocumentsPage: NextPageWithLayout = (props: any) => { {item.sendStatus === "SENT" && item.readStatus !== "OPENED" ? ( - + {item.name ? item.name + " <" + item.email + ">" : item.email} @@ -167,11 +168,12 @@ const DocumentsPage: NextPageWithLayout = (props: any) => { {item.readStatus === "OPENED" && item.signingStatus === "NOT_SIGNED" ? ( - {" "} + + {item.name ? item.name + " <" + item.email + ">" : item.email} @@ -182,8 +184,10 @@ const DocumentsPage: NextPageWithLayout = (props: any) => { )} {item.signingStatus === "SIGNED" ? ( - {" "} - {item.email} + + {" "} + {item.email} + ) : ( "" diff --git a/apps/web/pages/documents/[id]/recipients.tsx b/apps/web/pages/documents/[id]/recipients.tsx index 950ffa48b..05e380bf1 100644 --- a/apps/web/pages/documents/[id]/recipients.tsx +++ b/apps/web/pages/documents/[id]/recipients.tsx @@ -2,14 +2,8 @@ import Head from "next/head"; import { ReactElement, useState } from "react"; import Layout from "../../../components/layout"; import { NextPageWithLayout } from "../../_app"; -import { NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib"; -import { - PaperAirplaneIcon, - TrashIcon, - UserCircleIcon, - UserPlusIcon, - XMarkIcon, -} from "@heroicons/react/24/outline"; +import { classNames, NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib"; +import { CheckBadgeIcon, CheckIcon, PaperAirplaneIcon, UserPlusIcon, XMarkIcon } from "@heroicons/react/24/outline"; import { getUserFromToken } from "@documenso/lib/server"; import { getDocument } from "@documenso/lib/query"; import { Document as PrismaDocument } from "@prisma/client"; @@ -84,7 +78,12 @@ const RecipientsPage: NextPageWithLayout = (props: any) => { className="px-0 py-4 w-full hover:bg-green-50 border-0 group" >
-
+
-
+
+
+
+ {item.sendStatus === "NOT_SENT" ? ( + + Not Sent + + ) : ( + "" + )} + {item.sendStatus === "SENT" && + item.readStatus !== "OPENED" ? ( + + + {" "} + Sent + + + ) : ( + "" + )} + {item.readStatus === "OPENED" && + item.signingStatus === "NOT_SIGNED" ? ( + + + + + Seen + + + ) : ( + "" + )} + {item.signingStatus === "SIGNED" ? ( + + + + Signed + + + ) : ( + "" + )} +
+
{ const signersWithoutIndex = [...signers]; const removedItem = signersWithoutIndex.splice( @@ -275,6 +337,8 @@ async function send(document: any) { "Content-Type": "application/json", }, method: "POST", + }).finally(() => { + location.reload(); }); }