Skip to content

Commit

Permalink
Ext: Various polish (#8937)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored and overmode committed Nov 27, 2024
1 parent 9c4ac31 commit 29e271d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
34 changes: 17 additions & 17 deletions extension/app/src/components/assistants/AssistantFavorites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export function AssistantFavorites() {
return (
<div className="h-full w-full pt-2 pb-12">
<Page.SectionHeader title="Favorites" />
<div className="relative grid w-full grid-cols-1 sm:grid-cols-2 gap-2">
{hasFavorites ? (
agentConfigurations.map(
{hasFavorites ? (
<div className="relative grid w-full grid-cols-1 sm:grid-cols-2 gap-2">
{agentConfigurations.map(
({ sId, name, pictureUrl, lastAuthors, description }) => (
<AssistantPreview
key={sId}
Expand All @@ -54,20 +54,20 @@ export function AssistantFavorites() {
hasAction={false}
/>
)
)
) : (
<div className="flex flex-col items-center pt-20 gap-4">
<p className="text-slate-400">
Your favorite assistants will appear here
</p>
<Button
label="Add favorites on Dust"
href={`${process.env.DUST_DOMAIN}`}
target="_blank"
/>
</div>
)}
</div>
)}
</div>
) : (
<div className="flex flex-col items-center pt-20 gap-4">
<p className="text-slate-400">
Your favorite assistants will appear here
</p>
<Button
label="Add favorites on Dust"
href={`${process.env.DUST_DOMAIN}`}
target="_blank"
/>
</div>
)}
</div>
);
}
8 changes: 4 additions & 4 deletions extension/app/src/components/conversation/AttachFragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const AttachFragment = ({
<div className="block sm:hidden">
<Button
icon={DocumentPlusIcon}
tooltip="Extract text from page and attach"
tooltip="Attach text from page"
variant="outline"
size="sm"
className={attachPageBlinking ? "animate-[bgblink_200ms_3]" : ""}
Expand All @@ -43,7 +43,7 @@ export const AttachFragment = ({
<div className="block sm:hidden">
<Button
icon={CameraIcon}
tooltip="Take page screenshot and attach"
tooltip="Attach page screenshot"
variant="outline"
size="sm"
onClick={() =>
Expand All @@ -58,7 +58,7 @@ export const AttachFragment = ({
<Button
icon={DocumentPlusIcon}
label="Add page text"
tooltip="Extract text from page and attach"
tooltip="Attach text from page"
variant="outline"
size="sm"
className={attachPageBlinking ? "animate-[bgblink_200ms_3]" : ""}
Expand All @@ -74,7 +74,7 @@ export const AttachFragment = ({
<Button
icon={CameraIcon}
label="Add page screenshot"
tooltip="Take page screenshot and attach"
tooltip="Attach page screenshot"
variant="outline"
size="sm"
onClick={() =>
Expand Down
2 changes: 1 addition & 1 deletion extension/app/src/components/input_bar/InputBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export function AssistantInputBar({
<div
className={classNames(
"relative flex w-full flex-1 flex-col items-stretch gap-0 self-stretch p-3",
"border-struture-200 border-t bg-white/90 backdrop-blur focus-within:border-structure-300",
"border-struture-200 border-t bg-white/90 backdrop-blur",
"transition-all",
"rounded-2xl border-b border-l border-r border-element-500 focus-within:border-action-300 focus-within:shadow-md focus-within:ring-1",
isAnimating ? "duration-600 animate-shake" : "duration-300"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function InputBarCitations({
}

return (
<div className="mr-4 flex gap-2 overflow-auto border-b border-structure-300/50 pb-3 pt-4">
<div className="mr-4 flex gap-2 overflow-auto border-b border-structure-300/50 pb-3">
{processContentFragments()}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const InputBarContainer = ({
</div>
</div>

<div className="flex items-center justify-end space-x-1 mt-2">
<div className="flex items-center justify-end space-x-2 mt-2">
<AttachFragment fileUploaderService={fileUploaderService} />
<SplitButton
size="sm"
Expand Down
6 changes: 3 additions & 3 deletions extension/app/src/hooks/useFileUploaderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export function useFileUploaderService(conversationId?: string) {

if (tabContentRes && tabContentRes.isErr()) {
sendNotification({
title: "Cannot get tab content",
title: "Cannot get page content",
description: tabContentRes.error.message,
type: "error",
});
Expand All @@ -320,7 +320,7 @@ export function useFileUploaderService(conversationId?: string) {
if (includeContent) {
if (!tabContent?.content) {
sendNotification({
title: "Cannot get tab content",
title: "Cannot get page content",
description: "No content found.",
type: "error",
});
Expand Down Expand Up @@ -371,7 +371,7 @@ export function useFileUploaderService(conversationId?: string) {
if (includeCapture) {
if (!tabContent?.captures) {
sendNotification({
title: "Cannot get tab content",
title: "Cannot get page content",
description: "No content found.",
type: "error",
});
Expand Down

0 comments on commit 29e271d

Please sign in to comment.