fix: improve embed error messages (#2752)

This commit is contained in:
David Nguyen
2026-05-01 14:24:42 +10:00
committed by GitHub
parent c428170b5c
commit e19b1d00d0
2 changed files with 22 additions and 3 deletions
@@ -1,7 +1,25 @@
import { Trans } from '@lingui/react/macro';
import { Link } from 'react-router';
import { SUPPORT_EMAIL } from '@documenso/lib/constants/app';
export const EmbedPaywall = () => {
return (
<div>
<h1>Paywall</h1>
<div className="flex min-h-screen items-center justify-center p-4">
<div className="text-center text-muted-foreground">
<p className="text-lg font-semibold">
<Trans>This feature is not available on your current plan</Trans>
</p>
<p className="mt-2 text-sm">
<Trans>
Please contact{' '}
<Link to={`mailto:${SUPPORT_EMAIL}`} target="_blank">
support
</Link>{' '}
if you have any questions.
</Trans>
</p>
</div>
</div>
);
};
@@ -46,7 +46,8 @@ export const createEmbeddingPresignTokenRoute = procedure
if (!organisationClaim.flags.embedAuthoring) {
throw new AppError(AppErrorCode.UNAUTHORIZED, {
message: 'You do not have permission to create embedding presign tokens',
message:
'Embedded Authoring is not included in your current plan. Please contact support.',
});
}
}