(core) Enable search in column pickers

Summary: Adds a search input at the top of columns dropdown. Start typing in the search bar filters the list of column (matching occurences should work similarly as the autocomplete dropdown on Choice column).

Test Plan: Include tests.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3738
This commit is contained in:
Cyprien P
2022-11-15 10:04:43 +01:00
parent 13cb4e8389
commit a04979bede
8 changed files with 258 additions and 72 deletions

View File

@@ -2533,7 +2533,7 @@ export async function setRefTable(table: string) {
// Add column to sort.
export async function addColumnToSort(colName: RegExp|string) {
await driver.find(".test-sort-config-add").click();
await driver.findContent(".test-sort-config-add-menu-row", colName).click();
await driver.findContent(".test-sd-searchable-list-item", colName).click();
await driver.findContentWait(".test-sort-config-row", colName, 100);
}