From 38d6ee6dd2e641b957a458db30e47251ae1ea6a2 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:21:27 +0530 Subject: [PATCH] chore: Save company list sorting preferences in UI settings (#12916) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Pull Request Template ## Description This PR saves the company list sorting preferences (field and order) in the user’s UI settings. The sort state is initialized from the stored preferences when the component mounts, defaulting to `-created_at` if none exist. Fixes https://linear.app/chatwoot/issue/CW-5992/save-sort-filter-to-ui-settings ## Type of change - [x] New feature (non-breaking change which adds functionality) ## 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 --- .../companies/pages/CompaniesIndex.vue | 52 +++++++++++++------ 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/companies/pages/CompaniesIndex.vue b/app/javascript/dashboard/routes/dashboard/companies/pages/CompaniesIndex.vue index 3e86c97f4..d1e548a00 100644 --- a/app/javascript/dashboard/routes/dashboard/companies/pages/CompaniesIndex.vue +++ b/app/javascript/dashboard/routes/dashboard/companies/pages/CompaniesIndex.vue @@ -1,14 +1,16 @@