Compare commits

..

2 Commits

Author SHA1 Message Date
86051e4312 chore: add translations 2025-11-24 18:05:38 +00:00
5df3932958 fix: update branding logic (#2238)
Update branding logic to ensure company details are displayed only when
branding is enabled
2025-11-24 21:45:31 +11:00
4 changed files with 7 additions and 39 deletions

View File

@ -23,7 +23,7 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
</Text> </Text>
)} )}
{branding.brandingCompanyDetails ? ( {branding.brandingEnabled && branding.brandingCompanyDetails && (
<Text className="my-8 text-sm text-slate-400"> <Text className="my-8 text-sm text-slate-400">
{branding.brandingCompanyDetails.split('\n').map((line, idx) => { {branding.brandingCompanyDetails.split('\n').map((line, idx) => {
return ( return (
@ -34,7 +34,9 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
); );
})} })}
</Text> </Text>
) : ( )}
{!branding.brandingEnabled && (
<Text className="my-8 text-sm text-slate-400"> <Text className="my-8 text-sm text-slate-400">
Documenso, Inc. Documenso, Inc.
<br /> <br />

View File

@ -8,7 +8,7 @@ msgstr ""
"Language: pl\n" "Language: pl\n"
"Project-Id-Version: documenso-app\n" "Project-Id-Version: documenso-app\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-11-20 02:32\n" "PO-Revision-Date: 2025-11-21 00:14\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: Polish\n" "Language-Team: Polish\n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
@ -7584,7 +7584,7 @@ msgstr "Liczba podpisów"
#: packages/ui/components/document/envelope-recipient-field-tooltip.tsx #: packages/ui/components/document/envelope-recipient-field-tooltip.tsx
#: packages/ui/components/document/document-read-only-fields.tsx #: packages/ui/components/document/document-read-only-fields.tsx
msgid "Signed" msgid "Signed"
msgstr "Podpisał" msgstr "Podpisano"
#: apps/remix/app/components/dialogs/envelope-download-dialog.tsx #: apps/remix/app/components/dialogs/envelope-download-dialog.tsx
msgctxt "Signed document (adjective)" msgctxt "Signed document (adjective)"

View File

@ -457,10 +457,8 @@ export const templateRouter = router({
recipients, recipients,
distributeDocument, distributeDocument,
customDocumentDataId, customDocumentDataId,
folderId,
prefillFields, prefillFields,
override, folderId,
attachments,
} = input; } = input;
ctx.logger.info({ ctx.logger.info({
@ -497,8 +495,6 @@ export const templateRouter = router({
requestMetadata: ctx.metadata, requestMetadata: ctx.metadata,
folderId, folderId,
prefillFields, prefillFields,
override,
attachments,
}); });
if (distributeDocument) { if (distributeDocument) {

View File

@ -133,42 +133,12 @@ export const ZCreateDocumentFromTemplateRequestSchema = z.object({
'The ID of the folder to create the document in. If not provided, the document will be created in the root folder.', 'The ID of the folder to create the document in. If not provided, the document will be created in the root folder.',
) )
.optional(), .optional(),
prefillFields: z prefillFields: z
.array(ZFieldMetaPrefillFieldsSchema) .array(ZFieldMetaPrefillFieldsSchema)
.describe( .describe(
'The fields to prefill on the document before sending it out. Useful when you want to create a document from an existing template and pre-fill the fields with specific values.', 'The fields to prefill on the document before sending it out. Useful when you want to create a document from an existing template and pre-fill the fields with specific values.',
) )
.optional(), .optional(),
override: z
.object({
title: z.string().min(1).max(255).optional(),
subject: ZDocumentMetaSubjectSchema.optional(),
message: ZDocumentMetaMessageSchema.optional(),
timezone: ZDocumentMetaTimezoneSchema.optional(),
dateFormat: ZDocumentMetaDateFormatSchema.optional(),
redirectUrl: ZDocumentMetaRedirectUrlSchema.optional(),
distributionMethod: ZDocumentMetaDistributionMethodSchema.optional(),
emailSettings: ZDocumentEmailSettingsSchema.optional(),
language: ZDocumentMetaLanguageSchema.optional(),
typedSignatureEnabled: ZDocumentMetaTypedSignatureEnabledSchema.optional(),
uploadSignatureEnabled: ZDocumentMetaUploadSignatureEnabledSchema.optional(),
drawSignatureEnabled: ZDocumentMetaDrawSignatureEnabledSchema.optional(),
allowDictateNextSigner: z.boolean().optional(),
})
.describe('Override values from the template for the created document.')
.optional(),
attachments: z
.array(
z.object({
label: z.string().min(1, 'Label is required'),
data: z.string().url('Must be a valid URL'),
type: ZEnvelopeAttachmentTypeSchema.optional().default('link'),
}),
)
.optional(),
}); });
export const ZCreateDocumentFromTemplateResponseSchema = ZDocumentSchema; export const ZCreateDocumentFromTemplateResponseSchema = ZDocumentSchema;