From 43086c7e3349a013caf4cf713940e2d2aaf6056a Mon Sep 17 00:00:00 2001 From: Brian Joseph Petro Date: Thu, 26 Dec 2024 19:33:08 -0500 Subject: [PATCH] - Changed the icon for 'Chat Settings' from 'gear' to 'settings' for consistency. - Enhanced the `get_icon_html` method in SmartViewNodeAdapter to support PascalCase icon names, improving flexibility in icon retrieval. - Added a utility function to convert lower-hyphenated words to PascalCase, streamlining icon name handling. --- smart-chats/components/threads.js | 2 +- smart-view/adapters/node.js | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/smart-chats/components/threads.js b/smart-chats/components/threads.js index 309c77a6..40408692 100644 --- a/smart-chats/components/threads.js +++ b/smart-chats/components/threads.js @@ -14,7 +14,7 @@ export function build_html(threads_collection, opts = {}) { { title: 'Open Conversation Note', icon: 'external-link' }, { title: 'Chat History', icon: 'history' }, { title: 'Chat Options', icon: 'sliders-horizontal', style: 'display: none;' }, - { title: 'Chat Settings', icon: 'gear' }, + { title: 'Chat Settings', icon: 'settings' }, { title: 'New Chat', icon: 'plus' } ].map(btn => `