From 1fc79b6e17c695bada3985f67af69e58e37ab12d Mon Sep 17 00:00:00 2001 From: Alexandre Rousseau Date: Wed, 14 Aug 2024 00:03:58 +0200 Subject: [PATCH] feat(ui): add filter to `BuilderSidebarToolbar`. WF-42 I introduced a component named `BuilderSidebarTitleSearch` which extract the existing search logic of `BuilderSidebarTree` and use it for `BuilderSidebarToolbar`. I also took the opportunity to improve the accessibility since we use `` elements as button, but they're not focusable and clickable with the keyboard. And finally, I introduced an E2E test which cover the new feature. --- .../src/builder/BuilderSidebarTitleSearch.vue | 99 +++++++++++++++++++ src/ui/src/builder/BuilderSidebarToolbar.vue | 74 +++++++++----- src/ui/src/builder/BuilderSidebarTree.vue | 79 +++------------ tests/e2e/tests/sidebar.spec.ts | 80 +++++++++++++++ 4 files changed, 240 insertions(+), 92 deletions(-) create mode 100644 src/ui/src/builder/BuilderSidebarTitleSearch.vue create mode 100644 tests/e2e/tests/sidebar.spec.ts diff --git a/src/ui/src/builder/BuilderSidebarTitleSearch.vue b/src/ui/src/builder/BuilderSidebarTitleSearch.vue new file mode 100644 index 000000000..c82230646 --- /dev/null +++ b/src/ui/src/builder/BuilderSidebarTitleSearch.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/src/ui/src/builder/BuilderSidebarToolbar.vue b/src/ui/src/builder/BuilderSidebarToolbar.vue index deb50f3aa..1c369f994 100644 --- a/src/ui/src/builder/BuilderSidebarToolbar.vue +++ b/src/ui/src/builder/BuilderSidebarToolbar.vue @@ -1,22 +1,23 @@