feat: add envelope editor

This commit is contained in:
David Nguyen
2025-10-12 23:35:54 +11:00
parent bf89bc781b
commit 0da8e7dbc6
307 changed files with 24657 additions and 3681 deletions

View File

@ -113,15 +113,21 @@ export const TemplatePageViewRecentActivity = ({
</div>
<Link
to={`${documentRootPath}/${document.id}`}
to={`${documentRootPath}/${document.envelopeId}`}
className="text-muted-foreground dark:text-muted-foreground/70 flex-auto truncate py-0.5 text-xs leading-5"
>
{match(document.source)
.with(DocumentSource.DOCUMENT, DocumentSource.TEMPLATE, () => (
<Trans>
Document created by <span className="font-bold">{document.user.name}</span>
</Trans>
))
.with(
DocumentSource.DOCUMENT,
DocumentSource.TEMPLATE,
DocumentSource.NONE,
() => (
<Trans>
Document created by{' '}
<span className="font-bold">{document.user.name}</span>
</Trans>
),
)
.with(DocumentSource.TEMPLATE_DIRECT_LINK, () => (
<Trans>
Document created using a <span className="font-bold">direct link</span>