feat(grid): keep filter editor expanded

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-09 12:04:32 +08:00
1 parent 08edb60772
commit 004b27a3c2
19 files changed
+157 -45

No files matched your search

@@ -75,6 +75,16 @@ function expectClassTokens(className: string, tokens: readonly string[]) {
}
describe("EditorSettingsDialog choice card containment", () => {
it("shows the persistent filter-editor preference only for fixed filter views", () => {
const key = 't("settings.dataGridKeepFilterEditorExpanded")';
const keyIndex = templateSource.indexOf(key);
const configurationStart = templateSource.indexOf("<div v-if=\"editDataGridFilterEditorView !== 'quick'\"");
expect(keyIndex).toBeGreaterThan(-1);
expect(configurationStart).toBeGreaterThan(-1);
expect(configurationStart).toBeLessThan(keyIndex);
expect(templateSource).not.toContain("dataGridAutoHideFilterBuilder");
});
it("overrides the shared Button nowrap contract on two- and three-column cards", () => {
for (const key of affectedChoiceKeys) {
const cardClass = classNameFromTag(openingTag(buttonBlockForKey(key), "Button"));