[PR #1491] [MERGED] feat: support whitelabelling in the embedding #1666

Closed
opened 2026-02-26 19:34:14 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1491
Author: @Mythie
Created: 11/23/2024
Status: Merged
Merged: 11/25/2024
Merged by: @Mythie

Base: mainHead: feat/embedding-whitelabelling


📝 Commits (3)

  • 8de810b feat: support whitelabelling in the embedding
  • c790854 Merge branch 'main' into feat/embedding-whitelabelling
  • 07db95d feat: allow disabling dark mode

📊 Changes

22 files changed (+282 additions, -39 deletions)

View changed files

📝 apps/web/package.json (+3 -2)
📝 apps/web/src/app/embed/base-schema.ts (+4 -0)
apps/web/src/app/embed/css-vars.ts (+59 -0)
📝 apps/web/src/app/embed/direct/[[...url]]/client.tsx (+24 -6)
📝 apps/web/src/app/embed/direct/[[...url]]/page.tsx (+19 -0)
📝 apps/web/src/app/embed/sign/[[...url]]/client.tsx (+24 -6)
📝 apps/web/src/app/embed/sign/[[...url]]/page.tsx (+19 -0)
apps/web/src/app/embed/util.ts (+20 -0)
📝 package-lock.json (+17 -16)
📝 packages/ee/server-only/stripe/get-document-related-prices.ts.ts (+1 -0)
packages/ee/server-only/stripe/get-platform-plan-prices.ts (+13 -0)
📝 packages/ee/server-only/stripe/get-primary-account-plan-prices.ts (+1 -0)
📝 packages/ee/server-only/stripe/get-team-related-prices.ts (+5 -1)
packages/ee/server-only/util/is-document-platform.ts (+61 -0)
📝 packages/lib/constants/billing.ts (+1 -0)
📝 packages/lib/package.json (+1 -1)
📝 packages/tailwind-config/index.cjs (+3 -0)
📝 packages/ui/components/field/field.tsx (+1 -1)
📝 packages/ui/package.json (+1 -1)
📝 packages/ui/primitives/card.tsx (+3 -3)

...and 2 more files

📄 Description

Description

Adds support for customising the theme and CSS for the embedding components which is restricted to platform customers and above.

Additionally adds proper support for the platform plan which will let us update our stripe products.

image image image

N/A

Changes Made

  • Added support for using CSS Vars and CSS within the embedding route
  • Added a guard for platform and enterprise plans to activate the custom css
  • Added support for the platform plan

Testing Performed

Yes

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced a new property for custom CSS variables in the embed schema.
    • Added support for dynamically injecting CSS styles based on document type.
    • Enhanced the Embed components to conditionally display branding based on user settings.
    • Added a new utility function to check user access to platform features.
  • Improvements

    • Updated Tailwind CSS configuration to include new responsive breakpoints and border radius options.
    • Enhanced pricing retrieval functions to support new platform plan types.
    • Expanded the theme's color palette with new CSS custom properties.
  • Bug Fixes

    • Adjusted checkbox styling in the RadioField component for better visual consistency.
  • Chores

    • Updated dependency versions for improved performance and security.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1491 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 11/23/2024 **Status:** ✅ Merged **Merged:** 11/25/2024 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/embedding-whitelabelling` --- ### 📝 Commits (3) - [`8de810b`](https://github.com/documenso/documenso/commit/8de810b612adecbc9096ec1bec549ea4a5662f69) feat: support whitelabelling in the embedding - [`c790854`](https://github.com/documenso/documenso/commit/c790854c937f883a6333ccbd3aabe3937450f317) Merge branch 'main' into feat/embedding-whitelabelling - [`07db95d`](https://github.com/documenso/documenso/commit/07db95d24ea8b91cf91944461dd8cd2dadf2c875) feat: allow disabling dark mode ### 📊 Changes **22 files changed** (+282 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/package.json` (+3 -2) 📝 `apps/web/src/app/embed/base-schema.ts` (+4 -0) ➕ `apps/web/src/app/embed/css-vars.ts` (+59 -0) 📝 `apps/web/src/app/embed/direct/[[...url]]/client.tsx` (+24 -6) 📝 `apps/web/src/app/embed/direct/[[...url]]/page.tsx` (+19 -0) 📝 `apps/web/src/app/embed/sign/[[...url]]/client.tsx` (+24 -6) 📝 `apps/web/src/app/embed/sign/[[...url]]/page.tsx` (+19 -0) ➕ `apps/web/src/app/embed/util.ts` (+20 -0) 📝 `package-lock.json` (+17 -16) 📝 `packages/ee/server-only/stripe/get-document-related-prices.ts.ts` (+1 -0) ➕ `packages/ee/server-only/stripe/get-platform-plan-prices.ts` (+13 -0) 📝 `packages/ee/server-only/stripe/get-primary-account-plan-prices.ts` (+1 -0) 📝 `packages/ee/server-only/stripe/get-team-related-prices.ts` (+5 -1) ➕ `packages/ee/server-only/util/is-document-platform.ts` (+61 -0) 📝 `packages/lib/constants/billing.ts` (+1 -0) 📝 `packages/lib/package.json` (+1 -1) 📝 `packages/tailwind-config/index.cjs` (+3 -0) 📝 `packages/ui/components/field/field.tsx` (+1 -1) 📝 `packages/ui/package.json` (+1 -1) 📝 `packages/ui/primitives/card.tsx` (+3 -3) _...and 2 more files_ </details> ### 📄 Description ## Description Adds support for customising the theme and CSS for the embedding components which is restricted to platform customers and above. Additionally adds proper support for the platform plan which will let us update our stripe products. <img width="1040" alt="image" src="https://github.com/user-attachments/assets/f694cd1e-ac93-4dc0-9f78-92fa813f6404"> <img width="1015" alt="image" src="https://github.com/user-attachments/assets/4209972a-b2bd-40c9-9049-0367382a4de5"> <img width="1065" alt="image" src="https://github.com/user-attachments/assets/fdbaaaa5-a028-4b1d-a58a-ea6224e21abe"> ## Related Issue N/A ## Changes Made - Added support for using CSS Vars and CSS within the embedding route - Added a guard for platform and enterprise plans to activate the custom css - Added support for the platform plan ## Testing Performed Yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced a new property for custom CSS variables in the embed schema. - Added support for dynamically injecting CSS styles based on document type. - Enhanced the Embed components to conditionally display branding based on user settings. - Added a new utility function to check user access to platform features. - **Improvements** - Updated Tailwind CSS configuration to include new responsive breakpoints and border radius options. - Enhanced pricing retrieval functions to support new platform plan types. - Expanded the theme's color palette with new CSS custom properties. - **Bug Fixes** - Adjusted checkbox styling in the RadioField component for better visual consistency. - **Chores** - Updated dependency versions for improved performance and security. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:34:14 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1666
No description provided.