Skip to content

Removi a possibilidade de conectar o card da ClaudIA com demais cards#142

Open
willamyalves wants to merge 1 commit intomainfrom
fix/claudia-disable-card-connections
Open

Removi a possibilidade de conectar o card da ClaudIA com demais cards#142
willamyalves wants to merge 1 commit intomainfrom
fix/claudia-disable-card-connections

Conversation

@willamyalves
Copy link
Copy Markdown

Screenshot (52)

block.options?.dynamicItems?.isEnabled &&
block.options.dynamicItems.pictureSrcsVariableId)
// Disable default connector for ClaudIA custom block
block.type === 'claudia'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

será que nao tem um Enum tipo o LogicBlockType ali embaixo? assim nao ficaria essa string magica aqui

Copy link
Copy Markdown

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 disables the default connector for the ClaudIA custom block, preventing it from being connected to other cards in the typebot builder.

Changes:

  • Added a check to disable default connector for blocks with type 'claudia'

block.options?.dynamicItems?.isEnabled &&
block.options.dynamicItems.pictureSrcsVariableId)
// Disable default connector for ClaudIA custom block
block.type === 'claudia'
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

The hardcoded string 'claudia' should be replaced with a constant from a shared constants file (similar to how LogicBlockType and InputBlockType are used). This improves maintainability and prevents typos.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

+1 nesse comentário aqui /\
Imagino que ja exista um enum, caso nao exista consideraria criar. Mas não faço lá muita questão, fica a vontade de subir com isso hard coded se estiver com receio ou for demorar mais

@cloudhumans cloudhumans deleted a comment from Copilot AI Feb 13, 2026
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.

4 participants