Skip to content

Configure the robots meta tag to allow search and link crawlers #2163

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

Merged
merged 6 commits into from
May 16, 2025

Conversation

defsanmith
Copy link
Contributor

Configure the robots meta tag to allow search and link crawlers

Description

Closes #1123

This PR adds the "Allow indexing" metadata option. This feature allows users to control whether search engines like Google and LinkedIn can index their Typebot content by removing the noindex meta tag when enabled.

Changes

  • Updated MetadataForm.tsx to include a new switch toggle to allow indexing
  • Updated Seo.tsx to remove the noindex tag when indexing is enabled
  • Made the appropriate changes for the typebot settings schema to include the allow indexing option
  • Added translations for the following keys to en.json, fr.json, pt-BR.json, pt.json language files:
    • settings.sideMenu.metadata.allowIndexing.label: "Allow search engines to index"
    • settings.sideMenu.metadata.allowIndexing.tooltip: "When enabled, the noindex meta tag will be removed, allowing search engines like Google and LinkedIn to index your typebot."

Screenshots

Capture-2025-05-10-114206

Copy link

vercel bot commented May 10, 2025

@defsanmith is attempting to deploy a commit to the Typebot Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

coderabbitai bot commented May 10, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@defsanmith defsanmith changed the title Closes #1123 Configure the robots meta tag to allow search and link crawlers | Closes #1123 May 10, 2025
@defsanmith defsanmith changed the title Configure the robots meta tag to allow search and link crawlers | Closes #1123 Configure the robots meta tag to allow search and link crawlers May 10, 2025
Copy link

vercel bot commented May 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builder-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 0:31am

@baptisteArno baptisteArno requested a review from Copilot May 13, 2025 13:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR allows users to control the robots meta tag behavior by adding an "allow indexing" option, enabling search engines to index Typebot content when desired.

  • Updated settings schema to include an optional boolean property for indexing.
  • Modified SEO component to conditionally render the noindex meta tag based on the allow indexing option.
  • Updated translation files and MetadataForm to support the new indexing option.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

File Description
packages/settings/src/schemas.ts Added optional allowIndexing property to metadata schema.
apps/viewer/src/components/Seo.tsx Modified logic to conditionally remove the noindex meta tag when indexing is enabled.
apps/builder/src/i18n/pt.json, pt-BR.json, fr.json, en.json Added new translation keys for indexing settings.
apps/builder/src/features/settings/components/MetadataForm.tsx Introduced a new SwitchWithLabel for toggling indexing and updated metadata change handlers.

Copy link
Owner

@baptisteArno baptisteArno left a comment

Choose a reason for hiding this comment

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

LGTM, thank you. Can you remove en and pt translations? New code should only provide the en.json translations and then the rest will be translated with Tolgee (https://docs.typebot.io/contribute/guides/translation)

@defsanmith
Copy link
Contributor Author

@baptisteArno

The requested changes have been made. Thank you!

@baptisteArno baptisteArno requested a review from Copilot May 14, 2025 12:26
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request enables controlling the robots meta tag by introducing an "allow indexing" option. Key changes include adding an allowIndexing field to the metadata schema, updating the SEO component to conditionally remove the noindex tag, and integrating a new switch in the metadata form with corresponding translations.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/settings/src/schemas.ts Updated schema to include the optional allowIndexing boolean
apps/viewer/src/components/Seo.tsx Modified the logic to omit the noindex meta tag when allowIndexing is true
apps/builder/src/i18n/en.json Added translations for the allowIndexing label and tooltip
apps/builder/src/features/settings/components/MetadataForm.tsx Integrated a new switch toggle for the allowIndexing option

@baptisteArno baptisteArno merged commit ac510ab into baptisteArno:main May 16, 2025
4 of 6 checks passed
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.

Set robots meta tag to enable search and link crawlers
2 participants