Open-source document signature platform. Not affiliated with DocuSign.
TypeScript
Merge the compliance changes from the base branch into the redesign
Claudeff4305e63ed6
diff --cc src/components/envelopes/review-shell.tsxindex 5411333,d11adf9..9cb9f2e--- a/src/components/envelopes/review-shell.tsx+++ b/src/components/envelopes/review-shell.tsx@@@ -2,8 -2,6 +2,7 @@@import { useEffect, useRef, useState } from "react";- import { useBranding } from "@/components/layout/branding-provider";+import { DocumentThumbnail } from "@/components/shared/document-thumbnail";import { ShellButton } from "@/components/shared/form-shell";import { PageHeader } from "@/components/shared/page-header";import { StatusPanel } from "@/components/shared/status-panel";@@@ -392,17 -396,17 +387,12 @@@ function SendConfirmationDialog(}}}>-- <DialogContent- className="max-w-md sm:p-8"- className="max-w-md rounded-none border-(--border) sm:p-8"-- showCloseButton={false}-- >++ <DialogContent className="max-w-md sm:p-8" showCloseButton={false}><div className="space-y-4"><DialogHeader className="space-y-3">- <DialogTitle>- <DialogTitle className="text-xl tracking-[-0.03em]">-- Send this envelope?-- </DialogTitle>++ <DialogTitle>Send this envelope?</DialogTitle><DialogDescription asChild>- <div className="space-y-3 text-sm leading-6 text-muted-foreground">+ <div className="space-y-3 text-sm leading-6 text-(--secondary)"><p>"{title}" will be sent to {signerCount}{" "}{signerCount === 1 ? "signer" : "signers"}.{" "}@@@ -425,27 -429,25 +415,19 @@@setIsPermittedUseConfirmed(checked === true)}/>- <span className="text-sm leading-6 text-muted-foreground">+ <span className="text-sm leading-6 text-(--secondary)">By sending, you confirm this document is an ordinary businessagreement and not a will, court order, legally required consumer- disclosure, or other- {termsUrl ? (- <>- {" "}- excluded document type described in the{" "}- <a- className="font-semibold text-(--accent-ink) underline decoration-[rgba(83,64,214,0.35)] underline-offset-4"- href={termsUrl}- rel="noreferrer"- target="_blank"- >- Terms of Service- </a>- .- </>- ) : (- " document that cannot be signed electronically."- )}+ disclosure, or other{" "}+ <a- className="font-semibold text-(--fg)"++ className="font-semibold text-(--accent-ink) underline decoration-[rgba(83,64,214,0.35)] underline-offset-4"+ href={PERMITTED_USE_PATH}+ rel="noreferrer"- style={{- textDecorationColor: "rgba(17,17,17,0.35)",- textDecorationLine: "underline",- textDecorationThickness: "1px",- textUnderlineOffset: "4px",- }}+ target="_blank"+ >+ document that cannot be signed electronically+ </a>+ .</span></span></label>diff --cc src/components/layout/public-legal-links.tsxindex a7f7d10,6a8b797..593d403--- a/src/components/layout/public-legal-links.tsx+++ b/src/components/layout/public-legal-links.tsx@@@ -6,7 -7,14 +6,8 @@@ import { useBranding } from "@/componenimport { SIGNUDOC_NAME, SIGNUDOC_URL } from "@/lib/branding";import { PUBLIC_COPYRIGHT_YEAR, publicFooterLinks } from "@/lib/legal";import { cn } from "@/lib/cn";+ import { PERMITTED_USE_PATH } from "@/lib/permitted-uses";-const ibmPlexMono = IBM_Plex_Mono({- display: "swap",- subsets: ["latin"],- weight: ["400", "500", "600", "700"],-});-type PublicLegalFooterProps = {className?: string;contentClassName?: string;@@@ -48,22 -57,43 +49,33 @@@ export function PublicLegalFooter(},]: []),- ...(branding.privacyUrl- ? [- {- external: true,- href: branding.privacyUrl,- label: labelVariant === "long" ? "Privacy Policy" : "Privacy",- },- ]- : []),+ // Without the organization's own policy, signers still get a+ // notice, built from the install's settings.+ branding.privacyUrl+ ? {+ external: true,+ href: branding.privacyUrl,+ label: labelVariant === "long" ? "Privacy Policy" : "Privacy",+ }+ : {+ external: false,+ href: "/signer-privacy",+ label: labelVariant === "long" ? "Privacy notice" : "Privacy",+ },];+ // Which documents may be signed here: on every install.+ links.push({+ external: false,+ href: PERMITTED_USE_PATH,+ label: labelVariant === "long" ? "What this is for" : "E-signatures",+ });+return (- <footer- className={cn(- "relative z-10 border-t border-[#d4d4d4] bg-white",- className,- )}- >- <div- className={cn(- "mx-auto max-w-[1200px] px-6 py-8 sm:px-8 lg:px-10",- contentClassName,- )}- >+ <footer className={cn("relative z-10", className)}>+ <div className={cn("page-width py-7", contentClassName)}><div className="flex flex-col items-center justify-between gap-4 sm:flex-row">- <p className={`${monoClassName} text-xs text-[#71717a]`}>+ <p className="text-[0.8125rem] text-(--tertiary)">© {PUBLIC_COPYRIGHT_YEAR} {branding.productName}</p>diff --cc src/components/settings/settings-shell.tsxindex ceaf21d,cdb37e6..3f38a8e--- a/src/components/settings/settings-shell.tsx+++ b/src/components/settings/settings-shell.tsx@@@ -656,17 -661,14 +656,14 @@@ export function SettingsShell(</div></div>- <div className="border-t border-(--border) pt-8">+ <div className="panel p-6 sm:p-8"><div className="space-y-5"><SectionHeading title="Danger zone" />- <p className="max-w-2xl text-sm leading-6 text-muted-foreground">+ <p className="max-w-2xl text-sm leading-6 text-(--secondary)">- Before closing your account, download any documents you want to- keep. After closure, {productName} may provide a 30-day export window- and then delete stored document files and related envelope- records.+ {closureCopy}</p><ShellButton- className="w-fit"+ className="w-fit border-[rgba(180,35,24,0.35)] text-(--danger) hover:border-(--danger) hover:bg-(--danger-soft) hover:text-(--danger)"disabled={isBusy}onClick={openClosureDialog}variant="secondary"@@@ -745,15 -758,17 +750,12 @@@ function AccountClosureDialog(}}}>- <DialogContent- className="max-w-lg rounded-none border-(--border) sm:p-8"- showCloseButton={false}- >+ <DialogContent className="max-w-lg sm:p-8" showCloseButton={false}><div className="space-y-5"><DialogHeader className="space-y-3">- <DialogTitle className="text-xl tracking-[-0.03em]">- Request account closure?- </DialogTitle>- <DialogDescription className="text-sm leading-6 text-muted-foreground">+ <DialogTitle>Request account closure?</DialogTitle>+ <DialogDescription className="text-sm leading-6 text-(--secondary)">- Before closing your account, download any documents you want to- keep. After closure, {productName} may provide a 30-day export window- and then delete stored document files and related envelope- records.+ {closureCopy}</DialogDescription></DialogHeader>diff --cc src/components/signing/signing-shell.tsxindex 15fb445,7c9209f..e736c7b--- a/src/components/signing/signing-shell.tsx+++ b/src/components/signing/signing-shell.tsx@@@ -1,10 -1,12 +1,14 @@@"use client";+import { FileTextIcon } from "lucide-react";+import { Brand } from "@/components/layout/brand";import { PublicLegalFooter } from "@/components/layout/public-legal-links";- import type { SigningPayload } from "@/lib/schemas/signing";+ import type {+ SigningPayload,+ SigningVerificationState,+ } from "@/lib/schemas/signing";+ import { SignerVerificationScreen } from "./signer-verification-screen";import { SigningLiveShell } from "./signing-live-shell";type SigningUnavailableState =