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:
parent
3889d5ff3b
commit
08b13df4a4
9 changed files with 326 additions and 1047 deletions
|
|
@ -27,7 +27,7 @@ export default function InputFileComponent({
|
|||
disabled,
|
||||
fileTypes,
|
||||
isList,
|
||||
tempFile = false,
|
||||
tempFile = true,
|
||||
editNode = false,
|
||||
id,
|
||||
}: InputProps<string, FileComponentType>): JSX.Element {
|
||||
|
|
|
|||
|
|
@ -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}`}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue