## Description * Added the ability to sort for 4 sub-sections under conversations folders, teams, channels and labels. * the sort options are basically created at, alphabetical and unread counts along with both directions. * for folders we don't have an unread count, so we sort it by only created and alphabetical. * all the sort preferences are stored on the frontend - easiest implementation for now. Fixes # CW-7193 ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality not to work as expected) - [ ] This change requires a documentation update ## How Has This Been Tested? Tested this locally by visually verifying the changes. Also ran the newly added tests for component level changes. Here is the screenshot of the changes: Added the sort option to sub sections in the conversation sidebar: <img width="282" height="848" alt="Screenshot 2026-06-02 at 1 58 12 AM" src="https://github.com/user-attachments/assets/4a7c6061-86e3-438a-92ae-ee643a0128b6" /> The sort options looks like this: <img width="783" height="698" alt="Screenshot 2026-06-02 at 1 58 49 AM" src="https://github.com/user-attachments/assets/a15bb0a7-b810-4423-a88c-fbd84d0476c0" /> ## 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 - [x] 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 --------- Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: iamsivin <iamsivin@gmail.com>
131 lines
4.3 KiB
JavaScript
Executable File
131 lines
4.3 KiB
JavaScript
Executable File
import { createStore } from 'vuex';
|
|
|
|
import accounts from './modules/accounts';
|
|
import agentBots from './modules/agentBots';
|
|
import agentCapacityPolicies from './modules/agentCapacityPolicies';
|
|
import agents from './modules/agents';
|
|
import assignmentPolicies from './modules/assignmentPolicies';
|
|
import articles from './modules/helpCenterArticles';
|
|
import attributes from './modules/attributes';
|
|
import auditlogs from './modules/auditlogs';
|
|
import auth from './modules/auth';
|
|
import automations from './modules/automations';
|
|
import bulkActions from './modules/bulkActions';
|
|
import campaigns from './modules/campaigns';
|
|
import cannedResponse from './modules/cannedResponse';
|
|
import categories from './modules/helpCenterCategories';
|
|
import contactConversations from './modules/contactConversations';
|
|
import contactLabels from './modules/contactLabels';
|
|
import contactNotes from './modules/contactNotes';
|
|
import contacts from './modules/contacts';
|
|
import conversationLabels from './modules/conversationLabels';
|
|
import conversationMetadata from './modules/conversationMetadata';
|
|
import conversationPage from './modules/conversationPage';
|
|
import conversations from './modules/conversations';
|
|
import conversationSearch from './modules/conversationSearch';
|
|
import conversationStats from './modules/conversationStats';
|
|
import conversationTypingStatus from './modules/conversationTypingStatus';
|
|
import conversationUnreadCounts from './modules/conversationUnreadCounts';
|
|
import conversationWatchers from './modules/conversationWatchers';
|
|
import csat from './modules/csat';
|
|
import customRole from './modules/customRole';
|
|
import customViews from './modules/customViews';
|
|
import dashboardApps from './modules/dashboardApps';
|
|
import draftMessages from './modules/draftMessages';
|
|
import globalConfig from 'shared/store/globalConfig';
|
|
import inboxAssignableAgents from './modules/inboxAssignableAgents';
|
|
import inboxes from './modules/inboxes';
|
|
import inboxMembers from './modules/inboxMembers';
|
|
import integrations from './modules/integrations';
|
|
import labels from './modules/labels';
|
|
import macros from './modules/macros';
|
|
import notifications from './modules/notifications';
|
|
import portals from './modules/helpCenterPortals';
|
|
import reports from './modules/reports';
|
|
import sla from './modules/sla';
|
|
import slaReports from './modules/SLAReports';
|
|
import sidebarSortPreferences from './modules/sidebarSortPreferences';
|
|
import summaryReports from './modules/summaryReports';
|
|
import teamMembers from './modules/teamMembers';
|
|
import teams from './modules/teams';
|
|
import userNotificationSettings from './modules/userNotificationSettings';
|
|
import webhooks from './modules/webhooks';
|
|
import captainAssistants from './captain/assistant';
|
|
import captainDocuments from './captain/document';
|
|
import captainResponses from './captain/response';
|
|
import captainInboxes from './captain/inboxes';
|
|
import captainBulkActions from './captain/bulkActions';
|
|
import copilotThreads from './captain/copilotThreads';
|
|
import copilotMessages from './captain/copilotMessages';
|
|
import captainScenarios from './captain/scenarios';
|
|
import captainTools from './captain/tools';
|
|
import captainCustomTools from './captain/customTools';
|
|
|
|
const plugins = [];
|
|
|
|
export default createStore({
|
|
modules: {
|
|
accounts,
|
|
agentBots,
|
|
agentCapacityPolicies,
|
|
agents,
|
|
assignmentPolicies,
|
|
articles,
|
|
attributes,
|
|
auditlogs,
|
|
auth,
|
|
automations,
|
|
bulkActions,
|
|
campaigns,
|
|
cannedResponse,
|
|
categories,
|
|
contactConversations,
|
|
contactLabels,
|
|
contactNotes,
|
|
contacts,
|
|
conversationLabels,
|
|
conversationMetadata,
|
|
conversationPage,
|
|
conversations,
|
|
conversationSearch,
|
|
conversationStats,
|
|
conversationTypingStatus,
|
|
conversationUnreadCounts,
|
|
conversationWatchers,
|
|
csat,
|
|
customRole,
|
|
customViews,
|
|
dashboardApps,
|
|
draftMessages,
|
|
globalConfig,
|
|
inboxAssignableAgents,
|
|
inboxes,
|
|
inboxMembers,
|
|
integrations,
|
|
labels,
|
|
macros,
|
|
notifications,
|
|
portals,
|
|
reports,
|
|
sla,
|
|
slaReports,
|
|
sidebarSortPreferences,
|
|
summaryReports,
|
|
teamMembers,
|
|
teams,
|
|
userNotificationSettings,
|
|
webhooks,
|
|
captainAssistants,
|
|
captainDocuments,
|
|
captainResponses,
|
|
captainInboxes,
|
|
captainBulkActions,
|
|
copilotThreads,
|
|
copilotMessages,
|
|
captainScenarios,
|
|
captainTools,
|
|
captainCustomTools,
|
|
},
|
|
plugins,
|
|
});
|