47998 frontend [ templates ] Show Draft for inactive templates without integrations#260
Open
aicarma-artyom-maslov wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e7f4059. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Low Risk
Templates list UI and display rules only; template edit draft warnings are untouched.
Overview
Inactive template cards no longer treat account-wide webhooks or public visibility as reasons to show integration badges or the draft warning tooltip. The footer now uses
hasTemplateCardIntegrations(webhooks excluded viaTEMPLATE_CARD_INTEGRATIONS_EXCLUDE) and only shows the integrations strip when the template is active or has other connected integrations.For inactive templates with no such integrations, users see a plain Draft label—no integrated/not-integrated chip and no warning icon.
isPublicis dropped from the card footer props and wiring; card-related types move intoTemplatesUser/types.ts.checkShowDraftTemplateWarningis unchanged in behavior (still considers public + any integrations) and remains for template edit controls; this PR adds unit tests for it alongside the new helper.Reviewed by Cursor Bugbot for commit 240ff07. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Show Draft label only for inactive templates without non-webhook integrations
TemplateCardFooterso it only shows for inactive templates that have no non-webhook integrations, replacing the previousisPublic-based check.hasTemplateCardIntegrationsintemplateIntegrations.tsandTEMPLATE_CARD_INTEGRATIONS_EXCLUDE(set to[EIntegrations.Webhooks]) to drive this logic.isPublicprop fromTemplateCardandTemplateCardFooter, consolidating prop types intotypes.ts.Macroscope summarized 240ff07.