From 446a219cd104f746b1df21ff23b2e4dea11060d0 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Fri, 1 Aug 2025 02:28:45 +0530 Subject: [PATCH] chore: Update filter input UI design (#12081) # Pull Request Template ## Description Fixes https://linear.app/chatwoot/issue/CW-4726/filter-ui-design-is-broken-on-contacts-page ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## How Has This Been Tested? **Screenshots** **Before** image image image **After** image image image ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- .../components-next/filter/ConditionRow.vue | 5 ++-- .../components-next/filter/ContactsFilter.vue | 12 ++++------ .../filter/ConversationFilter.vue | 12 ++++------ .../components-next/filter/SaveCustomView.vue | 23 ++++++++----------- 4 files changed, 22 insertions(+), 30 deletions(-) diff --git a/app/javascript/dashboard/components-next/filter/ConditionRow.vue b/app/javascript/dashboard/components-next/filter/ConditionRow.vue index e2a2bfb45..477885490 100644 --- a/app/javascript/dashboard/components-next/filter/ConditionRow.vue +++ b/app/javascript/dashboard/components-next/filter/ConditionRow.vue @@ -2,6 +2,7 @@ import { computed, defineModel, h, watch, ref } from 'vue'; import { useI18n } from 'vue-i18n'; import Button from 'next/button/Button.vue'; +import Input from 'dashboard/components-next/input/Input.vue'; import FilterSelect from './inputs/FilterSelect.vue'; import MultiSelect from './inputs/MultiSelect.vue'; import SingleSelect from './inputs/SingleSelect.vue'; @@ -178,11 +179,11 @@ defineExpose({ validate }); disable-search :options="booleanOptions" /> - diff --git a/app/javascript/dashboard/components-next/filter/ContactsFilter.vue b/app/javascript/dashboard/components-next/filter/ContactsFilter.vue index cff2e71e3..bd588ccbf 100644 --- a/app/javascript/dashboard/components-next/filter/ContactsFilter.vue +++ b/app/javascript/dashboard/components-next/filter/ContactsFilter.vue @@ -9,6 +9,7 @@ import { useContactFilterContext } from './contactProvider.js'; import { useSnakeCase } from 'dashboard/composables/useTransformKeys'; import Button from 'next/button/Button.vue'; +import Input from 'dashboard/components-next/input/Input.vue'; import ConditionRow from './ConditionRow.vue'; const props = defineProps({ @@ -109,16 +110,13 @@ const outsideClickHandler = [ {{ filterModalHeaderTitle }}
- +