From f28bb70d67eb09161e9c1f06796fe0a4c30f8e9d Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 12 Jun 2025 14:38:45 +0530 Subject: [PATCH 1/2] fix: Prevent count flicker on loading more conversations (#11706) --- app/javascript/dashboard/components/ChatList.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/ChatList.vue b/app/javascript/dashboard/components/ChatList.vue index de895c76e..b14a62f08 100644 --- a/app/javascript/dashboard/components/ChatList.vue +++ b/app/javascript/dashboard/components/ChatList.vue @@ -109,6 +109,7 @@ const advancedFilterTypes = ref( attributeName: t(`FILTER.ATTRIBUTES.${filter.attributeI18nKey}`), })) ); +const isInitialLoad = ref(false); const currentUser = useMapGetter('getCurrentUser'); const chatLists = useMapGetter('getFilteredConversations'); @@ -376,6 +377,7 @@ function setFiltersFromUISettings() { function emitConversationLoaded() { emit('conversationLoad'); + isInitialLoad.value = false; // [VITE] removing this since the library has changed // nextTick(() => { // // Addressing a known issue in the virtual list library where dynamically added items @@ -420,6 +422,7 @@ function onApplyFilter(payload) { foldersQuery.value = filterQueryGenerator(payload); store.dispatch('conversationPage/reset'); store.dispatch('emptyAllConversations'); + isInitialLoad.value = true; fetchFilteredConversations(payload); } @@ -574,6 +577,7 @@ function resetAndFetchData() { store.dispatch('conversationPage/reset'); store.dispatch('emptyAllConversations'); store.dispatch('clearConversationFilters'); + isInitialLoad.value = true; if (hasActiveFolders.value) { const payload = activeFolder.value.query; fetchSavedFilteredConversations(payload); @@ -854,7 +858,7 @@ watch(conversationFilters, (newVal, oldVal) => { :active-status="activeStatus" :is-on-expanded-layout="isOnExpandedLayout" :conversation-stats="conversationStats" - :is-list-loading="chatListLoading" + :is-list-loading="isInitialLoad" @add-folders="onClickOpenAddFoldersModal" @delete-folders="onClickOpenDeleteFoldersModal" @filters-modal="onToggleAdvanceFiltersModal" From 6baca4059723cae330ad3621d07bbee8cc7fac59 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:01:41 +0530 Subject: [PATCH 2/2] chore: Display divider only when multiple portals are available (#11709) --- app/views/public/api/v1/portals/_header.html.erb | 14 +++++++------- app/views/public/api/v1/portals/_hero.html.erb | 2 +- .../public/api/v1/portals/_mobile_menu.html.erb | 7 +++++-- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/app/views/public/api/v1/portals/_header.html.erb b/app/views/public/api/v1/portals/_header.html.erb index 694cd240f..ae1162e05 100644 --- a/app/views/public/api/v1/portals/_header.html.erb +++ b/app/views/public/api/v1/portals/_header.html.erb @@ -1,18 +1,18 @@