feat: changed tweaks into input schema and enabled persistence (#8235)
* Fixed layground and share font weight * Fixed namings and deleted unused api files * Deleted unused code * Changed tweaks to input schema * Changed TableAdvancedToggleCellRender to change Tweaks instead of Nodes if in tweaks page * Removed Hide Visibility to show tweaks' Enable Input * Set advanced of all nodes as true in tweaks * Changed column defs to change width and pass isTweaks to advanced * Changed tweaks store to identify changes in the Advanced field instead of the Values field * Changed to not change quantity of hooks * Changed table node cell render to not change the value of the tweaks * Changed to disable inputs * Added disabled behavior to table node cell render * Added cursor default to cell classes * Updated tweaks test * Added persistence in session * Removed initial setup from api modal to enable persistence * Added persistence to storage * Changed test to test persistence of tweaks * Re-added initial setup to api modal * Fixed size of tweaks modal
This commit is contained in:
parent
c13d3eb21b
commit
d88abdd658
25 changed files with 319 additions and 957 deletions
|
|
@ -27,17 +27,11 @@ test(
|
|||
.first()
|
||||
.click();
|
||||
|
||||
await page.waitForSelector(
|
||||
'[data-testid="popover-anchor-input-openai_api_base-edit"]',
|
||||
{
|
||||
timeout: 1000,
|
||||
},
|
||||
);
|
||||
await page.waitForSelector('[data-testid="showstream"]', {
|
||||
timeout: 1000,
|
||||
});
|
||||
|
||||
await page
|
||||
.getByTestId("popover-anchor-input-openai_api_base-edit")
|
||||
.first()
|
||||
.fill("teste");
|
||||
await page.getByTestId("showstream").first().click();
|
||||
|
||||
await page.getByText("Close").last().click();
|
||||
|
||||
|
|
@ -50,6 +44,13 @@ test(
|
|||
const newValue = clipboardContent2;
|
||||
expect(oldValue).not.toBe(newValue);
|
||||
expect(clipboardContent2.length).toBeGreaterThan(clipboardContent.length);
|
||||
await awaitBootstrapTest(page, { skipModal: true });
|
||||
await page.getByText("Basic Prompting").first().click();
|
||||
await page.getByTestId("publish-button").click();
|
||||
await page.getByTestId("api-access-item").click();
|
||||
expect(
|
||||
await page.getByText("Input Schema (1)", { exact: true }).isVisible(),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
|
|
@ -131,5 +132,5 @@ test("check if tweaks are updating when someothing on the flow changes", async (
|
|||
await page.getByText("collection_name_test_123123123!@#$&*(&%$@").isVisible();
|
||||
await page.getByText("persist_directory_123123123!@#$&*(&%$@").isVisible();
|
||||
|
||||
expect(await page.getByText("Tweaks (2)", { exact: true }).isVisible());
|
||||
expect(await page.getByText("Input Schema (2)", { exact: true }).isVisible());
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue