chore: update TextInput and TextOutput components to use MultilineInput (#3664)
chore: Update TextInput and TextOutput components to use MultilineInput instead of MessageTextInput
This commit is contained in:
parent
a670a7cb0b
commit
5ad48b4212
8 changed files with 15 additions and 25 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from langflow.base.io.text import TextComponent
|
||||
from langflow.io import MessageTextInput, Output
|
||||
from langflow.io import MultilineInput, Output
|
||||
from langflow.schema.message import Message
|
||||
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ class TextInputComponent(TextComponent):
|
|||
name = "TextInput"
|
||||
|
||||
inputs = [
|
||||
MessageTextInput(
|
||||
MultilineInput(
|
||||
name="input_value",
|
||||
display_name="Text",
|
||||
info="Text to be passed as input.",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from langflow.base.io.text import TextComponent
|
||||
from langflow.io import MessageTextInput, Output
|
||||
from langflow.io import MultilineInput, Output
|
||||
from langflow.schema.message import Message
|
||||
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ class TextOutputComponent(TextComponent):
|
|||
name = "TextOutput"
|
||||
|
||||
inputs = [
|
||||
MessageTextInput(
|
||||
MultilineInput(
|
||||
name="input_value",
|
||||
display_name="Text",
|
||||
info="Text to be passed as output.",
|
||||
|
|
|
|||
6
src/frontend/package-lock.json
generated
6
src/frontend/package-lock.json
generated
|
|
@ -13072,12 +13072,6 @@
|
|||
"integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==",
|
||||
"license": "(MIT AND Zlib)"
|
||||
},
|
||||
"node_modules/pako": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz",
|
||||
"integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==",
|
||||
"license": "(MIT AND Zlib)"
|
||||
},
|
||||
"node_modules/parent-module": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
||||
|
|
|
|||
|
|
@ -73,8 +73,7 @@ test("Blog Writer", async ({ page }) => {
|
|||
.fill("https://www.originaldiving.com/blog/top-ten-turtle-facts");
|
||||
|
||||
await page
|
||||
.getByTestId("popover-anchor-input-input_value")
|
||||
.nth(0)
|
||||
.getByTestId("textarea_str_input_value")
|
||||
.fill(
|
||||
"Use the references above for style to write a new blog/tutorial about turtles. Suggest non-covered topics.",
|
||||
);
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ test("user must be able to freeze a component", async ({ page }) => {
|
|||
await page.getByTitle("fit view").click();
|
||||
|
||||
await page
|
||||
.getByTestId("popover-anchor-input-input_value")
|
||||
.getByTestId("textarea_str_input_value")
|
||||
.first()
|
||||
.fill("lorem ipsum");
|
||||
|
||||
|
|
@ -232,7 +232,7 @@ test("user must be able to freeze a component", async ({ page }) => {
|
|||
await page.getByText("Close").last().click();
|
||||
await page.getByText("Close").last().click();
|
||||
|
||||
await page.getByTestId("popover-anchor-input-input_value").first().fill(",");
|
||||
await page.getByTestId("textarea_str_input_value").first().fill(",");
|
||||
|
||||
await page.getByTestId("button_run_chat output").click();
|
||||
|
||||
|
|
@ -272,7 +272,7 @@ test("user must be able to freeze a component", async ({ page }) => {
|
|||
await page.locator('//*[@id="react-flow-id"]').click();
|
||||
|
||||
await page
|
||||
.getByTestId("popover-anchor-input-input_value")
|
||||
.getByTestId("textarea_str_input_value")
|
||||
.first()
|
||||
.fill("lorem ipsum");
|
||||
|
||||
|
|
|
|||
|
|
@ -192,14 +192,11 @@ test("should be able to see output preview from grouped components", async ({
|
|||
await elementTextOutputInput.hover();
|
||||
await page.mouse.up();
|
||||
|
||||
await page
|
||||
.getByTestId("popover-anchor-input-input_value")
|
||||
.nth(0)
|
||||
.fill(randomName);
|
||||
await page.getByTestId("textarea_str_input_value").nth(0).fill(randomName);
|
||||
|
||||
await page.waitForTimeout(1000);
|
||||
await page
|
||||
.getByTestId("popover-anchor-input-input_value")
|
||||
.getByTestId("textarea_str_input_value")
|
||||
.nth(1)
|
||||
.fill(secondRandomName);
|
||||
await page.waitForTimeout(1000);
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ test("user must be able to stop a building", async ({ page }) => {
|
|||
|
||||
await page.getByTitle("fit view").click();
|
||||
|
||||
await page.getByTestId("popover-anchor-input-input_value").first().fill(",");
|
||||
await page.getByTestId("textarea_str_input_value").first().fill(",");
|
||||
|
||||
await page
|
||||
.getByTestId("inputlist_str_urls_0")
|
||||
|
|
|
|||
|
|
@ -183,8 +183,8 @@ test("TextInputOutputComponent", async ({ page }) => {
|
|||
await page.mouse.up();
|
||||
|
||||
await page
|
||||
.getByTestId("popover-anchor-input-input_value")
|
||||
.nth(0)
|
||||
.getByTestId(/^rf__node-TextInput-[a-zA-Z0-9]+$/)
|
||||
.getByTestId("textarea_str_input_value")
|
||||
.fill("This is a test!");
|
||||
|
||||
let outdatedComponents = await page.getByTestId("icon-AlertTriangle").count();
|
||||
|
|
@ -221,8 +221,8 @@ test("TextInputOutputComponent", async ({ page }) => {
|
|||
await page.keyboard.press("Escape");
|
||||
|
||||
await page
|
||||
.getByTestId("popover-anchor-input-input_value")
|
||||
.nth(0)
|
||||
.getByTestId(/^rf__node-TextInput-[a-zA-Z0-9]+$/)
|
||||
.getByTestId("textarea_str_input_value")
|
||||
.fill("This is a test, again just to be sure!");
|
||||
await page.getByText("Playground", { exact: true }).click();
|
||||
await page.getByText("Run Flow", { exact: true }).click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue