Skip to content

Commit 1b46e70

Browse files
committed
chore: progress-updating-tools-history[6]
1 parent a16681c commit 1b46e70

4 files changed

Lines changed: 22 additions & 12 deletions

File tree

custom/conversation_area/ConversationArea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<button @click="scrollContainer.scrollToBottom()">
2+
<button @click="scrollContainer.scrollToBottom(); recalculateScroll();">
33
<IconArrowDownOutline
44
class="absolute z-10 bottom-32 left-1/2 bg-lightPrimary dark:bg-darkPrimary text-white p-2 w-10 h-10 rounded-full transition-opacity duration-100 ease-in"
55
:class="showScrollToBottomButton ? 'opacity-100' : 'opacity-0 pointer-events-none'"

custom/conversation_area/ReasoningRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/>
1717
</h3>
1818
<transition name="expand">
19-
<div v-show="isExpanded" class="overflow-hidden mb-4 text-sm mr-48 h-64">
19+
<div v-show="isExpanded" class="overflow-hidden mb-4 text-sm mr-48 max-h-64">
2020
<AutoScrollContainer
2121
:enabled="true"
2222
>

custom/conversation_area/ToolRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="inline-flex m-2 max-w-[80%] flex-col gap-3 rounded-xl px-2 cursor-pointer text-lightListTableHeadingText dark:text-darkListTableHeadingText hover:opacity-75"
3+
class="border py-1 w-64 max-w-64 inline-flex items-center justify-center m-2 flex-col gap-3 rounded-xl px-2 cursor-pointer text-lightListTableHeadingText dark:text-darkListTableHeadingText hover:opacity-75"
44
@click="isInputOutputExpanded = !isInputOutputExpanded"
55
>
66
<div class="flex items-center gap-3">

custom/conversation_area/ToolsGroup.vue

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,35 @@
1111
<span class="font-semibold">Call tools</span>
1212
</h3>
1313

14-
14+
<div class="flex flex-wrap">
1515
<template v-for="group in props.toolGroup" :key="group.title">
16-
<div v-if="group.groupedTools.length > 1" class="flex flex-col">
17-
<div class="flex items-center gap-2 px-2 m-2 cursor-pointer hover:opacity-75 break-all font-mono text-sm leading-5 text-lightListTableHeadingText dark:text-darkListTableHeadingText" @click="toggleGroup(group.title)">
16+
<template v-if="group.groupedTools.length > 1">
17+
<div
18+
v-if="!expandedGroups.includes(group.title)"
19+
class="max-w-64 w-auto flex items-center gap-2 px-2 m-2 py-2.5 cursor-pointer
20+
hover:opacity-75 break-all font-mono text-sm leading-5
21+
text-lightListTableHeadingText dark:text-darkListTableHeadingText
22+
items-center justify-center
23+
"
24+
:class="!expandedGroups.includes(group.title) ? 'border rounded-xl' : ''"
25+
@click="toggleGroup(group.title)"
26+
>
1827
<IconCheckOutline class="w-6 h-6 p-1"/>
1928
{{ group.title }} {{ 'x' + group.groupedTools.length }}
2029
<IconAngleDownOutline
2130
class="transition-transform duration-200 hover:scale-105 hover:opacity-75"
2231
:class="expandedGroups.includes(group.title) ? 'rotate-180' : 'rotate-0'"
2332
/>
2433
</div>
25-
<transition name="expand">
26-
<div v-show="expandedGroups.includes(group.title)" class="flex flex-col">
27-
<ToolRenderer v-for="part in group.groupedTools" :key="part.toolInfo.toolCallId" :data="part" class="ml-8"/>
28-
</div>
29-
</transition>
30-
</div>
34+
<!-- <transition name="expand">
35+
<div v-show="expandedGroups.includes(group.title)" class="flex flex-wrap gap-1"> -->
36+
<ToolRenderer v-if="expandedGroups.includes(group.title)" v-for="part in group.groupedTools" :key="part.toolInfo.toolCallId" :data="part"/>
37+
<!-- </div>
38+
</transition> -->
39+
</template>
3140
<ToolRenderer v-else-if="group.groupedTools.length > 0" :data="group.groupedTools[0]" />
3241
</template>
42+
</div>
3343
</template>
3444
</template>
3545

0 commit comments

Comments
 (0)