fix: make old file input show in old flows instead of new File Manager (#8090)

* removed unused console.log

* make temp_file default as true on inputfilecomponent to not use new File when using old flow

* Fixed Simple Agent starter project

* format simple agent template

* fixed text sentiment analysis test

* Fixed other starter projects that used File input

* updated test to have more timeout

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Lucas Oliveira 2025-05-21 18:49:54 -03:00 committed by GitHub
commit 08b13df4a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 326 additions and 1047 deletions

View file

@ -27,7 +27,7 @@ export default function InputFileComponent({
disabled,
fileTypes,
isList,
tempFile = false,
tempFile = true,
editNode = false,
id,
}: InputProps<string, FileComponentType>): JSX.Element {

View file

@ -177,7 +177,7 @@ export function ParameterRenderComponent({
fileTypes={templateData.fileTypes}
file_path={templateData.file_path}
isList={templateData.list ?? false}
tempFile={templateData.temp_file ?? false}
tempFile={templateData.temp_file ?? true}
id={`inputfile_${id}`}
/>
);

View file

@ -98,10 +98,6 @@ const UniqueInputsDraggableComponent = ({
const chatInputAdded = useMemo(() => checkChatInput(nodes), [nodes]);
const webhookInputAdded = useMemo(() => checkWebhookInput(nodes), [nodes]);
const uniqueInputsComponents: UniqueInputsComponents = useMemo(() => {
console.log("uniqueInputsComponents", {
chatInputAdded,
webhookInputAdded,
});
return {
chatInput: chatInputAdded,
webhookInput: webhookInputAdded,

View file

@ -10,8 +10,9 @@ test(
// Start with blank flow
await page.getByTestId("blank-flow").click();
await page.waitForTimeout(500);
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 1000,
timeout: 3000,
});
// Press "/" to activate search