Skip to content

Commit b385e20

Browse files
committed
Category dropdown as radio
1 parent 3d66bd8 commit b385e20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/src/main/resources/web/lib/components/extensions-picker/extensions-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface ExtensionFieldIdentifier {
1212
}
1313

1414
const HIDE_FILTER_PREDICATE = (key: string) => [].includes(key);
15-
const RADIO_FILTER_PREDICATE = (key: string) => ['platform'].includes(key);
15+
const RADIO_FILTER_PREDICATE = (key: string) => ['platform', 'category'].includes(key);
1616
const OPTIONAL_FILTER_PREDICATE = (key: string) => key === 'support' || key.endsWith('-support');
1717

1818
// FOR SHORTCUT KEYS, MAKE SURE IT IS AFTER THE FULL KEY (REPLACE IS TAKING THE FIRST)

base/src/test/java/io/quarkus/code/CodeQuarkusPlaywrightTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public void testSearchFilters() {
195195

196196
page.waitForSelector(LABEL_TOGGLE_SEARCH_COMBO.formatted("category")).click();
197197
page.waitForSelector("[aria-label='Add category:data filter']").click();
198-
assertThat(searchInput.inputValue().trim()).isEqualTo("status:experimental category:web,data");
198+
assertThat(searchInput.inputValue().trim()).isEqualTo("category:data status:experimental");
199199

200200
page.waitForSelector(LABEL_TOGGLE_SEARCH_COMBO.formatted("category")).click();
201201
page.waitForSelector("[aria-label='Drop category filter']").click();

0 commit comments

Comments
 (0)