Skip to content

Commit e38c455

Browse files
committed
feat: Update naming & order
1 parent 9a28dc1 commit e38c455

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

tools/server/webui/src/lib/components/app/chat/ChatSidebar/ChatSidebarActions.svelte

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,35 +79,33 @@
7979
<KeyboardShortcutInfo keys={['cmd', 'k']} />
8080
</Button>
8181

82-
<!-- Export All Conversations -->
8382
<Button
8483
class="w-full justify-start text-sm"
8584
onclick={() => {
86-
exportAllConversations();
85+
importConversations().catch(err => {
86+
console.error('Import failed:', err);
87+
// Optional: show toast or dialog
88+
});
8789
}}
8890
variant="ghost"
8991
>
92+
9093
<div class="flex items-center gap-2">
91-
<Download class="h-4 w-4" />
92-
Export all
94+
<Upload class="h-4 w-4" />
95+
Import conversations
9396
</div>
9497
</Button>
9598

96-
<!-- Import Conversations -->
9799
<Button
98100
class="w-full justify-start text-sm"
99101
onclick={() => {
100-
importConversations().catch(err => {
101-
console.error('Import failed:', err);
102-
// Optional: show toast or dialog
103-
});
102+
exportAllConversations();
104103
}}
105104
variant="ghost"
106105
>
107-
108106
<div class="flex items-center gap-2">
109-
<Upload class="h-4 w-4" />
110-
Import all
107+
<Download class="h-4 w-4" />
108+
Export all conversations
111109
</div>
112110
</Button>
113111
{/if}

tools/server/webui/src/lib/components/app/chat/ChatSidebar/ChatSidebarConversationItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
},
105105
{
106106
icon: Download,
107-
label: 'Download',
107+
label: 'Export',
108108
onclick: (e) => {
109109
e.stopPropagation();
110110
downloadConversation(conversation.id);

0 commit comments

Comments
 (0)