[PR #273] [MERGED] feat: feature flags #841

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/273
Author: @dguyen
Created: 8/18/2023
Status: Merged
Merged: 8/22/2023
Merged by: @Mythie

Base: feat/refreshHead: feat/feature-flag


📝 Commits (3)

📊 Changes

23 files changed (+671 additions, -36 deletions)

View changed files

📝 .env.example (+6 -1)
📝 apps/web/package.json (+2 -0)
📝 apps/web/process-env.d.ts (+0 -2)
📝 apps/web/src/app/(dashboard)/settings/billing/page.tsx (+4 -2)
📝 apps/web/src/app/layout.tsx (+22 -9)
📝 apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx (+9 -4)
📝 apps/web/src/components/(dashboard)/settings/layout/desktop-nav.tsx (+7 -2)
📝 apps/web/src/components/(dashboard)/settings/layout/mobile-nav.tsx (+7 -2)
📝 apps/web/src/components/forms/edit-document/add-fields.tsx (+1 -1)
📝 apps/web/src/helpers/get-bounding-client-rect.ts (+0 -0)
apps/web/src/helpers/get-feature-flag.ts (+79 -0)
apps/web/src/helpers/get-post-hog-server-client.ts (+16 -0)
apps/web/src/helpers/get-server-component-feature-flag.ts (+26 -0)
📝 apps/web/src/hooks/use-field-page-coords.ts (+1 -1)
apps/web/src/pages/api/feature-flag/all.ts (+44 -0)
apps/web/src/pages/api/feature-flag/get.ts (+122 -0)
apps/web/src/providers/feature-flag.tsx (+105 -0)
apps/web/src/providers/posthog.tsx (+53 -0)
📝 package-lock.json (+116 -0)
packages/lib/constants/feature-flags.ts (+37 -0)

...and 3 more files

📄 Description

Added the following items:

  • Feature flags
  • Analytics and session recording

These are tools are provided by PostHog and are disabled by default.


🔄 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/273 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 8/18/2023 **Status:** ✅ Merged **Merged:** 8/22/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `feat/refresh` ← **Head:** `feat/feature-flag` --- ### 📝 Commits (3) - [`f60cb22`](https://github.com/documenso/documenso/commit/f60cb22f11299980fd2feaca22b6651840b131a8) feat: feature flags - [`d0720f4`](https://github.com/documenso/documenso/commit/d0720f4c70d4a74dc658bca705a1162916d8f034) feat: update items - [`ba95818`](https://github.com/documenso/documenso/commit/ba95818da4e29bc617f268ce478385dd1da73e58) feat: update items ### 📊 Changes **23 files changed** (+671 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+6 -1) 📝 `apps/web/package.json` (+2 -0) 📝 `apps/web/process-env.d.ts` (+0 -2) 📝 `apps/web/src/app/(dashboard)/settings/billing/page.tsx` (+4 -2) 📝 `apps/web/src/app/layout.tsx` (+22 -9) 📝 `apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx` (+9 -4) 📝 `apps/web/src/components/(dashboard)/settings/layout/desktop-nav.tsx` (+7 -2) 📝 `apps/web/src/components/(dashboard)/settings/layout/mobile-nav.tsx` (+7 -2) 📝 `apps/web/src/components/forms/edit-document/add-fields.tsx` (+1 -1) 📝 `apps/web/src/helpers/get-bounding-client-rect.ts` (+0 -0) ➕ `apps/web/src/helpers/get-feature-flag.ts` (+79 -0) ➕ `apps/web/src/helpers/get-post-hog-server-client.ts` (+16 -0) ➕ `apps/web/src/helpers/get-server-component-feature-flag.ts` (+26 -0) 📝 `apps/web/src/hooks/use-field-page-coords.ts` (+1 -1) ➕ `apps/web/src/pages/api/feature-flag/all.ts` (+44 -0) ➕ `apps/web/src/pages/api/feature-flag/get.ts` (+122 -0) ➕ `apps/web/src/providers/feature-flag.tsx` (+105 -0) ➕ `apps/web/src/providers/posthog.tsx` (+53 -0) 📝 `package-lock.json` (+116 -0) ➕ `packages/lib/constants/feature-flags.ts` (+37 -0) _...and 3 more files_ </details> ### 📄 Description Added the following items: - Feature flags - Analytics and session recording These are tools are provided by [PostHog](posthog.com/) and are disabled by default. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:30:43 +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#841
No description provided.