Skip to content

feat(popup-v2): gate rich text on feature flag - #771

Draft
jmcbgaston wants to merge 1 commit into
box:masterfrom
jmcbgaston:enable-popup-rich-text
Draft

feat(popup-v2): gate rich text on feature flag#771
jmcbgaston wants to merge 1 commit into
box:masterfrom
jmcbgaston:enable-popup-rich-text

Conversation

@jmcbgaston

Copy link
Copy Markdown

Description

When features.isRichTextEnabled is true, the annotation popup forwards that flag to ThreadedAnnotationsV2 and MessageEditorV2, serializes create/reply/edit payloads with serializeMessageToMarkdown, and parses stored bodies with parseMessageMarkdown. When the flag is absent or false, posts and views still use mention-markup serialize/deserialize. Adapter helpers default the flag to false so existing callers stay on that path.

@CLAassistant

CLAassistant commented Aug 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jmcbgaston
jmcbgaston marked this pull request as ready for review August 28, 2026 04:00
@jmcbgaston
jmcbgaston requested a review from a team as a code owner August 28, 2026 04:00
Hosts pass isRichTextEnabled so the popup can share markdown
authoring with sidebar comments without changing the default
plain-text mention path.
@jmcbgaston
jmcbgaston force-pushed the enable-popup-rich-text branch from e097525 to 8e5954d Compare August 28, 2026 04:03
@jmcbgaston

Copy link
Copy Markdown
Author

TODO / blocker: this PR depends on unpublished @box/threaded-annotations exports serializeMessageToMarkdown and parseMessageMarkdown. They are not in npm 4.10.5 (current latest). Travis Code Lint (tsc) will stay red until that package publishes and this branch bumps yarn.lock to it.

Do not merge until that publish lands.

@jmcbgaston
jmcbgaston marked this pull request as draft August 28, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants