ref: sidebar experience improvement with new bundles (#8824)

* cohere sidebar

* side bar embeddings

* move memories

* sort style utils

* [autofix.ci] apply automated fixes

* serach components add

* Update __init__.py

* Update styleUtils.ts

* [autofix.ci] apply automated fixes

* Update model_input_constants.py

* fix lint

* update to wikipedia

* ✨ (tableInputComponent.spec.ts): Refactor test to use for loops for better readability and efficiency
✨ (filterEdge-shard-1.spec.ts): Update model names for better clarity and consistency
🐛 (duckduckgo.spec.ts): Update selector for search button to match changes in the frontend
🐛 (generalBugs-shard-11.spec.ts): Update selector for search button to match changes in the frontend

* [autofix.ci] apply automated fixes

* update tests path

* update tests

* Update test_arxiv_component.py

* [autofix.ci] apply automated fixes

* make embeddings functions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
Edwin Jose 2025-07-02 15:11:59 -05:00 • committed by GitHub
commit e28093234b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
84 changed files with 264 additions and 238 deletions

View file

@ -177,13 +177,14 @@ class CustomComponent(Component):
const visibleTexts = ["Alpha", "Bravo", "Charlie", "Delta", "Echo"];
const notVisibleTexts = ["X1", "thirdRandomText"];
await Promise.all(
visibleTexts.map((text) => expect(page.getByText(text)).toBeVisible()),
);
await Promise.all(
notVisibleTexts.map((text) =>
expect(page.getByText(text)).not.toBeVisible(),
),
);
for (const text of visibleTexts) {
const count = await page.getByText(text).count();
expect(count).toBeGreaterThanOrEqual(1);
}
for (const text of notVisibleTexts) {
const count = await page.getByText(text).count();
expect(count).toBe(0);
}
},
);

View file

@ -75,7 +75,7 @@ test(
"vectorstoresAstra DB",
"langchain_utilitiesTool Calling Agent",
"langchain_utilitiesConversationChain",
"memoriesMem0 Chat Memory",
"mem0Mem0 Chat Memory",
"logicCondition",
"langchain_utilitiesSelf Query Retriever",
"langchain_utilitiesCharacterTextSplitter",
@ -101,15 +101,15 @@ test(
await page.getByTestId("sidebar-search-input").click();
const visibleModelSpecsTestIds = [
"languagemodelsCohere",
"languagemodelsGroq",
"languagemodelsLM Studio",
"languagemodelsMaritalk",
"languagemodelsMistralAI",
"languagemodelsPerplexity",
"languagemodelsQianfan",
"languagemodelsSambaNova",
"languagemodelsxAI",
"cohereCohere Language Models",
"groqGroq",
"lmstudioLM Studio",
"maritalkMaritalk",
"mistralMistralAI",
"perplexityPerplexity",
"baiduQianfan",
"sambanovaSambaNova",
"xaixAI",
];
await Promise.all(

View file

@ -11,12 +11,15 @@ test(
await page.getByTestId("sidebar-search-input").click();
await page.getByTestId("sidebar-search-input").fill("duck");
await page.waitForSelector('[data-testid="searchDuckDuckGo Search"]', {
timeout: 3000,
});
await page.waitForSelector(
'[data-testid="disclosure-bundles-duckduckgo"]',
{
timeout: 3000,
},
);
await page
.getByTestId("searchDuckDuckGo Search")
.getByTestId("duckduckgoDuckDuckGo Search")
.hover()
.then(async () => {
await page

View file

@ -49,14 +49,14 @@ test(
await page.getByTestId("sidebar-search-input").click();
await page.getByTestId("sidebar-search-input").fill("search api");
await page.waitForSelector('[data-testid="searchSearch API"]', {
await page.waitForSelector('[data-testid="searchapiSearch API"]', {
timeout: 1000,
});
await zoomOut(page, 3);
await page
.getByTestId("searchSearch API")
.getByTestId("searchapiSearch API")
.dragTo(page.locator('//*[@id="react-flow-id"]'), {
targetPosition: { x: 100, y: 100 },
});