Skip to content

Conversation

@viktoravelino
Copy link
Collaborator

@viktoravelino viktoravelino commented Jan 27, 2026

Jira LE-159

This pull request updates the templates starter project to consistently use the name "Prompt Template" instead of "Prompt" for relevant components. It also updates the underlying code for the PromptComponent to reflect this naming and removes the unused "mode" input field, streamlining the configuration and improving clarity.

Component naming and configuration updates:

  • Renamed all instances of display_name and name from "Prompt" to "Prompt Template" for prompt-related components in the starter project configuration. [1] [2] [3] [4]

Component code and field updates:

  • Updated the embedded Python code for the PromptComponent to use "Prompt Template" as its display_name and name, and removed the "mode" input field, relying instead on the use_double_brackets boolean for template syntax selection.

Summary by CodeRabbit

  • Refactor
    • Updated naming of Prompt component to "Prompt Template" across all starter project templates for improved clarity.
    • Removed optional mode configuration controls from Prompt components across multiple starter projects, simplifying the user interface.

✏️ Tip: You can customize this high-level summary in your review settings.

@viktoravelino viktoravelino self-assigned this Jan 27, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 27, 2026

Important

Review skipped

Auto incremental 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.

  • 🔍 Trigger a full review

Walkthrough

This PR renames the "Prompt" component to "Prompt Template" across 19 starter project JSON files by updating display_name and name attributes in the embedded PromptComponent class definitions. Additionally, the mode TabInput field is removed from several components' frontend configurations.

Changes

Cohort / File(s) Summary
Starter Projects - Prompt Rename
src/backend/base/langflow/initial_setup/starter_projects/Basic Prompt Chaining.json, Basic Prompting.json, Blog Writer.json, Custom Component Generator.json, Document Q&A.json, Image Sentiment Analysis.json, Instagram Copywriter.json, Invoice Summarizer.json, Meeting Summary.json, Memory Chatbot.json, Nvidia Remix.json, Research Agent.json, SEO Keyword Generator.json, SaaS Pricing.json, Sequential Tasks Agents.json, Text Sentiment Analysis.json, Twitter Thread Generator.json, Vector Store RAG.json, Youtube Analysis.json
PromptComponent display_name and name updated from "Prompt" to "Prompt Template" across embedded class definitions; mode TabInput field removed from component inputs in most files; minor formatting adjustments (trailing newlines, numeric value normalization)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

size:L

Suggested reviewers

  • Yukiyukiyeah

Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error)
Check name Status Explanation Resolution
Test Coverage For New Implementations ❌ Error PR modifies 19 starter project JSON files with component metadata changes but includes no test files to validate the changes. Add tests to verify JSON files parse correctly, renamed PromptComponent displays as 'Prompt Template', component functions without the mode field, and starter projects load without errors.
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: renaming prompt component display names and updating starter templates code.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Test Quality And Coverage ✅ Passed Pull request includes comprehensive tests validating Prompt component display name changes with explicit assertions and proper pytest patterns.
Test File Naming And Structure ✅ Passed PR modifies only JSON configuration files in starter_projects directory with no test files added, modified, or removed.
Excessive Mock Usage Warning ✅ Passed This PR modifies only JSON configuration files for starter projects with no changes to test files.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/LE-159

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 27, 2026
@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 34.90%. Comparing base (4b056b4) to head (2d7fa97).

❌ Your project check has failed because the head coverage (41.71%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #11466   +/-   ##
=======================================
  Coverage   34.89%   34.90%           
=======================================
  Files        1420     1420           
  Lines       68217    68217           
  Branches     9984     9984           
=======================================
+ Hits        23804    23808    +4     
+ Misses      43179    43174    -5     
- Partials     1234     1235    +1     
Flag Coverage Δ
backend 54.19% <ø> (+0.02%) ⬆️
frontend 16.05% <ø> (ø)
lfx 41.71% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dkaushik94
Copy link
Member

For posterity: Checked with Viktor to verify if there are any templates not covered that need this change as well. Changes looks good otherwise.

@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 27, 2026
Copy link
Member

@dkaushik94 dkaushik94 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the lgtm This PR has been approved by a maintainer label Jan 27, 2026
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 27, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 17%
17.54% (5050/28789) 10.96% (2432/22176) 11.63% (733/6299)

Unit Test Results

Tests Skipped Failures Errors Time
2036 0 💤 0 ❌ 0 🔥 27.101s ⏱️

@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 27, 2026
@github-actions github-actions bot removed the bug Something isn't working label Jan 27, 2026
@github-actions github-actions bot added the bug Something isn't working label Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants