Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

design changes #34

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

### [0.0.13]() - 2024-12-03

### Added
- Chat Input UX improvements
- Context Icon
- Query card copy changes
- Sidebar design changes

### [0.0.12]() - 2024-12-03

### Added
Expand Down
6 changes: 3 additions & 3 deletions src/components/chat/ChatInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<div>
<div
:class="[
'vdb-c-ml-6 vdb-c-hidden vdb-c-items-center vdb-c-gap-24 vdb-c-rounded-[42px] vdb-c-border vdb-c-border-orange-200 vdb-c-bg-orange-50 vdb-c-px-12 vdb-c-py-12 vdb-c-pr-16 vdb-c-text-black md:vdb-c-flex',
'vdb-c-ml-6 vdb-c-hidden vdb-c-items-center vdb-c-gap-24 vdb-c-rounded-[42px] vdb-c-border vdb-c-border-[#BAE7BC] vdb-c-bg-[#E6F6E7] vdb-c-px-12 vdb-c-py-12 vdb-c-pr-16 vdb-c-text-black md:vdb-c-flex',

{ 'vdb-c-animate-pulse': !contextData?.name },
]"
Expand Down Expand Up @@ -273,7 +273,7 @@ defineExpose({
}

.context-icon {
background: radial-gradient(circle, #ff7f40 0%, #f55100 100%);
box-shadow: 0 0 6px 4px rgba(255, 90, 10, 0.6);
background: radial-gradient(circle, #5BC25F 0%, #0AA910 100%);
box-shadow: 0 0 6px 4px #0AA910;
}
</style>
4 changes: 2 additions & 2 deletions src/components/chat/ChatInterface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -393,15 +393,15 @@ const chatLoading = computed(() =>
);
const dynamicActionCards = computed(() => {
return props.defaultScreenConfig.actionCardQueries ||
(!isFreshUser &&
(!isFreshUser.value &&
activeCollectionData.value &&
activeCollectionVideos.value.length > 0)
? [
{
component: UploadVideoQueryCard,
isDemo: isFreshUser.value,
content:
"Upload [this video](https://www.youtube.com/watch?v=FgrO9ADPZSA) and generate a bullet point summary.",
"Upload <a href='https://www.youtube.com/watch?v=FgrO9ADPZSA' target='_blank'>https://youtu.be/FgrO9ADPZSA</a> and generate a bullet point summary.",
type: "primary",
action: "chat",
icon: FileUploadIcon,
Expand Down
14 changes: 0 additions & 14 deletions src/components/chat/elements/DefaultScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,6 @@
>
<span> <b> Videos </b> in {{ collectionName }} </span>
<div class="vdb-c-flex vdb-c-items-center vdb-c-gap-16">
<Button
variant="secondary"
@click="$emit('upload-button-click')"
class="vdb-c-hidden !vdb-c-px-8 !vdb-c-py-10 md:vdb-c-block"
>
<div
class="vdb-c-flex vdb-c-items-center vdb-c-justify-between vdb-c-gap-6"
>
<UploadIcon class="vdb-c-h-20 vdb-c-w-20" fill="#000000" />
<div class="vdb-c-text-sm vdb-c-font-medium">
Upload Video
</div>
</div>
</Button>
<Button
variant="secondary"
@click="$emit('view-all-videos-click')"
Expand Down
6 changes: 3 additions & 3 deletions src/components/chat/elements/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<!-- Collections -->
<div
class="vdb-c-flex vdb-c-max-h-[34%] vdb-c-flex-col vdb-c-overflow-hidden"
class="vdb-c-flex vdb-c-max-h-[38%] vdb-c-flex-col vdb-c-overflow-hidden"
>
<button
@click="toggleCollections()"
Expand Down Expand Up @@ -105,7 +105,7 @@

<!-- Explore Agents -->
<div
class="vdb-c-flex vdb-c-max-h-[34%] vdb-c-flex-col vdb-c-gap-4 vdb-c-rounded-lg vdb-c-border vdb-c-border-transparent"
class="vdb-c-flex vdb-c-max-h-[25%] vdb-c-flex-col vdb-c-gap-4 vdb-c-rounded-lg vdb-c-border vdb-c-border-transparent"
:class="{ 'vdb-c-explore-agents-animation': isExploreAgentsFocused }"
>
<button
Expand Down Expand Up @@ -150,7 +150,7 @@

<!-- Sessions -->
<div
class="vdb-c-flex vdb-c-max-h-[34%] vdb-c-flex-col vdb-c-overflow-hidden"
class="vdb-c-flex vdb-c-max-h-[38%] vdb-c-flex-col vdb-c-overflow-hidden"
>
<button
@click="toggleSessions()"
Expand Down
Loading