Skip to content

🚩 Add feature flags for the AI feature#1922

Merged
AntoLC merged 2 commits intomainfrom
feat/add-feature-flag-AI
Feb 27, 2026
Merged

🚩 Add feature flags for the AI feature#1922
AntoLC merged 2 commits intomainfrom
feat/add-feature-flag-AI

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Feb 26, 2026

Purpose

The Blocknote AI feature is a bit flaky, we want to be able to disable it if too much issues arise, without having to do a new release.
We add a bunch of feature flags to be able to disable the AI features if needed.
Backend flag (per instance):

  • add AI_FEATURE_BLOCKNOTE_ENABLED, to display or not the feature powered by Blocknote
  • add AI_FEATURE_LEGACY_ENABLED, to display or not the legacy AI features

To do AB testing, we added as well a frontend flag to display or not the Blocknote AI feature, with this flag we can activate the feature per users or groups inside a instance.

Demo

For the AB testing, we are using Posthog:

Enregistrement.2026-02-26.122222.mp4

@AntoLC AntoLC self-assigned this Feb 26, 2026
@AntoLC AntoLC changed the title Feat/add feature flag ai 🚩 Add feature flags for the AI feature Feb 26, 2026
@AntoLC AntoLC force-pushed the feat/add-feature-flag-AI branch from 07d4176 to 35e913d Compare February 26, 2026 11:25
@github-actions
Copy link

github-actions bot commented Feb 26, 2026

Size Change: +77 B (0%)

Total Size: 4.22 MB

Filename Size Change
apps/impress/out/_next/static/bf561665/_buildManifest.js 890 B +890 B (new file) 🆕
apps/impress/out/_next/static/ee727925/_buildManifest.js 0 B -890 B (removed) 🏆

compressed-size-action

@AntoLC AntoLC force-pushed the feat/add-feature-flag-AI branch 2 times, most recently from 388af61 to 00d8a28 Compare February 26, 2026 12:42
The Blocknote AI feature is a bit flaky, we want
to be able to disable it if to much issues arise,
without having to do a new release.
We add a bunch of feature flags to be able to
disable the AI features if needed:
- add AI_FEATURE_BLOCKNOTE_ENABLED, to display
or not the feature powered by blocknote
- add AI_FEATURE_LEGACY_ENABLED, to display or not
the legacy AI features
We want to have a fine grained control over the
Blocknote AI feature.
By adding the feature Analytics feature flag,
we can enable or disable this feature for specific
users or groups without deploying new code.
This allows us to test the feature in a controlled
environment and gather feedback before a full rollout.
@AntoLC AntoLC force-pushed the feat/add-feature-flag-AI branch from 00d8a28 to a51ceeb Compare February 26, 2026 12:50
@AntoLC AntoLC requested a review from lunika February 26, 2026 13:16
@AntoLC AntoLC merged commit a51ceeb into main Feb 27, 2026
28 of 29 checks passed
@AntoLC AntoLC deleted the feat/add-feature-flag-AI branch February 27, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants