Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): disable sanitization for v0 chat #7903

Open
wants to merge 6 commits into
base: next
Choose a base branch
from

Conversation

djabarovgeorge
Copy link
Contributor

What changed? Why was the change needed?

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented Mar 11, 2025

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit 68481b4
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/67d06ce34827b5000834df6e
😎 Deploy Preview https://deploy-preview-7903.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@djabarovgeorge djabarovgeorge requested review from a team and iampearceman and removed request for a team and iampearceman March 12, 2025 07:54
actor: command.actor,
code: command.code,
});
const shouldSanitize = command.contentType === 'editor' && command.type !== StepTypeEnum.CHAT;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does contentType !== 'editor' mean in this context? Are these use cases used by V2 in any of the flows?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment about why we excluded chat from the sanitization process.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the 'editor' is a defualt contentType, the other type is 'html' editor. it is related only to v0.
excluding chat was a temporary solution to unblock users.

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